Set up config for 'tree-sitter highlight' and update highlight rules for strings
This commit is contained in:
parent
71fe2fd68b
commit
d36d825a07
16
package.json
16
package.json
|
@ -13,5 +13,19 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tree-sitter-cli": "^0.20.1"
|
"tree-sitter-cli": "^0.20.1"
|
||||||
}
|
},
|
||||||
|
"tree-sitter": [
|
||||||
|
{
|
||||||
|
"file-types": [
|
||||||
|
"Dockerfile",
|
||||||
|
"dockerfile",
|
||||||
|
"docker",
|
||||||
|
"Containerfile",
|
||||||
|
"container"
|
||||||
|
],
|
||||||
|
"highlights": [
|
||||||
|
"queries/highlights.scm"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,11 @@
|
||||||
(image_digest
|
(image_digest
|
||||||
"@" @punctuation.special))
|
"@" @punctuation.special))
|
||||||
|
|
||||||
(double_quoted_string) @string
|
[
|
||||||
|
(double_quoted_string)
|
||||||
|
(single_quoted_string)
|
||||||
|
(json_string)
|
||||||
|
] @string
|
||||||
|
|
||||||
(expansion
|
(expansion
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue