Add Tree-sitter grammar for Decodal

This commit is contained in:
2026-06-16 12:01:29 +09:00
parent f1a5836247
commit 58d2c9b423
39 changed files with 8453 additions and 1 deletions
@@ -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)