| 1 |
; Keywords
|
| 2 |
"let" @keyword
|
| 3 |
"if" @keyword.conditional
|
| 4 |
"then" @keyword.conditional
|
| 5 |
"else" @keyword.conditional
|
| 6 |
"import" @keyword.import
|
| 7 |
|
| 8 |
; Literals
|
| 9 |
(string) @string
|
| 10 |
(string_content) @string
|
| 11 |
(escape_sequence) @string.escape
|
| 12 |
(number) @number
|
| 13 |
(boolean) @boolean
|
| 14 |
|
| 15 |
; Identifiers
|
| 16 |
(identifier) @variable
|
| 17 |
|
| 18 |
; Types
|
| 19 |
(type_annotation) @type
|
| 20 |
|
| 21 |
; Fields
|
| 22 |
(record_field
|
| 23 |
key: (identifier) @property)
|
| 24 |
|
| 25 |
(field_access
|
| 26 |
(identifier) @property)
|
| 27 |
|
| 28 |
; Functions
|
| 29 |
(call_expression
|
| 30 |
function: (identifier) @function.call)
|
| 31 |
|
| 32 |
; Operators
|
| 33 |
"=" @operator
|
| 34 |
":" @punctuation.delimiter
|
| 35 |
"?" @operator
|
| 36 |
"..." @operator
|
| 37 |
"." @punctuation.delimiter
|
| 38 |
|
| 39 |
; Punctuation
|
| 40 |
"{" @punctuation.bracket
|
| 41 |
"}" @punctuation.bracket
|
| 42 |
"[" @punctuation.bracket
|
| 43 |
"]" @punctuation.bracket
|
| 44 |
"(" @punctuation.bracket
|
| 45 |
")" @punctuation.bracket
|
| 46 |
";" @punctuation.delimiter
|
| 47 |
"," @punctuation.delimiter
|
| 48 |
|
| 49 |
; Interpolation
|
| 50 |
(interpolation
|
| 51 |
"${" @punctuation.special
|
| 52 |
"}" @punctuation.special)
|
| 53 |
|
| 54 |
; Comments
|
| 55 |
(comment) @comment
|