Sublime Forum

ST2: Where should I put .tmLanguge overrides?

#1

I need to fix a couple of .tmLanguage files. For example in Groovy.tmLanguage the match at line 1159, for string interpolation without braces, should be /$\w.]+/ not /$\w+/. Other changes are less generic and more specific to my coding conventions.

Where should I put my modified files, so that they are not overwritten when the respective package is upgraded?

If I put my Groovy.tmLanguage in the User folder, then I get two Groovy choices in the Syntax menu, one related to the original file and one to my version.

If I delete the original file and only leave the one in User, then I get an error when opening a Groovy file: «Error loading syntax file “Packages/Groovy/Groovy.tmLanguage”: Error parsing plist xml: Failed to open file In file “Packages/Groovy/Groovy.tmLanguage”»

Does ST3 handle overrides better?

0 Likes