init
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
[
|
||||
"and"
|
||||
"as"
|
||||
"bits"
|
||||
"break"
|
||||
"continue"
|
||||
"distinct"
|
||||
"else"
|
||||
"for"
|
||||
"if"
|
||||
"in"
|
||||
"loop"
|
||||
"match"
|
||||
"not"
|
||||
"or"
|
||||
"pub"
|
||||
"return"
|
||||
"use"
|
||||
] @keyword
|
||||
|
||||
(primitive_type) @type.builtin
|
||||
(identifier) @variable
|
||||
(comment) @comment
|
||||
(default_expression) @keyword
|
||||
(boolean_literal) @constant.builtin
|
||||
(nil_literal) @constant.builtin
|
||||
(string_literal) @string
|
||||
(character_literal) @character
|
||||
(integer_literal) @number
|
||||
(float_literal) @number.float
|
||||
(label (identifier) @label)
|
||||
|
||||
(declaration name: (identifier) @variable.definition)
|
||||
(typed_parameter pattern: (identifier) @variable.parameter)
|
||||
(typed_tuple_component pattern: (identifier) @variable.parameter)
|
||||
(product_field name: (identifier) @property)
|
||||
(product_entry (identifier) @property)
|
||||
(sum_variant name: (identifier) @constructor)
|
||||
(bits_member (identifier) @constant)
|
||||
|
||||
[
|
||||
"=" "+=" "-=" "*=" "/=" "%=" "&=" "^=" "|="
|
||||
"==" "<" "<=" ">" ">="
|
||||
"+" "-" "*" "/" "%" "&" "|" "^" "~" "!"
|
||||
"->" "=>" "|>" "..<" "..=" "@"
|
||||
] @operator
|
||||
Reference in New Issue
Block a user