I want to modify the existing Textmate Groovy bundle so that it can be used for my Jenkinsfile files.
In Syntaxes/Groovy.tmLanguage, there is the fileTypes section:
<key>fileTypes</key>
<array>
<string>groovy</string>
<string>gvy</string>
</array>
However, these are file extensions, not file names, as the reference doc I've found says:
fileTypes(line 2) — this is an array of file type extensions that the grammar should (by default) be used with.
How can I make the bundle match on full filename for my Jenkinsfile?
It turns out that full filenames are actually supported in the
fileTypessection, despite what the doc said (possibly because that doc is from version 1). There's an example of a match onRakefilehere.Therefore, I could just do this: