@lumis-sh/wasm-dart 0.26.2 → 0.26.3
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 +3 -3
- package/index.d.ts +2 -2
- package/index.js +2 -3
- package/lumis.json +22 -0
- package/package.json +8 -10
- package/index.node.js +0 -3
package/lumis.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packageName": "@lumis-sh/wasm-dart",
|
|
3
|
+
"version": "0.26.3",
|
|
4
|
+
"definitionHash": "fb831d8b6931dcb442d0623ff8a7b63123d24a1de0eab3833a2c1cd713958d12",
|
|
5
|
+
"parser": {
|
|
6
|
+
"name": "tree-sitter-dart",
|
|
7
|
+
"grammarName": "dart",
|
|
8
|
+
"upstreamVersion": "1.0.0",
|
|
9
|
+
"revision": "be07cf7118d3dba06236a3f19541685a68209934",
|
|
10
|
+
"sha256": "f743e6ecda0447cf330d012e9c8dc4f784d2a8874dbdec4b929b0dde87faec79",
|
|
11
|
+
"size": 1159597
|
|
12
|
+
},
|
|
13
|
+
"languages": {
|
|
14
|
+
"dart": {
|
|
15
|
+
"aliases": [],
|
|
16
|
+
"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
|
+
"injections": "; This file is auto-generated. Do not edit.\n((comment) @injection.content\n (#set! injection.language \"comment\"))",
|
|
18
|
+
"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",
|
|
19
|
+
"brackets": "; This file is auto-generated. Do not edit.\n(\"(\" @open\n \")\" @close)\n\n(\"[\" @open\n \"]\" @close)\n\n(\"{\" @open\n \"}\" @close)\n"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumis-sh/wasm-dart",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Self-contained Lumis language package for dart",
|
|
7
7
|
"author": "Leandro Pereira",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"homepage": "https://lumis.sh",
|
|
@@ -14,18 +14,16 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
|
-
"node": "./index.node.js",
|
|
18
17
|
"default": "./index.js"
|
|
19
18
|
},
|
|
20
|
-
"./tree-sitter-dart.wasm": "./tree-sitter-dart.wasm"
|
|
19
|
+
"./tree-sitter-dart.wasm": "./tree-sitter-dart.wasm",
|
|
20
|
+
"./lumis.json": "./lumis.json"
|
|
21
21
|
},
|
|
22
22
|
"lumis": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"rev": "be07cf7118d3dba06236a3f19541685a68209934",
|
|
27
|
-
"treeSitter": "0.26"
|
|
23
|
+
"treeSitter": "0.26",
|
|
24
|
+
"formatVersion": 3,
|
|
25
|
+
"definitionHash": "fb831d8b6931dcb442d0623ff8a7b63123d24a1de0eab3833a2c1cd713958d12"
|
|
28
26
|
},
|
|
29
27
|
"keywords": ["lumis-sh", "wasm", "tree-sitter"],
|
|
30
|
-
"files": ["*.wasm", "*.js", "*.d.ts", "README.md", "LICENSE"]
|
|
28
|
+
"files": ["*.wasm", "*.json", "*.js", "*.d.ts", "README.md", "LICENSE"]
|
|
31
29
|
}
|
package/index.node.js
DELETED