Add Tree-sitter grammar for Decodal
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
(comment) @comment
|
||||
|
||||
(string) @string
|
||||
(regex_literal) @string.regexp
|
||||
(integer) @number
|
||||
(float) @number
|
||||
(boolean) @boolean
|
||||
|
||||
[
|
||||
"let"
|
||||
"in"
|
||||
"match"
|
||||
"import"
|
||||
"default"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"&"
|
||||
"//"
|
||||
"=>"
|
||||
"="
|
||||
">"
|
||||
">="
|
||||
"<"
|
||||
"<="
|
||||
] @operator
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
";"
|
||||
","
|
||||
"."
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
((identifier) @type.builtin
|
||||
(#match? @type.builtin "^(String|Int|Float|Bool)$"))
|
||||
|
||||
(field_definition
|
||||
path: (field_path (identifier) @property))
|
||||
|
||||
(path_expression
|
||||
field: (identifier) @property)
|
||||
|
||||
(parameter
|
||||
name: (identifier) @variable.parameter)
|
||||
|
||||
(function_expression) @function
|
||||
(call_expression
|
||||
function: (identifier) @function.call)
|
||||
Reference in New Issue
Block a user