Sublime-SQF-Language icon indicating copy to clipboard operation
Sublime-SQF-Language copied to clipboard

Synxtax coloring

Open StokesMagee opened this issue 10 years ago • 7 comments

There seems to be a coloring issue with comments. ( /* comment */ ) and ( // comment)

image

StokesMagee avatar Jul 31 '16 01:07 StokesMagee

Can confirm this is also a issue for myself image

KamikazeXeX avatar Jul 31 '16 01:07 KamikazeXeX

Issue appears to be related to https://github.com/JonBons/Sublime-SQF-Language/commit/8de744faf035d6b820ffcceb60a5c41f1c58feb9

StokesMagee avatar Jul 31 '16 01:07 StokesMagee

I get it. It's a side effect of making / a math command. Should be fixed by changing the order of math commands vs comments

commy2 avatar Jul 31 '16 01:07 commy2

Changing the order to prioritize comments while preserving / as math seems to work for me, thanks.

KamikazeXeX avatar Jul 31 '16 01:07 KamikazeXeX

:( image

StokesMagee avatar Aug 01 '16 03:08 StokesMagee

It would appear that the & operator syntax is also affected, so far haven't attempted to restore old behaviour as its a small issue but it would be nice to also get this resolved (I'm big on syntaxing and styling) image

KamikazeXeX avatar Aug 01 '16 03:08 KamikazeXeX

I fixed this in https://github.com/JonBons/Sublime-SQF-Language/pull/27 Sorry that I didn't notice that you can't use escaping inside \b()

commy2 avatar Aug 01 '16 07:08 commy2