SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

helpfully highlight text as depreciated in tmPreferences files if ST will ignore it #118

Closed keith-hall closed 7 years ago

keith-hall commented 7 years ago

Prior to this PR, the syntax definition wasn't scoping XML comments in shellVariables and regex patterns correctly. However, ST also has some odd behavior - specifically, ST ignores text in tmPreferences files if it comes after a comment or CDATA node that comes after non-whitespace. I have added invalid.deprecated scoping to highlight this to the developer, to save time troubleshooting when commenting bits of text out or trying to use multiple consecutive CDATA sections.

(plistlib still reads it correctly, so I haven't touched the "Property List" syntax definition - it's just ST's parser that behaves like this.)