@lumis-sh/wasm-dart 0.26.4 → 0.26.6

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 CHANGED
@@ -35,7 +35,7 @@ Node reads both from the installed package, and a bundler ships them with your c
35
35
 
36
36
  | Parser | Version | Rev |
37
37
  | ------ | ------- | --- |
38
- | [https://github.com/UserNobody14/tree-sitter-dart.git](https://github.com/UserNobody14/tree-sitter-dart.git) | 1.0.0 | be07cf7118d3dba06236a3f19541685a68209934 |
38
+ | [https://github.com/UserNobody14/tree-sitter-dart.git](https://github.com/UserNobody14/tree-sitter-dart.git) | 1.0.0 | 0038280b774b65c1b89ba7fec50624d8baed9fe1 |
39
39
 
40
40
  The same parser is published to Hex as
41
41
  [`lumis_wasm_dart`](https://hex.pm/packages/lumis_wasm_dart) — byte for byte, from
@@ -43,8 +43,8 @@ one build, so both registries serve the same artifact.
43
43
 
44
44
  ## CDN
45
45
 
46
- - [https://unpkg.com/@lumis-sh/wasm-dart@0.26.4/tree-sitter-dart.wasm](https://unpkg.com/@lumis-sh/wasm-dart@0.26.4/tree-sitter-dart.wasm)
47
- - [https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-dart@0.26.4/tree-sitter-dart.wasm](https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-dart@0.26.4/tree-sitter-dart.wasm)
46
+ - [https://unpkg.com/@lumis-sh/wasm-dart@0.26.6/tree-sitter-dart.wasm](https://unpkg.com/@lumis-sh/wasm-dart@0.26.6/tree-sitter-dart.wasm)
47
+ - [https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-dart@0.26.6/tree-sitter-dart.wasm](https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-dart@0.26.6/tree-sitter-dart.wasm)
48
48
 
49
49
  ## License
50
50
 
package/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface Language {
13
13
  requires?: Language[]
14
14
  }
15
15
 
16
- /** This package's `lumis.json`: the parser's size and digest, and the queries released with it. */
16
+ /** This package's `lumis.json`: the parser's digest, and the queries released with it. */
17
17
  export interface LanguagePackage {
18
18
  packageName: string
19
19
  version: string
package/index.js CHANGED
@@ -2,19 +2,21 @@ const wasm = new URL('./tree-sitter-dart.wasm', import.meta.url)
2
2
 
3
3
  export const languagePackage = {
4
4
  "packageName": "@lumis-sh/wasm-dart",
5
- "version": "0.26.4",
6
- "definitionHash": "fb831d8b6931dcb442d0623ff8a7b63123d24a1de0eab3833a2c1cd713958d12",
5
+ "version": "0.26.6",
6
+ "definitionHash": "376fdd90113c45b7fc504c7b4ea010ea1fb2f2a73442ef8ae3dd4cc53aceebba",
7
7
  "parser": {
8
8
  "name": "tree-sitter-dart",
9
9
  "grammarName": "dart",
10
10
  "upstreamVersion": "1.0.0",
11
- "revision": "be07cf7118d3dba06236a3f19541685a68209934",
12
- "sha256": "f743e6ecda0447cf330d012e9c8dc4f784d2a8874dbdec4b929b0dde87faec79",
13
- "size": 1159597
11
+ "revision": "0038280b774b65c1b89ba7fec50624d8baed9fe1",
12
+ "sha256": "a2e3614410c88153dfc22b40b8e324c6b50d0bccbd72aae6ad7baed0b009e9f4",
13
+ "size": 1203430
14
14
  },
15
15
  "languages": {
16
16
  "dart": {
17
- "aliases": [],
17
+ "aliases": [
18
+ "flutter"
19
+ ],
18
20
  "highlights": "; This file is auto-generated. Do not edit.\n(identifier) @variable\n\n(dotted_identifier_list) @string\n\n; Methods\n; --------------------\n; TODO: add method/call_expression to grammar and\n; distinguish method call from variable access\n(function_expression_body\n (identifier) @function.call)\n\n; ((identifier)(selector (argument_part)) @function)\n; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't\n; specifically identify a node as a function call\n(((identifier) @function.call\n (#match? @function.call \"^_?[a-z]\"))\n .\n (selector\n .\n (argument_part))) @function.call\n\n; Annotations\n; --------------------\n(annotation\n \"@\" @attribute\n name: (identifier) @attribute)\n\n; Operators and Tokens\n; --------------------\n(template_substitution\n \"$\" @punctuation.special\n \"{\" @punctuation.special\n \"}\" @punctuation.special) @none\n\n(template_substitution\n \"$\" @punctuation.special\n (identifier_dollar_escaped) @variable) @none\n\n(escape_sequence) @string.escape\n\n[\n \"=>\"\n \"..\"\n \"??\"\n \"==\"\n \"!\"\n \"?\"\n \"&&\"\n \"%\"\n \"<\"\n \">\"\n \"=\"\n \">=\"\n \"<=\"\n \"||\"\n \">>>=\"\n \">>=\"\n \"<<=\"\n \"&=\"\n \"|=\"\n \"??=\"\n \"%=\"\n \"+=\"\n \"-=\"\n \"*=\"\n \"/=\"\n \"^=\"\n \"~/=\"\n (shift_operator)\n (multiplicative_operator)\n (increment_operator)\n (is_operator)\n (prefix_operator)\n (equality_operator)\n (additive_operator)\n] @operator\n\n[\n \"(\"\n \")\"\n \"[\"\n \"]\"\n \"{\"\n \"}\"\n] @punctuation.bracket\n\n; Delimiters\n; --------------------\n[\n \";\"\n \".\"\n \",\"\n \":\"\n \"?.\"\n \"?\"\n] @punctuation.delimiter\n\n; Types\n; --------------------\n(class_definition\n name: (identifier) @type)\n\n(constructor_signature\n name: (identifier) @type)\n\n(scoped_identifier\n scope: (identifier) @type)\n\n(function_signature\n name: (identifier) @function.method)\n\n(getter_signature\n (identifier) @function.method)\n\n(setter_signature\n name: (identifier) @function.method)\n\n(enum_declaration\n name: (identifier) @type)\n\n(enum_constant\n name: (identifier) @type)\n\n(void_type) @type\n\n((scoped_identifier\n scope: (identifier) @type\n name: (identifier) @type)\n (#match? @type \"^[A-Za-z]\"))\n\n(type_identifier) @type\n\n(type_alias\n (type_identifier) @type.definition)\n\n(type_arguments\n [\n \"<\"\n \">\"\n ] @punctuation.bracket)\n\n; Variables\n; --------------------\n; var keyword\n(inferred_type) @keyword\n\n((identifier) @type\n (#match? @type \"^_?[A-Z][\\\\s\\\\S]*[a-z]\")) ; catch Classes or IClasses not CLASSES\n\n\"Function\" @type\n\n; properties\n(unconditional_assignable_selector\n (identifier) @property)\n\n(conditional_assignable_selector\n (identifier) @property)\n\n(this) @variable.builtin\n\n; Parameters\n; --------------------\n(formal_parameter\n (identifier) @variable.parameter)\n\n(named_argument\n (label\n (identifier) @variable.parameter))\n\n; Literals\n; --------------------\n[\n (hex_integer_literal)\n (decimal_integer_literal)\n (decimal_floating_point_literal)\n ; TODO: inaccessible nodes\n ; (octal_integer_literal)\n ; (hex_floating_point_literal)\n] @number\n\n(symbol_literal) @string.special.symbol\n\n(string_literal) @string\n\n(true) @boolean\n\n(false) @boolean\n\n(null_literal) @constant.builtin\n\n(comment) @comment \n\n(documentation_comment) @comment.documentation \n\n; Keywords\n; --------------------\n[\n \"import\"\n \"library\"\n \"export\"\n \"as\"\n \"show\"\n \"hide\"\n] @keyword.import\n\n; Reserved words (cannot be used as identifiers)\n[\n ; TODO:\n ; \"rethrow\" cannot be targeted at all and seems to be an invisible node\n ; TODO:\n ; the assert keyword cannot be specifically targeted\n ; because the grammar selects the whole node or the content\n ; of the assertion not just the keyword\n ; assert\n (case_builtin)\n \"late\"\n \"required\"\n \"on\"\n \"extends\"\n \"in\"\n \"is\"\n \"new\"\n \"super\"\n \"with\"\n] @keyword\n\n[\n \"class\"\n \"enum\"\n \"extension\"\n] @keyword.type\n\n\"return\" @keyword.return\n\n; Built in identifiers:\n; alone these are marked as keywords\n[\n \"deferred\"\n \"factory\"\n \"get\"\n \"implements\"\n \"interface\"\n \"library\"\n \"operator\"\n \"mixin\"\n \"part\"\n \"set\"\n \"typedef\"\n] @keyword\n\n[\n \"async\"\n \"async*\"\n \"sync*\"\n \"await\"\n \"yield\"\n] @keyword.coroutine\n\n[\n (const_builtin)\n (final_builtin)\n \"abstract\"\n \"covariant\"\n \"external\"\n \"static\"\n \"final\"\n \"base\"\n \"sealed\"\n] @keyword.modifier\n\n; when used as an identifier:\n((identifier) @variable.builtin\n (#any-of? @variable.builtin\n \"abstract\" \"as\" \"covariant\" \"deferred\" \"dynamic\" \"export\" \"external\" \"factory\" \"Function\" \"get\"\n \"implements\" \"import\" \"interface\" \"library\" \"operator\" \"mixin\" \"part\" \"set\" \"static\" \"typedef\"))\n\n[\n \"if\"\n \"else\"\n \"switch\"\n \"default\"\n] @keyword.conditional\n\n(conditional_expression\n [\n \"?\"\n \":\"\n ] @keyword.conditional.ternary)\n\n[\n \"try\"\n \"throw\"\n \"catch\"\n \"finally\"\n (break_statement)\n] @keyword.exception\n\n[\n \"do\"\n \"while\"\n \"continue\"\n \"for\"\n] @keyword.repeat",
19
21
  "injections": "; This file is auto-generated. Do not edit.\n((comment) @injection.content\n (#set! injection.language \"comment\"))",
20
22
  "locals": "; This file is auto-generated. Do not edit.\n; Definitions\n(function_signature\n name: (identifier) @local.definition.function)\n\n(formal_parameter\n name: (identifier) @local.definition.parameter)\n\n(initialized_variable_definition\n name: (identifier) @local.definition.var)\n\n(initialized_identifier\n (identifier) @local.definition.var)\n\n(static_final_declaration\n (identifier) @local.definition.var)\n\n; References\n(identifier) @local.reference\n\n; Scopes\n(class_definition\n body: (_) @local.scope)\n\n[\n (block)\n (if_statement)\n (for_statement)\n (while_statement)\n (try_statement)\n (catch_clause)\n (finally_clause)\n] @local.scope",
@@ -25,7 +27,7 @@ export const languagePackage = {
25
27
 
26
28
  export const dart = {
27
29
  id: "dart",
28
- aliases: [],
30
+ aliases: ["flutter"],
29
31
  packageName: "@lumis-sh/wasm-dart",
30
32
  wasm,
31
33
  languagePackage,
package/lumis.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "packageName": "@lumis-sh/wasm-dart",
3
- "version": "0.26.4",
4
- "definitionHash": "fb831d8b6931dcb442d0623ff8a7b63123d24a1de0eab3833a2c1cd713958d12",
3
+ "version": "0.26.6",
4
+ "definitionHash": "376fdd90113c45b7fc504c7b4ea010ea1fb2f2a73442ef8ae3dd4cc53aceebba",
5
5
  "parser": {
6
6
  "name": "tree-sitter-dart",
7
7
  "grammarName": "dart",
8
8
  "upstreamVersion": "1.0.0",
9
- "revision": "be07cf7118d3dba06236a3f19541685a68209934",
10
- "sha256": "f743e6ecda0447cf330d012e9c8dc4f784d2a8874dbdec4b929b0dde87faec79",
11
- "size": 1159597
9
+ "revision": "0038280b774b65c1b89ba7fec50624d8baed9fe1",
10
+ "sha256": "a2e3614410c88153dfc22b40b8e324c6b50d0bccbd72aae6ad7baed0b009e9f4",
11
+ "size": 1203430
12
12
  },
13
13
  "languages": {
14
14
  "dart": {
15
- "aliases": [],
15
+ "aliases": [
16
+ "flutter"
17
+ ],
16
18
  "highlights": "; This file is auto-generated. Do not edit.\n(identifier) @variable\n\n(dotted_identifier_list) @string\n\n; Methods\n; --------------------\n; TODO: add method/call_expression to grammar and\n; distinguish method call from variable access\n(function_expression_body\n (identifier) @function.call)\n\n; ((identifier)(selector (argument_part)) @function)\n; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't\n; specifically identify a node as a function call\n(((identifier) @function.call\n (#match? @function.call \"^_?[a-z]\"))\n .\n (selector\n .\n (argument_part))) @function.call\n\n; Annotations\n; --------------------\n(annotation\n \"@\" @attribute\n name: (identifier) @attribute)\n\n; Operators and Tokens\n; --------------------\n(template_substitution\n \"$\" @punctuation.special\n \"{\" @punctuation.special\n \"}\" @punctuation.special) @none\n\n(template_substitution\n \"$\" @punctuation.special\n (identifier_dollar_escaped) @variable) @none\n\n(escape_sequence) @string.escape\n\n[\n \"=>\"\n \"..\"\n \"??\"\n \"==\"\n \"!\"\n \"?\"\n \"&&\"\n \"%\"\n \"<\"\n \">\"\n \"=\"\n \">=\"\n \"<=\"\n \"||\"\n \">>>=\"\n \">>=\"\n \"<<=\"\n \"&=\"\n \"|=\"\n \"??=\"\n \"%=\"\n \"+=\"\n \"-=\"\n \"*=\"\n \"/=\"\n \"^=\"\n \"~/=\"\n (shift_operator)\n (multiplicative_operator)\n (increment_operator)\n (is_operator)\n (prefix_operator)\n (equality_operator)\n (additive_operator)\n] @operator\n\n[\n \"(\"\n \")\"\n \"[\"\n \"]\"\n \"{\"\n \"}\"\n] @punctuation.bracket\n\n; Delimiters\n; --------------------\n[\n \";\"\n \".\"\n \",\"\n \":\"\n \"?.\"\n \"?\"\n] @punctuation.delimiter\n\n; Types\n; --------------------\n(class_definition\n name: (identifier) @type)\n\n(constructor_signature\n name: (identifier) @type)\n\n(scoped_identifier\n scope: (identifier) @type)\n\n(function_signature\n name: (identifier) @function.method)\n\n(getter_signature\n (identifier) @function.method)\n\n(setter_signature\n name: (identifier) @function.method)\n\n(enum_declaration\n name: (identifier) @type)\n\n(enum_constant\n name: (identifier) @type)\n\n(void_type) @type\n\n((scoped_identifier\n scope: (identifier) @type\n name: (identifier) @type)\n (#match? @type \"^[A-Za-z]\"))\n\n(type_identifier) @type\n\n(type_alias\n (type_identifier) @type.definition)\n\n(type_arguments\n [\n \"<\"\n \">\"\n ] @punctuation.bracket)\n\n; Variables\n; --------------------\n; var keyword\n(inferred_type) @keyword\n\n((identifier) @type\n (#match? @type \"^_?[A-Z][\\\\s\\\\S]*[a-z]\")) ; catch Classes or IClasses not CLASSES\n\n\"Function\" @type\n\n; properties\n(unconditional_assignable_selector\n (identifier) @property)\n\n(conditional_assignable_selector\n (identifier) @property)\n\n(this) @variable.builtin\n\n; Parameters\n; --------------------\n(formal_parameter\n (identifier) @variable.parameter)\n\n(named_argument\n (label\n (identifier) @variable.parameter))\n\n; Literals\n; --------------------\n[\n (hex_integer_literal)\n (decimal_integer_literal)\n (decimal_floating_point_literal)\n ; TODO: inaccessible nodes\n ; (octal_integer_literal)\n ; (hex_floating_point_literal)\n] @number\n\n(symbol_literal) @string.special.symbol\n\n(string_literal) @string\n\n(true) @boolean\n\n(false) @boolean\n\n(null_literal) @constant.builtin\n\n(comment) @comment \n\n(documentation_comment) @comment.documentation \n\n; Keywords\n; --------------------\n[\n \"import\"\n \"library\"\n \"export\"\n \"as\"\n \"show\"\n \"hide\"\n] @keyword.import\n\n; Reserved words (cannot be used as identifiers)\n[\n ; TODO:\n ; \"rethrow\" cannot be targeted at all and seems to be an invisible node\n ; TODO:\n ; the assert keyword cannot be specifically targeted\n ; because the grammar selects the whole node or the content\n ; of the assertion not just the keyword\n ; assert\n (case_builtin)\n \"late\"\n \"required\"\n \"on\"\n \"extends\"\n \"in\"\n \"is\"\n \"new\"\n \"super\"\n \"with\"\n] @keyword\n\n[\n \"class\"\n \"enum\"\n \"extension\"\n] @keyword.type\n\n\"return\" @keyword.return\n\n; Built in identifiers:\n; alone these are marked as keywords\n[\n \"deferred\"\n \"factory\"\n \"get\"\n \"implements\"\n \"interface\"\n \"library\"\n \"operator\"\n \"mixin\"\n \"part\"\n \"set\"\n \"typedef\"\n] @keyword\n\n[\n \"async\"\n \"async*\"\n \"sync*\"\n \"await\"\n \"yield\"\n] @keyword.coroutine\n\n[\n (const_builtin)\n (final_builtin)\n \"abstract\"\n \"covariant\"\n \"external\"\n \"static\"\n \"final\"\n \"base\"\n \"sealed\"\n] @keyword.modifier\n\n; when used as an identifier:\n((identifier) @variable.builtin\n (#any-of? @variable.builtin\n \"abstract\" \"as\" \"covariant\" \"deferred\" \"dynamic\" \"export\" \"external\" \"factory\" \"Function\" \"get\"\n \"implements\" \"import\" \"interface\" \"library\" \"operator\" \"mixin\" \"part\" \"set\" \"static\" \"typedef\"))\n\n[\n \"if\"\n \"else\"\n \"switch\"\n \"default\"\n] @keyword.conditional\n\n(conditional_expression\n [\n \"?\"\n \":\"\n ] @keyword.conditional.ternary)\n\n[\n \"try\"\n \"throw\"\n \"catch\"\n \"finally\"\n (break_statement)\n] @keyword.exception\n\n[\n \"do\"\n \"while\"\n \"continue\"\n \"for\"\n] @keyword.repeat",
17
19
  "injections": "; This file is auto-generated. Do not edit.\n((comment) @injection.content\n (#set! injection.language \"comment\"))",
18
20
  "locals": "; This file is auto-generated. Do not edit.\n; Definitions\n(function_signature\n name: (identifier) @local.definition.function)\n\n(formal_parameter\n name: (identifier) @local.definition.parameter)\n\n(initialized_variable_definition\n name: (identifier) @local.definition.var)\n\n(initialized_identifier\n (identifier) @local.definition.var)\n\n(static_final_declaration\n (identifier) @local.definition.var)\n\n; References\n(identifier) @local.reference\n\n; Scopes\n(class_definition\n body: (_) @local.scope)\n\n[\n (block)\n (if_statement)\n (for_statement)\n (while_statement)\n (try_statement)\n (catch_clause)\n (finally_clause)\n] @local.scope",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumis-sh/wasm-dart",
3
- "version": "0.26.4",
3
+ "version": "0.26.6",
4
4
  "type": "module",
5
5
  "types": "./index.d.ts",
6
6
  "description": "Tree-sitter parser and queries for dart, compiled to WASM for Lumis",
@@ -22,7 +22,7 @@
22
22
  "lumis": {
23
23
  "treeSitter": "0.26",
24
24
  "formatVersion": 4,
25
- "definitionHash": "fb831d8b6931dcb442d0623ff8a7b63123d24a1de0eab3833a2c1cd713958d12"
25
+ "definitionHash": "376fdd90113c45b7fc504c7b4ea010ea1fb2f2a73442ef8ae3dd4cc53aceebba"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@lumis-sh/lumis": ">=0.9.0"
Binary file