ts-wasms 1.0.2 → 1.0.4

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.
Files changed (125) hide show
  1. package/README.md +33 -0
  2. package/out/bash/tree-sitter-bash.wasm +0 -0
  3. package/out/c/tree-sitter-c.wasm +0 -0
  4. package/out/c-sharp/tree-sitter-c_sharp.wasm +0 -0
  5. package/out/clojure/highlights.scm +29 -0
  6. package/out/clojure/tree-sitter-clojure.wasm +0 -0
  7. package/out/clojurescript/highlights.scm +29 -0
  8. package/out/clojurescript/tree-sitter-clojure.wasm +0 -0
  9. package/out/commonlisp/tags.scm +122 -0
  10. package/out/commonlisp/tree-sitter-commonlisp.wasm +0 -0
  11. package/out/cpp/tree-sitter-cpp.wasm +0 -0
  12. package/out/css/tree-sitter-css.wasm +0 -0
  13. package/out/dart/tree-sitter-dart.wasm +0 -0
  14. package/out/elisp/tree-sitter-elisp.wasm +0 -0
  15. package/out/elixir/tree-sitter-elixir.wasm +0 -0
  16. package/out/elm/highlights.scm +76 -0
  17. package/out/elm/injections.scm +4 -0
  18. package/out/elm/locals.scm +15 -0
  19. package/out/elm/tags.scm +19 -0
  20. package/out/elm/tree-sitter-elm.wasm +0 -0
  21. package/out/embedded-template/tree-sitter-embedded_template.wasm +0 -0
  22. package/out/erlang/highlights.scm +230 -0
  23. package/out/erlang/tree-sitter-erlang.wasm +0 -0
  24. package/out/go/tree-sitter-go.wasm +0 -0
  25. package/out/graphql/tree-sitter-graphql.wasm +0 -0
  26. package/out/haskell/tree-sitter-haskell.wasm +0 -0
  27. package/out/hcl/tree-sitter-hcl.wasm +0 -0
  28. package/out/hcl-terraform/tree-sitter-terraform.wasm +0 -0
  29. package/out/html/tree-sitter-html.wasm +0 -0
  30. package/out/java/tree-sitter-java.wasm +0 -0
  31. package/out/javascript/tree-sitter-javascript.wasm +0 -0
  32. package/out/json/tree-sitter-json.wasm +0 -0
  33. package/out/julia/highlights.scm +375 -0
  34. package/out/julia/injections.scm +42 -0
  35. package/out/julia/locals.scm +71 -0
  36. package/out/julia/tree-sitter-julia.wasm +0 -0
  37. package/out/kotlin/tree-sitter-kotlin.wasm +0 -0
  38. package/out/lua/highlights.scm +201 -0
  39. package/out/lua/injections.scm +12 -0
  40. package/out/lua/locals.scm +32 -0
  41. package/out/lua/tags.scm +36 -0
  42. package/out/lua/tree-sitter-lua.wasm +0 -0
  43. package/out/markdown/highlights.scm +52 -0
  44. package/out/markdown/injections.scm +12 -0
  45. package/out/markdown/tree-sitter-markdown.wasm +0 -0
  46. package/out/markdown-inline/highlights.scm +37 -0
  47. package/out/markdown-inline/injections.scm +2 -0
  48. package/out/markdown-inline/tree-sitter-markdown_inline.wasm +0 -0
  49. package/out/nix/highlights.scm +99 -0
  50. package/out/nix/injections.scm +39 -0
  51. package/out/nix/locals.scm +33 -0
  52. package/out/nix/tags.scm +16 -0
  53. package/out/nix/tree-sitter-nix.wasm +0 -0
  54. package/out/objc/tree-sitter-objc.wasm +0 -0
  55. package/out/ocaml/highlights.scm +148 -0
  56. package/out/ocaml/locals.scm +24 -0
  57. package/out/ocaml/tags.scm +170 -0
  58. package/out/ocaml/tree-sitter-ocaml.wasm +0 -0
  59. package/out/ocaml-interface/highlights.scm +148 -0
  60. package/out/ocaml-interface/locals.scm +24 -0
  61. package/out/ocaml-interface/tags.scm +170 -0
  62. package/out/ocaml-interface/tree-sitter-ocaml_interface.wasm +0 -0
  63. package/out/ocaml-type/highlights.scm +148 -0
  64. package/out/ocaml-type/locals.scm +24 -0
  65. package/out/ocaml-type/tags.scm +170 -0
  66. package/out/ocaml-type/tree-sitter-ocaml_type.wasm +0 -0
  67. package/out/perl/folds.scm +27 -0
  68. package/out/perl/highlights.scm +162 -0
  69. package/out/perl/injections.scm +14 -0
  70. package/out/perl/matchup.scm +30 -0
  71. package/out/perl/tree-sitter-perl.wasm +0 -0
  72. package/out/php/highlights.scm +203 -0
  73. package/out/php/injections-text.scm +3 -0
  74. package/out/php/injections.scm +10 -0
  75. package/out/php/tags.scm +40 -0
  76. package/out/php/tree-sitter-php.wasm +0 -0
  77. package/out/php-only/highlights.scm +203 -0
  78. package/out/php-only/injections-text.scm +3 -0
  79. package/out/php-only/injections.scm +10 -0
  80. package/out/php-only/tags.scm +40 -0
  81. package/out/{php_only → php-only}/tree-sitter-php_only.wasm +0 -0
  82. package/out/prisma/highlights.scm +39 -0
  83. package/out/prisma/tree-sitter-prisma.wasm +0 -0
  84. package/out/python/tree-sitter-python.wasm +0 -0
  85. package/out/query/tree-sitter-query.wasm +0 -0
  86. package/out/r/highlights.scm +112 -0
  87. package/out/r/locals.scm +18 -0
  88. package/out/r/tags.scm +21 -0
  89. package/out/r/tree-sitter-r.wasm +0 -0
  90. package/out/racket/highlights.scm +108 -0
  91. package/out/racket/locals.scm +34 -0
  92. package/out/racket/tags.scm +12 -0
  93. package/out/racket/tree-sitter-racket.wasm +0 -0
  94. package/out/regex/tree-sitter-regex.wasm +0 -0
  95. package/out/ruby/tree-sitter-ruby.wasm +0 -0
  96. package/out/rust/tree-sitter-rust.wasm +0 -0
  97. package/out/scala/tree-sitter-scala.wasm +0 -0
  98. package/out/scheme/highlights.scm +84 -0
  99. package/out/scheme/tree-sitter-scheme.wasm +0 -0
  100. package/out/scss/highlights.scm +69 -0
  101. package/out/scss/tree-sitter-scss.wasm +0 -0
  102. package/out/sql/tree-sitter-SQL.wasm +0 -0
  103. package/out/swift/tree-sitter-swift.wasm +0 -0
  104. package/out/toml/highlights.scm +53 -0
  105. package/out/toml/tree-sitter-toml.wasm +0 -0
  106. package/out/typescript/highlights.scm +35 -0
  107. package/out/typescript/locals.scm +2 -0
  108. package/out/typescript/tags.scm +23 -0
  109. package/out/typescript/tree-sitter-typescript.wasm +0 -0
  110. package/out/typescript-tsx/highlights.scm +35 -0
  111. package/out/typescript-tsx/locals.scm +2 -0
  112. package/out/typescript-tsx/tags.scm +23 -0
  113. package/out/{tsx → typescript-tsx}/tree-sitter-tsx.wasm +0 -0
  114. package/out/vimdoc/tree-sitter-vimdoc.wasm +0 -0
  115. package/out/vue/tree-sitter-vue.wasm +0 -0
  116. package/out/xml/tree-sitter-xml.wasm +0 -0
  117. package/out/xml-dtd/tree-sitter-dtd.wasm +0 -0
  118. package/out/yaml/tree-sitter-yaml.wasm +0 -0
  119. package/out/zig/folds.scm +23 -0
  120. package/out/zig/highlights.scm +291 -0
  121. package/out/zig/indents.scm +22 -0
  122. package/out/zig/injections.scm +10 -0
  123. package/out/zig/tree-sitter-zig.wasm +0 -0
  124. package/package.json +79 -63
  125. package/README +0 -2
