diff options
author | Jonathan | 2022-11-15 01:43:22 +0000 |
---|---|---|
committer | GitHub | 2022-11-15 01:43:22 +0000 |
commit | 1233c9a989f419315a9fc2ed0bc10f9338aa8322 (patch) | |
tree | c28e769041a90399132107a8008ebc2fca1c074f /runtime/queries | |
parent | 4791bd66b719423cf03e0046ae5f08ab2afafad1 (diff) |
Add support for Bicep files (#4403)
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/bicep/highlights.scm | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/runtime/queries/bicep/highlights.scm b/runtime/queries/bicep/highlights.scm new file mode 100644 index 00000000..b6f92872 --- /dev/null +++ b/runtime/queries/bicep/highlights.scm @@ -0,0 +1,73 @@ +; Keywords + +[ + "module" + "var" + "param" + "import" + "resource" + "existing" + "if" + "targetScope" + "output" +] @keyword + +; Functions + +(decorator) @function.builtin + +(functionCall) @function + +(functionCall + (functionArgument + (variableAccess) @variable)) + +; Literals/Types + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(resourceDeclaration + (string + (stringLiteral) @string.special)) + +(moduleDeclaration + (string + (stringLiteral) @string.special)) + +[ + (string) + (stringLiteral) +] @string + +(nullLiteral) @keyword +(booleanLiteral) @constant.builtin.boolean +(integerLiteral) @constant.numeric.integer +(comment) @comment + +(string + (variableAccess + (identifier) @variable)) + +(type) @type + +; Variables + +(localVariable) @variable + +; Statements + +(object + (objectProperty + (identifier) @identifier)) + +(propertyAccess + (identifier) @identifier) + +(ifCondition) @keyword.control.conditional |