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,64 @@
; highlights.scm
[
(import)
(package)
] @include
[
(with)
(as)
(every)
(some)
(in)
(not)
(if)
(contains)
(else)
(default)
"null"
] @keyword
[
"true"
"false"
] @boolean
[
(assignment_operator)
(bool_operator)
(arith_operator)
(bin_operator)
] @operator
[
(string)
(raw_string)
] @string
(term (ref (var))) @variable
(comment) @comment
(number) @number
(expr_call func_name: (fn_name (var) @function .))
(expr_call func_arguments: (fn_args (expr) @parameter))
(rule_args (term) @parameter)
[
(open_paren)
(close_paren)
(open_bracket)
(close_bracket)
(open_curly)
(close_curly)
] @punctuation.bracket
(rule (rule_head (var) @method))
(rule
(rule_head (term (ref (var) @namespace)))
(rule_body (query (literal (expr (expr_infix (expr (term (ref (var)) @_output)))))) (#eq? @_output @namespace))
)

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))