summaryrefslogtreecommitdiff
path: root/runtime/queries/bicep/highlights.scm
blob: b6f9287263330b10a8daa59d099e8ec13bfd7f62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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