@@ -0,0 +1,34 @@
1
+ (symbol) @local.reference
2
+
3
+ (list
4
+ .
5
+ (symbol) @reference._let
6
+ .
7
+ (list
8
+ .
9
+ (list
10
+ .
11
+ (symbol) @local.definition)+)
12
+ (#match? @reference._let "^(let|let\\*|for|for\\*)$")) @local.scope
13
+
14
+ (list
15
+ .
16
+ (symbol) @reference._def
17
+ .
18
+ (list
19
+ .
20
+ (symbol)
21
+ .
22
+ (symbol)+ @local.definition)
23
+ (#match? @reference._def "^(define|define/contract)$")) @local.scope
24
+
25
+ (list
26
+ .
27
+ (symbol) @reference._def
28
+ .
29
+ [(symbol) @local.definition
30
+ (list
31
+ .
32
+ (symbol)+ @local.definition)]
33
+ (#match? @reference._def "^(lambda|λ)$")) @local.scope
34
+
@@ -0,0 +1,12 @@
1
+ (list
2
+ .
3
+ (symbol) @reference._define
4
+ (#match? @reference._define "^(define|define/contract)$")
5
+ .
6
+ (list
7
+ .
8
+ (symbol) @name) @definition.function)
9
+
10
+ (list
11
+ .
12
+ (symbol) @reference.call)
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,84 @@
1
+ ["(" ")" "[" "]" "{" "}"] @punctuation.bracket
2
+
3
+ (number) @number
4
+ (character) @constant.builtin
5
+ (boolean) @constant.builtin
6
+ (symbol) @variable
7
+
8
+ (string) @string
9
+
10
+ (escape_sequence) @escape
11
+
12
+ (list
13
+ .
14
+ (symbol) @function)
15
+
16
+ (list
17
+ .
18
+ "["
19
+ .
20
+ (symbol)+ @variable
21
+ .
22
+ "]")
23
+
24
+ ((symbol) @operator
25
+ (#match? @operator "^(\\+|-|\\*|/|=|>|<|>=|<=)$"))
26
+
27
+ (list
28
+ .
29
+ (symbol) @keyword
30
+ (#match? @keyword
31
+ "^(define-syntax|let\\*|lambda|λ|case|=>|quote-splicing|unquote-splicing|set!|let|letrec|letrec-syntax|let-values|let\\*-values|do|else|define|cond|syntax-rules|unquote|begin|quote|let-syntax|and|if|quasiquote|letrec|delay|or|when|unless|identifier-syntax|assert|library|export|import|rename|only|except|prefix)$"
32
+ ))
33
+
34
+ (list
35
+ .
36
+ (symbol) @function.builtin
37
+ (#match? @function.builtin
38
+ "^(caar|cadr|call-with-input-file|call-with-output-file|cdar|cddr|list|open-input-file|open-output-file|with-input-from-file|with-output-to-file|\\*|\\+|-|/|<|<=|=|>|>=|abs|acos|angle|append|apply|asin|assoc|assq|assv|atan|boolean\\?|caaaar|caaadr|caaar|caadar|caaddr|caadr|cadaar|cadadr|cadar|caddar|cadddr|caddr|call-with-current-continuation|call-with-values|car|cdaaar|cdaadr|cdaar|cdadar|cdaddr|cdadr|cddaar|cddadr|cddar|cdddar|cddddr|cdddr|cdr|ceiling|char->integer|char-alphabetic\\?|char-ci<=\\?|char-ci<\\?|char-ci=\\?|char-ci>=\\?|char-ci>\\?|char-downcase|char-lower-case\\?|char-numeric\\?|char-ready\\?|char-upcase|char-upper-case\\?|char-whitespace\\?|char<=\\?|char<\\?|char=\\?|char>=\\?|char>\\?|char\\?|close-input-port|close-output-port|complex\\?|cons|cos|current-error-port|current-input-port|current-output-port|denominator|display|dynamic-wind|eof-object\\?|eq\\?|equal\\?|eqv\\?|eval|even\\?|exact->inexact|exact\\?|exp|expt|floor|flush-output|for-each|force|gcd|imag-part|inexact->exact|inexact\\?|input-port\\?|integer->char|integer\\?|interaction-environment|lcm|length|list->string|list->vector|list-ref|list-tail|list\\?|load|log|magnitude|make-polar|make-rectangular|make-string|make-vector|map|max|member|memq|memv|min|modulo|negative\\?|newline|not|null-environment|null\\?|number->string|number\\?|numerator|odd\\?|output-port\\?|pair\\?|peek-char|positive\\?|procedure\\?|quotient|rational\\?|rationalize|read|read-char|real-part|real\\?|remainder|reverse|round|scheme-report-environment|set-car!|set-cdr!|sin|sqrt|string|string->list|string->number|string->symbol|string-append|string-ci<=\\?|string-ci<\\?|string-ci=\\?|string-ci>=\\?|string-ci>\\?|string-copy|string-fill!|string-length|string-ref|string-set!|string<=\\?|string<\\?|string=\\?|string>=\\?|string>\\?|string\\?|substring|symbol->string|symbol\\?|tan|transcript-off|transcript-on|truncate|values|vector|vector->list|vector-fill!|vector-length|vector-ref|vector-set!|vector\\?|write|write-char|zero\\?)$"
39
+ ))
40
+
41
+ ;; quote ;;
42
+
43
+ ;; hardcoded highlight four levels of nested structure
44
+
45
+ ; 'atom
46
+ (quote
47
+ _ @constant)
48
+
49
+ ; '()
50
+ (quote
51
+ (_ _* @constant))
52
+
53
+ ; '(())
54
+ (quote
55
+ (_ (_ _* @constant)))
56
+
57
+ ; '((()))
58
+ (quote
59
+ (_ (_ (_ _* @constant))))
60
+
61
+ ;; sexp comment ;;
62
+
63
+ ;; hardcoded highlight four levels of nested structure
64
+
65
+ ; #;atom
66
+ (comment
67
+ _ @comment)
68
+
69
+ ; #;(list)
70
+ (comment
71
+ (_ _* @comment))
72
+
73
+ ; #;(list (list))
74
+ (comment
75
+ (_ (_ _* @comment)))
76
+
77
+ ; #;(list (list (list)))
78
+ (comment
79
+ (_ (_ (_ _ @comment))))
80
+
81
+ [(comment)
82
+ (block_comment)
83
+ (directive)] @comment
84
+
@@ -0,0 +1,69 @@
1
+ [
2
+ "@at-root"
3
+ "@debug"
4
+ "@error"
5
+ "@extend"
6
+ "@forward"
7
+ "@mixin"
8
+ "@use"
9
+ "@warn"
10
+ ] @keyword
11
+
12
+ "@function" @keyword.function
13
+
14
+ "@return" @keyword.return
15
+
16
+ "@include" @keyword.import
17
+
18
+ [
19
+ "@while"
20
+ "@each"
21
+ "@for"
22
+ "from"
23
+ "through"
24
+ "in"
25
+ ] @keyword.repeat
26
+
27
+ (js_comment) @comment @spell
28
+
29
+ (function_name) @function
30
+
31
+ [
32
+ ">="
33
+ "<="
34
+ ] @operator
35
+
36
+ (mixin_statement
37
+ name: (identifier) @function)
38
+
39
+ (mixin_statement
40
+ (parameters
41
+ (parameter) @variable.parameter))
42
+
43
+ (function_statement
44
+ name: (identifier) @function)
45
+
46
+ (function_statement
47
+ (parameters
48
+ (parameter) @variable.parameter))
49
+
50
+ (plain_value) @string
51
+
52
+ (keyword_query) @function
53
+
54
+ (identifier) @variable
55
+
56
+ (variable) @variable
57
+
58
+ (argument) @variable.parameter
59
+
60
+ (arguments
61
+ (variable) @variable.parameter)
62
+
63
+ [
64
+ "["
65
+ "]"
66
+ ] @punctuation.bracket
67
+
68
+ (include_statement
69
+ (identifier) @function)
Binary file
Binary file
File without changes
@@ -0,0 +1,53 @@
1
+ ; Properties
2
+ ;-----------
3
+
4
+ (bare_key) @type
5
+
6
+ (quoted_key) @string
7
+
8
+ (pair
9
+ (bare_key)) @property
10
+
11
+ (pair
12
+ (dotted_key
13
+ (bare_key) @property))
14
+
15
+ ; Literals
16
+ ;---------
17
+
18
+ (boolean) @boolean
19
+
20
+ (comment) @comment
21
+
22
+ (string) @string
23
+
24
+ [
25
+ (integer)
26
+ (float)
27
+ ] @number
28
+
29
+ [
30
+ (offset_date_time)
31
+ (local_date_time)
32
+ (local_date)
33
+ (local_time)
34
+ ] @string.special
35
+
36
+ ; Punctuation
37
+ ;------------
38
+
39
+ [
40
+ "."
41
+ ","
42
+ ] @punctuation.delimiter
43
+
44
+ "=" @operator
45
+
46
+ [
47
+ "["
48
+ "]"
49
+ "[["
50
+ "]]"
51
+ "{"
52
+ "}"
53
+ ] @punctuation.bracket
Binary file
@@ -0,0 +1,35 @@
1
+ ; Types
2
+
3
+ (type_identifier) @type
4
+ (predefined_type) @type.builtin
5
+
6
+ ((identifier) @type
7
+ (#match? @type "^[A-Z]"))
8
+
9
+ (type_arguments
10
+ "<" @punctuation.bracket
11
+ ">" @punctuation.bracket)
12
+
13
+ ; Variables
14
+
15
+ (required_parameter (identifier) @variable.parameter)
16
+ (optional_parameter (identifier) @variable.parameter)
17
+
18
+ ; Keywords
19
+
20
+ [ "abstract"
21
+ "declare"
22
+ "enum"
23
+ "export"
24
+ "implements"
25
+ "interface"
26
+ "keyof"
27
+ "namespace"
28
+ "private"
29
+ "protected"
30
+ "public"
31
+ "type"
32
+ "readonly"
33
+ "override"
34
+ "satisfies"
35
+ ] @keyword
@@ -0,0 +1,2 @@
1
+ (required_parameter (identifier) @local.definition)
2
+ (optional_parameter (identifier) @local.definition)
@@ -0,0 +1,23 @@
1
+ (function_signature
2
+ name: (identifier) @name) @definition.function
3
+
4
+ (method_signature
5
+ name: (property_identifier) @name) @definition.method
6
+
7
+ (abstract_method_signature
8
+ name: (property_identifier) @name) @definition.method
9
+
10
+ (abstract_class_declaration
11
+ name: (type_identifier) @name) @definition.class
12
+
13
+ (module
14
+ name: (identifier) @name) @definition.module
15
+
16
+ (interface_declaration
17
+ name: (type_identifier) @name) @definition.interface
18
+
19
+ (type_annotation
20
+ (type_identifier) @name) @reference.type
21
+
22
+ (new_expression
23
+ constructor: (identifier) @name) @reference.class
@@ -0,0 +1,35 @@
1
+ ; Types
2
+
3
+ (type_identifier) @type
4
+ (predefined_type) @type.builtin
5
+
6
+ ((identifier) @type
7
+ (#match? @type "^[A-Z]"))
8
+
9
+ (type_arguments
10
+ "<" @punctuation.bracket
11
+ ">" @punctuation.bracket)
12
+
13
+ ; Variables
14
+
15
+ (required_parameter (identifier) @variable.parameter)
16
+ (optional_parameter (identifier) @variable.parameter)
17
+
18
+ ; Keywords
19
+
20
+ [ "abstract"
21
+ "declare"
22
+ "enum"
23
+ "export"
24
+ "implements"
25
+ "interface"
26
+ "keyof"
27
+ "namespace"
28
+ "private"
29
+ "protected"
30
+ "public"
31
+ "type"
32
+ "readonly"
33
+ "override"
34
+ "satisfies"
35
+ ] @keyword
@@ -0,0 +1,2 @@
1
+ (required_parameter (identifier) @local.definition)
2
+ (optional_parameter (identifier) @local.definition)
@@ -0,0 +1,23 @@
1
+ (function_signature
2
+ name: (identifier) @name) @definition.function
3
+
4
+ (method_signature
5
+ name: (property_identifier) @name) @definition.method
6
+
7
+ (abstract_method_signature
8
+ name: (property_identifier) @name) @definition.method
9
+
10
+ (abstract_class_declaration
11
+ name: (type_identifier) @name) @definition.class
12
+
13
+ (module
14
+ name: (identifier) @name) @definition.module
15
+
16
+ (interface_declaration
17
+ name: (type_identifier) @name) @definition.interface
18
+
19
+ (type_annotation
20
+ (type_identifier) @name) @reference.type
21
+
22
+ (new_expression
23
+ constructor: (identifier) @name) @reference.class
File without changes
Binary file
Binary file
Binary file
@@ -0,0 +1,23 @@
1
+ [
2
+ (block)
3
+ (switch_expression)
4
+ (initializer_list)
5
+ (asm_expression)
6
+ (multiline_string)
7
+ (if_statement)
8
+ (while_statement)
9
+ (for_statement)
10
+ (if_expression)
11
+ (else_clause)
12
+ (for_expression)
13
+ (while_expression)
14
+ (if_type_expression)
15
+ (function_signature)
16
+ (parameters)
17
+ (struct_declaration)
18
+ (opaque_declaration)
19
+ (enum_declaration)
20
+ (union_declaration)
21
+ (error_set_declaration)
22
+ ] @fold
23
+