Set up config for 'tree-sitter highlight' and update highlight rules for strings

This commit is contained in:
Martin Jambon 2023-06-23 14:12:34 -07:00
parent 71fe2fd68b
commit d36d825a07
2 changed files with 20 additions and 2 deletions

View file

@ -13,5 +13,19 @@
},
"devDependencies": {
"tree-sitter-cli": "^0.20.1"
},
"tree-sitter": [
{
"file-types": [
"Dockerfile",
"dockerfile",
"docker",
"Containerfile",
"container"
],
"highlights": [
"queries/highlights.scm"
]
}
]
}

View file

@ -35,7 +35,11 @@
(image_digest
"@" @punctuation.special))
(double_quoted_string) @string
[
(double_quoted_string)
(single_quoted_string)
(json_string)
] @string
(expansion
[