nim-lang / nim-mode

An emacs major mode for the Nim programming language
138 stars 46 forks source link

nimscript-mode comment highlighting doesn't stop at newline #166

Closed nigredo-tori closed 7 years ago

nigredo-tori commented 7 years ago

OS: Ubuntu 16.04 Emacs: 26.0.50 nim-mode: 20170716.948 nim, nimsuggest: 0.17.0 (d3f0f87e81e262ee25fd528aae5b6db0bdf78d5e)

No relevant messages in *Messages* buffer. Found nothing similar in README.md

The problem is like follows: with nimscript-mode all lines after a single-line comment (started by # symbol) are also highlighted as comments: screenshot from 2017-07-26 16-46-42 The same file opened in nim-mode is displayed properly. The issue is present with and without my init file.

yuutayamada commented 7 years ago

Can you give me the link of config.nims?

yuutayamada commented 7 years ago

Never mind I could reproduce

yuutayamada commented 7 years ago

I think I fixed the issue, but feel free to re-open if you still have same issue

nigredo-tori commented 7 years ago

@yuutayamada, it is fixed for my scripts, too. Thank you.