ts-wasms 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/index.d.ts +108 -94
- package/index.js +21 -0
- package/manifest.json +622 -0
- package/out/ada/folds.scm +15 -0
- package/out/ada/highlights.scm +196 -0
- package/out/ada/injections.scm +2 -0
- package/out/ada/locals.scm +33 -0
- package/out/ada/textobjects.scm +23 -0
- package/out/ada/tree-sitter-ada.wasm +0 -0
- package/out/arduino/folds.scm +1 -0
- package/out/arduino/highlights.scm +48 -0
- package/out/arduino/indents.scm +1 -0
- package/out/arduino/injections.scm +1 -0
- package/out/arduino/locals.scm +1 -0
- package/out/arduino/tags.scm +5 -0
- package/out/arduino/tree-sitter-arduino.wasm +0 -0
- package/out/awk/highlights.scm +122 -0
- package/out/awk/injections.scm +17 -0
- package/out/awk/tree-sitter-awk.wasm +0 -0
- package/out/bibtex/folds.scm +1 -0
- package/out/bibtex/highlights.scm +47 -0
- package/out/bibtex/indents.scm +8 -0
- package/out/bibtex/injections.scm +2 -0
- package/out/bibtex/locals.scm +0 -0
- package/out/bibtex/tags.scm +0 -0
- package/out/bibtex/tree-sitter-bibtex.wasm +0 -0
- package/out/cairo/folds.scm +26 -0
- package/out/cairo/highlights.scm +372 -0
- package/out/cairo/indents.scm +134 -0
- package/out/cairo/injections.scm +3 -0
- package/out/cairo/locals.scm +28 -0
- package/out/cairo/textobjects.scm +79 -0
- package/out/cairo/tree-sitter-cairo.wasm +0 -0
- package/out/cuda/folds.scm +1 -0
- package/out/cuda/highlights.scm +17 -0
- package/out/cuda/indents.scm +1 -0
- package/out/cuda/injections.scm +1 -0
- package/out/cuda/locals.scm +1 -0
- package/out/cuda/tree-sitter-cuda.wasm +0 -0
- package/out/d/folds.scm +4 -0
- package/out/d/helix-highlights.scm +241 -0
- package/out/d/helix-indents.scm +17 -0
- package/out/d/helix-injections.scm +2 -0
- package/out/d/helix-textobjects.scm +9 -0
- package/out/d/highlights.scm +259 -0
- package/out/d/indents.scm +17 -0
- package/out/d/injections.scm +2 -0
- package/out/d/locals.scm +79 -0
- package/out/d/nova-folds.scm +6 -0
- package/out/d/nova-highlights.scm +283 -0
- package/out/d/nova-symbols.scm +23 -0
- package/out/d/tags.scm +28 -0
- package/out/d/textobjects.scm +9 -0
- package/out/d/tree-sitter-d.wasm +0 -0
- package/out/desktop/folds.scm +1 -0
- package/out/desktop/highlights.scm +91 -0
- package/out/desktop/injections.scm +8 -0
- package/out/desktop/tree-sitter-desktop.wasm +0 -0
- package/out/devicetree/folds.scm +1 -0
- package/out/devicetree/highlights.scm +78 -0
- package/out/devicetree/indents.scm +12 -0
- package/out/devicetree/injections.scm +2 -0
- package/out/devicetree/locals.scm +4 -0
- package/out/devicetree/tree-sitter-devicetree.wasm +0 -0
- package/out/git_config/folds.scm +2 -0
- package/out/git_config/injections.scm +69 -0
- package/out/git_rebase/injections.scm +8 -0
- package/out/gleam/folds.scm +7 -0
- package/out/gleam/highlights.scm +137 -0
- package/out/gleam/indents.scm +28 -0
- package/out/gleam/injections.scm +3 -0
- package/out/gleam/locals.scm +17 -0
- package/out/gleam/tags.scm +41 -0
- package/out/gleam/tree-sitter-gleam.wasm +0 -0
- package/out/glsl/folds.scm +1 -0
- package/out/glsl/highlights.scm +115 -0
- package/out/glsl/indents.scm +1 -0
- package/out/glsl/injections.scm +1 -0
- package/out/glsl/locals.scm +1 -0
- package/out/glsl/tree-sitter-glsl.wasm +0 -0
- package/out/godot_resource/folds.scm +1 -0
- package/out/godot_resource/highlights.scm +49 -0
- package/out/godot_resource/injections.scm +2 -0
- package/out/godot_resource/locals.scm +1 -0
- package/out/kdl/folds.scm +8 -0
- package/out/kdl/highlights.scm +58 -0
- package/out/kdl/indents.scm +7 -0
- package/out/kdl/injections.scm +4 -0
- package/out/kdl/locals.scm +10 -0
- package/out/kdl/tree-sitter-kdl.wasm +0 -0
- package/out/liquid/highlights.scm +119 -0
- package/out/liquid/injections.scm +22 -0
- package/out/liquid/tree-sitter-liquid.wasm +0 -0
- package/out/ocaml_interface/folds.scm +1 -0
- package/out/ocaml_interface/indents.scm +1 -0
- package/out/ocaml_interface/injections.scm +1 -0
- package/out/php_only/folds.scm +19 -0
- package/out/php_only/indents.scm +68 -0
- package/out/php_only/locals.scm +84 -0
- package/out/solidity/folds.scm +20 -0
- package/out/solidity/highlights-nvim.scm +309 -0
- package/out/solidity/highlights.scm +217 -0
- package/out/solidity/injections.scm +14 -0
- package/out/solidity/locals.scm +9 -0
- package/out/solidity/tags.scm +43 -0
- package/out/solidity/tree-sitter-solidity.wasm +0 -0
- package/package.json +18 -2
- /package/out/{c-sharp → c_sharp_c_sharp}/highlights.scm +0 -0
- /package/out/{c-sharp → c_sharp_c_sharp}/tags.scm +0 -0
- /package/out/{c-sharp/tree-sitter-c-sharp.wasm → c_sharp_c_sharp/tree-sitter-c_sharp_c_sharp.wasm} +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/highlights.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-ejs.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-erb.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-etlua.scm +0 -0
- /package/out/{embedded-template/tree-sitter-embedded-template.wasm → embedded_template_embedded_template/tree-sitter-embedded_template_embedded_template.wasm} +0 -0
- /package/out/{git-config → git_config}/highlights.scm +0 -0
- /package/out/{git-config/tree-sitter-git-config.wasm → git_config/tree-sitter-git_config.wasm} +0 -0
- /package/out/{git-rebase → git_rebase}/highlights.scm +0 -0
- /package/out/{git-rebase/tree-sitter-git-rebase.wasm → git_rebase/tree-sitter-git_rebase.wasm} +0 -0
- /package/out/{godot-resource/tree-sitter-godot-resource.wasm → godot_resource/tree-sitter-godot_resource.wasm} +0 -0
- /package/out/{markdown-inline → markdown_inline}/highlights.scm +0 -0
- /package/out/{markdown-inline → markdown_inline}/injections.scm +0 -0
- /package/out/{markdown-inline/tree-sitter-markdown-inline.wasm → markdown_inline/tree-sitter-markdown_inline.wasm} +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/highlights.scm +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/locals.scm +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/tags.scm +0 -0
- /package/out/{ocaml-interface/tree-sitter-ocaml-interface.wasm → ocaml_interface/tree-sitter-ocaml_interface.wasm} +0 -0
- /package/out/{ocaml-type → ocaml_type}/highlights.scm +0 -0
- /package/out/{ocaml-type → ocaml_type}/locals.scm +0 -0
- /package/out/{ocaml-type → ocaml_type}/tags.scm +0 -0
- /package/out/{ocaml-type/tree-sitter-ocaml-type.wasm → ocaml_type/tree-sitter-ocaml_type.wasm} +0 -0
- /package/out/{php-only → php_only}/highlights.scm +0 -0
- /package/out/{php-only → php_only}/injections-text.scm +0 -0
- /package/out/{php-only → php_only}/injections.scm +0 -0
- /package/out/{php-only → php_only}/tags.scm +0 -0
- /package/out/{php-only/tree-sitter-php-only.wasm → php_only/tree-sitter-php_only.wasm} +0 -0
- /package/out/{csv-psv → psv}/highlights.scm +0 -0
- /package/out/{csv-psv/tree-sitter-csv-psv.wasm → psv/tree-sitter-psv.wasm} +0 -0
- /package/out/{csv-tsv → tsv}/highlights.scm +0 -0
- /package/out/{csv-tsv/tree-sitter-csv-tsv.wasm → tsv/tree-sitter-tsv.wasm} +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
; Punctuation
|
|
2
|
+
[
|
|
3
|
+
"("
|
|
4
|
+
")"
|
|
5
|
+
"["
|
|
6
|
+
"]"
|
|
7
|
+
"{"
|
|
8
|
+
"}"
|
|
9
|
+
"<<"
|
|
10
|
+
">>"
|
|
11
|
+
] @punctuation.bracket
|
|
12
|
+
[
|
|
13
|
+
"."
|
|
14
|
+
","
|
|
15
|
+
;; Controversial -- maybe some are operators?
|
|
16
|
+
":"
|
|
17
|
+
"#"
|
|
18
|
+
"="
|
|
19
|
+
"->"
|
|
20
|
+
".."
|
|
21
|
+
"-"
|
|
22
|
+
"<-"
|
|
23
|
+
] @punctuation.delimiter
|
|
24
|
+
|
|
25
|
+
; Variables
|
|
26
|
+
(identifier) @variable
|
|
27
|
+
(discard) @comment.unused
|
|
28
|
+
|
|
29
|
+
; Comments
|
|
30
|
+
(module_comment) @comment
|
|
31
|
+
(statement_comment) @comment
|
|
32
|
+
(comment) @comment
|
|
33
|
+
|
|
34
|
+
; Constants
|
|
35
|
+
(constant
|
|
36
|
+
name: (identifier) @constant)
|
|
37
|
+
|
|
38
|
+
; "Properties"
|
|
39
|
+
; Assumed to be intended to refer to a name for a field; something that comes
|
|
40
|
+
; before ":" or after "."
|
|
41
|
+
; e.g. record field names, tuple indices, names for named arguments, etc
|
|
42
|
+
(label) @property
|
|
43
|
+
(tuple_access
|
|
44
|
+
index: (integer) @property)
|
|
45
|
+
|
|
46
|
+
; Modules
|
|
47
|
+
(module) @module
|
|
48
|
+
(import alias: (identifier) @module)
|
|
49
|
+
(remote_type_identifier
|
|
50
|
+
module: (identifier) @module)
|
|
51
|
+
(remote_constructor_name
|
|
52
|
+
module: (identifier) @module)
|
|
53
|
+
|
|
54
|
+
; Functions
|
|
55
|
+
(unqualified_import (identifier) @function)
|
|
56
|
+
(unqualified_import "type" (type_identifier) @type)
|
|
57
|
+
(unqualified_import (type_identifier) @constructor)
|
|
58
|
+
(function
|
|
59
|
+
name: (identifier) @function)
|
|
60
|
+
(external_function
|
|
61
|
+
name: (identifier) @function)
|
|
62
|
+
(function_parameter
|
|
63
|
+
name: (identifier) @variable.parameter)
|
|
64
|
+
((function_call
|
|
65
|
+
function: (identifier) @function)
|
|
66
|
+
(#is-not? local))
|
|
67
|
+
((binary_expression
|
|
68
|
+
operator: "|>"
|
|
69
|
+
right: (identifier) @function)
|
|
70
|
+
(#is-not? local))
|
|
71
|
+
|
|
72
|
+
; TODO: `#is-not? local` applies to entire patterns but ideally it would accept
|
|
73
|
+
; a capture to check as a local. This needs to be suggested upstream. Until this
|
|
74
|
+
; is a part of the CLI's highlighter we can't distinguish between function calls
|
|
75
|
+
; on modules and accesses of record fields.
|
|
76
|
+
(function_call function: (field_access field: (label) @function)) ; Ideally this pattern would be removed,
|
|
77
|
+
((field_access
|
|
78
|
+
record: (identifier) @module)
|
|
79
|
+
; field: (label) @function) ; this line would be uncommented,
|
|
80
|
+
(#is-not? local)) ; and this line would be `(#is-not? local @module)`.
|
|
81
|
+
|
|
82
|
+
; Attributes
|
|
83
|
+
(attribute
|
|
84
|
+
"@" @attribute
|
|
85
|
+
name: (identifier) @attribute)
|
|
86
|
+
|
|
87
|
+
(attribute_value (identifier) @constant)
|
|
88
|
+
|
|
89
|
+
; Type names
|
|
90
|
+
(remote_type_identifier) @type
|
|
91
|
+
(type_identifier) @type
|
|
92
|
+
|
|
93
|
+
; Data constructors
|
|
94
|
+
(constructor_name) @constructor
|
|
95
|
+
|
|
96
|
+
; Literals
|
|
97
|
+
(string) @string
|
|
98
|
+
(escape_sequence) @string.escape
|
|
99
|
+
((escape_sequence) @warning
|
|
100
|
+
; Deprecated in v0.33.0-rc2:
|
|
101
|
+
(#eq? @warning "\\e"))
|
|
102
|
+
(bit_array_segment_option) @function.builtin
|
|
103
|
+
(integer) @number
|
|
104
|
+
(float) @number
|
|
105
|
+
|
|
106
|
+
; Reserved identifiers
|
|
107
|
+
; TODO: when tree-sitter supports `#any-of?` in the Rust bindings,
|
|
108
|
+
; refactor this to use `#any-of?` rather than `#match?`
|
|
109
|
+
((identifier) @error
|
|
110
|
+
(#any-of? @error "auto" "delegate" "derive" "else" "implement" "macro" "test"))
|
|
111
|
+
|
|
112
|
+
; Keywords
|
|
113
|
+
[
|
|
114
|
+
(visibility_modifier) ; "pub"
|
|
115
|
+
(opacity_modifier) ; "opaque"
|
|
116
|
+
"as"
|
|
117
|
+
"assert"
|
|
118
|
+
"case"
|
|
119
|
+
"const"
|
|
120
|
+
"echo"
|
|
121
|
+
; DEPRECATED: 'external' was removed in v0.30.
|
|
122
|
+
"external"
|
|
123
|
+
"fn"
|
|
124
|
+
"if"
|
|
125
|
+
"import"
|
|
126
|
+
"let"
|
|
127
|
+
"panic"
|
|
128
|
+
"todo"
|
|
129
|
+
"type"
|
|
130
|
+
"use"
|
|
131
|
+
] @keyword
|
|
132
|
+
|
|
133
|
+
; Operators
|
|
134
|
+
(binary_expression
|
|
135
|
+
operator: _ @operator)
|
|
136
|
+
(boolean_negation "!" @operator)
|
|
137
|
+
(integer_negation "-" @operator)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
; Gleam indents similar to Rust and JavaScript
|
|
2
|
+
[
|
|
3
|
+
(anonymous_function)
|
|
4
|
+
(assert)
|
|
5
|
+
(case)
|
|
6
|
+
(case_clause)
|
|
7
|
+
(constant)
|
|
8
|
+
(external_function)
|
|
9
|
+
(function)
|
|
10
|
+
(let)
|
|
11
|
+
(list)
|
|
12
|
+
(type_definition)
|
|
13
|
+
(type_alias)
|
|
14
|
+
(todo)
|
|
15
|
+
(tuple)
|
|
16
|
+
(unqualified_imports)
|
|
17
|
+
] @indent.begin
|
|
18
|
+
|
|
19
|
+
[
|
|
20
|
+
")"
|
|
21
|
+
"]"
|
|
22
|
+
"}"
|
|
23
|
+
] @indent.end @indent.branch
|
|
24
|
+
|
|
25
|
+
; Gleam pipelines are not indented, but other binary expression chains are
|
|
26
|
+
((binary_expression
|
|
27
|
+
operator: _ @_operator) @indent.begin
|
|
28
|
+
(#not-eq? @_operator "|>"))
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
; Scopes
|
|
2
|
+
(block) @local.scope
|
|
3
|
+
|
|
4
|
+
(function) @local.scope
|
|
5
|
+
|
|
6
|
+
(case_clause) @local.scope
|
|
7
|
+
|
|
8
|
+
; Definitions
|
|
9
|
+
(let pattern: (identifier) @local.definition)
|
|
10
|
+
(function_parameter name: (identifier) @local.definition)
|
|
11
|
+
(list_pattern (identifier) @local.definition)
|
|
12
|
+
(list_pattern assign: (identifier) @local.definition)
|
|
13
|
+
(tuple_pattern (identifier) @local.definition)
|
|
14
|
+
(record_pattern_argument pattern: (identifier) @local.definition)
|
|
15
|
+
|
|
16
|
+
; References
|
|
17
|
+
(identifier) @local.reference
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
; Modules
|
|
2
|
+
(module) @name @reference.module
|
|
3
|
+
(import alias: (identifier) @name) @reference.module
|
|
4
|
+
(remote_type_identifier
|
|
5
|
+
module: (identifier) @name) @reference.module
|
|
6
|
+
((field_access
|
|
7
|
+
record: (identifier) @name)
|
|
8
|
+
(#is-not? local)) @reference.module
|
|
9
|
+
|
|
10
|
+
; Functions
|
|
11
|
+
(function
|
|
12
|
+
name: (identifier) @name) @definition.function
|
|
13
|
+
(external_function
|
|
14
|
+
name: (identifier) @name) @definition.function
|
|
15
|
+
(unqualified_import (identifier) @name) @reference.function
|
|
16
|
+
((function_call
|
|
17
|
+
function: (identifier) @name) @reference.function
|
|
18
|
+
(#is-not? local))
|
|
19
|
+
((field_access
|
|
20
|
+
record: (identifier) @ignore
|
|
21
|
+
field: (label) @name)
|
|
22
|
+
(#is-not? local)) @reference.function
|
|
23
|
+
((binary_expression
|
|
24
|
+
operator: "|>"
|
|
25
|
+
right: (identifier) @name)
|
|
26
|
+
(#is-not? local)) @reference.function
|
|
27
|
+
|
|
28
|
+
; Types
|
|
29
|
+
(type_definition
|
|
30
|
+
(type_name
|
|
31
|
+
name: (type_identifier) @name)) @definition.type
|
|
32
|
+
(type_definition
|
|
33
|
+
(data_constructors
|
|
34
|
+
(data_constructor
|
|
35
|
+
name: (constructor_name) @name))) @definition.constructor
|
|
36
|
+
(external_type
|
|
37
|
+
(type_name
|
|
38
|
+
name: (type_identifier) @name)) @definition.type
|
|
39
|
+
|
|
40
|
+
(type_identifier) @name @reference.type
|
|
41
|
+
(constructor_name) @name @reference.constructor
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"break" @keyword
|
|
2
|
+
"case" @keyword
|
|
3
|
+
"const" @keyword
|
|
4
|
+
"continue" @keyword
|
|
5
|
+
"default" @keyword
|
|
6
|
+
"do" @keyword
|
|
7
|
+
"else" @keyword
|
|
8
|
+
"enum" @keyword
|
|
9
|
+
"extern" @keyword
|
|
10
|
+
"for" @keyword
|
|
11
|
+
"if" @keyword
|
|
12
|
+
"inline" @keyword
|
|
13
|
+
"return" @keyword
|
|
14
|
+
"sizeof" @keyword
|
|
15
|
+
"static" @keyword
|
|
16
|
+
"struct" @keyword
|
|
17
|
+
"switch" @keyword
|
|
18
|
+
"typedef" @keyword
|
|
19
|
+
"union" @keyword
|
|
20
|
+
"volatile" @keyword
|
|
21
|
+
"while" @keyword
|
|
22
|
+
|
|
23
|
+
"#define" @keyword
|
|
24
|
+
"#elif" @keyword
|
|
25
|
+
"#else" @keyword
|
|
26
|
+
"#endif" @keyword
|
|
27
|
+
"#if" @keyword
|
|
28
|
+
"#ifdef" @keyword
|
|
29
|
+
"#ifndef" @keyword
|
|
30
|
+
"#include" @keyword
|
|
31
|
+
(preproc_directive) @keyword
|
|
32
|
+
|
|
33
|
+
"--" @operator
|
|
34
|
+
"-" @operator
|
|
35
|
+
"-=" @operator
|
|
36
|
+
"->" @operator
|
|
37
|
+
"=" @operator
|
|
38
|
+
"!=" @operator
|
|
39
|
+
"*" @operator
|
|
40
|
+
"&" @operator
|
|
41
|
+
"&&" @operator
|
|
42
|
+
"+" @operator
|
|
43
|
+
"++" @operator
|
|
44
|
+
"+=" @operator
|
|
45
|
+
"<" @operator
|
|
46
|
+
"==" @operator
|
|
47
|
+
">" @operator
|
|
48
|
+
"||" @operator
|
|
49
|
+
|
|
50
|
+
"." @delimiter
|
|
51
|
+
";" @delimiter
|
|
52
|
+
|
|
53
|
+
(string_literal) @string
|
|
54
|
+
(system_lib_string) @string
|
|
55
|
+
|
|
56
|
+
(null) @constant
|
|
57
|
+
(number_literal) @number
|
|
58
|
+
(char_literal) @number
|
|
59
|
+
|
|
60
|
+
(call_expression
|
|
61
|
+
function: (identifier) @function)
|
|
62
|
+
(call_expression
|
|
63
|
+
function: (field_expression
|
|
64
|
+
field: (field_identifier) @function))
|
|
65
|
+
(function_declarator
|
|
66
|
+
declarator: (identifier) @function)
|
|
67
|
+
(preproc_function_def
|
|
68
|
+
name: (identifier) @function.special)
|
|
69
|
+
|
|
70
|
+
(field_identifier) @property
|
|
71
|
+
(statement_identifier) @label
|
|
72
|
+
(type_identifier) @type
|
|
73
|
+
(primitive_type) @type
|
|
74
|
+
(sized_type_specifier) @type
|
|
75
|
+
|
|
76
|
+
((identifier) @constant
|
|
77
|
+
(#match? @constant "^[A-Z][A-Z\\d_]*$"))
|
|
78
|
+
|
|
79
|
+
(identifier) @variable
|
|
80
|
+
|
|
81
|
+
(comment) @comment
|
|
82
|
+
; inherits: c
|
|
83
|
+
[
|
|
84
|
+
"in"
|
|
85
|
+
"out"
|
|
86
|
+
"inout"
|
|
87
|
+
"uniform"
|
|
88
|
+
"shared"
|
|
89
|
+
"layout"
|
|
90
|
+
"attribute"
|
|
91
|
+
"varying"
|
|
92
|
+
"buffer"
|
|
93
|
+
"coherent"
|
|
94
|
+
"readonly"
|
|
95
|
+
"writeonly"
|
|
96
|
+
"precision"
|
|
97
|
+
"highp"
|
|
98
|
+
"mediump"
|
|
99
|
+
"lowp"
|
|
100
|
+
"centroid"
|
|
101
|
+
"sample"
|
|
102
|
+
"patch"
|
|
103
|
+
"smooth"
|
|
104
|
+
"flat"
|
|
105
|
+
"noperspective"
|
|
106
|
+
"invariant"
|
|
107
|
+
"precise"
|
|
108
|
+
] @type.qualifier
|
|
109
|
+
|
|
110
|
+
"subroutine" @keyword.function
|
|
111
|
+
|
|
112
|
+
(extension_storage_class) @keyword.storage
|
|
113
|
+
|
|
114
|
+
((identifier) @variable.builtin
|
|
115
|
+
(#lua-match? @variable.builtin "^gl_"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: c
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(section) @fold
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
(identifier) @variable
|
|
2
|
+
|
|
3
|
+
(section
|
|
4
|
+
(identifier) @tag)
|
|
5
|
+
|
|
6
|
+
(section
|
|
7
|
+
[
|
|
8
|
+
"["
|
|
9
|
+
"]"
|
|
10
|
+
] @tag.delimiter)
|
|
11
|
+
|
|
12
|
+
(attribute
|
|
13
|
+
(identifier) @tag.attribute)
|
|
14
|
+
|
|
15
|
+
(property
|
|
16
|
+
(path) @property)
|
|
17
|
+
|
|
18
|
+
(constructor
|
|
19
|
+
(identifier) @constructor)
|
|
20
|
+
|
|
21
|
+
(string) @string
|
|
22
|
+
|
|
23
|
+
(integer) @number
|
|
24
|
+
|
|
25
|
+
(float) @number.float
|
|
26
|
+
|
|
27
|
+
[
|
|
28
|
+
(true)
|
|
29
|
+
(false)
|
|
30
|
+
] @boolean
|
|
31
|
+
|
|
32
|
+
(null) @constant.builtin
|
|
33
|
+
|
|
34
|
+
(array
|
|
35
|
+
[
|
|
36
|
+
"["
|
|
37
|
+
"]"
|
|
38
|
+
] @punctuation.bracket)
|
|
39
|
+
|
|
40
|
+
[
|
|
41
|
+
"("
|
|
42
|
+
")"
|
|
43
|
+
"{"
|
|
44
|
+
"}"
|
|
45
|
+
] @punctuation.bracket
|
|
46
|
+
|
|
47
|
+
"=" @operator
|
|
48
|
+
|
|
49
|
+
(comment) @comment @spell
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(section) @local.scope
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
; Types
|
|
2
|
+
|
|
3
|
+
(node (identifier) @type)
|
|
4
|
+
|
|
5
|
+
(type) @type
|
|
6
|
+
|
|
7
|
+
(annotation_type) @type.builtin
|
|
8
|
+
|
|
9
|
+
; Properties
|
|
10
|
+
|
|
11
|
+
(prop (identifier) @property)
|
|
12
|
+
|
|
13
|
+
; Variables
|
|
14
|
+
|
|
15
|
+
(identifier) @variable
|
|
16
|
+
|
|
17
|
+
; Operators
|
|
18
|
+
[
|
|
19
|
+
"="
|
|
20
|
+
"+"
|
|
21
|
+
"-"
|
|
22
|
+
] @operator
|
|
23
|
+
|
|
24
|
+
; Literals
|
|
25
|
+
|
|
26
|
+
(string) @string
|
|
27
|
+
|
|
28
|
+
(escape) @string.escape
|
|
29
|
+
|
|
30
|
+
(number) @number
|
|
31
|
+
|
|
32
|
+
(number (decimal) @float)
|
|
33
|
+
(number (exponent) @float)
|
|
34
|
+
|
|
35
|
+
(boolean) @boolean
|
|
36
|
+
|
|
37
|
+
"null" @constant.builtin
|
|
38
|
+
|
|
39
|
+
; Punctuation
|
|
40
|
+
|
|
41
|
+
["{" "}"] @punctuation.bracket
|
|
42
|
+
|
|
43
|
+
["(" ")"] @punctuation.bracket
|
|
44
|
+
|
|
45
|
+
[
|
|
46
|
+
";"
|
|
47
|
+
] @punctuation.delimiter
|
|
48
|
+
|
|
49
|
+
; Comments
|
|
50
|
+
|
|
51
|
+
[
|
|
52
|
+
(single_line_comment)
|
|
53
|
+
(multi_line_comment)
|
|
54
|
+
] @comment @spell
|
|
55
|
+
|
|
56
|
+
(node (node_comment) (#set! "priority" 105)) @comment
|
|
57
|
+
(node (node_field (node_field_comment) (#set! "priority" 105)) @comment)
|
|
58
|
+
(node_children (node_children_comment) (#set! "priority" 105)) @comment
|
|
Binary file
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
([
|
|
2
|
+
"{{"
|
|
3
|
+
"}}"
|
|
4
|
+
"{{-"
|
|
5
|
+
"-}}"
|
|
6
|
+
"{%"
|
|
7
|
+
"%}"
|
|
8
|
+
"{%-"
|
|
9
|
+
"-%}"
|
|
10
|
+
] @tag.delimiter
|
|
11
|
+
(#set! priority 101))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
([
|
|
15
|
+
"]"
|
|
16
|
+
"["
|
|
17
|
+
")"
|
|
18
|
+
"("
|
|
19
|
+
] @punctuation.bracket
|
|
20
|
+
(#set! priority 101))
|
|
21
|
+
|
|
22
|
+
([
|
|
23
|
+
","
|
|
24
|
+
"."
|
|
25
|
+
] @punctuation.delimiter
|
|
26
|
+
(#set! priority 101))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
([
|
|
30
|
+
"as"
|
|
31
|
+
"assign"
|
|
32
|
+
(break_statement)
|
|
33
|
+
"by"
|
|
34
|
+
"capture"
|
|
35
|
+
"case"
|
|
36
|
+
(continue_statement)
|
|
37
|
+
(custom_unpaired_statement)
|
|
38
|
+
"cycle"
|
|
39
|
+
"decrement"
|
|
40
|
+
"doc"
|
|
41
|
+
"echo"
|
|
42
|
+
"else"
|
|
43
|
+
"elsif"
|
|
44
|
+
"endcapture"
|
|
45
|
+
"endcase"
|
|
46
|
+
"enddoc"
|
|
47
|
+
"endfor"
|
|
48
|
+
"endform"
|
|
49
|
+
"endif"
|
|
50
|
+
"endjavascript"
|
|
51
|
+
"endpaginate"
|
|
52
|
+
"endraw"
|
|
53
|
+
"endschema"
|
|
54
|
+
"endstyle"
|
|
55
|
+
"endstylesheet"
|
|
56
|
+
"endtablerow"
|
|
57
|
+
"endunless"
|
|
58
|
+
"for"
|
|
59
|
+
"form"
|
|
60
|
+
"if"
|
|
61
|
+
"include"
|
|
62
|
+
"include_relative"
|
|
63
|
+
"increment"
|
|
64
|
+
"javascript"
|
|
65
|
+
"layout"
|
|
66
|
+
"liquid"
|
|
67
|
+
"paginate"
|
|
68
|
+
"raw"
|
|
69
|
+
"render"
|
|
70
|
+
"schema"
|
|
71
|
+
"section"
|
|
72
|
+
"sections"
|
|
73
|
+
"style"
|
|
74
|
+
"stylesheet"
|
|
75
|
+
"tablerow"
|
|
76
|
+
"unless"
|
|
77
|
+
"when"
|
|
78
|
+
"with"
|
|
79
|
+
] @keyword
|
|
80
|
+
(#set! priority 101))
|
|
81
|
+
|
|
82
|
+
([
|
|
83
|
+
"and"
|
|
84
|
+
"contains"
|
|
85
|
+
"in"
|
|
86
|
+
"or"
|
|
87
|
+
] @keyword.operator
|
|
88
|
+
(#set! priority 101))
|
|
89
|
+
|
|
90
|
+
([
|
|
91
|
+
"|"
|
|
92
|
+
":"
|
|
93
|
+
"="
|
|
94
|
+
(predicate)
|
|
95
|
+
] @operator
|
|
96
|
+
(#set! priority 101))
|
|
97
|
+
|
|
98
|
+
((identifier) @variable (#set! priority 101))
|
|
99
|
+
((string) @string (#set! priority 101))
|
|
100
|
+
((boolean) @boolean (#set! priority 101))
|
|
101
|
+
((number) @number (#set! priority 101))
|
|
102
|
+
|
|
103
|
+
(filter
|
|
104
|
+
name: (identifier) @function.call (#set! priority 101))
|
|
105
|
+
|
|
106
|
+
(raw_statement
|
|
107
|
+
(raw_content) @text.reference (#set! priority 102))
|
|
108
|
+
|
|
109
|
+
((comment) @comment (#set! priority 102))
|
|
110
|
+
|
|
111
|
+
((doc) @comment.documentation (#set! priority 102))
|
|
112
|
+
((doc_content) @comment.documentation (#set! priority 102))
|
|
113
|
+
((doc_description_annotation) @keyword (#set! priority 103))
|
|
114
|
+
((doc_example_annotation) @comment.documentation (#set! priority 102))
|
|
115
|
+
((doc_example_content) @none (#set! priority 103))
|
|
116
|
+
((doc_param_name) @variable (#set! priority 103))
|
|
117
|
+
((doc_type) @type (#set! priority 103))
|
|
118
|
+
("@param" @keyword (#set! priority 103))
|
|
119
|
+
("@example" @keyword (#set! priority 103))
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
((template_content) @injection.content
|
|
2
|
+
(#set! injection.language "html")
|
|
3
|
+
(#set! injection.combined))
|
|
4
|
+
|
|
5
|
+
((json_content) @injection.content
|
|
6
|
+
(#set! injection.language "json")
|
|
7
|
+
(#set! injection.combined))
|
|
8
|
+
|
|
9
|
+
((style_content) @injection.content
|
|
10
|
+
(#set! injection.language "css")
|
|
11
|
+
(#set! injection.combined))
|
|
12
|
+
|
|
13
|
+
((stylesheet_content) @injection.content
|
|
14
|
+
(#set! injection.language "css")
|
|
15
|
+
(#set! injection.combined))
|
|
16
|
+
|
|
17
|
+
((js_content) @injection.content
|
|
18
|
+
(#set! injection.language "javascript")
|
|
19
|
+
(#set! injection.combined))
|
|
20
|
+
|
|
21
|
+
((front_matter) @injection.content
|
|
22
|
+
(#set! injection.language "yaml"))
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: ocaml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: ocaml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
; inherits: ocaml
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[
|
|
2
|
+
(if_statement)
|
|
3
|
+
(switch_statement)
|
|
4
|
+
(while_statement)
|
|
5
|
+
(do_statement)
|
|
6
|
+
(for_statement)
|
|
7
|
+
(foreach_statement)
|
|
8
|
+
(try_statement)
|
|
9
|
+
(function_definition)
|
|
10
|
+
(class_declaration)
|
|
11
|
+
(interface_declaration)
|
|
12
|
+
(trait_declaration)
|
|
13
|
+
(enum_declaration)
|
|
14
|
+
(function_static_declaration)
|
|
15
|
+
(method_declaration)
|
|
16
|
+
(namespace_use_declaration)+
|
|
17
|
+
(array_creation_expression)
|
|
18
|
+
(match_expression)
|
|
19
|
+
] @fold
|