Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"end" at the end of file is not highlighted correctly #15

Closed
vvolhejn opened this issue Jun 16, 2018 · 2 comments
Closed

"end" at the end of file is not highlighted correctly #15

vvolhejn opened this issue Jun 16, 2018 · 2 comments
Labels

Comments

@vvolhejn
Copy link

Consider the code

if true
end

(without a newline after end). Then end is highlighted as if it were a command name rather than a keyword; in Monokai, blue instead of red.

In other syntax highlighters (try the same code highlighted like MATLAB), this behaves as expected.

@Phidica
Copy link
Owner

Phidica commented Jun 17, 2018

Ah, thank you for pointing this out. I use ST with the "ensure_newline_at_eof_on_save" setting enabled, so I hadn't noticed this. The syntax almost exclusively looks for \n to end scopes, rather than $ which is all that would be present at the end of the file... I'll take a look

@Phidica Phidica added the bug label Jun 17, 2018
@vvolhejn
Copy link
Author

vvolhejn commented Jun 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants