-
Notifications
You must be signed in to change notification settings - Fork 51
Numbers at end of strings aren't highlighted as part of the string #30
Comments
Yeah, this is definitely new in 1.21. I'm writing a semantic highlighting package, but utilizing the grammar, and a few of my tests broke :( Is this going to be fixed soon. I'd rather not have to work around it :-) |
I'll see what I can do today. |
@50Wliu, I'd love to take a look tonight and this weekend, but couldn't quickly spot the commit, do you happen to know which one it was that broke it? |
@DavidLGoldberg If I had to guess, #24 (there was a small modification in 05efcd8 though). I think an underscore is a valid word boundary so you're going to have to work around that through a negative lookbehind. |
The SHA above is definitely the one that breaks it from what I can tell with: It also passes all of my tests I'll try to investigate further. |
Docs are somewhat lacking on grammar development, unfortunately. In general Atom follows the Textmate guidelines since most of the grammars were converted from Textmate, but the guidelines are pretty vague. |
Fixed by #34. |
I updated to 1.21 and noticed this started to happen. The digits at the end of the string should be the same color as the string.
The text was updated successfully, but these errors were encountered: