Set up config for 'tree-sitter highlight' and update highlight rules for strings
This commit is contained in:
parent
71fe2fd68b
commit
d36d825a07
14
package.json
14
package.json
|
@ -13,5 +13,19 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"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
|
||||
"@" @punctuation.special))
|
||||
|
||||
(double_quoted_string) @string
|
||||
[
|
||||
(double_quoted_string)
|
||||
(single_quoted_string)
|
||||
(json_string)
|
||||
] @string
|
||||
|
||||
(expansion
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue