PrestonKnopp / language-gdscript

gdscript language grammar package for atom.io
https://atom.io/packages/lang-gdscript
MIT License
32 stars 9 forks source link

Escape character in string breaks syntax coloring #11

Closed Zylann closed 5 years ago

Zylann commented 5 years ago

A sequence like this causes the rest of the file to be considered a string:

    for i in len(symbols):
        symbols_regex_string = str(symbols_regex_string, "\\", symbols[i])
    symbols_regex_string += "]"
    _symbol_regex = RegEx.new()
    _symbol_regex.compile(symbols_regex_string)

And in fact, even Github fails on this, but Github's coloring isn't great either^^

image

PrestonKnopp commented 5 years ago

This should now be fixed with: 3e4b8e1.