feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,8 @@
; Folds
[
(node)
(node_children)
(string)
(multi_line_comment)
] @fold

View file

@ -0,0 +1,58 @@
; Types
(node (identifier) @type)
(type) @type
(annotation_type) @type.builtin
; Properties
(prop (identifier) @property)
; Variables
(identifier) @variable
; Operators
[
"="
"+"
"-"
] @operator
; Literals
(string) @string
(escape) @string.escape
(number) @number
(number (decimal) @float)
(number (exponent) @float)
(boolean) @boolean
"null" @constant.builtin
; Punctuation
["{" "}"] @punctuation.bracket
["(" ")"] @punctuation.bracket
[
";"
] @punctuation.delimiter
; Comments
[
(single_line_comment)
(multi_line_comment)
] @comment @spell
(node (node_comment) (#set! "priority" 105)) @comment
(node (node_field (node_field_comment) (#set! "priority" 105)) @comment)
(node_children (node_children_comment) (#set! "priority" 105)) @comment

View file

@ -0,0 +1,7 @@
(node (node_children) @indent.begin)
"}" @indent.end
[ "{" "}" ] @indent.branch
[ "(" ")" ] @indent.branch

View file

@ -0,0 +1,5 @@
([
(single_line_comment)
(multi_line_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,10 @@
(document) @scope
(node (node_children) @scope)
(node_children (node) @scope)
(identifier) @reference
(node_field) @definition.field
(node (identifier) @definition.type)
(type) @definition.type