"$comment":"This is used in the description and the class names."
},
"scope":{
"type":"string",
"description":"The TextMate scope that represents this language.",
"pattern":"^(source|text)(\\.\\w+)+$",
"examples":[
"source.rust",
"text.html"
]
},
"path":{
"type":"string",
"default":".",
"description":"The relative path to the directory containing the grammar."
},
"external-files":{
"type":"array",
"description":"The relative paths to files that should be checked for modifications during recompilation.",
"items":{
"type":"string"
},
"minItems":1
},
"file-types":{
"type":"array",
"description":"An array of filename suffix strings.",
"items":{
"type":"string"
},
"minItems":1
},
"highlights":{
"anyOf":[
{
"type":"string"
},
{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
}
],
"default":"queries/highlights.scm",
"description":"The path(s) to the grammar's highlight queries."
},
"injections":{
"anyOf":[
{
"type":"string"
},
{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
}
],
"default":"queries/injections.scm",
"description":"The path(s) to the grammar's injection queries."
},
"locals":{
"anyOf":[
{
"type":"string"
},
{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
}
],
"default":"queries/locals.scm",
"description":"The path(s) to the grammar's local variable queries."
},
"tags":{
"anyOf":[
{
"type":"string"
},
{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
}
],
"default":"queries/tags.scm",
"description":"The path(s) to the grammar's code navigation queries."
},
"injection-regex":{
"type":"string",
"format":"regex",
"description":"A regex pattern that will be tested against a language name in order to determine whether this language should be used for a potential language injection site."
},
"first-line-regex":{
"type":"string",
"format":"regex",
"description":"A regex pattern that will be tested against the first line of a file in order to determine whether this language applies to the file."
},
"content-regex":{
"type":"string",
"format":"regex",
"description":"A regex pattern that will be tested against the contents of the file in order to break ties in cases where multiple grammars matched the file."
"description":"The namespace for the Java & Kotlin packages.",
"default":"io.github.tree-sitter",
"$comment":"Used as is in the Maven/Gradle group name and transformed accordingly for the package names and directories (e.g. io.github.treesitter.jtreesitter.html - src/main/java/io/github/treesitter/jtreesitter/html)."