Closed ahmadsalim closed 6 years ago
I discovered the issue while I was doing something else. First of all there is a small bug in the grammar which was unnoticed:
Which is that in the regex: rule we should replace
regex:
begin: "/(?!/|*)"
with
begin: "/(?!/|\\*)"
Without fixing this issue the Atom highlighter breaks on certain files, but the TM/Sublime highlighter is also wrong.
Fixing this issue brings another issue with regards to division being accidentally seen as regex literals by the highlighter.
I will try to take a look in the weekend.
I discovered the issue while I was doing something else. First of all there is a small bug in the grammar which was unnoticed:
Which is that in the
regex:
rule we should replacewith
Without fixing this issue the Atom highlighter breaks on certain files, but the TM/Sublime highlighter is also wrong.
Fixing this issue brings another issue with regards to division being accidentally seen as regex literals by the highlighter.