You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
955 B
74 lines
955 B
; Literals
|
|
|
|
(raw_string) @string
|
|
(template_string) @string
|
|
(number) @number
|
|
(command_name) @function.macro
|
|
(expansion) @embedded
|
|
|
|
; Functions
|
|
|
|
(function_declaration
|
|
name: (identifier) @function)
|
|
(function_parameter (identifier) @variable.parameter)
|
|
(call_expression
|
|
name: (identifier) @function)
|
|
|
|
(line_comment) @comment
|
|
(block_comment) @comment
|
|
|
|
; Punctuation and operators
|
|
|
|
"(" @punctuation.bracket
|
|
")" @punctuation.bracket
|
|
"{" @punctuation.bracket
|
|
"}" @punctuation.bracket
|
|
":" @punctuation.delimiter
|
|
"::" @punctuation.delimiter
|
|
"," @punctuation.delimiter
|
|
";" @punctuation.delimiter
|
|
|
|
[
|
|
"+"
|
|
"-"
|
|
"*"
|
|
"/"
|
|
"%"
|
|
"="
|
|
"+="
|
|
"-="
|
|
"*="
|
|
"/="
|
|
"%="
|
|
"<"
|
|
"<="
|
|
">"
|
|
">="
|
|
"&&"
|
|
"||"
|
|
"!"
|
|
"|"
|
|
] @operator
|
|
|
|
; Identifiers
|
|
|
|
(type_identifier) @type
|
|
[
|
|
"as"
|
|
"break"
|
|
"continue"
|
|
"else"
|
|
"fun"
|
|
"if"
|
|
"in"
|
|
"return"
|
|
"use"
|
|
"val"
|
|
"var"
|
|
"while"
|
|
] @keyword
|
|
[
|
|
"true"
|
|
"false"
|
|
] @constant.builtin
|