Detect shebang for Groovy files

* Should match "#!groovy", "#!/usr/bin/env /path/to/groovy" & "#!/usr/bin/groovy" types
* Very useful for people editing Jenkinsfile configuration (which has no file extension)
This commit is contained in:
Harry Mallon 2016-07-25 16:53:08 +01:00
parent da56a2cd40
commit d681138365

View file

@ -8,6 +8,7 @@
"id": "groovy",
"aliases": ["Groovy", "groovy"],
"extensions": [".groovy", ".gvy", ".gradle"],
"firstLine": "^#!.*\\bgroovy\\b",
"configuration": "./language-configuration.json"
}],
"grammars": [{
@ -20,4 +21,4 @@
"path": "./snippets/groovy.json"
}]
}
}
}