From d297f38e6a6728883d2341315ce3c4fbf05de667 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Apr 2024 17:48:44 +0100 Subject: [PATCH 01/39] Fix typos in indentation test runner --- test/indent_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/indent_spec.lua b/test/indent_spec.lua index f36145d..cee806b 100644 --- a/test/indent_spec.lua +++ b/test/indent_spec.lua @@ -41,7 +41,7 @@ describe("indent Blueprint:", function() runner:new_line("test/indent/select.bp", { on_line = 11, text = 'default: "value"', indent = 4 }, "default case, trailing") runner:new_line("test/indent/select.bp", { on_line = 16, text = '"case": "value"', indent = 8 }, "select case, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 16, text = 'default: "value"', indent = 8 }, "default case, alternate formatting") - runner:new_line("test/indent/select.bp", { on_line = 26, text = '"case": "value"', indent = 8 }, "select case, trailing, alternate formattingg") - runner:new_line("test/indent/select.bp", { on_line = 26, text = 'default: "value"', indent = 8 }, "default case, trailing, alternate formattingn") + runner:new_line("test/indent/select.bp", { on_line = 26, text = '"case": "value"', indent = 8 }, "select case, trailing, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 26, text = 'default: "value"', indent = 8 }, "default case, trailing, alternate formatting") end) end) From 8db7b053f541e54bcdec725667ee1267df8ab135 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 9 Apr 2024 13:08:02 +0100 Subject: [PATCH 02/39] Add 'default' alias This makes it appear in the tree as a named node. --- grammar.js | 2 +- queries/highlights.scm | 2 +- src/grammar.json | 7 ++++++- src/node-types.json | 4 ++-- src/parser.c | 2 +- test/corpus/select.txt | 6 +++++- 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/grammar.js b/grammar.js index 2f4b0e3..6c4b1e8 100644 --- a/grammar.js +++ b/grammar.js @@ -166,7 +166,7 @@ module.exports = grammar({ ), default_case: ($) => seq( - field("pattern", "default"), + field("pattern", alias("default", $.default)), ":", field("value", $._case_value), ), diff --git a/queries/highlights.scm b/queries/highlights.scm index e548e18..4209180 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -49,7 +49,7 @@ ; Built-ins {{{ [ (unset) - "default" + (default) ] @variable.builtin (selection_type) @function.builtin ; }}} diff --git a/src/grammar.json b/src/grammar.json index 482f27b..3df0aa5 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -687,7 +687,12 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "STRING", + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "default" + }, + "named": true, "value": "default" } }, diff --git a/src/node-types.json b/src/node-types.json index 1db28a2..acafc16 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -187,7 +187,7 @@ "types": [ { "type": "default", - "named": false + "named": true } ] }, @@ -668,7 +668,7 @@ }, { "type": "default", - "named": false + "named": true }, { "type": "escape_sequence", diff --git a/src/parser.c b/src/parser.c index f06de7f..82f9ccf 100644 --- a/src/parser.c +++ b/src/parser.c @@ -335,7 +335,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { }, [anon_sym_default] = { .visible = true, - .named = false, + .named = true, }, [anon_sym_unset] = { .visible = true, diff --git a/test/corpus/select.txt b/test/corpus/select.txt index fb76530..c9c0233 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -22,6 +22,7 @@ foo = select(release_variable("RELEASE_TEST"), { (interpreted_string_literal) (interpreted_string_literal)) (default_case + (default) (unset)))))) ================================================================================ @@ -136,6 +137,7 @@ foo = select(variant("VARIANT"), { (interpreted_string_literal)) (ERROR (default_case + (default) (unset))) (select_case (interpreted_string_literal) @@ -168,6 +170,7 @@ foo = select(variant(), { (interpreted_string_literal) (unset)) (default_case + (default) (interpreted_string_literal)))))) ================================================================================ @@ -189,7 +192,8 @@ foo = select(some_unknown_type("CONDITION"), { (identifier) (identifier) (interpreted_string_literal) - (interpreted_string_literal)) + (interpreted_string_literal) + (default)) (interpreted_string_literal)) (ERROR)) From e6a2757c5175a6dcdb1d5478d245bd9601e0376e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 9 Apr 2024 13:09:48 +0100 Subject: [PATCH 03/39] Alias 'default_case' to 'select_case' There's not much use in the node being a different name. --- grammar.js | 2 +- src/grammar.json | 9 ++++-- src/node-types.json | 70 +++--------------------------------------- src/parser.c | 4 +-- test/corpus/select.txt | 6 ++-- 5 files changed, 17 insertions(+), 74 deletions(-) diff --git a/grammar.js b/grammar.js index 6c4b1e8..551e7f9 100644 --- a/grammar.js +++ b/grammar.js @@ -155,7 +155,7 @@ module.exports = grammar({ "{", optional(trailingCommaSeparated($.select_case)), // default *must* be the last one, enforced at parse-time... - optional(seq($.default_case, ",")), + optional(seq(alias($.default_case, $.select_case), ",")), "}", ), diff --git a/src/grammar.json b/src/grammar.json index 3df0aa5..2602bc0 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -635,8 +635,13 @@ "type": "SEQ", "members": [ { - "type": "SYMBOL", - "name": "default_case" + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "default_case" + }, + "named": true, + "value": "select_case" }, { "type": "STRING", diff --git a/src/node-types.json b/src/node-types.json index acafc16..e26beb4 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -177,68 +177,6 @@ "named": true, "fields": {} }, - { - "type": "default_case", - "named": true, - "fields": { - "pattern": { - "multiple": false, - "required": true, - "types": [ - { - "type": "default", - "named": true - } - ] - }, - "value": { - "multiple": false, - "required": true, - "types": [ - { - "type": "binary_expression", - "named": true - }, - { - "type": "boolean_literal", - "named": true - }, - { - "type": "identifier", - "named": true - }, - { - "type": "integer_literal", - "named": true - }, - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "list_expression", - "named": true - }, - { - "type": "map_expression", - "named": true - }, - { - "type": "raw_string_literal", - "named": true - }, - { - "type": "select_expression", - "named": true - }, - { - "type": "unset", - "named": true - } - ] - } - } - }, { "type": "integer_literal", "named": true, @@ -415,6 +353,10 @@ "multiple": false, "required": true, "types": [ + { + "type": "default", + "named": true + }, { "type": "interpreted_string_literal", "named": true @@ -481,10 +423,6 @@ "multiple": true, "required": false, "types": [ - { - "type": "default_case", - "named": true - }, { "type": "select_case", "named": true diff --git a/src/parser.c b/src/parser.c index 82f9ccf..b33fb8a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -134,7 +134,7 @@ static const char * const ts_symbol_names[] = { [sym_soong_config_variable] = "soong_config_variable", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", - [sym_default_case] = "default_case", + [sym_default_case] = "select_case", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -201,7 +201,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_soong_config_variable] = sym_soong_config_variable, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, - [sym_default_case] = sym_default_case, + [sym_default_case] = sym_select_case, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, diff --git a/test/corpus/select.txt b/test/corpus/select.txt index c9c0233..ce291fd 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -21,7 +21,7 @@ foo = select(release_variable("RELEASE_TEST"), { (select_case (interpreted_string_literal) (interpreted_string_literal)) - (default_case + (select_case (default) (unset)))))) @@ -136,7 +136,7 @@ foo = select(variant("VARIANT"), { (interpreted_string_literal) (interpreted_string_literal)) (ERROR - (default_case + (select_case (default) (unset))) (select_case @@ -169,7 +169,7 @@ foo = select(variant(), { (select_case (interpreted_string_literal) (unset)) - (default_case + (select_case (default) (interpreted_string_literal)))))) From 6ece5d984a456b9308aa4446f2afd4a085cf9803 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Apr 2024 18:27:56 +0100 Subject: [PATCH 04/39] Release 0.3.0 --- Cargo.toml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4707f77..9ca884e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tree-sitter-bp" description = "Blueprint grammar for the tree-sitter parsing library" -version = "0.2.0" +version = "0.3.0" keywords = ["incremental", "parsing", "android", "blueprint"] categories = ["parsing", "text-editors"] repository = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" diff --git a/package.json b/package.json index 3c864d0..2788979 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-bp", - "version": "0.2.0", + "version": "0.3.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", "keywords": [ From 6d6d9fc03b0c1440eb032a0e2a7924928a58de56 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Apr 2024 18:44:14 +0100 Subject: [PATCH 05/39] Add test for multiple arguments in selection type --- test/corpus/select.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/corpus/select.txt b/test/corpus/select.txt index ce291fd..166463a 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -197,6 +197,35 @@ foo = select(some_unknown_type("CONDITION"), { (interpreted_string_literal)) (ERROR)) +================================================================================ +Select (multiple type arguments) +================================================================================ + +foo = select(release_variable("ONE", "TWO"), { + "d": "d2", + default: "f2", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (selection_type) + (ERROR + (interpreted_string_literal)) + (interpreted_string_literal)) + (select_cases + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (default) + (interpreted_string_literal)))))) + ================================================================================ Select as an identifier ================================================================================ From b04cd92189b6bc7b17edd9528a9a219521801bed Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Apr 2024 18:59:21 +0100 Subject: [PATCH 06/39] Add locals queries Once again, treating module as function calls, since that's basically what they are... --- queries/locals.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 queries/locals.scm diff --git a/queries/locals.scm b/queries/locals.scm new file mode 100644 index 0000000..7efe573 --- /dev/null +++ b/queries/locals.scm @@ -0,0 +1,14 @@ +(module + (property + field: (identifier) @local.definition.parameter)) + +(map_expression + (property + field: (identifier) @local.definition.field)) + +(assignment + left: (identifier) @local.definition.var) + +(identifier) @local.reference + +; vim: sw=2 foldmethod=marker From 1af33aeea104318b035e88ce580516996b8d4c7f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 22 Apr 2024 09:49:18 +0000 Subject: [PATCH 07/39] Bump flake inputs This means regenerating all the tree-sitter files, and adding newly generated outputs (mostly new bindings). The `--apply-all-captures` flag has been removed, it is now the default (and only) matching behaviour. --- .editorconfig | 39 +++ Makefile | 4 +- Package.swift | 48 ++++ binding.gyp | 12 +- bindings/c/tree-sitter-bp.h | 16 ++ bindings/c/tree-sitter-bp.pc.in | 11 + bindings/go/binding.go | 13 + bindings/go/binding_test.go | 15 + bindings/go/go.mod | 5 + bindings/node/binding.cc | 36 +-- bindings/node/index.d.ts | 28 ++ bindings/node/index.js | 18 +- bindings/python/tree_sitter_bp/__init__.py | 5 + bindings/python/tree_sitter_bp/__init__.pyi | 1 + bindings/python/tree_sitter_bp/binding.c | 27 ++ bindings/python/tree_sitter_bp/py.typed | 0 bindings/swift/TreeSitterBp/bp.h | 16 ++ flake.lock | 12 +- flake.nix | 2 +- package.json | 27 +- pyproject.toml | 29 ++ setup.py | 57 ++++ src/grammar.json | 1 - src/parser.c | 11 +- src/tree_sitter/alloc.h | 54 ++++ src/tree_sitter/array.h | 290 ++++++++++++++++++++ 26 files changed, 718 insertions(+), 59 deletions(-) create mode 100644 .editorconfig create mode 100644 Package.swift create mode 100644 bindings/c/tree-sitter-bp.h create mode 100644 bindings/c/tree-sitter-bp.pc.in create mode 100644 bindings/go/binding.go create mode 100644 bindings/go/binding_test.go create mode 100644 bindings/go/go.mod create mode 100644 bindings/node/index.d.ts create mode 100644 bindings/python/tree_sitter_bp/__init__.py create mode 100644 bindings/python/tree_sitter_bp/__init__.pyi create mode 100644 bindings/python/tree_sitter_bp/binding.c create mode 100644 bindings/python/tree_sitter_bp/py.typed create mode 100644 bindings/swift/TreeSitterBp/bp.h create mode 100644 pyproject.toml create mode 100644 setup.py create mode 100644 src/tree_sitter/alloc.h create mode 100644 src/tree_sitter/array.h diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d3a8b5b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,39 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{json,toml,yml,gyp}] +indent_style = space +indent_size = 2 + +[*.js] +indent_style = space +indent_size = 2 + +[*.rs] +indent_style = space +indent_size = 4 + +[*.{c,cc,h}] +indent_style = space +indent_size = 4 + +[*.{py,pyi}] +indent_style = space +indent_size = 4 + +[*.swift] +indent_style = space +indent_size = 4 + +[*.go] +indent_style = tab +indent_size = 8 + +[Makefile] +indent_style = tab +indent_size = 8 diff --git a/Makefile b/Makefile index d60784a..0bd4414 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ all: .PHONY: test test: all - tree-sitter test --apply-all-captures + tree-sitter test nvim-test-runner .PHONY: update-tests update-tests: all - tree-sitter test -u --apply-all-captures + tree-sitter test -u nvim-test-runner .PHONY: playground diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..f7fcb85 --- /dev/null +++ b/Package.swift @@ -0,0 +1,48 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "TreeSitterBp", + platforms: [.macOS(.v10_13), .iOS(.v11)], + products: [ + .library(name: "TreeSitterBp", targets: ["TreeSitterBp"]), + ], + dependencies: [], + targets: [ + .target(name: "TreeSitterBp", + path: ".", + exclude: [ + "Cargo.toml", + "Makefile", + "binding.gyp", + "bindings/c", + "bindings/go", + "bindings/node", + "bindings/python", + "bindings/rust", + "prebuilds", + "grammar.js", + "package.json", + "package-lock.json", + "pyproject.toml", + "setup.py", + "test", + "examples", + ".editorconfig", + ".github", + ".gitignore", + ".gitattributes", + ".gitmodules", + ], + sources: [ + "src/parser.c", + // NOTE: if your language has an external scanner, add it here. + ], + resources: [ + .copy("queries") + ], + publicHeadersPath: "bindings/swift", + cSettings: [.headerSearchPath("src")]) + ], + cLanguageStandard: .c11 +) diff --git a/binding.gyp b/binding.gyp index be4507b..24e68cf 100644 --- a/binding.gyp +++ b/binding.gyp @@ -2,18 +2,20 @@ "targets": [ { "target_name": "tree_sitter_bp_binding", + "dependencies": [ + " -#include "nan.h" +#include -using namespace v8; +typedef struct TSLanguage TSLanguage; -extern "C" TSLanguage * tree_sitter_bp(); +extern "C" TSLanguage *tree_sitter_bp(); -namespace { +// "tree-sitter", "language" hashed with BLAKE2 +const napi_type_tag LANGUAGE_TYPE_TAG = { + 0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16 +}; -NAN_METHOD(New) {} - -void Init(Local exports, Local module) { - Local tpl = Nan::New(New); - tpl->SetClassName(Nan::New("Language").ToLocalChecked()); - tpl->InstanceTemplate()->SetInternalFieldCount(1); - - Local constructor = Nan::GetFunction(tpl).ToLocalChecked(); - Local instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(instance, 0, tree_sitter_bp()); - - Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("bp").ToLocalChecked()); - Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance); +Napi::Object Init(Napi::Env env, Napi::Object exports) { + exports["name"] = Napi::String::New(env, "bp"); + auto language = Napi::External::New(env, tree_sitter_bp()); + language.TypeTag(&LANGUAGE_TYPE_TAG); + exports["language"] = language; + return exports; } -NODE_MODULE(tree_sitter_bp_binding, Init) - -} // namespace +NODE_API_MODULE(tree_sitter_bp_binding, Init) diff --git a/bindings/node/index.d.ts b/bindings/node/index.d.ts new file mode 100644 index 0000000..efe259e --- /dev/null +++ b/bindings/node/index.d.ts @@ -0,0 +1,28 @@ +type BaseNode = { + type: string; + named: boolean; +}; + +type ChildNode = { + multiple: boolean; + required: boolean; + types: BaseNode[]; +}; + +type NodeInfo = + | (BaseNode & { + subtypes: BaseNode[]; + }) + | (BaseNode & { + fields: { [name: string]: ChildNode }; + children: ChildNode[]; + }); + +type Language = { + name: string; + language: unknown; + nodeTypeInfo: NodeInfo[]; +}; + +declare const language: Language; +export = language; diff --git a/bindings/node/index.js b/bindings/node/index.js index 9bd9a6e..6657bcf 100644 --- a/bindings/node/index.js +++ b/bindings/node/index.js @@ -1,18 +1,6 @@ -try { - module.exports = require("../../build/Release/tree_sitter_bp_binding"); -} catch (error1) { - if (error1.code !== 'MODULE_NOT_FOUND') { - throw error1; - } - try { - module.exports = require("../../build/Debug/tree_sitter_bp_binding"); - } catch (error2) { - if (error2.code !== 'MODULE_NOT_FOUND') { - throw error2; - } - throw error1 - } -} +const root = require("path").join(__dirname, "..", ".."); + +module.exports = require("node-gyp-build")(root); try { module.exports.nodeTypeInfo = require("../../src/node-types.json"); diff --git a/bindings/python/tree_sitter_bp/__init__.py b/bindings/python/tree_sitter_bp/__init__.py new file mode 100644 index 0000000..f207c95 --- /dev/null +++ b/bindings/python/tree_sitter_bp/__init__.py @@ -0,0 +1,5 @@ +"Bp grammar for tree-sitter" + +from ._binding import language + +__all__ = ["language"] diff --git a/bindings/python/tree_sitter_bp/__init__.pyi b/bindings/python/tree_sitter_bp/__init__.pyi new file mode 100644 index 0000000..5416666 --- /dev/null +++ b/bindings/python/tree_sitter_bp/__init__.pyi @@ -0,0 +1 @@ +def language() -> int: ... diff --git a/bindings/python/tree_sitter_bp/binding.c b/bindings/python/tree_sitter_bp/binding.c new file mode 100644 index 0000000..870c2de --- /dev/null +++ b/bindings/python/tree_sitter_bp/binding.c @@ -0,0 +1,27 @@ +#include + +typedef struct TSLanguage TSLanguage; + +TSLanguage *tree_sitter_bp(void); + +static PyObject* _binding_language(PyObject *self, PyObject *args) { + return PyLong_FromVoidPtr(tree_sitter_bp()); +} + +static PyMethodDef methods[] = { + {"language", _binding_language, METH_NOARGS, + "Get the tree-sitter language for this grammar."}, + {NULL, NULL, 0, NULL} +}; + +static struct PyModuleDef module = { + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "_binding", + .m_doc = NULL, + .m_size = -1, + .m_methods = methods +}; + +PyMODINIT_FUNC PyInit__binding(void) { + return PyModule_Create(&module); +} diff --git a/bindings/python/tree_sitter_bp/py.typed b/bindings/python/tree_sitter_bp/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/bindings/swift/TreeSitterBp/bp.h b/bindings/swift/TreeSitterBp/bp.h new file mode 100644 index 0000000..867cea0 --- /dev/null +++ b/bindings/swift/TreeSitterBp/bp.h @@ -0,0 +1,16 @@ +#ifndef TREE_SITTER_BP_H_ +#define TREE_SITTER_BP_H_ + +typedef struct TSLanguage TSLanguage; + +#ifdef __cplusplus +extern "C" { +#endif + +const TSLanguage *tree_sitter_bp(void); + +#ifdef __cplusplus +} +#endif + +#endif // TREE_SITTER_BP_H_ diff --git a/flake.lock b/flake.lock index 47b5378..73db48c 100644 --- a/flake.lock +++ b/flake.lock @@ -58,11 +58,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1712482522, - "narHash": "sha256-Ai/xNgZpbwGcw0TSXwEPwwbPi8Iu906sB9M9z3o6UgA=", + "lastModified": 1713687659, + "narHash": "sha256-Yd8KuOBpZ0Slau/NxFhMPJI0gBxeax0vq/FD0rqKwuQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "efe8ce06ca261f370d672def5b1e0be300c726e1", + "rev": "f2d7a289c5a5ece8521dd082b81ac7e4a57c2c5c", "type": "github" }, "original": { @@ -87,11 +87,11 @@ ] }, "locked": { - "lastModified": 1712055707, - "narHash": "sha256-4XLvuSIDZJGS17xEwSrNuJLL7UjDYKGJSbK1WWX2AK8=", + "lastModified": 1713775815, + "narHash": "sha256-Wu9cdYTnGQQwtT20QQMg7jzkANKQjwBD9iccfGKkfls=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "e35aed5fda3cc79f88ed7f1795021e559582093a", + "rev": "2ac4dcbf55ed43f3be0bae15e181f08a57af24a4", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 77fba0a..b78215d 100644 --- a/flake.nix +++ b/flake.nix @@ -120,7 +120,7 @@ tree-sitter = { enable = true; name = "tree-sitter tests"; - entry = "${tree-sitter-env}/bin/tree-sitter test --apply-all-captures"; + entry = "${tree-sitter-env}/bin/tree-sitter test"; pass_filenames = false; }; diff --git a/package.json b/package.json index 2788979..2c04da4 100644 --- a/package.json +++ b/package.json @@ -3,18 +3,39 @@ "version": "0.3.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", + "types": "bindings/node", "keywords": [ "parsing", "incremental" ], + "files": [ + "grammar.js", + "binding.gyp", + "prebuilds/**", + "bindings/node/*", + "queries/*", + "src/**" + ], "dependencies": { - "nan": "^2.12.1" + "node-addon-api": "^7.1.0", + "node-gyp-build": "^4.8.0" + }, + "peerDependencies": { + "tree-sitter": "^0.21.0" + }, + "peerDependenciesMeta": { + "tree_sitter": { + "optional": true + } }, "devDependencies": { - "tree-sitter-cli": "^0.20.6" + "tree-sitter-cli": "^0.20.6", + "prebuildify": "^6.0.0" }, "scripts": { - "test": "tree-sitter test" + "test": "tree-sitter test", + "install": "node-gyp-build", + "prebuildify": "prebuildify --napi --strip" }, "tree-sitter": [ { diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..42d79e3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "tree-sitter-bp" +description = "Bp grammar for tree-sitter" +version = "0.3.0" +keywords = ["incremental", "parsing", "tree-sitter", "bp"] +classifiers = [ + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Topic :: Software Development :: Compilers", + "Topic :: Text Processing :: Linguistic", + "Typing :: Typed" +] +requires-python = ">=3.8" +license.text = "MIT" +readme = "README.md" + +[project.urls] +Homepage = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" + +[project.optional-dependencies] +core = ["tree-sitter~=0.21"] + +[tool.cibuildwheel] +build = "cp38-*" +build-frontend = "build" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4507259 --- /dev/null +++ b/setup.py @@ -0,0 +1,57 @@ +from os.path import isdir, join +from platform import system + +from setuptools import Extension, find_packages, setup +from setuptools.command.build import build +from wheel.bdist_wheel import bdist_wheel + + +class Build(build): + def run(self): + if isdir("queries"): + dest = join(self.build_lib, "tree_sitter_bp", "queries") + self.copy_tree("queries", dest) + super().run() + + +class BdistWheel(bdist_wheel): + def get_tag(self): + python, abi, platform = super().get_tag() + if python.startswith("cp"): + python, abi = "cp38", "abi3" + return python, abi, platform + + +setup( + packages=find_packages("bindings/python"), + package_dir={"": "bindings/python"}, + package_data={ + "tree_sitter_bp": ["*.pyi", "py.typed"], + "tree_sitter_bp.queries": ["*.scm"], + }, + ext_package="tree_sitter_bp", + ext_modules=[ + Extension( + name="_binding", + sources=[ + "bindings/python/tree_sitter_bp/binding.c", + "src/parser.c", + # NOTE: if your language uses an external scanner, add it here. + ], + extra_compile_args=( + ["-std=c11"] if system() != 'Windows' else [] + ), + define_macros=[ + ("Py_LIMITED_API", "0x03080000"), + ("PY_SSIZE_T_CLEAN", None) + ], + include_dirs=["src"], + py_limited_api=True, + ) + ], + cmdclass={ + "build": Build, + "bdist_wheel": BdistWheel + }, + zip_safe=False +) diff --git a/src/grammar.json b/src/grammar.json index 2602bc0..b585ae1 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -980,4 +980,3 @@ "inline": [], "supertypes": [] } - diff --git a/src/parser.c b/src/parser.c index b33fb8a..ec2e024 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,7 +1,6 @@ #include "tree_sitter/parser.h" #if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif @@ -7820,11 +7819,15 @@ static const TSParseActionEntry ts_parse_actions[] = { #ifdef __cplusplus extern "C" { #endif -#ifdef _WIN32 -#define extern __declspec(dllexport) +#ifdef TREE_SITTER_HIDE_SYMBOLS +#define TS_PUBLIC +#elif defined(_WIN32) +#define TS_PUBLIC __declspec(dllexport) +#else +#define TS_PUBLIC __attribute__((visibility("default"))) #endif -extern const TSLanguage *tree_sitter_bp(void) { +TS_PUBLIC const TSLanguage *tree_sitter_bp() { static const TSLanguage language = { .version = LANGUAGE_VERSION, .symbol_count = SYMBOL_COUNT, diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h new file mode 100644 index 0000000..1f4466d --- /dev/null +++ b/src/tree_sitter/alloc.h @@ -0,0 +1,54 @@ +#ifndef TREE_SITTER_ALLOC_H_ +#define TREE_SITTER_ALLOC_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include + +// Allow clients to override allocation functions +#ifdef TREE_SITTER_REUSE_ALLOCATOR + +extern void *(*ts_current_malloc)(size_t); +extern void *(*ts_current_calloc)(size_t, size_t); +extern void *(*ts_current_realloc)(void *, size_t); +extern void (*ts_current_free)(void *); + +#ifndef ts_malloc +#define ts_malloc ts_current_malloc +#endif +#ifndef ts_calloc +#define ts_calloc ts_current_calloc +#endif +#ifndef ts_realloc +#define ts_realloc ts_current_realloc +#endif +#ifndef ts_free +#define ts_free ts_current_free +#endif + +#else + +#ifndef ts_malloc +#define ts_malloc malloc +#endif +#ifndef ts_calloc +#define ts_calloc calloc +#endif +#ifndef ts_realloc +#define ts_realloc realloc +#endif +#ifndef ts_free +#define ts_free free +#endif + +#endif + +#ifdef __cplusplus +} +#endif + +#endif // TREE_SITTER_ALLOC_H_ diff --git a/src/tree_sitter/array.h b/src/tree_sitter/array.h new file mode 100644 index 0000000..15a3b23 --- /dev/null +++ b/src/tree_sitter/array.h @@ -0,0 +1,290 @@ +#ifndef TREE_SITTER_ARRAY_H_ +#define TREE_SITTER_ARRAY_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "./alloc.h" + +#include +#include +#include +#include +#include + +#ifdef _MSC_VER +#pragma warning(disable : 4101) +#elif defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" +#endif + +#define Array(T) \ + struct { \ + T *contents; \ + uint32_t size; \ + uint32_t capacity; \ + } + +/// Initialize an array. +#define array_init(self) \ + ((self)->size = 0, (self)->capacity = 0, (self)->contents = NULL) + +/// Create an empty array. +#define array_new() \ + { NULL, 0, 0 } + +/// Get a pointer to the element at a given `index` in the array. +#define array_get(self, _index) \ + (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index]) + +/// Get a pointer to the first element in the array. +#define array_front(self) array_get(self, 0) + +/// Get a pointer to the last element in the array. +#define array_back(self) array_get(self, (self)->size - 1) + +/// Clear the array, setting its size to zero. Note that this does not free any +/// memory allocated for the array's contents. +#define array_clear(self) ((self)->size = 0) + +/// Reserve `new_capacity` elements of space in the array. If `new_capacity` is +/// less than the array's current capacity, this function has no effect. +#define array_reserve(self, new_capacity) \ + _array__reserve((Array *)(self), array_elem_size(self), new_capacity) + +/// Free any memory allocated for this array. Note that this does not free any +/// memory allocated for the array's contents. +#define array_delete(self) _array__delete((Array *)(self)) + +/// Push a new `element` onto the end of the array. +#define array_push(self, element) \ + (_array__grow((Array *)(self), 1, array_elem_size(self)), \ + (self)->contents[(self)->size++] = (element)) + +/// Increase the array's size by `count` elements. +/// New elements are zero-initialized. +#define array_grow_by(self, count) \ + do { \ + if ((count) == 0) break; \ + _array__grow((Array *)(self), count, array_elem_size(self)); \ + memset((self)->contents + (self)->size, 0, (count) * array_elem_size(self)); \ + (self)->size += (count); \ + } while (0) + +/// Append all elements from one array to the end of another. +#define array_push_all(self, other) \ + array_extend((self), (other)->size, (other)->contents) + +/// Append `count` elements to the end of the array, reading their values from the +/// `contents` pointer. +#define array_extend(self, count, contents) \ + _array__splice( \ + (Array *)(self), array_elem_size(self), (self)->size, \ + 0, count, contents \ + ) + +/// Remove `old_count` elements from the array starting at the given `index`. At +/// the same index, insert `new_count` new elements, reading their values from the +/// `new_contents` pointer. +#define array_splice(self, _index, old_count, new_count, new_contents) \ + _array__splice( \ + (Array *)(self), array_elem_size(self), _index, \ + old_count, new_count, new_contents \ + ) + +/// Insert one `element` into the array at the given `index`. +#define array_insert(self, _index, element) \ + _array__splice((Array *)(self), array_elem_size(self), _index, 0, 1, &(element)) + +/// Remove one element from the array at the given `index`. +#define array_erase(self, _index) \ + _array__erase((Array *)(self), array_elem_size(self), _index) + +/// Pop the last element off the array, returning the element by value. +#define array_pop(self) ((self)->contents[--(self)->size]) + +/// Assign the contents of one array to another, reallocating if necessary. +#define array_assign(self, other) \ + _array__assign((Array *)(self), (const Array *)(other), array_elem_size(self)) + +/// Swap one array with another +#define array_swap(self, other) \ + _array__swap((Array *)(self), (Array *)(other)) + +/// Get the size of the array contents +#define array_elem_size(self) (sizeof *(self)->contents) + +/// Search a sorted array for a given `needle` value, using the given `compare` +/// callback to determine the order. +/// +/// If an existing element is found to be equal to `needle`, then the `index` +/// out-parameter is set to the existing value's index, and the `exists` +/// out-parameter is set to true. Otherwise, `index` is set to an index where +/// `needle` should be inserted in order to preserve the sorting, and `exists` +/// is set to false. +#define array_search_sorted_with(self, compare, needle, _index, _exists) \ + _array__search_sorted(self, 0, compare, , needle, _index, _exists) + +/// Search a sorted array for a given `needle` value, using integer comparisons +/// of a given struct field (specified with a leading dot) to determine the order. +/// +/// See also `array_search_sorted_with`. +#define array_search_sorted_by(self, field, needle, _index, _exists) \ + _array__search_sorted(self, 0, _compare_int, field, needle, _index, _exists) + +/// Insert a given `value` into a sorted array, using the given `compare` +/// callback to determine the order. +#define array_insert_sorted_with(self, compare, value) \ + do { \ + unsigned _index, _exists; \ + array_search_sorted_with(self, compare, &(value), &_index, &_exists); \ + if (!_exists) array_insert(self, _index, value); \ + } while (0) + +/// Insert a given `value` into a sorted array, using integer comparisons of +/// a given struct field (specified with a leading dot) to determine the order. +/// +/// See also `array_search_sorted_by`. +#define array_insert_sorted_by(self, field, value) \ + do { \ + unsigned _index, _exists; \ + array_search_sorted_by(self, field, (value) field, &_index, &_exists); \ + if (!_exists) array_insert(self, _index, value); \ + } while (0) + +// Private + +typedef Array(void) Array; + +/// This is not what you're looking for, see `array_delete`. +static inline void _array__delete(Array *self) { + if (self->contents) { + ts_free(self->contents); + self->contents = NULL; + self->size = 0; + self->capacity = 0; + } +} + +/// This is not what you're looking for, see `array_erase`. +static inline void _array__erase(Array *self, size_t element_size, + uint32_t index) { + assert(index < self->size); + char *contents = (char *)self->contents; + memmove(contents + index * element_size, contents + (index + 1) * element_size, + (self->size - index - 1) * element_size); + self->size--; +} + +/// This is not what you're looking for, see `array_reserve`. +static inline void _array__reserve(Array *self, size_t element_size, uint32_t new_capacity) { + if (new_capacity > self->capacity) { + if (self->contents) { + self->contents = ts_realloc(self->contents, new_capacity * element_size); + } else { + self->contents = ts_malloc(new_capacity * element_size); + } + self->capacity = new_capacity; + } +} + +/// This is not what you're looking for, see `array_assign`. +static inline void _array__assign(Array *self, const Array *other, size_t element_size) { + _array__reserve(self, element_size, other->size); + self->size = other->size; + memcpy(self->contents, other->contents, self->size * element_size); +} + +/// This is not what you're looking for, see `array_swap`. +static inline void _array__swap(Array *self, Array *other) { + Array swap = *other; + *other = *self; + *self = swap; +} + +/// This is not what you're looking for, see `array_push` or `array_grow_by`. +static inline void _array__grow(Array *self, uint32_t count, size_t element_size) { + uint32_t new_size = self->size + count; + if (new_size > self->capacity) { + uint32_t new_capacity = self->capacity * 2; + if (new_capacity < 8) new_capacity = 8; + if (new_capacity < new_size) new_capacity = new_size; + _array__reserve(self, element_size, new_capacity); + } +} + +/// This is not what you're looking for, see `array_splice`. +static inline void _array__splice(Array *self, size_t element_size, + uint32_t index, uint32_t old_count, + uint32_t new_count, const void *elements) { + uint32_t new_size = self->size + new_count - old_count; + uint32_t old_end = index + old_count; + uint32_t new_end = index + new_count; + assert(old_end <= self->size); + + _array__reserve(self, element_size, new_size); + + char *contents = (char *)self->contents; + if (self->size > old_end) { + memmove( + contents + new_end * element_size, + contents + old_end * element_size, + (self->size - old_end) * element_size + ); + } + if (new_count > 0) { + if (elements) { + memcpy( + (contents + index * element_size), + elements, + new_count * element_size + ); + } else { + memset( + (contents + index * element_size), + 0, + new_count * element_size + ); + } + } + self->size += new_count - old_count; +} + +/// A binary search routine, based on Rust's `std::slice::binary_search_by`. +/// This is not what you're looking for, see `array_search_sorted_with` or `array_search_sorted_by`. +#define _array__search_sorted(self, start, compare, suffix, needle, _index, _exists) \ + do { \ + *(_index) = start; \ + *(_exists) = false; \ + uint32_t size = (self)->size - *(_index); \ + if (size == 0) break; \ + int comparison; \ + while (size > 1) { \ + uint32_t half_size = size / 2; \ + uint32_t mid_index = *(_index) + half_size; \ + comparison = compare(&((self)->contents[mid_index] suffix), (needle)); \ + if (comparison <= 0) *(_index) = mid_index; \ + size -= half_size; \ + } \ + comparison = compare(&((self)->contents[*(_index)] suffix), (needle)); \ + if (comparison == 0) *(_exists) = true; \ + else if (comparison < 0) *(_index) += 1; \ + } while (0) + +/// Helper macro for the `_sorted_by` routines below. This takes the left (existing) +/// parameter by reference in order to work with the generic sorting function above. +#define _compare_int(a, b) ((int)*(a) - (int)(b)) + +#ifdef _MSC_VER +#pragma warning(default : 4101) +#elif defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#ifdef __cplusplus +} +#endif + +#endif // TREE_SITTER_ARRAY_H_ From 9e46303a1d4d3e09c058924c1352a67c7fc3f7a6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 22 Apr 2024 09:54:16 +0000 Subject: [PATCH 08/39] Add more generated files attributes --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitattributes b/.gitattributes index 67e2683..58d7b87 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,4 +2,6 @@ src/grammar.json linguist-generated=true src/node-types.json linguist-generated=true src/parser.c linguist-generated=true +src/tree_sitter/alloc.h linguist-generated=true +src/tree_sitter/array.h linguist-generated=true src/tree_sitter/parser.h linguist-generated=true From 8137fd3e5bf4cc1b614d3815f9655dcb5f6976cf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:38:32 +0000 Subject: [PATCH 09/39] Relax ordering in 'select' cases We shouldn't really care whether or not `default` *is* the last value... --- grammar.js | 13 +- src/grammar.json | 74 +- src/parser.c | 2182 +++++++++++++++++++--------------------- test/corpus/select.txt | 7 +- 4 files changed, 1035 insertions(+), 1241 deletions(-) diff --git a/grammar.js b/grammar.js index 551e7f9..4b71569 100644 --- a/grammar.js +++ b/grammar.js @@ -154,23 +154,18 @@ module.exports = grammar({ select_cases: ($) => seq( "{", optional(trailingCommaSeparated($.select_case)), - // default *must* be the last one, enforced at parse-time... - optional(seq(alias($.default_case, $.select_case), ",")), "}", ), select_case: ($) => seq( - field("pattern", $._string_literal), + field("pattern", choice( + $._string_literal, + alias("default", $.default), + )), ":", field("value", $._case_value) ), - default_case: ($) => seq( - field("pattern", alias("default", $.default)), - ":", - field("value", $._case_value), - ), - _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index b585ae1..ddd2141 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -628,32 +628,6 @@ } ] }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "default_case" - }, - "named": true, - "value": "select_case" - }, - { - "type": "STRING", - "value": "," - } - ] - }, - { - "type": "BLANK" - } - ] - }, { "type": "STRING", "value": "}" @@ -667,38 +641,22 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "SYMBOL", - "name": "_string_literal" - } - }, - { - "type": "STRING", - "value": ":" - }, - { - "type": "FIELD", - "name": "value", - "content": { - "type": "SYMBOL", - "name": "_case_value" - } - } - ] - }, - "default_case": { - "type": "SEQ", - "members": [ - { - "type": "FIELD", - "name": "pattern", - "content": { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "default" - }, - "named": true, - "value": "default" + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_string_literal" + }, + { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "default" + }, + "named": true, + "value": "default" + } + ] } }, { diff --git a/src/parser.c b/src/parser.c index ec2e024..5f3506f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,9 +5,9 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 123 +#define STATE_COUNT 114 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 64 +#define SYMBOL_COUNT 63 #define ALIAS_COUNT 0 #define TOKEN_COUNT 34 #define EXTERNAL_TOKEN_COUNT 0 @@ -43,8 +43,8 @@ enum ts_symbol_identifiers { anon_sym_release_variable = 25, anon_sym_variant = 26, anon_sym_soong_config_variable = 27, - anon_sym_COLON = 28, - anon_sym_default = 29, + anon_sym_default = 28, + anon_sym_COLON = 29, anon_sym_unset = 30, anon_sym_LBRACK = 31, anon_sym_RBRACK = 32, @@ -66,19 +66,18 @@ enum ts_symbol_identifiers { sym_soong_config_variable = 48, sym_select_cases = 49, sym_select_case = 50, - sym_default_case = 51, - sym__case_value = 52, - sym_list_expression = 53, - sym_map_expression = 54, - sym_binary_expression = 55, - sym__colon_property = 56, - sym__equal_property = 57, - aux_sym_source_file_repeat1 = 58, - aux_sym__old_module_repeat1 = 59, - aux_sym__new_module_repeat1 = 60, - aux_sym_interpreted_string_literal_repeat1 = 61, - aux_sym_select_cases_repeat1 = 62, - aux_sym_list_expression_repeat1 = 63, + sym__case_value = 51, + sym_list_expression = 52, + sym_map_expression = 53, + sym_binary_expression = 54, + sym__colon_property = 55, + sym__equal_property = 56, + aux_sym_source_file_repeat1 = 57, + aux_sym__old_module_repeat1 = 58, + aux_sym__new_module_repeat1 = 59, + aux_sym_interpreted_string_literal_repeat1 = 60, + aux_sym_select_cases_repeat1 = 61, + aux_sym_list_expression_repeat1 = 62, }; static const char * const ts_symbol_names[] = { @@ -110,8 +109,8 @@ static const char * const ts_symbol_names[] = { [anon_sym_release_variable] = "selection_type", [anon_sym_variant] = "selection_type", [anon_sym_soong_config_variable] = "selection_type", - [anon_sym_COLON] = ":", [anon_sym_default] = "default", + [anon_sym_COLON] = ":", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -133,7 +132,6 @@ static const char * const ts_symbol_names[] = { [sym_soong_config_variable] = "soong_config_variable", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", - [sym_default_case] = "select_case", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -177,8 +175,8 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_release_variable] = anon_sym_product_variable, [anon_sym_variant] = anon_sym_product_variable, [anon_sym_soong_config_variable] = anon_sym_product_variable, - [anon_sym_COLON] = anon_sym_COLON, [anon_sym_default] = anon_sym_default, + [anon_sym_COLON] = anon_sym_COLON, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -200,7 +198,6 @@ static const TSSymbol ts_symbol_map[] = { [sym_soong_config_variable] = sym_soong_config_variable, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, - [sym_default_case] = sym_select_case, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -328,14 +325,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [anon_sym_COLON] = { - .visible = true, - .named = false, - }, [anon_sym_default] = { .visible = true, .named = true, }, + [anon_sym_COLON] = { + .visible = true, + .named = false, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -420,10 +417,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_default_case] = { - .visible = true, - .named = true, - }, [sym__case_value] = { .visible = false, .named = true, @@ -707,15 +700,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, - [114] = 114, - [115] = 115, - [116] = 116, - [117] = 117, - [118] = 118, - [119] = 119, - [120] = 120, - [121] = 121, - [122] = 122, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4585,7 +4569,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(106); if (lookahead == '-') ADVANCE(191); if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == '=') ADVANCE(103); if (lookahead == '[') ADVANCE(215); if (lookahead == '\\') ADVANCE(11); @@ -4869,7 +4853,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 's') ADVANCE(39); END_STATE(); case 67: - if (lookahead == 't') ADVANCE(212); + if (lookahead == 't') ADVANCE(211); END_STATE(); case 68: if (lookahead == 't') ADVANCE(207); @@ -4952,7 +4936,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(106); if (lookahead == '-') ADVANCE(191); if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == '=') ADVANCE(103); if (lookahead == '[') ADVANCE(215); if (lookahead == ']') ADVANCE(216); @@ -4979,7 +4963,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '+') ADVANCE(217); if (lookahead == ',') ADVANCE(106); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(211); + if (lookahead == ':') ADVANCE(213); if (lookahead == ']') ADVANCE(216); if (lookahead == '`') ADVANCE(84); if (lookahead == '}') ADVANCE(107); @@ -5451,7 +5435,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 179: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(213); + if (lookahead == 't') ADVANCE(212); if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 180: @@ -5593,14 +5577,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 211: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(anon_sym_default); END_STATE(); case 212: ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); END_STATE(); case 213: - ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 214: ACCEPT_TOKEN(anon_sym_unset); @@ -5628,7 +5612,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 86}, [2] = {.lex_state = 3}, - [3] = {.lex_state = 3}, + [3] = {.lex_state = 4}, [4] = {.lex_state = 4}, [5] = {.lex_state = 4}, [6] = {.lex_state = 4}, @@ -5636,7 +5620,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 4}, + [11] = {.lex_state = 86}, [12] = {.lex_state = 5}, [13] = {.lex_state = 5}, [14] = {.lex_state = 5}, @@ -5660,53 +5644,53 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [32] = {.lex_state = 86}, [33] = {.lex_state = 86}, [34] = {.lex_state = 86}, - [35] = {.lex_state = 86}, - [36] = {.lex_state = 5}, - [37] = {.lex_state = 86}, + [35] = {.lex_state = 5}, + [36] = {.lex_state = 1}, + [37] = {.lex_state = 3}, [38] = {.lex_state = 86}, - [39] = {.lex_state = 1}, - [40] = {.lex_state = 86}, - [41] = {.lex_state = 1}, - [42] = {.lex_state = 86}, + [39] = {.lex_state = 86}, + [40] = {.lex_state = 1}, + [41] = {.lex_state = 86}, + [42] = {.lex_state = 5}, [43] = {.lex_state = 1}, - [44] = {.lex_state = 3}, - [45] = {.lex_state = 5}, - [46] = {.lex_state = 0}, + [44] = {.lex_state = 86}, + [45] = {.lex_state = 86}, + [46] = {.lex_state = 86}, [47] = {.lex_state = 0}, - [48] = {.lex_state = 86}, + [48] = {.lex_state = 1}, [49] = {.lex_state = 86}, - [50] = {.lex_state = 86}, + [50] = {.lex_state = 0}, [51] = {.lex_state = 0}, [52] = {.lex_state = 86}, - [53] = {.lex_state = 1}, + [53] = {.lex_state = 86}, [54] = {.lex_state = 0}, - [55] = {.lex_state = 0}, - [56] = {.lex_state = 86}, - [57] = {.lex_state = 0}, + [55] = {.lex_state = 86}, + [56] = {.lex_state = 0}, + [57] = {.lex_state = 86}, [58] = {.lex_state = 86}, - [59] = {.lex_state = 0}, + [59] = {.lex_state = 86}, [60] = {.lex_state = 0}, [61] = {.lex_state = 86}, - [62] = {.lex_state = 86}, - [63] = {.lex_state = 86}, + [62] = {.lex_state = 0}, + [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, [65] = {.lex_state = 86}, [66] = {.lex_state = 86}, - [67] = {.lex_state = 0}, - [68] = {.lex_state = 86}, + [67] = {.lex_state = 86}, + [68] = {.lex_state = 0}, [69] = {.lex_state = 86}, - [70] = {.lex_state = 86}, + [70] = {.lex_state = 0}, [71] = {.lex_state = 86}, [72] = {.lex_state = 0}, - [73] = {.lex_state = 0}, + [73] = {.lex_state = 86}, [74] = {.lex_state = 86}, [75] = {.lex_state = 86}, [76] = {.lex_state = 86}, [77] = {.lex_state = 86}, [78] = {.lex_state = 86}, [79] = {.lex_state = 86}, - [80] = {.lex_state = 86}, - [81] = {.lex_state = 0}, + [80] = {.lex_state = 0}, + [81] = {.lex_state = 86}, [82] = {.lex_state = 86}, [83] = {.lex_state = 86}, [84] = {.lex_state = 86}, @@ -5714,7 +5698,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [86] = {.lex_state = 86}, [87] = {.lex_state = 86}, [88] = {.lex_state = 86}, - [89] = {.lex_state = 86}, + [89] = {.lex_state = 93}, [90] = {.lex_state = 0}, [91] = {.lex_state = 0}, [92] = {.lex_state = 0}, @@ -5734,20 +5718,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 93}, + [109] = {.lex_state = 7}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, - [112] = {.lex_state = 0}, - [113] = {.lex_state = 0}, - [114] = {.lex_state = 7}, - [115] = {.lex_state = 0}, - [116] = {.lex_state = 0}, - [117] = {.lex_state = 0}, - [118] = {.lex_state = 0}, - [119] = {.lex_state = 0}, - [120] = {.lex_state = 0}, - [121] = {(TSStateId)(-1)}, - [122] = {(TSStateId)(-1)}, + [112] = {(TSStateId)(-1)}, + [113] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -5778,22 +5753,22 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_release_variable] = ACTIONS(1), [anon_sym_variant] = ACTIONS(1), [anon_sym_soong_config_variable] = ACTIONS(1), - [anon_sym_COLON] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), + [anon_sym_COLON] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(110), - [sym__definition] = STATE(77), + [sym_source_file] = STATE(104), + [sym__definition] = STATE(82), [sym_comment] = STATE(1), - [sym_assignment] = STATE(79), - [sym_module] = STATE(79), - [sym__old_module] = STATE(80), - [sym__new_module] = STATE(84), - [aux_sym_source_file_repeat1] = STATE(17), + [sym_assignment] = STATE(78), + [sym_module] = STATE(78), + [sym__old_module] = STATE(76), + [sym__new_module] = STATE(75), + [aux_sym_source_file_repeat1] = STATE(16), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -5827,16 +5802,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(75), 1, + STATE(79), 1, sym__expr, - STATE(119), 1, + STATE(91), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5844,49 +5819,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [59] = 17, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(11), 1, - anon_sym_LBRACE, - ACTIONS(13), 1, - sym_identifier, - ACTIONS(17), 1, - anon_sym_DASH, - ACTIONS(19), 1, - aux_sym_integer_literal_token1, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(25), 1, - anon_sym_select, - ACTIONS(27), 1, - anon_sym_unset, - ACTIONS(29), 1, - anon_sym_LBRACK, - STATE(3), 1, - sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(75), 1, - sym__expr, - STATE(118), 1, - sym__case_value, - ACTIONS(15), 2, - anon_sym_true, - anon_sym_false, - STATE(26), 7, - sym_boolean_literal, - sym_integer_literal, - sym__string_literal, - sym_select_expression, - sym_list_expression, - sym_map_expression, - sym_binary_expression, - [118] = 16, + [59] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5909,16 +5842,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(31), 1, anon_sym_RBRACK, - STATE(4), 1, + STATE(3), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5926,7 +5859,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [174] = 16, + [115] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5949,16 +5882,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(33), 1, anon_sym_RBRACK, - STATE(5), 1, + STATE(4), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(44), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5966,7 +5899,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [230] = 16, + [171] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5989,16 +5922,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(35), 1, anon_sym_RBRACK, - STATE(6), 1, + STATE(5), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6006,7 +5939,45 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [286] = 15, + [227] = 15, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(11), 1, + anon_sym_LBRACE, + ACTIONS(13), 1, + sym_identifier, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(25), 1, + anon_sym_select, + ACTIONS(29), 1, + anon_sym_LBRACK, + STATE(6), 1, + sym_comment, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(45), 1, + sym__expr, + ACTIONS(15), 2, + anon_sym_true, + anon_sym_false, + STATE(24), 7, + sym_boolean_literal, + sym_integer_literal, + sym__string_literal, + sym_select_expression, + sym_list_expression, + sym_map_expression, + sym_binary_expression, + [280] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6029,14 +6000,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(58), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6044,7 +6015,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [339] = 15, + [333] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6067,14 +6038,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(62), 1, + STATE(25), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6082,7 +6053,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [392] = 15, + [386] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6105,14 +6076,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(28), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6120,7 +6091,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [445] = 15, + [439] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6143,14 +6114,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(66), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(26), 7, + STATE(24), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6158,123 +6129,98 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [498] = 15, + [492] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(11), 1, - anon_sym_LBRACE, - ACTIONS(13), 1, - sym_identifier, - ACTIONS(17), 1, - anon_sym_DASH, - ACTIONS(19), 1, - aux_sym_integer_literal_token1, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(25), 1, - anon_sym_select, - ACTIONS(29), 1, - anon_sym_LBRACK, STATE(11), 1, sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(58), 1, - sym__expr, - ACTIONS(15), 2, - anon_sym_true, - anon_sym_false, - STATE(26), 7, - sym_boolean_literal, - sym_integer_literal, - sym__string_literal, - sym_select_expression, - sym_list_expression, - sym_map_expression, - sym_binary_expression, - [551] = 12, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(37), 1, + ACTIONS(37), 8, + ts_builtin_sym_end, + anon_sym_COMMA, anon_sym_RBRACE, - ACTIONS(39), 1, - anon_sym_default, - STATE(12), 1, - sym_comment, - STATE(14), 1, - aux_sym_select_cases_repeat1, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, - sym_select_case, - STATE(113), 1, - sym_default_case, - [588] = 12, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [512] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, ACTIONS(39), 1, - anon_sym_default, + anon_sym_RBRACE, ACTIONS(41), 1, + sym_raw_string_literal, + ACTIONS(44), 1, + anon_sym_DQUOTE, + ACTIONS(47), 1, + anon_sym_default, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(90), 1, + sym_select_case, + STATE(101), 1, + sym__string_literal, + STATE(12), 2, + sym_comment, + aux_sym_select_cases_repeat1, + [544] = 11, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(50), 1, anon_sym_RBRACE, + ACTIONS(52), 1, + anon_sym_default, + STATE(11), 1, + sym_interpreted_string_literal, STATE(12), 1, aux_sym_select_cases_repeat1, STATE(13), 1, sym_comment, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, + STATE(90), 1, sym_select_case, - STATE(104), 1, - sym_default_case, - [625] = 9, + STATE(101), 1, + sym__string_literal, + [578] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(45), 1, + ACTIONS(21), 1, sym_raw_string_literal, - ACTIONS(48), 1, + ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(102), 1, - sym__string_literal, - STATE(103), 1, - sym_select_case, - ACTIONS(43), 2, - anon_sym_RBRACE, + ACTIONS(52), 1, anon_sym_default, - STATE(14), 2, - sym_comment, + ACTIONS(54), 1, + anon_sym_RBRACE, + STATE(11), 1, + sym_interpreted_string_literal, + STATE(13), 1, aux_sym_select_cases_repeat1, - [655] = 4, + STATE(14), 1, + sym_comment, + STATE(90), 1, + sym_select_case, + STATE(101), 1, + sym__string_literal, + [612] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(15), 1, sym_comment, - ACTIONS(51), 8, + ACTIONS(56), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6283,73 +6229,36 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [675] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(16), 1, - sym_comment, - ACTIONS(53), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [695] = 10, + [632] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(55), 1, + ACTIONS(58), 1, ts_builtin_sym_end, - STATE(17), 1, + STATE(16), 1, sym_comment, STATE(18), 1, aux_sym_source_file_repeat1, - STATE(77), 1, - sym__definition, - STATE(80), 1, - sym__old_module, - STATE(84), 1, + STATE(75), 1, sym__new_module, - STATE(79), 2, + STATE(76), 1, + sym__old_module, + STATE(82), 1, + sym__definition, + STATE(78), 2, sym_assignment, sym_module, - [727] = 9, + [664] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(57), 1, - ts_builtin_sym_end, - ACTIONS(59), 1, - sym_identifier, - STATE(77), 1, - sym__definition, - STATE(80), 1, - sym__old_module, - STATE(84), 1, - sym__new_module, - STATE(18), 2, + STATE(17), 1, sym_comment, - aux_sym_source_file_repeat1, - STATE(79), 2, - sym_assignment, - sym_module, - [757] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(19), 1, - sym_comment, - ACTIONS(62), 8, + ACTIONS(60), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6358,14 +6267,50 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [777] = 4, + [684] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(62), 1, + ts_builtin_sym_end, + ACTIONS(64), 1, + sym_identifier, + STATE(75), 1, + sym__new_module, + STATE(76), 1, + sym__old_module, + STATE(82), 1, + sym__definition, + STATE(18), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(78), 2, + sym_assignment, + sym_module, + [714] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(19), 1, + sym_comment, + ACTIONS(67), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [733] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(64), 7, + ACTIONS(69), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6373,14 +6318,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [796] = 4, + [752] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(66), 7, + ACTIONS(71), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6388,14 +6333,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [815] = 4, + [771] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(68), 7, + ACTIONS(73), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6403,14 +6348,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [834] = 4, + [790] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(70), 7, + ACTIONS(75), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6418,14 +6363,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [853] = 4, + [809] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(72), 7, + ACTIONS(77), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6433,14 +6378,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [872] = 4, + [828] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(74), 7, + ACTIONS(79), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6448,14 +6393,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [891] = 4, + [847] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(76), 7, + ACTIONS(81), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6463,14 +6408,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [910] = 4, + [866] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(78), 7, + ACTIONS(83), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6478,14 +6423,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [929] = 4, + [885] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(80), 7, + ACTIONS(85), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6493,14 +6438,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [948] = 4, + [904] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(82), 7, + ACTIONS(87), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6508,14 +6453,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [967] = 4, + [923] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(84), 7, + ACTIONS(89), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6523,14 +6468,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [986] = 4, + [942] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(86), 7, + ACTIONS(91), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6538,14 +6483,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1005] = 4, + [961] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(88), 7, + ACTIONS(93), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6553,14 +6498,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1024] = 4, + [980] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(90), 7, + ACTIONS(95), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6568,14 +6513,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1043] = 4, + [999] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(92), 7, + ACTIONS(97), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6583,53 +6528,51 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1062] = 4, + [1018] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(101), 1, + anon_sym_soong_config_variable, STATE(35), 1, sym_comment, - ACTIONS(94), 7, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [1081] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(98), 1, - anon_sym_soong_config_variable, - STATE(36), 1, - sym_comment, - STATE(98), 2, + STATE(103), 2, sym_select_value, sym_soong_config_variable, - ACTIONS(96), 3, + ACTIONS(99), 3, anon_sym_product_variable, anon_sym_release_variable, anon_sym_variant, - [1103] = 7, + [1040] = 6, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(107), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(110), 1, + anon_sym_DQUOTE2, + ACTIONS(112), 1, + sym_escape_sequence, + STATE(36), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1060] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(19), 1, - sym_interpreted_string_literal, + ACTIONS(117), 1, + anon_sym_LBRACE, + ACTIONS(119), 1, + anon_sym_LPAREN, STATE(37), 1, sym_comment, - STATE(92), 1, - sym__string_literal, - [1125] = 7, + ACTIONS(115), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1080] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6638,28 +6581,13 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, STATE(38), 1, sym_comment, - STATE(107), 1, + STATE(93), 1, sym__string_literal, - [1147] = 7, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(106), 1, - anon_sym_DQUOTE2, - ACTIONS(108), 1, - sym_escape_sequence, - STATE(39), 1, - sym_comment, - STATE(43), 1, - aux_sym_interpreted_string_literal_repeat1, - [1169] = 7, + [1102] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6668,1152 +6596,1066 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + STATE(11), 1, sym_interpreted_string_literal, + STATE(39), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1124] = 7, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(121), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(123), 1, + anon_sym_DQUOTE2, + ACTIONS(125), 1, + sym_escape_sequence, STATE(40), 1, sym_comment, - STATE(93), 1, - sym__string_literal, - [1191] = 7, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(108), 1, - sym_escape_sequence, - ACTIONS(110), 1, - anon_sym_DQUOTE2, - STATE(39), 1, + STATE(43), 1, aux_sym_interpreted_string_literal_repeat1, + [1146] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(11), 1, + sym_interpreted_string_literal, STATE(41), 1, sym_comment, - [1213] = 7, + STATE(105), 1, + sym__string_literal, + [1168] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(112), 1, - anon_sym_COMMA, - ACTIONS(114), 1, - anon_sym_RBRACK, - ACTIONS(116), 1, - anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1235] = 6, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(118), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(121), 1, - anon_sym_DQUOTE2, - ACTIONS(123), 1, - sym_escape_sequence, - STATE(43), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1255] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_LBRACE, - ACTIONS(130), 1, - anon_sym_LPAREN, - STATE(44), 1, - sym_comment, - ACTIONS(126), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1275] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(45), 1, - sym_comment, - ACTIONS(43), 4, + ACTIONS(39), 4, anon_sym_RBRACE, sym_raw_string_literal, anon_sym_DQUOTE, anon_sym_default, - [1291] = 6, + [1184] = 7, + ACTIONS(103), 1, + anon_sym_SLASH_SLASH, + ACTIONS(105), 1, + anon_sym_SLASH_STAR, + ACTIONS(121), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(125), 1, + sym_escape_sequence, + ACTIONS(127), 1, + anon_sym_DQUOTE2, + STATE(36), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(43), 1, + sym_comment, + [1206] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(129), 1, anon_sym_COMMA, - ACTIONS(134), 1, - anon_sym_RPAREN, + ACTIONS(131), 1, + anon_sym_RBRACK, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(44), 1, + sym_comment, + STATE(62), 1, + aux_sym_list_expression_repeat1, + [1228] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(45), 1, + sym_comment, + ACTIONS(135), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1245] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(137), 1, + anon_sym_RBRACE, + ACTIONS(139), 1, + sym_identifier, STATE(46), 1, sym_comment, - STATE(51), 1, - aux_sym__new_module_repeat1, - [1310] = 6, + STATE(47), 1, + sym__colon_property, + [1264] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, + ACTIONS(141), 1, anon_sym_COMMA, - ACTIONS(138), 1, + ACTIONS(143), 1, anon_sym_RBRACE, STATE(47), 1, sym_comment, - STATE(64), 1, + STATE(56), 1, aux_sym__old_module_repeat1, - [1329] = 6, - ACTIONS(3), 1, + [1283] = 5, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, - ACTIONS(140), 1, - anon_sym_RBRACE, - ACTIONS(142), 1, - sym_identifier, + ACTIONS(145), 1, + aux_sym_interpreted_string_literal_token1, STATE(48), 1, sym_comment, - STATE(73), 1, - sym__colon_property, - [1348] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(144), 1, - anon_sym_RPAREN, - ACTIONS(146), 1, - sym_identifier, - STATE(49), 1, - sym_comment, - STATE(72), 1, - sym__equal_property, - [1367] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(148), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym_comment, - STATE(57), 1, - sym__colon_property, - [1386] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(150), 1, - anon_sym_COMMA, - ACTIONS(152), 1, - anon_sym_RPAREN, - STATE(51), 1, - sym_comment, - STATE(67), 1, - aux_sym__new_module_repeat1, - [1405] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(154), 1, - anon_sym_RBRACE, - STATE(52), 1, - sym_comment, - STATE(73), 1, - sym__colon_property, - [1424] = 5, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(156), 1, - aux_sym_interpreted_string_literal_token1, - STATE(53), 1, - sym_comment, - ACTIONS(158), 2, + ACTIONS(147), 2, anon_sym_DQUOTE2, sym_escape_sequence, - [1441] = 6, + [1300] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(149), 1, + anon_sym_RBRACE, + STATE(49), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1319] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(151), 1, + anon_sym_COMMA, + ACTIONS(154), 1, + anon_sym_RBRACK, + STATE(50), 2, + sym_comment, + aux_sym_list_expression_repeat1, + [1336] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(156), 1, + anon_sym_COMMA, + ACTIONS(158), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym_comment, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1355] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(160), 1, - anon_sym_COMMA, + anon_sym_RPAREN, ACTIONS(162), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1460] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(164), 1, - anon_sym_COMMA, - ACTIONS(166), 1, - anon_sym_RBRACE, - STATE(54), 1, - aux_sym__old_module_repeat1, - STATE(55), 1, - sym_comment, - [1479] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(56), 1, - sym_comment, - ACTIONS(168), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1496] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(170), 1, - anon_sym_COMMA, - ACTIONS(172), 1, - anon_sym_RBRACE, - STATE(47), 1, - aux_sym__old_module_repeat1, - STATE(57), 1, - sym_comment, - [1515] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(58), 1, - sym_comment, - ACTIONS(174), 2, - ts_builtin_sym_end, sym_identifier, - [1532] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(176), 1, - anon_sym_COMMA, - ACTIONS(179), 1, - anon_sym_RBRACK, - STATE(59), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1549] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(181), 1, - anon_sym_COMMA, - ACTIONS(183), 1, - anon_sym_RBRACK, - STATE(59), 1, - aux_sym_list_expression_repeat1, - STATE(60), 1, - sym_comment, - [1568] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(185), 1, - anon_sym_RBRACE, - STATE(55), 1, - sym__colon_property, - STATE(61), 1, - sym_comment, - [1587] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(62), 1, - sym_comment, - ACTIONS(187), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1604] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, - ACTIONS(189), 1, - anon_sym_RBRACE, - STATE(63), 1, - sym_comment, - STATE(73), 1, - sym__colon_property, - [1623] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(191), 1, - anon_sym_COMMA, - ACTIONS(194), 1, - anon_sym_RBRACE, - STATE(64), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1640] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(196), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1657] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(146), 1, - sym_identifier, - ACTIONS(198), 1, - anon_sym_RPAREN, - STATE(66), 1, + STATE(52), 1, sym_comment, STATE(72), 1, sym__equal_property, - [1676] = 5, + [1374] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(200), 1, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(164), 1, + anon_sym_RBRACE, + STATE(53), 1, + sym_comment, + STATE(60), 1, + sym__colon_property, + [1393] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(166), 1, anon_sym_COMMA, - ACTIONS(203), 1, + ACTIONS(168), 1, anon_sym_RPAREN, - STATE(67), 2, + STATE(54), 1, + sym_comment, + STATE(64), 1, + aux_sym__new_module_repeat1, + [1412] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(170), 1, + anon_sym_RBRACE, + STATE(55), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1431] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + anon_sym_COMMA, + ACTIONS(174), 1, + anon_sym_RBRACE, + STATE(56), 1, + sym_comment, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1450] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(57), 1, + sym_comment, + ACTIONS(176), 2, + ts_builtin_sym_end, + sym_identifier, + [1467] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(58), 1, + sym_comment, + ACTIONS(178), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [1484] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(162), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RPAREN, + STATE(59), 1, + sym_comment, + STATE(63), 1, + sym__equal_property, + [1503] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(182), 1, + anon_sym_COMMA, + ACTIONS(184), 1, + anon_sym_RBRACE, + STATE(51), 1, + aux_sym__old_module_repeat1, + STATE(60), 1, + sym_comment, + [1522] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + ACTIONS(186), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym_comment, + STATE(70), 1, + sym__colon_property, + [1541] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(188), 1, + anon_sym_COMMA, + ACTIONS(190), 1, + anon_sym_RBRACK, + STATE(50), 1, + aux_sym_list_expression_repeat1, + STATE(62), 1, + sym_comment, + [1560] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(192), 1, + anon_sym_COMMA, + ACTIONS(194), 1, + anon_sym_RPAREN, + STATE(54), 1, + aux_sym__new_module_repeat1, + STATE(63), 1, + sym_comment, + [1579] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(196), 1, + anon_sym_COMMA, + ACTIONS(199), 1, + anon_sym_RPAREN, + STATE(64), 2, sym_comment, aux_sym__new_module_repeat1, - [1693] = 6, + [1596] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(146), 1, + ACTIONS(162), 1, + sym_identifier, + ACTIONS(201), 1, + anon_sym_RPAREN, + STATE(65), 1, + sym_comment, + STATE(72), 1, + sym__equal_property, + [1615] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + STATE(66), 1, + sym_comment, + ACTIONS(203), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1632] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(139), 1, sym_identifier, ACTIONS(205), 1, - anon_sym_RPAREN, - STATE(46), 1, - sym__equal_property, - STATE(68), 1, + anon_sym_RBRACE, + STATE(67), 1, sym_comment, - [1712] = 6, + STATE(70), 1, + sym__colon_property, + [1651] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, - sym_identifier, ACTIONS(207), 1, + anon_sym_COMMA, + ACTIONS(210), 1, anon_sym_RBRACE, + STATE(68), 2, + sym_comment, + aux_sym__old_module_repeat1, + [1668] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(69), 1, sym_comment, - STATE(73), 1, - sym__colon_property, - [1731] = 4, + ACTIONS(212), 2, + ts_builtin_sym_end, + sym_identifier, + [1682] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(70), 1, sym_comment, - ACTIONS(209), 2, - ts_builtin_sym_end, - sym_identifier, - [1745] = 5, + ACTIONS(214), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1696] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(146), 1, - sym_identifier, STATE(71), 1, sym_comment, - STATE(72), 1, - sym__equal_property, - [1761] = 4, + ACTIONS(216), 2, + ts_builtin_sym_end, + sym_identifier, + [1710] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(72), 1, sym_comment, - ACTIONS(211), 2, + ACTIONS(218), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1775] = 4, + [1724] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(73), 1, sym_comment, - ACTIONS(213), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1789] = 4, + ACTIONS(220), 2, + ts_builtin_sym_end, + sym_identifier, + [1738] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(74), 1, sym_comment, - ACTIONS(215), 2, + ACTIONS(222), 2, ts_builtin_sym_end, sym_identifier, - [1803] = 5, + [1752] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - anon_sym_PLUS, - ACTIONS(217), 1, - anon_sym_COMMA, STATE(75), 1, sym_comment, - [1819] = 4, + ACTIONS(224), 2, + ts_builtin_sym_end, + sym_identifier, + [1766] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(76), 1, sym_comment, - ACTIONS(219), 2, + ACTIONS(224), 2, ts_builtin_sym_end, sym_identifier, - [1833] = 4, + [1780] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(77), 1, sym_comment, - ACTIONS(221), 2, + ACTIONS(226), 2, ts_builtin_sym_end, sym_identifier, - [1847] = 4, + [1794] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(78), 1, sym_comment, - ACTIONS(223), 2, + ACTIONS(228), 2, ts_builtin_sym_end, sym_identifier, - [1861] = 4, + [1808] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(133), 1, + anon_sym_PLUS, + ACTIONS(230), 1, + anon_sym_COMMA, STATE(79), 1, sym_comment, - ACTIONS(225), 2, - ts_builtin_sym_end, - sym_identifier, - [1875] = 4, + [1824] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(80), 1, - sym_comment, - ACTIONS(227), 2, - ts_builtin_sym_end, - sym_identifier, - [1889] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(229), 1, + ACTIONS(232), 1, anon_sym_LBRACE, - STATE(81), 1, + STATE(80), 1, sym_comment, STATE(95), 1, sym_select_cases, - [1905] = 4, + [1840] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(81), 1, + sym_comment, + ACTIONS(234), 2, + ts_builtin_sym_end, + sym_identifier, + [1854] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(231), 2, + ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1919] = 4, + [1868] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(233), 2, + ACTIONS(238), 2, ts_builtin_sym_end, sym_identifier, - [1933] = 4, + [1882] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(240), 2, ts_builtin_sym_end, sym_identifier, - [1947] = 4, + [1896] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(235), 2, + ACTIONS(242), 2, ts_builtin_sym_end, sym_identifier, - [1961] = 4, + [1910] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(139), 1, + sym_identifier, + STATE(70), 1, + sym__colon_property, STATE(86), 1, sym_comment, - ACTIONS(237), 2, - ts_builtin_sym_end, - sym_identifier, - [1975] = 4, + [1926] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(239), 2, + ACTIONS(244), 2, ts_builtin_sym_end, sym_identifier, - [1989] = 5, + [1940] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, + ACTIONS(162), 1, sym_identifier, - STATE(73), 1, - sym__colon_property, + STATE(72), 1, + sym__equal_property, STATE(88), 1, sym_comment, - [2005] = 4, - ACTIONS(3), 1, + [1956] = 4, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, + ACTIONS(246), 1, + aux_sym_comment_token1, STATE(89), 1, sym_comment, - ACTIONS(241), 2, - ts_builtin_sym_end, - sym_identifier, - [2019] = 4, + [1969] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(243), 1, + ACTIONS(248), 1, anon_sym_COMMA, STATE(90), 1, sym_comment, - [2032] = 4, + [1982] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(245), 1, + ACTIONS(250), 1, anon_sym_COMMA, STATE(91), 1, sym_comment, - [2045] = 4, + [1995] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(247), 1, + ACTIONS(252), 1, anon_sym_RPAREN, STATE(92), 1, sym_comment, - [2058] = 4, + [2008] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(249), 1, + ACTIONS(254), 1, anon_sym_COMMA, STATE(93), 1, sym_comment, - [2071] = 4, + [2021] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(251), 1, - aux_sym_integer_literal_token1, + ACTIONS(256), 1, + anon_sym_SLASH, STATE(94), 1, sym_comment, - [2084] = 4, + [2034] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(253), 1, + ACTIONS(258), 1, anon_sym_RPAREN, STATE(95), 1, sym_comment, - [2097] = 4, + [2047] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(255), 1, - anon_sym_RPAREN, + ACTIONS(260), 1, + anon_sym_COLON, STATE(96), 1, sym_comment, - [2110] = 4, + [2060] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(257), 1, - anon_sym_SLASH, + ACTIONS(262), 1, + aux_sym_integer_literal_token1, STATE(97), 1, sym_comment, - [2123] = 4, + [2073] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(259), 1, + ACTIONS(264), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2136] = 4, + [2086] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(261), 1, - anon_sym_RBRACE, + ACTIONS(266), 1, + anon_sym_LPAREN, STATE(99), 1, sym_comment, - [2149] = 4, + [2099] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(263), 1, + ACTIONS(268), 1, anon_sym_RPAREN, STATE(100), 1, sym_comment, - [2162] = 4, + [2112] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(265), 1, + ACTIONS(270), 1, anon_sym_COLON, STATE(101), 1, sym_comment, - [2175] = 4, + [2125] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(267), 1, - anon_sym_COLON, + ACTIONS(272), 1, + anon_sym_EQ, STATE(102), 1, sym_comment, - [2188] = 4, + [2138] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(269), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(103), 1, sym_comment, - [2201] = 4, + [2151] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, - anon_sym_COMMA, + ACTIONS(276), 1, + ts_builtin_sym_end, STATE(104), 1, sym_comment, - [2214] = 4, + [2164] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, - anon_sym_COLON, + ACTIONS(278), 1, + anon_sym_RPAREN, STATE(105), 1, sym_comment, - [2227] = 4, + [2177] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(275), 1, - anon_sym_EQ, + ACTIONS(280), 1, + anon_sym_LPAREN, STATE(106), 1, sym_comment, - [2240] = 4, + [2190] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(277), 1, - anon_sym_RPAREN, + ACTIONS(282), 1, + anon_sym_LPAREN, STATE(107), 1, sym_comment, - [2253] = 4, + [2203] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(279), 1, - anon_sym_LPAREN, + ACTIONS(284), 1, + anon_sym_RPAREN, STATE(108), 1, sym_comment, - [2266] = 4, - ACTIONS(100), 1, + [2216] = 4, + ACTIONS(103), 1, anon_sym_SLASH_SLASH, - ACTIONS(102), 1, + ACTIONS(105), 1, anon_sym_SLASH_STAR, - ACTIONS(281), 1, - aux_sym_comment_token1, + ACTIONS(286), 1, + aux_sym_comment_token2, STATE(109), 1, sym_comment, - [2279] = 4, + [2229] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(283), 1, - ts_builtin_sym_end, + ACTIONS(288), 1, + anon_sym_COMMA, STATE(110), 1, sym_comment, - [2292] = 4, + [2242] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(285), 1, - anon_sym_RBRACE, + ACTIONS(230), 1, + anon_sym_COMMA, STATE(111), 1, sym_comment, - [2305] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(287), 1, - anon_sym_RPAREN, - STATE(112), 1, - sym_comment, - [2318] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(289), 1, - anon_sym_COMMA, - STATE(113), 1, - sym_comment, - [2331] = 4, - ACTIONS(100), 1, - anon_sym_SLASH_SLASH, - ACTIONS(102), 1, - anon_sym_SLASH_STAR, - ACTIONS(291), 1, - aux_sym_comment_token2, - STATE(114), 1, - sym_comment, - [2344] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(293), 1, - anon_sym_LPAREN, - STATE(115), 1, - sym_comment, - [2357] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(217), 1, - anon_sym_COMMA, - STATE(116), 1, - sym_comment, - [2370] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(295), 1, - anon_sym_LPAREN, - STATE(117), 1, - sym_comment, - [2383] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(297), 1, - anon_sym_COMMA, - STATE(118), 1, - sym_comment, - [2396] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(299), 1, - anon_sym_COMMA, - STATE(119), 1, - sym_comment, - [2409] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(301), 1, - anon_sym_RPAREN, - STATE(120), 1, - sym_comment, - [2422] = 1, - ACTIONS(303), 1, + [2255] = 1, + ACTIONS(290), 1, ts_builtin_sym_end, - [2426] = 1, - ACTIONS(305), 1, + [2259] = 1, + ACTIONS(292), 1, ts_builtin_sym_end, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, [SMALL_STATE(3)] = 59, - [SMALL_STATE(4)] = 118, - [SMALL_STATE(5)] = 174, - [SMALL_STATE(6)] = 230, - [SMALL_STATE(7)] = 286, - [SMALL_STATE(8)] = 339, - [SMALL_STATE(9)] = 392, - [SMALL_STATE(10)] = 445, - [SMALL_STATE(11)] = 498, - [SMALL_STATE(12)] = 551, - [SMALL_STATE(13)] = 588, - [SMALL_STATE(14)] = 625, - [SMALL_STATE(15)] = 655, - [SMALL_STATE(16)] = 675, - [SMALL_STATE(17)] = 695, - [SMALL_STATE(18)] = 727, - [SMALL_STATE(19)] = 757, - [SMALL_STATE(20)] = 777, - [SMALL_STATE(21)] = 796, - [SMALL_STATE(22)] = 815, - [SMALL_STATE(23)] = 834, - [SMALL_STATE(24)] = 853, - [SMALL_STATE(25)] = 872, - [SMALL_STATE(26)] = 891, - [SMALL_STATE(27)] = 910, - [SMALL_STATE(28)] = 929, - [SMALL_STATE(29)] = 948, - [SMALL_STATE(30)] = 967, - [SMALL_STATE(31)] = 986, - [SMALL_STATE(32)] = 1005, - [SMALL_STATE(33)] = 1024, - [SMALL_STATE(34)] = 1043, - [SMALL_STATE(35)] = 1062, - [SMALL_STATE(36)] = 1081, - [SMALL_STATE(37)] = 1103, - [SMALL_STATE(38)] = 1125, - [SMALL_STATE(39)] = 1147, - [SMALL_STATE(40)] = 1169, - [SMALL_STATE(41)] = 1191, - [SMALL_STATE(42)] = 1213, - [SMALL_STATE(43)] = 1235, - [SMALL_STATE(44)] = 1255, - [SMALL_STATE(45)] = 1275, - [SMALL_STATE(46)] = 1291, - [SMALL_STATE(47)] = 1310, - [SMALL_STATE(48)] = 1329, - [SMALL_STATE(49)] = 1348, - [SMALL_STATE(50)] = 1367, - [SMALL_STATE(51)] = 1386, - [SMALL_STATE(52)] = 1405, - [SMALL_STATE(53)] = 1424, - [SMALL_STATE(54)] = 1441, - [SMALL_STATE(55)] = 1460, - [SMALL_STATE(56)] = 1479, - [SMALL_STATE(57)] = 1496, - [SMALL_STATE(58)] = 1515, - [SMALL_STATE(59)] = 1532, - [SMALL_STATE(60)] = 1549, - [SMALL_STATE(61)] = 1568, - [SMALL_STATE(62)] = 1587, - [SMALL_STATE(63)] = 1604, - [SMALL_STATE(64)] = 1623, - [SMALL_STATE(65)] = 1640, - [SMALL_STATE(66)] = 1657, - [SMALL_STATE(67)] = 1676, - [SMALL_STATE(68)] = 1693, - [SMALL_STATE(69)] = 1712, - [SMALL_STATE(70)] = 1731, - [SMALL_STATE(71)] = 1745, - [SMALL_STATE(72)] = 1761, - [SMALL_STATE(73)] = 1775, - [SMALL_STATE(74)] = 1789, - [SMALL_STATE(75)] = 1803, - [SMALL_STATE(76)] = 1819, - [SMALL_STATE(77)] = 1833, - [SMALL_STATE(78)] = 1847, - [SMALL_STATE(79)] = 1861, - [SMALL_STATE(80)] = 1875, - [SMALL_STATE(81)] = 1889, - [SMALL_STATE(82)] = 1905, - [SMALL_STATE(83)] = 1919, - [SMALL_STATE(84)] = 1933, - [SMALL_STATE(85)] = 1947, - [SMALL_STATE(86)] = 1961, - [SMALL_STATE(87)] = 1975, - [SMALL_STATE(88)] = 1989, - [SMALL_STATE(89)] = 2005, - [SMALL_STATE(90)] = 2019, - [SMALL_STATE(91)] = 2032, - [SMALL_STATE(92)] = 2045, - [SMALL_STATE(93)] = 2058, - [SMALL_STATE(94)] = 2071, - [SMALL_STATE(95)] = 2084, - [SMALL_STATE(96)] = 2097, - [SMALL_STATE(97)] = 2110, - [SMALL_STATE(98)] = 2123, - [SMALL_STATE(99)] = 2136, - [SMALL_STATE(100)] = 2149, - [SMALL_STATE(101)] = 2162, - [SMALL_STATE(102)] = 2175, - [SMALL_STATE(103)] = 2188, - [SMALL_STATE(104)] = 2201, - [SMALL_STATE(105)] = 2214, - [SMALL_STATE(106)] = 2227, - [SMALL_STATE(107)] = 2240, - [SMALL_STATE(108)] = 2253, - [SMALL_STATE(109)] = 2266, - [SMALL_STATE(110)] = 2279, - [SMALL_STATE(111)] = 2292, - [SMALL_STATE(112)] = 2305, - [SMALL_STATE(113)] = 2318, - [SMALL_STATE(114)] = 2331, - [SMALL_STATE(115)] = 2344, - [SMALL_STATE(116)] = 2357, - [SMALL_STATE(117)] = 2370, - [SMALL_STATE(118)] = 2383, - [SMALL_STATE(119)] = 2396, - [SMALL_STATE(120)] = 2409, - [SMALL_STATE(121)] = 2422, - [SMALL_STATE(122)] = 2426, + [SMALL_STATE(4)] = 115, + [SMALL_STATE(5)] = 171, + [SMALL_STATE(6)] = 227, + [SMALL_STATE(7)] = 280, + [SMALL_STATE(8)] = 333, + [SMALL_STATE(9)] = 386, + [SMALL_STATE(10)] = 439, + [SMALL_STATE(11)] = 492, + [SMALL_STATE(12)] = 512, + [SMALL_STATE(13)] = 544, + [SMALL_STATE(14)] = 578, + [SMALL_STATE(15)] = 612, + [SMALL_STATE(16)] = 632, + [SMALL_STATE(17)] = 664, + [SMALL_STATE(18)] = 684, + [SMALL_STATE(19)] = 714, + [SMALL_STATE(20)] = 733, + [SMALL_STATE(21)] = 752, + [SMALL_STATE(22)] = 771, + [SMALL_STATE(23)] = 790, + [SMALL_STATE(24)] = 809, + [SMALL_STATE(25)] = 828, + [SMALL_STATE(26)] = 847, + [SMALL_STATE(27)] = 866, + [SMALL_STATE(28)] = 885, + [SMALL_STATE(29)] = 904, + [SMALL_STATE(30)] = 923, + [SMALL_STATE(31)] = 942, + [SMALL_STATE(32)] = 961, + [SMALL_STATE(33)] = 980, + [SMALL_STATE(34)] = 999, + [SMALL_STATE(35)] = 1018, + [SMALL_STATE(36)] = 1040, + [SMALL_STATE(37)] = 1060, + [SMALL_STATE(38)] = 1080, + [SMALL_STATE(39)] = 1102, + [SMALL_STATE(40)] = 1124, + [SMALL_STATE(41)] = 1146, + [SMALL_STATE(42)] = 1168, + [SMALL_STATE(43)] = 1184, + [SMALL_STATE(44)] = 1206, + [SMALL_STATE(45)] = 1228, + [SMALL_STATE(46)] = 1245, + [SMALL_STATE(47)] = 1264, + [SMALL_STATE(48)] = 1283, + [SMALL_STATE(49)] = 1300, + [SMALL_STATE(50)] = 1319, + [SMALL_STATE(51)] = 1336, + [SMALL_STATE(52)] = 1355, + [SMALL_STATE(53)] = 1374, + [SMALL_STATE(54)] = 1393, + [SMALL_STATE(55)] = 1412, + [SMALL_STATE(56)] = 1431, + [SMALL_STATE(57)] = 1450, + [SMALL_STATE(58)] = 1467, + [SMALL_STATE(59)] = 1484, + [SMALL_STATE(60)] = 1503, + [SMALL_STATE(61)] = 1522, + [SMALL_STATE(62)] = 1541, + [SMALL_STATE(63)] = 1560, + [SMALL_STATE(64)] = 1579, + [SMALL_STATE(65)] = 1596, + [SMALL_STATE(66)] = 1615, + [SMALL_STATE(67)] = 1632, + [SMALL_STATE(68)] = 1651, + [SMALL_STATE(69)] = 1668, + [SMALL_STATE(70)] = 1682, + [SMALL_STATE(71)] = 1696, + [SMALL_STATE(72)] = 1710, + [SMALL_STATE(73)] = 1724, + [SMALL_STATE(74)] = 1738, + [SMALL_STATE(75)] = 1752, + [SMALL_STATE(76)] = 1766, + [SMALL_STATE(77)] = 1780, + [SMALL_STATE(78)] = 1794, + [SMALL_STATE(79)] = 1808, + [SMALL_STATE(80)] = 1824, + [SMALL_STATE(81)] = 1840, + [SMALL_STATE(82)] = 1854, + [SMALL_STATE(83)] = 1868, + [SMALL_STATE(84)] = 1882, + [SMALL_STATE(85)] = 1896, + [SMALL_STATE(86)] = 1910, + [SMALL_STATE(87)] = 1926, + [SMALL_STATE(88)] = 1940, + [SMALL_STATE(89)] = 1956, + [SMALL_STATE(90)] = 1969, + [SMALL_STATE(91)] = 1982, + [SMALL_STATE(92)] = 1995, + [SMALL_STATE(93)] = 2008, + [SMALL_STATE(94)] = 2021, + [SMALL_STATE(95)] = 2034, + [SMALL_STATE(96)] = 2047, + [SMALL_STATE(97)] = 2060, + [SMALL_STATE(98)] = 2073, + [SMALL_STATE(99)] = 2086, + [SMALL_STATE(100)] = 2099, + [SMALL_STATE(101)] = 2112, + [SMALL_STATE(102)] = 2125, + [SMALL_STATE(103)] = 2138, + [SMALL_STATE(104)] = 2151, + [SMALL_STATE(105)] = 2164, + [SMALL_STATE(106)] = 2177, + [SMALL_STATE(107)] = 2190, + [SMALL_STATE(108)] = 2203, + [SMALL_STATE(109)] = 2216, + [SMALL_STATE(110)] = 2229, + [SMALL_STATE(111)] = 2242, + [SMALL_STATE(112)] = 2255, + [SMALL_STATE(113)] = 2259, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(26), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [43] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), - [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [59] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(44), - [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [64] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [96] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [98] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [100] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), - [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [118] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), - [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [174] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [191] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [196] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [200] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(71), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), - [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), - [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5), - [257] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [281] = {.entry = {.count = 1, .reusable = false}}, SHIFT(121), - [283] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), - [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_default_case, 3, .production_id = 16), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(99), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(11), + [44] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(40), + [47] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(101), + [50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [56] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [58] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [64] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), + [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), + [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), + [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), + [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [246] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), + [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [256] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), + [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), + [276] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [286] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), + [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 166463a..0e493bb 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -135,10 +135,9 @@ foo = select(variant("VARIANT"), { (select_case (interpreted_string_literal) (interpreted_string_literal)) - (ERROR - (select_case - (default) - (unset))) + (select_case + (default) + (unset)) (select_case (interpreted_string_literal) (interpreted_string_literal)) From 1c1387fee09fda3e5309fcd9e03ccce4e0478b82 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:47:14 +0000 Subject: [PATCH 10/39] Simplify 'select_value' rule Upstream has greatly simplified the parsing of `select` expressions, in order to add multi-valued `select`. To this end, we remove the hard-coded list of function names, and accept an arbitrary number of arguments. --- grammar.js | 23 +- src/grammar.json | 118 +- src/node-types.json | 60 +- src/parser.c | 4082 +++++++++++++--------------------------- test/corpus/select.txt | 27 +- 5 files changed, 1375 insertions(+), 2935 deletions(-) diff --git a/grammar.js b/grammar.js index 4b71569..497b8f7 100644 --- a/grammar.js +++ b/grammar.js @@ -121,33 +121,16 @@ module.exports = grammar({ select_expression: ($) => seq( "select", "(", - choice($.select_value, $.soong_config_variable), + $.select_value, ",", $.select_cases, ")", ), select_value: ($) => seq( - field("type", alias( - choice("product_variable", "release_variable", "variant"), - $.selection_type, - )), + field("type", alias($.identifier, $.selection_type)), "(", - field("condition", $._string_literal), - ")", - ), - - soong_config_variable: ($) => seq( - field("type", alias("soong_config_variable", $.selection_type)), - "(", - field( - "condition", - seq( - field("namespace", $._string_literal), - ",", - field("variable", $._string_literal), - ), - ), + field("condition", optional(commaSeparated($._string_literal))), ")", ), diff --git a/src/grammar.json b/src/grammar.json index ddd2141..c16b22d 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -469,17 +469,8 @@ "value": "(" }, { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "select_value" - }, - { - "type": "SYMBOL", - "name": "soong_config_variable" - } - ] + "type": "SYMBOL", + "name": "select_value" }, { "type": "STRING", @@ -504,21 +495,8 @@ "content": { "type": "ALIAS", "content": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "product_variable" - }, - { - "type": "STRING", - "value": "release_variable" - }, - { - "type": "STRING", - "value": "variant" - } - ] + "type": "SYMBOL", + "name": "identifier" }, "named": true, "value": "selection_type" @@ -532,61 +510,47 @@ "type": "FIELD", "name": "condition", "content": { - "type": "SYMBOL", - "name": "_string_literal" - } - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "soong_config_variable": { - "type": "SEQ", - "members": [ - { - "type": "FIELD", - "name": "type", - "content": { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "soong_config_variable" - }, - "named": true, - "value": "selection_type" - } - }, - { - "type": "STRING", - "value": "(" - }, - { - "type": "FIELD", - "name": "condition", - "content": { - "type": "SEQ", + "type": "CHOICE", "members": [ { - "type": "FIELD", - "name": "namespace", - "content": { - "type": "SYMBOL", - "name": "_string_literal" - } + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "_string_literal" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "_string_literal" + } + ] + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] }, { - "type": "STRING", - "value": "," - }, - { - "type": "FIELD", - "name": "variable", - "content": { - "type": "SYMBOL", - "name": "_string_literal" - } + "type": "BLANK" } ] } diff --git a/src/node-types.json b/src/node-types.json index e26beb4..3e59430 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -445,10 +445,6 @@ { "type": "select_value", "named": true - }, - { - "type": "soong_config_variable", - "named": true } ] } @@ -458,49 +454,13 @@ "named": true, "fields": { "condition": { - "multiple": false, - "required": true, - "types": [ - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", - "named": true - } - ] - }, - "type": { - "multiple": false, - "required": true, - "types": [ - { - "type": "selection_type", - "named": true - } - ] - } - } - }, - { - "type": "soong_config_variable", - "named": true, - "fields": { - "condition": { - "multiple": false, - "required": true, + "multiple": true, + "required": false, "types": [ { "type": ",", "named": false - } - ] - }, - "namespace": { - "multiple": false, - "required": true, - "types": [ + }, { "type": "interpreted_string_literal", "named": true @@ -520,20 +480,6 @@ "named": true } ] - }, - "variable": { - "multiple": false, - "required": true, - "types": [ - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", - "named": true - } - ] } } }, diff --git a/src/parser.c b/src/parser.c index 5f3506f..02a91a2 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,15 +5,15 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 114 +#define STATE_COUNT 117 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 63 -#define ALIAS_COUNT 0 -#define TOKEN_COUNT 34 +#define SYMBOL_COUNT 59 +#define ALIAS_COUNT 1 +#define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 12 +#define FIELD_COUNT 10 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 17 +#define PRODUCTION_ID_COUNT 19 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -39,45 +39,42 @@ enum ts_symbol_identifiers { anon_sym_DQUOTE2 = 21, sym_escape_sequence = 22, anon_sym_select = 23, - anon_sym_product_variable = 24, - anon_sym_release_variable = 25, - anon_sym_variant = 26, - anon_sym_soong_config_variable = 27, - anon_sym_default = 28, - anon_sym_COLON = 29, - anon_sym_unset = 30, - anon_sym_LBRACK = 31, - anon_sym_RBRACK = 32, - anon_sym_PLUS = 33, - sym_source_file = 34, - sym__definition = 35, - sym_comment = 36, - sym_assignment = 37, - sym_module = 38, - sym__old_module = 39, - sym__new_module = 40, - sym__expr = 41, - sym_boolean_literal = 42, - sym_integer_literal = 43, - sym__string_literal = 44, - sym_interpreted_string_literal = 45, - sym_select_expression = 46, - sym_select_value = 47, - sym_soong_config_variable = 48, - sym_select_cases = 49, - sym_select_case = 50, - sym__case_value = 51, - sym_list_expression = 52, - sym_map_expression = 53, - sym_binary_expression = 54, - sym__colon_property = 55, - sym__equal_property = 56, - aux_sym_source_file_repeat1 = 57, - aux_sym__old_module_repeat1 = 58, - aux_sym__new_module_repeat1 = 59, - aux_sym_interpreted_string_literal_repeat1 = 60, - aux_sym_select_cases_repeat1 = 61, - aux_sym_list_expression_repeat1 = 62, + anon_sym_default = 24, + anon_sym_COLON = 25, + anon_sym_unset = 26, + anon_sym_LBRACK = 27, + anon_sym_RBRACK = 28, + anon_sym_PLUS = 29, + sym_source_file = 30, + sym__definition = 31, + sym_comment = 32, + sym_assignment = 33, + sym_module = 34, + sym__old_module = 35, + sym__new_module = 36, + sym__expr = 37, + sym_boolean_literal = 38, + sym_integer_literal = 39, + sym__string_literal = 40, + sym_interpreted_string_literal = 41, + sym_select_expression = 42, + sym_select_value = 43, + sym_select_cases = 44, + sym_select_case = 45, + sym__case_value = 46, + sym_list_expression = 47, + sym_map_expression = 48, + sym_binary_expression = 49, + sym__colon_property = 50, + sym__equal_property = 51, + aux_sym_source_file_repeat1 = 52, + aux_sym__old_module_repeat1 = 53, + aux_sym__new_module_repeat1 = 54, + aux_sym_interpreted_string_literal_repeat1 = 55, + aux_sym_select_value_repeat1 = 56, + aux_sym_select_cases_repeat1 = 57, + aux_sym_list_expression_repeat1 = 58, + alias_sym_selection_type = 59, }; static const char * const ts_symbol_names[] = { @@ -105,10 +102,6 @@ static const char * const ts_symbol_names[] = { [anon_sym_DQUOTE2] = "\"", [sym_escape_sequence] = "escape_sequence", [anon_sym_select] = "select", - [anon_sym_product_variable] = "selection_type", - [anon_sym_release_variable] = "selection_type", - [anon_sym_variant] = "selection_type", - [anon_sym_soong_config_variable] = "selection_type", [anon_sym_default] = "default", [anon_sym_COLON] = ":", [anon_sym_unset] = "unset", @@ -129,7 +122,6 @@ static const char * const ts_symbol_names[] = { [sym_interpreted_string_literal] = "interpreted_string_literal", [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", - [sym_soong_config_variable] = "soong_config_variable", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", [sym__case_value] = "_case_value", @@ -142,8 +134,10 @@ static const char * const ts_symbol_names[] = { [aux_sym__old_module_repeat1] = "_old_module_repeat1", [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", + [aux_sym_select_value_repeat1] = "select_value_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", + [alias_sym_selection_type] = "selection_type", }; static const TSSymbol ts_symbol_map[] = { @@ -171,10 +165,6 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_DQUOTE2] = anon_sym_DQUOTE, [sym_escape_sequence] = sym_escape_sequence, [anon_sym_select] = anon_sym_select, - [anon_sym_product_variable] = anon_sym_product_variable, - [anon_sym_release_variable] = anon_sym_product_variable, - [anon_sym_variant] = anon_sym_product_variable, - [anon_sym_soong_config_variable] = anon_sym_product_variable, [anon_sym_default] = anon_sym_default, [anon_sym_COLON] = anon_sym_COLON, [anon_sym_unset] = anon_sym_unset, @@ -195,7 +185,6 @@ static const TSSymbol ts_symbol_map[] = { [sym_interpreted_string_literal] = sym_interpreted_string_literal, [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, - [sym_soong_config_variable] = sym_soong_config_variable, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, [sym__case_value] = sym__case_value, @@ -208,8 +197,10 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__old_module_repeat1] = aux_sym__old_module_repeat1, [aux_sym__new_module_repeat1] = aux_sym__new_module_repeat1, [aux_sym_interpreted_string_literal_repeat1] = aux_sym_interpreted_string_literal_repeat1, + [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, + [alias_sym_selection_type] = alias_sym_selection_type, }; static const TSSymbolMetadata ts_symbol_metadata[] = { @@ -309,22 +300,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [anon_sym_product_variable] = { - .visible = true, - .named = true, - }, - [anon_sym_release_variable] = { - .visible = true, - .named = true, - }, - [anon_sym_variant] = { - .visible = true, - .named = true, - }, - [anon_sym_soong_config_variable] = { - .visible = true, - .named = true, - }, [anon_sym_default] = { .visible = true, .named = true, @@ -405,10 +380,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_soong_config_variable] = { - .visible = true, - .named = true, - }, [sym_select_cases] = { .visible = true, .named = true, @@ -457,6 +428,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, + [aux_sym_select_value_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_select_cases_repeat1] = { .visible = false, .named = false, @@ -465,6 +440,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, + [alias_sym_selection_type] = { + .visible = true, + .named = true, + }, }; enum ts_field_identifiers { @@ -472,14 +451,12 @@ enum ts_field_identifiers { field_element = 2, field_field = 3, field_left = 4, - field_namespace = 5, - field_operator = 6, - field_pattern = 7, - field_property = 8, - field_right = 9, - field_type = 10, - field_value = 11, - field_variable = 12, + field_operator = 5, + field_pattern = 6, + field_property = 7, + field_right = 8, + field_type = 9, + field_value = 10, }; static const char * const ts_field_names[] = { @@ -488,14 +465,12 @@ static const char * const ts_field_names[] = { [field_element] = "element", [field_field] = "field", [field_left] = "left", - [field_namespace] = "namespace", [field_operator] = "operator", [field_pattern] = "pattern", [field_property] = "property", [field_right] = "right", [field_type] = "type", [field_value] = "value", - [field_variable] = "variable", }; static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { @@ -512,9 +487,11 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [11] = {.index = 23, .length = 4}, [12] = {.index = 27, .length = 2}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 31, .length = 2}, - [15] = {.index = 33, .length = 4}, - [16] = {.index = 37, .length = 2}, + [14] = {.index = 5, .length = 1}, + [15] = {.index = 31, .length = 2}, + [16] = {.index = 33, .length = 3}, + [17] = {.index = 36, .length = 4}, + [18] = {.index = 40, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -565,11 +542,15 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_condition, 2}, {field_type, 0}, [33] = + {field_condition, 2}, {field_condition, 3}, - {field_namespace, 2}, {field_type, 0}, - {field_variable, 4}, - [37] = + [36] = + {field_condition, 2}, + {field_condition, 3}, + {field_condition, 4}, + {field_type, 0}, + [40] = {field_pattern, 0}, {field_value, 2}, }; @@ -579,6 +560,18 @@ static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE [2] = { [1] = anon_sym_PLUS_EQ, }, + [14] = { + [0] = alias_sym_selection_type, + }, + [15] = { + [0] = alias_sym_selection_type, + }, + [16] = { + [0] = alias_sym_selection_type, + }, + [17] = { + [0] = alias_sym_selection_type, + }, }; static const uint16_t ts_non_terminal_alias_map[] = { @@ -700,6 +693,9 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, + [114] = 114, + [115] = 115, + [116] = 116, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -1505,1022 +1501,6 @@ static inline bool sym_identifier_character_set_1(int32_t c) { } static inline bool sym_identifier_character_set_2(int32_t c) { - return (c < 43642 - ? (c < 3784 - ? (c < 2759 - ? (c < 2048 - ? (c < 1155 - ? (c < 736 - ? (c < 183 - ? (c < 'a' - ? (c < 'A' - ? (c >= '0' && c <= '9') - : c <= 'Z') - : (c <= 'z' || (c < 181 - ? c == 170 - : c <= 181))) - : (c <= 183 || (c < 216 - ? (c < 192 - ? c == 186 - : c <= 214) - : (c <= 246 || (c < 710 - ? (c >= 248 && c <= 705) - : c <= 721))))) - : (c <= 740 || (c < 895 - ? (c < 768 - ? (c < 750 - ? c == 748 - : c <= 750) - : (c <= 884 || (c < 891 - ? (c >= 886 && c <= 887) - : c <= 893))) - : (c <= 895 || (c < 910 - ? (c < 908 - ? (c >= 902 && c <= 906) - : c <= 908) - : (c <= 929 || (c < 1015 - ? (c >= 931 && c <= 1013) - : c <= 1153))))))) - : (c <= 1159 || (c < 1552 - ? (c < 1471 - ? (c < 1369 - ? (c < 1329 - ? (c >= 1162 && c <= 1327) - : c <= 1366) - : (c <= 1369 || (c < 1425 - ? (c >= 1376 && c <= 1416) - : c <= 1469))) - : (c <= 1471 || (c < 1479 - ? (c < 1476 - ? (c >= 1473 && c <= 1474) - : c <= 1477) - : (c <= 1479 || (c < 1519 - ? (c >= 1488 && c <= 1514) - : c <= 1522))))) - : (c <= 1562 || (c < 1791 - ? (c < 1749 - ? (c < 1646 - ? (c >= 1568 && c <= 1641) - : c <= 1747) - : (c <= 1756 || (c < 1770 - ? (c >= 1759 && c <= 1768) - : c <= 1788))) - : (c <= 1791 || (c < 1984 - ? (c < 1869 - ? (c >= 1808 && c <= 1866) - : c <= 1969) - : (c <= 2037 || (c < 2045 - ? c == 2042 - : c <= 2045))))))))) - : (c <= 2093 || (c < 2561 - ? (c < 2474 - ? (c < 2275 - ? (c < 2160 - ? (c < 2144 - ? (c >= 2112 && c <= 2139) - : c <= 2154) - : (c <= 2183 || (c < 2200 - ? (c >= 2185 && c <= 2190) - : c <= 2273))) - : (c <= 2403 || (c < 2437 - ? (c < 2417 - ? (c >= 2406 && c <= 2415) - : c <= 2435) - : (c <= 2444 || (c < 2451 - ? (c >= 2447 && c <= 2448) - : c <= 2472))))) - : (c <= 2480 || (c < 2519 - ? (c < 2492 - ? (c < 2486 - ? c == 2482 - : c <= 2489) - : (c <= 2500 || (c < 2507 - ? (c >= 2503 && c <= 2504) - : c <= 2510))) - : (c <= 2519 || (c < 2534 - ? (c < 2527 - ? (c >= 2524 && c <= 2525) - : c <= 2531) - : (c <= 2545 || (c < 2558 - ? c == 2556 - : c <= 2558))))))) - : (c <= 2563 || (c < 2641 - ? (c < 2613 - ? (c < 2579 - ? (c < 2575 - ? (c >= 2565 && c <= 2570) - : c <= 2576) - : (c <= 2600 || (c < 2610 - ? (c >= 2602 && c <= 2608) - : c <= 2611))) - : (c <= 2614 || (c < 2622 - ? (c < 2620 - ? (c >= 2616 && c <= 2617) - : c <= 2620) - : (c <= 2626 || (c < 2635 - ? (c >= 2631 && c <= 2632) - : c <= 2637))))) - : (c <= 2641 || (c < 2703 - ? (c < 2662 - ? (c < 2654 - ? (c >= 2649 && c <= 2652) - : c <= 2654) - : (c <= 2677 || (c < 2693 - ? (c >= 2689 && c <= 2691) - : c <= 2701))) - : (c <= 2705 || (c < 2738 - ? (c < 2730 - ? (c >= 2707 && c <= 2728) - : c <= 2736) - : (c <= 2739 || (c < 2748 - ? (c >= 2741 && c <= 2745) - : c <= 2757))))))))))) - : (c <= 2761 || (c < 3174 - ? (c < 2962 - ? (c < 2869 - ? (c < 2817 - ? (c < 2784 - ? (c < 2768 - ? (c >= 2763 && c <= 2765) - : c <= 2768) - : (c <= 2787 || (c < 2809 - ? (c >= 2790 && c <= 2799) - : c <= 2815))) - : (c <= 2819 || (c < 2835 - ? (c < 2831 - ? (c >= 2821 && c <= 2828) - : c <= 2832) - : (c <= 2856 || (c < 2866 - ? (c >= 2858 && c <= 2864) - : c <= 2867))))) - : (c <= 2873 || (c < 2911 - ? (c < 2891 - ? (c < 2887 - ? (c >= 2876 && c <= 2884) - : c <= 2888) - : (c <= 2893 || (c < 2908 - ? (c >= 2901 && c <= 2903) - : c <= 2909))) - : (c <= 2915 || (c < 2946 - ? (c < 2929 - ? (c >= 2918 && c <= 2927) - : c <= 2929) - : (c <= 2947 || (c < 2958 - ? (c >= 2949 && c <= 2954) - : c <= 2960))))))) - : (c <= 2965 || (c < 3046 - ? (c < 2990 - ? (c < 2974 - ? (c < 2972 - ? (c >= 2969 && c <= 2970) - : c <= 2972) - : (c <= 2975 || (c < 2984 - ? (c >= 2979 && c <= 2980) - : c <= 2986))) - : (c <= 3001 || (c < 3018 - ? (c < 3014 - ? (c >= 3006 && c <= 3010) - : c <= 3016) - : (c <= 3021 || (c < 3031 - ? c == 3024 - : c <= 3031))))) - : (c <= 3055 || (c < 3142 - ? (c < 3090 - ? (c < 3086 - ? (c >= 3072 && c <= 3084) - : c <= 3088) - : (c <= 3112 || (c < 3132 - ? (c >= 3114 && c <= 3129) - : c <= 3140))) - : (c <= 3144 || (c < 3160 - ? (c < 3157 - ? (c >= 3146 && c <= 3149) - : c <= 3158) - : (c <= 3162 || (c < 3168 - ? c == 3165 - : c <= 3171))))))))) - : (c <= 3183 || (c < 3457 - ? (c < 3296 - ? (c < 3253 - ? (c < 3214 - ? (c < 3205 - ? (c >= 3200 && c <= 3203) - : c <= 3212) - : (c <= 3216 || (c < 3242 - ? (c >= 3218 && c <= 3240) - : c <= 3251))) - : (c <= 3257 || (c < 3274 - ? (c < 3270 - ? (c >= 3260 && c <= 3268) - : c <= 3272) - : (c <= 3277 || (c < 3293 - ? (c >= 3285 && c <= 3286) - : c <= 3294))))) - : (c <= 3299 || (c < 3398 - ? (c < 3328 - ? (c < 3313 - ? (c >= 3302 && c <= 3311) - : c <= 3314) - : (c <= 3340 || (c < 3346 - ? (c >= 3342 && c <= 3344) - : c <= 3396))) - : (c <= 3400 || (c < 3423 - ? (c < 3412 - ? (c >= 3402 && c <= 3406) - : c <= 3415) - : (c <= 3427 || (c < 3450 - ? (c >= 3430 && c <= 3439) - : c <= 3455))))))) - : (c <= 3459 || (c < 3585 - ? (c < 3530 - ? (c < 3507 - ? (c < 3482 - ? (c >= 3461 && c <= 3478) - : c <= 3505) - : (c <= 3515 || (c < 3520 - ? c == 3517 - : c <= 3526))) - : (c <= 3530 || (c < 3544 - ? (c < 3542 - ? (c >= 3535 && c <= 3540) - : c <= 3542) - : (c <= 3551 || (c < 3570 - ? (c >= 3558 && c <= 3567) - : c <= 3571))))) - : (c <= 3642 || (c < 3724 - ? (c < 3713 - ? (c < 3664 - ? (c >= 3648 && c <= 3662) - : c <= 3673) - : (c <= 3714 || (c < 3718 - ? c == 3716 - : c <= 3722))) - : (c <= 3747 || (c < 3776 - ? (c < 3751 - ? c == 3749 - : c <= 3773) - : (c <= 3780 || c == 3782)))))))))))) - : (c <= 3789 || (c < 8027 - ? (c < 5919 - ? (c < 4696 - ? (c < 3974 - ? (c < 3893 - ? (c < 3840 - ? (c < 3804 - ? (c >= 3792 && c <= 3801) - : c <= 3807) - : (c <= 3840 || (c < 3872 - ? (c >= 3864 && c <= 3865) - : c <= 3881))) - : (c <= 3893 || (c < 3902 - ? (c < 3897 - ? c == 3895 - : c <= 3897) - : (c <= 3911 || (c < 3953 - ? (c >= 3913 && c <= 3948) - : c <= 3972))))) - : (c <= 3991 || (c < 4295 - ? (c < 4096 - ? (c < 4038 - ? (c >= 3993 && c <= 4028) - : c <= 4038) - : (c <= 4169 || (c < 4256 - ? (c >= 4176 && c <= 4253) - : c <= 4293))) - : (c <= 4295 || (c < 4348 - ? (c < 4304 - ? c == 4301 - : c <= 4346) - : (c <= 4680 || (c < 4688 - ? (c >= 4682 && c <= 4685) - : c <= 4694))))))) - : (c <= 4696 || (c < 4888 - ? (c < 4792 - ? (c < 4746 - ? (c < 4704 - ? (c >= 4698 && c <= 4701) - : c <= 4744) - : (c <= 4749 || (c < 4786 - ? (c >= 4752 && c <= 4784) - : c <= 4789))) - : (c <= 4798 || (c < 4808 - ? (c < 4802 - ? c == 4800 - : c <= 4805) - : (c <= 4822 || (c < 4882 - ? (c >= 4824 && c <= 4880) - : c <= 4885))))) - : (c <= 4954 || (c < 5121 - ? (c < 4992 - ? (c < 4969 - ? (c >= 4957 && c <= 4959) - : c <= 4977) - : (c <= 5007 || (c < 5112 - ? (c >= 5024 && c <= 5109) - : c <= 5117))) - : (c <= 5740 || (c < 5792 - ? (c < 5761 - ? (c >= 5743 && c <= 5759) - : c <= 5786) - : (c <= 5866 || (c < 5888 - ? (c >= 5870 && c <= 5880) - : c <= 5909))))))))) - : (c <= 5940 || (c < 6752 - ? (c < 6272 - ? (c < 6103 - ? (c < 5998 - ? (c < 5984 - ? (c >= 5952 && c <= 5971) - : c <= 5996) - : (c <= 6000 || (c < 6016 - ? (c >= 6002 && c <= 6003) - : c <= 6099))) - : (c <= 6103 || (c < 6155 - ? (c < 6112 - ? (c >= 6108 && c <= 6109) - : c <= 6121) - : (c <= 6157 || (c < 6176 - ? (c >= 6159 && c <= 6169) - : c <= 6264))))) - : (c <= 6314 || (c < 6512 - ? (c < 6432 - ? (c < 6400 - ? (c >= 6320 && c <= 6389) - : c <= 6430) - : (c <= 6443 || (c < 6470 - ? (c >= 6448 && c <= 6459) - : c <= 6509))) - : (c <= 6516 || (c < 6608 - ? (c < 6576 - ? (c >= 6528 && c <= 6571) - : c <= 6601) - : (c <= 6618 || (c < 6688 - ? (c >= 6656 && c <= 6683) - : c <= 6750))))))) - : (c <= 6780 || (c < 7245 - ? (c < 6912 - ? (c < 6823 - ? (c < 6800 - ? (c >= 6783 && c <= 6793) - : c <= 6809) - : (c <= 6823 || (c < 6847 - ? (c >= 6832 && c <= 6845) - : c <= 6862))) - : (c <= 6988 || (c < 7040 - ? (c < 7019 - ? (c >= 6992 && c <= 7001) - : c <= 7027) - : (c <= 7155 || (c < 7232 - ? (c >= 7168 && c <= 7223) - : c <= 7241))))) - : (c <= 7293 || (c < 7424 - ? (c < 7357 - ? (c < 7312 - ? (c >= 7296 && c <= 7304) - : c <= 7354) - : (c <= 7359 || (c < 7380 - ? (c >= 7376 && c <= 7378) - : c <= 7418))) - : (c <= 7957 || (c < 8008 - ? (c < 7968 - ? (c >= 7960 && c <= 7965) - : c <= 8005) - : (c <= 8013 || (c < 8025 - ? (c >= 8016 && c <= 8023) - : c <= 8025))))))))))) - : (c <= 8027 || (c < 11728 - ? (c < 8469 - ? (c < 8182 - ? (c < 8130 - ? (c < 8064 - ? (c < 8031 - ? c == 8029 - : c <= 8061) - : (c <= 8116 || (c < 8126 - ? (c >= 8118 && c <= 8124) - : c <= 8126))) - : (c <= 8132 || (c < 8150 - ? (c < 8144 - ? (c >= 8134 && c <= 8140) - : c <= 8147) - : (c <= 8155 || (c < 8178 - ? (c >= 8160 && c <= 8172) - : c <= 8180))))) - : (c <= 8188 || (c < 8400 - ? (c < 8305 - ? (c < 8276 - ? (c >= 8255 && c <= 8256) - : c <= 8276) - : (c <= 8305 || (c < 8336 - ? c == 8319 - : c <= 8348))) - : (c <= 8412 || (c < 8450 - ? (c < 8421 - ? c == 8417 - : c <= 8432) - : (c <= 8450 || (c < 8458 - ? c == 8455 - : c <= 8467))))))) - : (c <= 8469 || (c < 11520 - ? (c < 8508 - ? (c < 8486 - ? (c < 8484 - ? (c >= 8472 && c <= 8477) - : c <= 8484) - : (c <= 8486 || (c < 8490 - ? c == 8488 - : c <= 8505))) - : (c <= 8511 || (c < 8544 - ? (c < 8526 - ? (c >= 8517 && c <= 8521) - : c <= 8526) - : (c <= 8584 || (c < 11499 - ? (c >= 11264 && c <= 11492) - : c <= 11507))))) - : (c <= 11557 || (c < 11680 - ? (c < 11568 - ? (c < 11565 - ? c == 11559 - : c <= 11565) - : (c <= 11623 || (c < 11647 - ? c == 11631 - : c <= 11670))) - : (c <= 11686 || (c < 11704 - ? (c < 11696 - ? (c >= 11688 && c <= 11694) - : c <= 11702) - : (c <= 11710 || (c < 11720 - ? (c >= 11712 && c <= 11718) - : c <= 11726))))))))) - : (c <= 11734 || (c < 42775 - ? (c < 12549 - ? (c < 12344 - ? (c < 12293 - ? (c < 11744 - ? (c >= 11736 && c <= 11742) - : c <= 11775) - : (c <= 12295 || (c < 12337 - ? (c >= 12321 && c <= 12335) - : c <= 12341))) - : (c <= 12348 || (c < 12445 - ? (c < 12441 - ? (c >= 12353 && c <= 12438) - : c <= 12442) - : (c <= 12447 || (c < 12540 - ? (c >= 12449 && c <= 12538) - : c <= 12543))))) - : (c <= 12591 || (c < 42192 - ? (c < 12784 - ? (c < 12704 - ? (c >= 12593 && c <= 12686) - : c <= 12735) - : (c <= 12799 || (c < 19968 - ? (c >= 13312 && c <= 19903) - : c <= 42124))) - : (c <= 42237 || (c < 42560 - ? (c < 42512 - ? (c >= 42240 && c <= 42508) - : c <= 42539) - : (c <= 42607 || (c < 42623 - ? (c >= 42612 && c <= 42621) - : c <= 42737))))))) - : (c <= 42783 || (c < 43259 - ? (c < 42994 - ? (c < 42960 - ? (c < 42891 - ? (c >= 42786 && c <= 42888) - : c <= 42954) - : (c <= 42961 || (c < 42965 - ? c == 42963 - : c <= 42969))) - : (c <= 43047 || (c < 43136 - ? (c < 43072 - ? c == 43052 - : c <= 43123) - : (c <= 43205 || (c < 43232 - ? (c >= 43216 && c <= 43225) - : c <= 43255))))) - : (c <= 43259 || (c < 43488 - ? (c < 43360 - ? (c < 43312 - ? (c >= 43261 && c <= 43309) - : c <= 43347) - : (c <= 43388 || (c < 43471 - ? (c >= 43392 && c <= 43456) - : c <= 43481))) - : (c <= 43518 || (c < 43600 - ? (c < 43584 - ? (c >= 43520 && c <= 43574) - : c <= 43597) - : (c <= 43609 || (c >= 43616 && c <= 43638))))))))))))))) - : (c <= 43714 || (c < 71472 - ? (c < 67644 - ? (c < 65382 - ? (c < 64318 - ? (c < 44012 - ? (c < 43793 - ? (c < 43762 - ? (c < 43744 - ? (c >= 43739 && c <= 43741) - : c <= 43759) - : (c <= 43766 || (c < 43785 - ? (c >= 43777 && c <= 43782) - : c <= 43790))) - : (c <= 43798 || (c < 43824 - ? (c < 43816 - ? (c >= 43808 && c <= 43814) - : c <= 43822) - : (c <= 43866 || (c < 43888 - ? (c >= 43868 && c <= 43881) - : c <= 44010))))) - : (c <= 44013 || (c < 64112 - ? (c < 55216 - ? (c < 44032 - ? (c >= 44016 && c <= 44025) - : c <= 55203) - : (c <= 55238 || (c < 63744 - ? (c >= 55243 && c <= 55291) - : c <= 64109))) - : (c <= 64217 || (c < 64285 - ? (c < 64275 - ? (c >= 64256 && c <= 64262) - : c <= 64279) - : (c <= 64296 || (c < 64312 - ? (c >= 64298 && c <= 64310) - : c <= 64316))))))) - : (c <= 64318 || (c < 65101 - ? (c < 64848 - ? (c < 64326 - ? (c < 64323 - ? (c >= 64320 && c <= 64321) - : c <= 64324) - : (c <= 64433 || (c < 64612 - ? (c >= 64467 && c <= 64605) - : c <= 64829))) - : (c <= 64911 || (c < 65024 - ? (c < 65008 - ? (c >= 64914 && c <= 64967) - : c <= 65017) - : (c <= 65039 || (c < 65075 - ? (c >= 65056 && c <= 65071) - : c <= 65076))))) - : (c <= 65103 || (c < 65149 - ? (c < 65143 - ? (c < 65139 - ? c == 65137 - : c <= 65139) - : (c <= 65143 || (c < 65147 - ? c == 65145 - : c <= 65147))) - : (c <= 65149 || (c < 65313 - ? (c < 65296 - ? (c >= 65151 && c <= 65276) - : c <= 65305) - : (c <= 65338 || (c < 65345 - ? c == 65343 - : c <= 65370))))))))) - : (c <= 65470 || (c < 66560 - ? (c < 65856 - ? (c < 65549 - ? (c < 65490 - ? (c < 65482 - ? (c >= 65474 && c <= 65479) - : c <= 65487) - : (c <= 65495 || (c < 65536 - ? (c >= 65498 && c <= 65500) - : c <= 65547))) - : (c <= 65574 || (c < 65599 - ? (c < 65596 - ? (c >= 65576 && c <= 65594) - : c <= 65597) - : (c <= 65613 || (c < 65664 - ? (c >= 65616 && c <= 65629) - : c <= 65786))))) - : (c <= 65908 || (c < 66349 - ? (c < 66208 - ? (c < 66176 - ? c == 66045 - : c <= 66204) - : (c <= 66256 || (c < 66304 - ? c == 66272 - : c <= 66335))) - : (c <= 66378 || (c < 66464 - ? (c < 66432 - ? (c >= 66384 && c <= 66426) - : c <= 66461) - : (c <= 66499 || (c < 66513 - ? (c >= 66504 && c <= 66511) - : c <= 66517))))))) - : (c <= 66717 || (c < 66995 - ? (c < 66928 - ? (c < 66776 - ? (c < 66736 - ? (c >= 66720 && c <= 66729) - : c <= 66771) - : (c <= 66811 || (c < 66864 - ? (c >= 66816 && c <= 66855) - : c <= 66915))) - : (c <= 66938 || (c < 66964 - ? (c < 66956 - ? (c >= 66940 && c <= 66954) - : c <= 66962) - : (c <= 66965 || (c < 66979 - ? (c >= 66967 && c <= 66977) - : c <= 66993))))) - : (c <= 67001 || (c < 67463 - ? (c < 67392 - ? (c < 67072 - ? (c >= 67003 && c <= 67004) - : c <= 67382) - : (c <= 67413 || (c < 67456 - ? (c >= 67424 && c <= 67431) - : c <= 67461))) - : (c <= 67504 || (c < 67592 - ? (c < 67584 - ? (c >= 67506 && c <= 67514) - : c <= 67589) - : (c <= 67592 || (c < 67639 - ? (c >= 67594 && c <= 67637) - : c <= 67640))))))))))) - : (c <= 67644 || (c < 69968 - ? (c < 68480 - ? (c < 68108 - ? (c < 67840 - ? (c < 67712 - ? (c < 67680 - ? (c >= 67647 && c <= 67669) - : c <= 67702) - : (c <= 67742 || (c < 67828 - ? (c >= 67808 && c <= 67826) - : c <= 67829))) - : (c <= 67861 || (c < 68030 - ? (c < 67968 - ? (c >= 67872 && c <= 67897) - : c <= 68023) - : (c <= 68031 || (c < 68101 - ? (c >= 68096 && c <= 68099) - : c <= 68102))))) - : (c <= 68115 || (c < 68224 - ? (c < 68152 - ? (c < 68121 - ? (c >= 68117 && c <= 68119) - : c <= 68149) - : (c <= 68154 || (c < 68192 - ? c == 68159 - : c <= 68220))) - : (c <= 68252 || (c < 68352 - ? (c < 68297 - ? (c >= 68288 && c <= 68295) - : c <= 68326) - : (c <= 68405 || (c < 68448 - ? (c >= 68416 && c <= 68437) - : c <= 68466))))))) - : (c <= 68497 || (c < 69488 - ? (c < 69248 - ? (c < 68800 - ? (c < 68736 - ? (c >= 68608 && c <= 68680) - : c <= 68786) - : (c <= 68850 || (c < 68912 - ? (c >= 68864 && c <= 68903) - : c <= 68921))) - : (c <= 69289 || (c < 69376 - ? (c < 69296 - ? (c >= 69291 && c <= 69292) - : c <= 69297) - : (c <= 69404 || (c < 69424 - ? c == 69415 - : c <= 69456))))) - : (c <= 69509 || (c < 69826 - ? (c < 69632 - ? (c < 69600 - ? (c >= 69552 && c <= 69572) - : c <= 69622) - : (c <= 69702 || (c < 69759 - ? (c >= 69734 && c <= 69749) - : c <= 69818))) - : (c <= 69826 || (c < 69888 - ? (c < 69872 - ? (c >= 69840 && c <= 69864) - : c <= 69881) - : (c <= 69940 || (c < 69956 - ? (c >= 69942 && c <= 69951) - : c <= 69959))))))))) - : (c <= 70003 || (c < 70471 - ? (c < 70287 - ? (c < 70144 - ? (c < 70089 - ? (c < 70016 - ? c == 70006 - : c <= 70084) - : (c <= 70092 || (c < 70108 - ? (c >= 70094 && c <= 70106) - : c <= 70108))) - : (c <= 70161 || (c < 70272 - ? (c < 70206 - ? (c >= 70163 && c <= 70199) - : c <= 70206) - : (c <= 70278 || (c < 70282 - ? c == 70280 - : c <= 70285))))) - : (c <= 70301 || (c < 70415 - ? (c < 70384 - ? (c < 70320 - ? (c >= 70303 && c <= 70312) - : c <= 70378) - : (c <= 70393 || (c < 70405 - ? (c >= 70400 && c <= 70403) - : c <= 70412))) - : (c <= 70416 || (c < 70450 - ? (c < 70442 - ? (c >= 70419 && c <= 70440) - : c <= 70448) - : (c <= 70451 || (c < 70459 - ? (c >= 70453 && c <= 70457) - : c <= 70468))))))) - : (c <= 70472 || (c < 70864 - ? (c < 70512 - ? (c < 70487 - ? (c < 70480 - ? (c >= 70475 && c <= 70477) - : c <= 70480) - : (c <= 70487 || (c < 70502 - ? (c >= 70493 && c <= 70499) - : c <= 70508))) - : (c <= 70516 || (c < 70750 - ? (c < 70736 - ? (c >= 70656 && c <= 70730) - : c <= 70745) - : (c <= 70753 || (c < 70855 - ? (c >= 70784 && c <= 70853) - : c <= 70855))))) - : (c <= 70873 || (c < 71248 - ? (c < 71128 - ? (c < 71096 - ? (c >= 71040 && c <= 71093) - : c <= 71104) - : (c <= 71133 || (c < 71236 - ? (c >= 71168 && c <= 71232) - : c <= 71236))) - : (c <= 71257 || (c < 71424 - ? (c < 71360 - ? (c >= 71296 && c <= 71352) - : c <= 71369) - : (c <= 71450 || (c >= 71453 && c <= 71467))))))))))))) - : (c <= 71481 || (c < 119973 - ? (c < 82944 - ? (c < 72784 - ? (c < 72096 - ? (c < 71948 - ? (c < 71840 - ? (c < 71680 - ? (c >= 71488 && c <= 71494) - : c <= 71738) - : (c <= 71913 || (c < 71945 - ? (c >= 71935 && c <= 71942) - : c <= 71945))) - : (c <= 71955 || (c < 71991 - ? (c < 71960 - ? (c >= 71957 && c <= 71958) - : c <= 71989) - : (c <= 71992 || (c < 72016 - ? (c >= 71995 && c <= 72003) - : c <= 72025))))) - : (c <= 72103 || (c < 72272 - ? (c < 72163 - ? (c < 72154 - ? (c >= 72106 && c <= 72151) - : c <= 72161) - : (c <= 72164 || (c < 72263 - ? (c >= 72192 && c <= 72254) - : c <= 72263))) - : (c <= 72345 || (c < 72704 - ? (c < 72368 - ? c == 72349 - : c <= 72440) - : (c <= 72712 || (c < 72760 - ? (c >= 72714 && c <= 72758) - : c <= 72768))))))) - : (c <= 72793 || (c < 73063 - ? (c < 72971 - ? (c < 72873 - ? (c < 72850 - ? (c >= 72818 && c <= 72847) - : c <= 72871) - : (c <= 72886 || (c < 72968 - ? (c >= 72960 && c <= 72966) - : c <= 72969))) - : (c <= 73014 || (c < 73023 - ? (c < 73020 - ? c == 73018 - : c <= 73021) - : (c <= 73031 || (c < 73056 - ? (c >= 73040 && c <= 73049) - : c <= 73061))))) - : (c <= 73064 || (c < 73648 - ? (c < 73107 - ? (c < 73104 - ? (c >= 73066 && c <= 73102) - : c <= 73105) - : (c <= 73112 || (c < 73440 - ? (c >= 73120 && c <= 73129) - : c <= 73462))) - : (c <= 73648 || (c < 74880 - ? (c < 74752 - ? (c >= 73728 && c <= 74649) - : c <= 74862) - : (c <= 75075 || (c < 77824 - ? (c >= 77712 && c <= 77808) - : c <= 78894))))))))) - : (c <= 83526 || (c < 110581 - ? (c < 93053 - ? (c < 92880 - ? (c < 92768 - ? (c < 92736 - ? (c >= 92160 && c <= 92728) - : c <= 92766) - : (c <= 92777 || (c < 92864 - ? (c >= 92784 && c <= 92862) - : c <= 92873))) - : (c <= 92909 || (c < 92992 - ? (c < 92928 - ? (c >= 92912 && c <= 92916) - : c <= 92982) - : (c <= 92995 || (c < 93027 - ? (c >= 93008 && c <= 93017) - : c <= 93047))))) - : (c <= 93071 || (c < 94179 - ? (c < 94031 - ? (c < 93952 - ? (c >= 93760 && c <= 93823) - : c <= 94026) - : (c <= 94087 || (c < 94176 - ? (c >= 94095 && c <= 94111) - : c <= 94177))) - : (c <= 94180 || (c < 100352 - ? (c < 94208 - ? (c >= 94192 && c <= 94193) - : c <= 100343) - : (c <= 101589 || (c < 110576 - ? (c >= 101632 && c <= 101640) - : c <= 110579))))))) - : (c <= 110587 || (c < 118576 - ? (c < 113664 - ? (c < 110928 - ? (c < 110592 - ? (c >= 110589 && c <= 110590) - : c <= 110882) - : (c <= 110930 || (c < 110960 - ? (c >= 110948 && c <= 110951) - : c <= 111355))) - : (c <= 113770 || (c < 113808 - ? (c < 113792 - ? (c >= 113776 && c <= 113788) - : c <= 113800) - : (c <= 113817 || (c < 118528 - ? (c >= 113821 && c <= 113822) - : c <= 118573))))) - : (c <= 118598 || (c < 119362 - ? (c < 119163 - ? (c < 119149 - ? (c >= 119141 && c <= 119145) - : c <= 119154) - : (c <= 119170 || (c < 119210 - ? (c >= 119173 && c <= 119179) - : c <= 119213))) - : (c <= 119364 || (c < 119966 - ? (c < 119894 - ? (c >= 119808 && c <= 119892) - : c <= 119964) - : (c <= 119967 || c == 119970)))))))))) - : (c <= 119974 || (c < 124912 - ? (c < 120746 - ? (c < 120134 - ? (c < 120071 - ? (c < 119995 - ? (c < 119982 - ? (c >= 119977 && c <= 119980) - : c <= 119993) - : (c <= 119995 || (c < 120005 - ? (c >= 119997 && c <= 120003) - : c <= 120069))) - : (c <= 120074 || (c < 120094 - ? (c < 120086 - ? (c >= 120077 && c <= 120084) - : c <= 120092) - : (c <= 120121 || (c < 120128 - ? (c >= 120123 && c <= 120126) - : c <= 120132))))) - : (c <= 120134 || (c < 120572 - ? (c < 120488 - ? (c < 120146 - ? (c >= 120138 && c <= 120144) - : c <= 120485) - : (c <= 120512 || (c < 120540 - ? (c >= 120514 && c <= 120538) - : c <= 120570))) - : (c <= 120596 || (c < 120656 - ? (c < 120630 - ? (c >= 120598 && c <= 120628) - : c <= 120654) - : (c <= 120686 || (c < 120714 - ? (c >= 120688 && c <= 120712) - : c <= 120744))))))) - : (c <= 120770 || (c < 122907 - ? (c < 121476 - ? (c < 121344 - ? (c < 120782 - ? (c >= 120772 && c <= 120779) - : c <= 120831) - : (c <= 121398 || (c < 121461 - ? (c >= 121403 && c <= 121452) - : c <= 121461))) - : (c <= 121476 || (c < 122624 - ? (c < 121505 - ? (c >= 121499 && c <= 121503) - : c <= 121519) - : (c <= 122654 || (c < 122888 - ? (c >= 122880 && c <= 122886) - : c <= 122904))))) - : (c <= 122913 || (c < 123214 - ? (c < 123136 - ? (c < 122918 - ? (c >= 122915 && c <= 122916) - : c <= 122922) - : (c <= 123180 || (c < 123200 - ? (c >= 123184 && c <= 123197) - : c <= 123209))) - : (c <= 123214 || (c < 124896 - ? (c < 123584 - ? (c >= 123536 && c <= 123566) - : c <= 123641) - : (c <= 124902 || (c < 124909 - ? (c >= 124904 && c <= 124907) - : c <= 124910))))))))) - : (c <= 124926 || (c < 126557 - ? (c < 126521 - ? (c < 126469 - ? (c < 125184 - ? (c < 125136 - ? (c >= 124928 && c <= 125124) - : c <= 125142) - : (c <= 125259 || (c < 126464 - ? (c >= 125264 && c <= 125273) - : c <= 126467))) - : (c <= 126495 || (c < 126503 - ? (c < 126500 - ? (c >= 126497 && c <= 126498) - : c <= 126500) - : (c <= 126503 || (c < 126516 - ? (c >= 126505 && c <= 126514) - : c <= 126519))))) - : (c <= 126521 || (c < 126541 - ? (c < 126535 - ? (c < 126530 - ? c == 126523 - : c <= 126530) - : (c <= 126535 || (c < 126539 - ? c == 126537 - : c <= 126539))) - : (c <= 126543 || (c < 126551 - ? (c < 126548 - ? (c >= 126545 && c <= 126546) - : c <= 126548) - : (c <= 126551 || (c < 126555 - ? c == 126553 - : c <= 126555))))))) - : (c <= 126557 || (c < 126629 - ? (c < 126580 - ? (c < 126564 - ? (c < 126561 - ? c == 126559 - : c <= 126562) - : (c <= 126564 || (c < 126572 - ? (c >= 126567 && c <= 126570) - : c <= 126578))) - : (c <= 126583 || (c < 126592 - ? (c < 126590 - ? (c >= 126585 && c <= 126588) - : c <= 126590) - : (c <= 126601 || (c < 126625 - ? (c >= 126603 && c <= 126619) - : c <= 126627))))) - : (c <= 126633 || (c < 178208 - ? (c < 131072 - ? (c < 130032 - ? (c >= 126635 && c <= 126651) - : c <= 130041) - : (c <= 173791 || (c < 177984 - ? (c >= 173824 && c <= 177976) - : c <= 178205))) - : (c <= 183969 || (c < 196608 - ? (c < 194560 - ? (c >= 183984 && c <= 191456) - : c <= 195101) - : (c <= 201546 || (c >= 917760 && c <= 917999))))))))))))))))); -} - -static inline bool sym_identifier_character_set_3(int32_t c) { return (c < 43616 ? (c < 3782 ? (c < 2748 @@ -3538,7 +2518,7 @@ static inline bool sym_identifier_character_set_3(int32_t c) { : (c <= 201546 || (c >= 917760 && c <= 917999))))))))))))))))); } -static inline bool sym_identifier_character_set_4(int32_t c) { +static inline bool sym_identifier_character_set_3(int32_t c) { return (c < 43616 ? (c < 3782 ? (c < 2748 @@ -4561,1047 +3541,560 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(87); - if (lookahead == '"') ADVANCE(198); - if (lookahead == '(') ADVANCE(108); - if (lookahead == ')') ADVANCE(109); - if (lookahead == '+') ADVANCE(218); - if (lookahead == ',') ADVANCE(106); - if (lookahead == '-') ADVANCE(191); - if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(213); - if (lookahead == '=') ADVANCE(103); - if (lookahead == '[') ADVANCE(215); + if (eof) ADVANCE(31); + if (lookahead == '"') ADVANCE(86); + if (lookahead == '(') ADVANCE(52); + if (lookahead == ')') ADVANCE(53); + if (lookahead == '+') ADVANCE(98); + if (lookahead == ',') ADVANCE(50); + if (lookahead == '-') ADVANCE(79); + if (lookahead == '/') ADVANCE(46); + if (lookahead == ':') ADVANCE(93); + if (lookahead == '=') ADVANCE(47); + if (lookahead == '[') ADVANCE(95); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(216); - if (lookahead == '`') ADVANCE(84); - if (lookahead == 'd') ADVANCE(132); - if (lookahead == 'f') ADVANCE(114); - if (lookahead == 'p') ADVANCE(168); - if (lookahead == 'r') ADVANCE(140); - if (lookahead == 's') ADVANCE(142); - if (lookahead == 't') ADVANCE(169); - if (lookahead == 'u') ADVANCE(161); - if (lookahead == 'v') ADVANCE(117); - if (lookahead == '{') ADVANCE(105); - if (lookahead == '}') ADVANCE(107); + if (lookahead == ']') ADVANCE(96); + if (lookahead == '`') ADVANCE(28); + if (lookahead == 'd') ADVANCE(57); + if (lookahead == 'f') ADVANCE(54); + if (lookahead == 's') ADVANCE(62); + if (lookahead == 't') ADVANCE(68); + if (lookahead == 'u') ADVANCE(67); + if (lookahead == '{') ADVANCE(49); + if (lookahead == '}') ADVANCE(51); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(85) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(192); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(188); + lookahead == ' ') SKIP(29) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); END_STATE(); case 1: if (lookahead == '\n') SKIP(2) - if (lookahead == '"') ADVANCE(198); - if (lookahead == '/') ADVANCE(195); + if (lookahead == '"') ADVANCE(86); + if (lookahead == '/') ADVANCE(83); if (lookahead == '\\') ADVANCE(11); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(196); - if (lookahead != 0) ADVANCE(197); + lookahead == ' ') ADVANCE(84); + if (lookahead != 0) ADVANCE(85); END_STATE(); case 2: if (lookahead == '\n') SKIP(2) - if (lookahead == '/') ADVANCE(195); + if (lookahead == '/') ADVANCE(83); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(196); + lookahead == ' ') ADVANCE(84); if (lookahead != 0 && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); case 3: - if (lookahead == '"') ADVANCE(194); - if (lookahead == '(') ADVANCE(108); + if (lookahead == '"') ADVANCE(82); + if (lookahead == '(') ADVANCE(52); if (lookahead == '+') ADVANCE(10); - if (lookahead == '-') ADVANCE(191); + if (lookahead == '-') ADVANCE(79); if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(103); - if (lookahead == '[') ADVANCE(215); - if (lookahead == '`') ADVANCE(84); - if (lookahead == 'f') ADVANCE(114); - if (lookahead == 's') ADVANCE(143); - if (lookahead == 't') ADVANCE(169); - if (lookahead == 'u') ADVANCE(161); - if (lookahead == '{') ADVANCE(105); + if (lookahead == '=') ADVANCE(47); + if (lookahead == '[') ADVANCE(95); + if (lookahead == '`') ADVANCE(28); + if (lookahead == 'f') ADVANCE(54); + if (lookahead == 's') ADVANCE(62); + if (lookahead == 't') ADVANCE(68); + if (lookahead == 'u') ADVANCE(67); + if (lookahead == '{') ADVANCE(49); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(3) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(192); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(188); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); END_STATE(); case 4: - if (lookahead == '"') ADVANCE(194); - if (lookahead == '-') ADVANCE(191); + if (lookahead == '"') ADVANCE(82); + if (lookahead == '-') ADVANCE(79); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(215); - if (lookahead == ']') ADVANCE(216); - if (lookahead == '`') ADVANCE(84); - if (lookahead == 'f') ADVANCE(114); - if (lookahead == 's') ADVANCE(143); - if (lookahead == 't') ADVANCE(169); - if (lookahead == '{') ADVANCE(105); + if (lookahead == '[') ADVANCE(95); + if (lookahead == ']') ADVANCE(96); + if (lookahead == '`') ADVANCE(28); + if (lookahead == 'f') ADVANCE(54); + if (lookahead == 's') ADVANCE(62); + if (lookahead == 't') ADVANCE(68); + if (lookahead == '{') ADVANCE(49); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(4) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(192); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(188); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(194); + if (lookahead == '"') ADVANCE(82); if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(84); - if (lookahead == 'd') ADVANCE(33); - if (lookahead == 'p') ADVANCE(62); - if (lookahead == 'r') ADVANCE(34); - if (lookahead == 's') ADVANCE(59); - if (lookahead == 'v') ADVANCE(20); - if (lookahead == '}') ADVANCE(107); + if (lookahead == '`') ADVANCE(28); + if (lookahead == 'd') ADVANCE(14); + if (lookahead == '}') ADVANCE(51); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(5) END_STATE(); case 6: - if (lookahead == '*') ADVANCE(97); - if (lookahead == '/') ADVANCE(88); + if (lookahead == '*') ADVANCE(41); + if (lookahead == '/') ADVANCE(32); END_STATE(); case 7: - if (lookahead == '*') ADVANCE(101); + if (lookahead == '*') ADVANCE(45); if (lookahead == '/') ADVANCE(9); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(7); if (lookahead != 0) ADVANCE(8); END_STATE(); case 8: - if (lookahead == '*') ADVANCE(101); + if (lookahead == '*') ADVANCE(45); if (lookahead != 0) ADVANCE(8); END_STATE(); case 9: - if (lookahead == '*') ADVANCE(98); - if (lookahead == '/') ADVANCE(89); + if (lookahead == '*') ADVANCE(42); + if (lookahead == '/') ADVANCE(33); if (lookahead != 0) ADVANCE(8); END_STATE(); case 10: - if (lookahead == '=') ADVANCE(104); + if (lookahead == '=') ADVANCE(48); END_STATE(); case 11: - if (lookahead == 'U') ADVANCE(82); - if (lookahead == 'u') ADVANCE(78); - if (lookahead == 'x') ADVANCE(76); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(201); - if (lookahead != 0) ADVANCE(199); + if (lookahead == 'U') ADVANCE(26); + if (lookahead == 'u') ADVANCE(22); + if (lookahead == 'x') ADVANCE(20); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (lookahead != 0) ADVANCE(87); END_STATE(); case 12: - if (lookahead == '_') ADVANCE(72); + if (lookahead == '`') ADVANCE(81); + if (lookahead != 0) ADVANCE(12); END_STATE(); case 13: - if (lookahead == '_') ADVANCE(31); + if (lookahead == 'a') ADVANCE(18); END_STATE(); case 14: - if (lookahead == '_') ADVANCE(73); + if (lookahead == 'e') ADVANCE(15); END_STATE(); case 15: - if (lookahead == '_') ADVANCE(74); + if (lookahead == 'f') ADVANCE(13); END_STATE(); case 16: - if (lookahead == '`') ADVANCE(193); - if (lookahead != 0) ADVANCE(16); + if (lookahead == 'l') ADVANCE(17); END_STATE(); case 17: - if (lookahead == 'a') ADVANCE(71); + if (lookahead == 't') ADVANCE(91); END_STATE(); case 18: - if (lookahead == 'a') ADVANCE(66); + if (lookahead == 'u') ADVANCE(16); END_STATE(); case 19: - if (lookahead == 'a') ADVANCE(27); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(87); END_STATE(); case 20: - if (lookahead == 'a') ADVANCE(61); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(19); END_STATE(); case 21: - if (lookahead == 'a') ADVANCE(56); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(20); END_STATE(); case 22: - if (lookahead == 'a') ADVANCE(63); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(21); END_STATE(); case 23: - if (lookahead == 'a') ADVANCE(28); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(22); END_STATE(); case 24: - if (lookahead == 'a') ADVANCE(64); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(23); END_STATE(); case 25: - if (lookahead == 'a') ADVANCE(29); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(24); END_STATE(); case 26: - if (lookahead == 'a') ADVANCE(65); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(25); END_STATE(); case 27: - if (lookahead == 'b') ADVANCE(51); + if (lookahead != 0 && + lookahead != '\r' && + lookahead != '\\') ADVANCE(38); + if (lookahead == '\r') ADVANCE(40); + if (lookahead == '\\') ADVANCE(39); END_STATE(); case 28: - if (lookahead == 'b') ADVANCE(52); + if (lookahead != 0 && + lookahead != '`') ADVANCE(12); END_STATE(); case 29: - if (lookahead == 'b') ADVANCE(53); + if (eof) ADVANCE(31); + if (lookahead == '"') ADVANCE(82); + if (lookahead == '(') ADVANCE(52); + if (lookahead == ')') ADVANCE(53); + if (lookahead == '+') ADVANCE(98); + if (lookahead == ',') ADVANCE(50); + if (lookahead == '-') ADVANCE(79); + if (lookahead == '/') ADVANCE(46); + if (lookahead == ':') ADVANCE(93); + if (lookahead == '=') ADVANCE(47); + if (lookahead == '[') ADVANCE(95); + if (lookahead == ']') ADVANCE(96); + if (lookahead == '`') ADVANCE(28); + if (lookahead == 'd') ADVANCE(57); + if (lookahead == 'f') ADVANCE(54); + if (lookahead == 's') ADVANCE(62); + if (lookahead == 't') ADVANCE(68); + if (lookahead == 'u') ADVANCE(67); + if (lookahead == '{') ADVANCE(49); + if (lookahead == '}') ADVANCE(51); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(29) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); END_STATE(); case 30: - if (lookahead == 'c') ADVANCE(69); + if (eof) ADVANCE(31); + if (lookahead == '"') ADVANCE(82); + if (lookahead == ')') ADVANCE(53); + if (lookahead == '+') ADVANCE(97); + if (lookahead == ',') ADVANCE(50); + if (lookahead == '/') ADVANCE(6); + if (lookahead == ':') ADVANCE(93); + if (lookahead == ']') ADVANCE(96); + if (lookahead == '`') ADVANCE(28); + if (lookahead == '}') ADVANCE(51); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(30) + if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); END_STATE(); case 31: - if (lookahead == 'c') ADVANCE(60); - END_STATE(); - case 32: - if (lookahead == 'd') ADVANCE(70); - END_STATE(); - case 33: - if (lookahead == 'e') ADVANCE(40); - END_STATE(); - case 34: - if (lookahead == 'e') ADVANCE(50); - END_STATE(); - case 35: - if (lookahead == 'e') ADVANCE(203); - END_STATE(); - case 36: - if (lookahead == 'e') ADVANCE(205); - END_STATE(); - case 37: - if (lookahead == 'e') ADVANCE(209); - END_STATE(); - case 38: - if (lookahead == 'e') ADVANCE(18); - END_STATE(); - case 39: - if (lookahead == 'e') ADVANCE(14); - END_STATE(); - case 40: - if (lookahead == 'f') ADVANCE(17); - END_STATE(); - case 41: - if (lookahead == 'f') ADVANCE(46); - END_STATE(); - case 42: - if (lookahead == 'g') ADVANCE(13); - END_STATE(); - case 43: - if (lookahead == 'g') ADVANCE(15); - END_STATE(); - case 44: - if (lookahead == 'i') ADVANCE(21); - END_STATE(); - case 45: - if (lookahead == 'i') ADVANCE(19); - END_STATE(); - case 46: - if (lookahead == 'i') ADVANCE(43); - END_STATE(); - case 47: - if (lookahead == 'i') ADVANCE(23); - END_STATE(); - case 48: - if (lookahead == 'i') ADVANCE(25); - END_STATE(); - case 49: - if (lookahead == 'l') ADVANCE(67); - END_STATE(); - case 50: - if (lookahead == 'l') ADVANCE(38); - END_STATE(); - case 51: - if (lookahead == 'l') ADVANCE(35); - END_STATE(); - case 52: - if (lookahead == 'l') ADVANCE(36); - END_STATE(); - case 53: - if (lookahead == 'l') ADVANCE(37); - END_STATE(); - case 54: - if (lookahead == 'n') ADVANCE(42); - END_STATE(); - case 55: - if (lookahead == 'n') ADVANCE(41); - END_STATE(); - case 56: - if (lookahead == 'n') ADVANCE(68); - END_STATE(); - case 57: - if (lookahead == 'o') ADVANCE(32); - END_STATE(); - case 58: - if (lookahead == 'o') ADVANCE(54); - END_STATE(); - case 59: - if (lookahead == 'o') ADVANCE(58); - END_STATE(); - case 60: - if (lookahead == 'o') ADVANCE(55); - END_STATE(); - case 61: - if (lookahead == 'r') ADVANCE(44); - END_STATE(); - case 62: - if (lookahead == 'r') ADVANCE(57); - END_STATE(); - case 63: - if (lookahead == 'r') ADVANCE(45); - END_STATE(); - case 64: - if (lookahead == 'r') ADVANCE(47); - END_STATE(); - case 65: - if (lookahead == 'r') ADVANCE(48); - END_STATE(); - case 66: - if (lookahead == 's') ADVANCE(39); - END_STATE(); - case 67: - if (lookahead == 't') ADVANCE(211); - END_STATE(); - case 68: - if (lookahead == 't') ADVANCE(207); - END_STATE(); - case 69: - if (lookahead == 't') ADVANCE(12); - END_STATE(); - case 70: - if (lookahead == 'u') ADVANCE(30); - END_STATE(); - case 71: - if (lookahead == 'u') ADVANCE(49); - END_STATE(); - case 72: - if (lookahead == 'v') ADVANCE(22); - END_STATE(); - case 73: - if (lookahead == 'v') ADVANCE(24); - END_STATE(); - case 74: - if (lookahead == 'v') ADVANCE(26); - END_STATE(); - case 75: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(199); - END_STATE(); - case 76: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(75); - END_STATE(); - case 77: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(76); - END_STATE(); - case 78: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(77); - END_STATE(); - case 79: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(78); - END_STATE(); - case 80: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(79); - END_STATE(); - case 81: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(80); - END_STATE(); - case 82: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(81); - END_STATE(); - case 83: - if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(94); - if (lookahead == '\r') ADVANCE(96); - if (lookahead == '\\') ADVANCE(95); - END_STATE(); - case 84: - if (lookahead != 0 && - lookahead != '`') ADVANCE(16); - END_STATE(); - case 85: - if (eof) ADVANCE(87); - if (lookahead == '"') ADVANCE(194); - if (lookahead == '(') ADVANCE(108); - if (lookahead == ')') ADVANCE(109); - if (lookahead == '+') ADVANCE(218); - if (lookahead == ',') ADVANCE(106); - if (lookahead == '-') ADVANCE(191); - if (lookahead == '/') ADVANCE(102); - if (lookahead == ':') ADVANCE(213); - if (lookahead == '=') ADVANCE(103); - if (lookahead == '[') ADVANCE(215); - if (lookahead == ']') ADVANCE(216); - if (lookahead == '`') ADVANCE(84); - if (lookahead == 'd') ADVANCE(132); - if (lookahead == 'f') ADVANCE(114); - if (lookahead == 'p') ADVANCE(168); - if (lookahead == 'r') ADVANCE(140); - if (lookahead == 's') ADVANCE(142); - if (lookahead == 't') ADVANCE(169); - if (lookahead == 'u') ADVANCE(161); - if (lookahead == 'v') ADVANCE(117); - if (lookahead == '{') ADVANCE(105); - if (lookahead == '}') ADVANCE(107); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(85) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(192); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(188); - END_STATE(); - case 86: - if (eof) ADVANCE(87); - if (lookahead == '"') ADVANCE(194); - if (lookahead == ')') ADVANCE(109); - if (lookahead == '+') ADVANCE(217); - if (lookahead == ',') ADVANCE(106); - if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(213); - if (lookahead == ']') ADVANCE(216); - if (lookahead == '`') ADVANCE(84); - if (lookahead == '}') ADVANCE(107); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(86) - if (sym_identifier_character_set_1(lookahead)) ADVANCE(188); - END_STATE(); - case 87: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 88: + case 32: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); END_STATE(); - case 89: + case 33: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '*') ADVANCE(101); + if (lookahead == '*') ADVANCE(45); if (lookahead != 0) ADVANCE(8); END_STATE(); - case 90: + case 34: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '\\') ADVANCE(83); + if (lookahead == '\\') ADVANCE(27); if (lookahead != 0 && - lookahead != '\n') ADVANCE(94); + lookahead != '\n') ADVANCE(38); END_STATE(); - case 91: + case 35: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); - case 92: + case 36: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '*') ADVANCE(99); - if (lookahead == '/') ADVANCE(90); - if (lookahead == '\\') ADVANCE(83); + if (lookahead == '*') ADVANCE(43); + if (lookahead == '/') ADVANCE(34); + if (lookahead == '\\') ADVANCE(27); if (lookahead != 0 && - lookahead != '\n') ADVANCE(94); + lookahead != '\n') ADVANCE(38); END_STATE(); - case 93: + case 37: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '/') ADVANCE(92); - if (lookahead == '\\') ADVANCE(83); + if (lookahead == '/') ADVANCE(36); + if (lookahead == '\\') ADVANCE(27); if (lookahead == '\t' || (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(93); + lookahead == ' ') ADVANCE(37); if (lookahead != 0 && - lookahead != '\n') ADVANCE(94); + lookahead != '\n') ADVANCE(38); END_STATE(); - case 94: + case 38: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '\\') ADVANCE(83); + if (lookahead == '\\') ADVANCE(27); if (lookahead != 0 && - lookahead != '\n') ADVANCE(94); + lookahead != '\n') ADVANCE(38); END_STATE(); - case 95: + case 39: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && lookahead != '\r' && - lookahead != '\\') ADVANCE(94); - if (lookahead == '\r') ADVANCE(96); - if (lookahead == '\\') ADVANCE(95); + lookahead != '\\') ADVANCE(38); + if (lookahead == '\r') ADVANCE(40); + if (lookahead == '\\') ADVANCE(39); END_STATE(); - case 96: + case 40: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && - lookahead != '\\') ADVANCE(94); - if (lookahead == '\\') ADVANCE(83); + lookahead != '\\') ADVANCE(38); + if (lookahead == '\\') ADVANCE(27); END_STATE(); - case 97: + case 41: ACCEPT_TOKEN(anon_sym_SLASH_STAR); END_STATE(); - case 98: + case 42: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '*') ADVANCE(101); + if (lookahead == '*') ADVANCE(45); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 99: + case 43: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '\\') ADVANCE(83); + if (lookahead == '\\') ADVANCE(27); if (lookahead != 0 && - lookahead != '\n') ADVANCE(94); + lookahead != '\n') ADVANCE(38); END_STATE(); - case 100: + case 44: ACCEPT_TOKEN(anon_sym_SLASH_STAR); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); - case 101: + case 45: ACCEPT_TOKEN(aux_sym_comment_token2); - if (lookahead == '*') ADVANCE(101); + if (lookahead == '*') ADVANCE(45); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 102: + case 46: ACCEPT_TOKEN(anon_sym_SLASH); - if (lookahead == '*') ADVANCE(97); - if (lookahead == '/') ADVANCE(88); + if (lookahead == '*') ADVANCE(41); + if (lookahead == '/') ADVANCE(32); END_STATE(); - case 103: + case 47: ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); - case 104: + case 48: ACCEPT_TOKEN(anon_sym_PLUS_EQ); END_STATE(); - case 105: + case 49: ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); - case 106: + case 50: ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); - case 107: + case 51: ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); - case 108: + case 52: ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); - case 109: + case 53: ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); - case 110: + case 54: ACCEPT_TOKEN(sym_identifier); - if (lookahead == '_') ADVANCE(185); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(188); + if (lookahead == 'a') ADVANCE(66); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); END_STATE(); - case 111: + case 55: ACCEPT_TOKEN(sym_identifier); - if (lookahead == '_') ADVANCE(129); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(188); + if (lookahead == 'a') ADVANCE(74); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); END_STATE(); - case 112: + case 56: ACCEPT_TOKEN(sym_identifier); - if (lookahead == '_') ADVANCE(186); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(188); + if (lookahead == 'c') ADVANCE(72); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 113: + case 57: ACCEPT_TOKEN(sym_identifier); - if (lookahead == '_') ADVANCE(187); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(63); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 114: + case 58: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(160); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(56); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 115: + case 59: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(125); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(77); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 116: + case 60: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(182); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(71); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 117: + case 61: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(170); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(78); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 118: + case 62: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(164); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'e') ADVANCE(64); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 119: + case 63: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(171); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'f') ADVANCE(55); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 120: + case 64: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(176); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'l') ADVANCE(58); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 121: + case 65: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(126); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'l') ADVANCE(73); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 122: + case 66: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(172); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'l') ADVANCE(70); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 123: + case 67: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(127); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'n') ADVANCE(69); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 124: + case 68: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(173); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(188); + if (lookahead == 'r') ADVANCE(75); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 125: + case 69: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'b') ADVANCE(157); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 's') ADVANCE(60); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 126: + case 70: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'b') ADVANCE(158); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 's') ADVANCE(61); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 127: + case 71: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'b') ADVANCE(159); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 't') ADVANCE(94); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 128: + case 72: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(178); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 't') ADVANCE(90); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 129: + case 73: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(167); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 't') ADVANCE(92); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 130: + case 74: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(181); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 'u') ADVANCE(65); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 131: + case 75: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'd') ADVANCE(184); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (lookahead == 'u') ADVANCE(59); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 132: + case 76: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(146); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 133: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(128); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 134: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(189); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 135: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(177); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 136: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(190); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 137: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(204); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 138: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(206); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 139: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(210); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 140: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(154); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 141: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(120); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 142: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(156); - if (lookahead == 'o') ADVANCE(166); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 143: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(156); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 144: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(112); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 145: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'f') ADVANCE(151); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 146: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'f') ADVANCE(116); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 147: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'g') ADVANCE(111); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 148: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'g') ADVANCE(113); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 149: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'i') ADVANCE(118); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 150: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'i') ADVANCE(115); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 151: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'i') ADVANCE(148); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 152: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'i') ADVANCE(121); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 153: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'i') ADVANCE(123); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 154: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(141); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 155: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(179); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 156: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(133); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 157: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(137); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 158: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(138); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 159: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(139); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 160: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(175); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 161: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(174); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 162: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(147); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 163: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(145); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 164: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(180); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 165: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'o') ADVANCE(131); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 166: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'o') ADVANCE(162); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 167: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'o') ADVANCE(163); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 168: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(165); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 169: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(183); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 170: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(149); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 171: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(150); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 172: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(152); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 173: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(153); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 174: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(135); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 175: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(136); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 176: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(144); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 177: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(214); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 178: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(202); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 179: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(212); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 180: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(208); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 181: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(110); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 182: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(155); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 183: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(134); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 184: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(130); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 185: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'v') ADVANCE(119); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 186: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'v') ADVANCE(122); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 187: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'v') ADVANCE(124); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 188: - ACCEPT_TOKEN(sym_identifier); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 189: + case 77: ACCEPT_TOKEN(anon_sym_true); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 190: + case 78: ACCEPT_TOKEN(anon_sym_false); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 191: + case 79: ACCEPT_TOKEN(anon_sym_DASH); END_STATE(); - case 192: + case 80: ACCEPT_TOKEN(aux_sym_integer_literal_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(192); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); END_STATE(); - case 193: + case 81: ACCEPT_TOKEN(sym_raw_string_literal); END_STATE(); - case 194: + case 82: ACCEPT_TOKEN(anon_sym_DQUOTE); END_STATE(); - case 195: + case 83: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '*') ADVANCE(100); - if (lookahead == '/') ADVANCE(91); + if (lookahead == '*') ADVANCE(44); + if (lookahead == '/') ADVANCE(35); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); - case 196: + case 84: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '/') ADVANCE(195); + if (lookahead == '/') ADVANCE(83); if (lookahead == '\t' || (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(196); + lookahead == ' ') ADVANCE(84); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); - case 197: + case 85: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(197); + lookahead != '\\') ADVANCE(85); END_STATE(); - case 198: + case 86: ACCEPT_TOKEN(anon_sym_DQUOTE2); END_STATE(); - case 199: + case 87: ACCEPT_TOKEN(sym_escape_sequence); END_STATE(); - case 200: + case 88: ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(199); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(87); END_STATE(); - case 201: + case 89: ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(200); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(88); END_STATE(); - case 202: + case 90: ACCEPT_TOKEN(anon_sym_select); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 203: - ACCEPT_TOKEN(anon_sym_product_variable); - END_STATE(); - case 204: - ACCEPT_TOKEN(anon_sym_product_variable); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 205: - ACCEPT_TOKEN(anon_sym_release_variable); - END_STATE(); - case 206: - ACCEPT_TOKEN(anon_sym_release_variable); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 207: - ACCEPT_TOKEN(anon_sym_variant); - END_STATE(); - case 208: - ACCEPT_TOKEN(anon_sym_variant); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 209: - ACCEPT_TOKEN(anon_sym_soong_config_variable); - END_STATE(); - case 210: - ACCEPT_TOKEN(anon_sym_soong_config_variable); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); - END_STATE(); - case 211: + case 91: ACCEPT_TOKEN(anon_sym_default); END_STATE(); - case 212: + case 92: ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 213: + case 93: ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); - case 214: + case 94: ACCEPT_TOKEN(anon_sym_unset); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(188); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); END_STATE(); - case 215: + case 95: ACCEPT_TOKEN(anon_sym_LBRACK); END_STATE(); - case 216: + case 96: ACCEPT_TOKEN(anon_sym_RBRACK); END_STATE(); - case 217: + case 97: ACCEPT_TOKEN(anon_sym_PLUS); END_STATE(); - case 218: + case 98: ACCEPT_TOKEN(anon_sym_PLUS); - if (lookahead == '=') ADVANCE(104); + if (lookahead == '=') ADVANCE(48); END_STATE(); default: return false; @@ -5610,7 +4103,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 86}, + [1] = {.lex_state = 30}, [2] = {.lex_state = 3}, [3] = {.lex_state = 4}, [4] = {.lex_state = 4}, @@ -5620,89 +4113,89 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 86}, - [12] = {.lex_state = 5}, + [11] = {.lex_state = 30}, + [12] = {.lex_state = 30}, [13] = {.lex_state = 5}, - [14] = {.lex_state = 5}, - [15] = {.lex_state = 86}, - [16] = {.lex_state = 86}, - [17] = {.lex_state = 86}, - [18] = {.lex_state = 86}, - [19] = {.lex_state = 86}, - [20] = {.lex_state = 86}, - [21] = {.lex_state = 86}, - [22] = {.lex_state = 86}, - [23] = {.lex_state = 86}, - [24] = {.lex_state = 86}, - [25] = {.lex_state = 86}, - [26] = {.lex_state = 86}, - [27] = {.lex_state = 86}, - [28] = {.lex_state = 86}, - [29] = {.lex_state = 86}, - [30] = {.lex_state = 86}, - [31] = {.lex_state = 86}, - [32] = {.lex_state = 86}, - [33] = {.lex_state = 86}, - [34] = {.lex_state = 86}, - [35] = {.lex_state = 5}, - [36] = {.lex_state = 1}, - [37] = {.lex_state = 3}, - [38] = {.lex_state = 86}, - [39] = {.lex_state = 86}, + [14] = {.lex_state = 30}, + [15] = {.lex_state = 30}, + [16] = {.lex_state = 5}, + [17] = {.lex_state = 5}, + [18] = {.lex_state = 30}, + [19] = {.lex_state = 30}, + [20] = {.lex_state = 30}, + [21] = {.lex_state = 30}, + [22] = {.lex_state = 30}, + [23] = {.lex_state = 30}, + [24] = {.lex_state = 30}, + [25] = {.lex_state = 30}, + [26] = {.lex_state = 30}, + [27] = {.lex_state = 30}, + [28] = {.lex_state = 30}, + [29] = {.lex_state = 30}, + [30] = {.lex_state = 30}, + [31] = {.lex_state = 30}, + [32] = {.lex_state = 30}, + [33] = {.lex_state = 30}, + [34] = {.lex_state = 30}, + [35] = {.lex_state = 30}, + [36] = {.lex_state = 30}, + [37] = {.lex_state = 30}, + [38] = {.lex_state = 1}, + [39] = {.lex_state = 3}, [40] = {.lex_state = 1}, - [41] = {.lex_state = 86}, - [42] = {.lex_state = 5}, + [41] = {.lex_state = 5}, + [42] = {.lex_state = 30}, [43] = {.lex_state = 1}, - [44] = {.lex_state = 86}, - [45] = {.lex_state = 86}, - [46] = {.lex_state = 86}, - [47] = {.lex_state = 0}, - [48] = {.lex_state = 1}, - [49] = {.lex_state = 86}, - [50] = {.lex_state = 0}, + [44] = {.lex_state = 30}, + [45] = {.lex_state = 0}, + [46] = {.lex_state = 0}, + [47] = {.lex_state = 30}, + [48] = {.lex_state = 0}, + [49] = {.lex_state = 30}, + [50] = {.lex_state = 30}, [51] = {.lex_state = 0}, - [52] = {.lex_state = 86}, - [53] = {.lex_state = 86}, - [54] = {.lex_state = 0}, - [55] = {.lex_state = 86}, + [52] = {.lex_state = 30}, + [53] = {.lex_state = 30}, + [54] = {.lex_state = 1}, + [55] = {.lex_state = 30}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 86}, - [58] = {.lex_state = 86}, - [59] = {.lex_state = 86}, + [57] = {.lex_state = 30}, + [58] = {.lex_state = 30}, + [59] = {.lex_state = 0}, [60] = {.lex_state = 0}, - [61] = {.lex_state = 86}, - [62] = {.lex_state = 0}, - [63] = {.lex_state = 0}, + [61] = {.lex_state = 0}, + [62] = {.lex_state = 30}, + [63] = {.lex_state = 30}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 86}, - [66] = {.lex_state = 86}, - [67] = {.lex_state = 86}, + [65] = {.lex_state = 30}, + [66] = {.lex_state = 30}, + [67] = {.lex_state = 0}, [68] = {.lex_state = 0}, - [69] = {.lex_state = 86}, + [69] = {.lex_state = 30}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 86}, - [72] = {.lex_state = 0}, - [73] = {.lex_state = 86}, - [74] = {.lex_state = 86}, - [75] = {.lex_state = 86}, - [76] = {.lex_state = 86}, - [77] = {.lex_state = 86}, - [78] = {.lex_state = 86}, - [79] = {.lex_state = 86}, - [80] = {.lex_state = 0}, - [81] = {.lex_state = 86}, - [82] = {.lex_state = 86}, - [83] = {.lex_state = 86}, - [84] = {.lex_state = 86}, - [85] = {.lex_state = 86}, - [86] = {.lex_state = 86}, - [87] = {.lex_state = 86}, - [88] = {.lex_state = 86}, - [89] = {.lex_state = 93}, - [90] = {.lex_state = 0}, - [91] = {.lex_state = 0}, + [71] = {.lex_state = 0}, + [72] = {.lex_state = 30}, + [73] = {.lex_state = 30}, + [74] = {.lex_state = 30}, + [75] = {.lex_state = 30}, + [76] = {.lex_state = 0}, + [77] = {.lex_state = 30}, + [78] = {.lex_state = 0}, + [79] = {.lex_state = 0}, + [80] = {.lex_state = 30}, + [81] = {.lex_state = 30}, + [82] = {.lex_state = 30}, + [83] = {.lex_state = 30}, + [84] = {.lex_state = 30}, + [85] = {.lex_state = 30}, + [86] = {.lex_state = 30}, + [87] = {.lex_state = 30}, + [88] = {.lex_state = 30}, + [89] = {.lex_state = 30}, + [90] = {.lex_state = 30}, + [91] = {.lex_state = 30}, [92] = {.lex_state = 0}, - [93] = {.lex_state = 0}, + [93] = {.lex_state = 30}, [94] = {.lex_state = 0}, [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, @@ -5718,11 +4211,14 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 7}, + [109] = {.lex_state = 37}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, - [112] = {(TSStateId)(-1)}, - [113] = {(TSStateId)(-1)}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 7}, + [114] = {.lex_state = 0}, + [115] = {(TSStateId)(-1)}, + [116] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -5749,10 +4245,6 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_DQUOTE2] = ACTIONS(1), [sym_escape_sequence] = ACTIONS(1), [anon_sym_select] = ACTIONS(1), - [anon_sym_product_variable] = ACTIONS(1), - [anon_sym_release_variable] = ACTIONS(1), - [anon_sym_variant] = ACTIONS(1), - [anon_sym_soong_config_variable] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), [anon_sym_COLON] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), @@ -5761,14 +4253,14 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(104), - [sym__definition] = STATE(82), + [sym_source_file] = STATE(111), + [sym__definition] = STATE(81), [sym_comment] = STATE(1), - [sym_assignment] = STATE(78), - [sym_module] = STATE(78), - [sym__old_module] = STATE(76), - [sym__new_module] = STATE(75), - [aux_sym_source_file_repeat1] = STATE(16), + [sym_assignment] = STATE(82), + [sym_module] = STATE(82), + [sym__old_module] = STATE(89), + [sym__new_module] = STATE(73), + [aux_sym_source_file_repeat1] = STATE(18), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -5802,16 +4294,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(79), 1, + STATE(80), 1, sym__expr, - STATE(91), 1, + STATE(98), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5844,14 +4336,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(58), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5884,14 +4376,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(44), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5924,14 +4416,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(58), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5962,14 +4454,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(45), 1, + STATE(47), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6000,14 +4492,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(58), 1, + STATE(27), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6038,14 +4530,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(25), 1, + STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6076,14 +4568,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6114,14 +4606,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(66), 1, + STATE(65), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(24), 7, + STATE(21), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6129,14 +4621,35 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 4, + [492] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(11), 1, + ACTIONS(37), 1, + ts_builtin_sym_end, + ACTIONS(39), 1, + sym_identifier, + STATE(73), 1, + sym__new_module, + STATE(81), 1, + sym__definition, + STATE(89), 1, + sym__old_module, + STATE(11), 2, sym_comment, - ACTIONS(37), 8, + aux_sym_source_file_repeat1, + STATE(82), 2, + sym_assignment, + sym_module, + [522] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(12), 1, + sym_comment, + ACTIONS(42), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6145,82 +4658,53 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [512] = 10, + [542] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(39), 1, - anon_sym_RBRACE, - ACTIONS(41), 1, + ACTIONS(21), 1, sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, ACTIONS(44), 1, - anon_sym_DQUOTE, - ACTIONS(47), 1, - anon_sym_default, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(90), 1, - sym_select_case, - STATE(101), 1, - sym__string_literal, - STATE(12), 2, - sym_comment, - aux_sym_select_cases_repeat1, - [544] = 11, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(50), 1, anon_sym_RBRACE, - ACTIONS(52), 1, + ACTIONS(46), 1, anon_sym_default, - STATE(11), 1, - sym_interpreted_string_literal, STATE(12), 1, - aux_sym_select_cases_repeat1, + sym_interpreted_string_literal, STATE(13), 1, sym_comment, - STATE(90), 1, - sym_select_case, - STATE(101), 1, + STATE(16), 1, + aux_sym_select_cases_repeat1, + STATE(100), 1, sym__string_literal, - [578] = 11, + STATE(106), 1, + sym_select_case, + [576] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(52), 1, - anon_sym_default, - ACTIONS(54), 1, - anon_sym_RBRACE, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(13), 1, - aux_sym_select_cases_repeat1, STATE(14), 1, sym_comment, - STATE(90), 1, - sym_select_case, - STATE(101), 1, - sym__string_literal, - [612] = 4, + ACTIONS(48), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [596] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(15), 1, sym_comment, - ACTIONS(56), 8, + ACTIONS(50), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6229,63 +4713,71 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [632] = 10, + [616] = 10, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(52), 1, + anon_sym_RBRACE, + ACTIONS(54), 1, + sym_raw_string_literal, + ACTIONS(57), 1, + anon_sym_DQUOTE, + ACTIONS(60), 1, + anon_sym_default, + STATE(12), 1, + sym_interpreted_string_literal, + STATE(100), 1, + sym__string_literal, + STATE(106), 1, + sym_select_case, + STATE(16), 2, + sym_comment, + aux_sym_select_cases_repeat1, + [648] = 11, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(46), 1, + anon_sym_default, + ACTIONS(63), 1, + anon_sym_RBRACE, + STATE(12), 1, + sym_interpreted_string_literal, + STATE(13), 1, + aux_sym_select_cases_repeat1, + STATE(17), 1, + sym_comment, + STATE(100), 1, + sym__string_literal, + STATE(106), 1, + sym_select_case, + [682] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(58), 1, + ACTIONS(65), 1, ts_builtin_sym_end, - STATE(16), 1, - sym_comment, + STATE(11), 1, + aux_sym_source_file_repeat1, STATE(18), 1, - aux_sym_source_file_repeat1, - STATE(75), 1, - sym__new_module, - STATE(76), 1, - sym__old_module, - STATE(82), 1, - sym__definition, - STATE(78), 2, - sym_assignment, - sym_module, - [664] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(17), 1, sym_comment, - ACTIONS(60), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [684] = 9, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(62), 1, - ts_builtin_sym_end, - ACTIONS(64), 1, - sym_identifier, - STATE(75), 1, + STATE(73), 1, sym__new_module, - STATE(76), 1, - sym__old_module, - STATE(82), 1, + STATE(81), 1, sym__definition, - STATE(18), 2, - sym_comment, - aux_sym_source_file_repeat1, - STATE(78), 2, + STATE(89), 1, + sym__old_module, + STATE(82), 2, sym_assignment, sym_module, [714] = 4, @@ -6528,37 +5020,73 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1018] = 6, + [1018] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(101), 1, - anon_sym_soong_config_variable, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(99), 1, + anon_sym_RPAREN, + STATE(12), 1, + sym_interpreted_string_literal, STATE(35), 1, sym_comment, - STATE(103), 2, - sym_select_value, - sym_soong_config_variable, - ACTIONS(99), 3, - anon_sym_product_variable, - anon_sym_release_variable, - anon_sym_variant, - [1040] = 6, - ACTIONS(103), 1, + STATE(92), 1, + sym__string_literal, + [1043] = 8, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(105), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(107), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(110), 1, - anon_sym_DQUOTE2, - ACTIONS(112), 1, - sym_escape_sequence, - STATE(36), 2, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(101), 1, + anon_sym_RPAREN, + STATE(12), 1, + sym_interpreted_string_literal, + STATE(36), 1, sym_comment, + STATE(56), 1, + sym__string_literal, + [1068] = 8, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(103), 1, + anon_sym_RPAREN, + STATE(12), 1, + sym_interpreted_string_literal, + STATE(37), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1093] = 7, + ACTIONS(105), 1, + anon_sym_SLASH_SLASH, + ACTIONS(107), 1, + anon_sym_SLASH_STAR, + ACTIONS(109), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(111), 1, + anon_sym_DQUOTE2, + ACTIONS(113), 1, + sym_escape_sequence, + STATE(38), 1, + sym_comment, + STATE(40), 1, aux_sym_interpreted_string_literal_repeat1, - [1060] = 6, + [1115] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6567,57 +5095,68 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACE, ACTIONS(119), 1, anon_sym_LPAREN, - STATE(37), 1, + STATE(39), 1, sym_comment, ACTIONS(115), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1080] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(38), 1, - sym_comment, - STATE(93), 1, - sym__string_literal, - [1102] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(39), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1124] = 7, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, + [1135] = 7, ACTIONS(105), 1, + anon_sym_SLASH_SLASH, + ACTIONS(107), 1, anon_sym_SLASH_STAR, - ACTIONS(121), 1, + ACTIONS(109), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(123), 1, - anon_sym_DQUOTE2, - ACTIONS(125), 1, + ACTIONS(113), 1, sym_escape_sequence, + ACTIONS(121), 1, + anon_sym_DQUOTE2, STATE(40), 1, sym_comment, STATE(43), 1, aux_sym_interpreted_string_literal_repeat1, - [1146] = 7, + [1157] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(41), 1, + sym_comment, + ACTIONS(52), 4, + anon_sym_RBRACE, + sym_raw_string_literal, + anon_sym_DQUOTE, + anon_sym_default, + [1173] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(123), 1, + anon_sym_COMMA, + ACTIONS(125), 1, + anon_sym_RBRACK, + ACTIONS(127), 1, + anon_sym_PLUS, + STATE(42), 1, + sym_comment, + STATE(60), 1, + aux_sym_list_expression_repeat1, + [1195] = 6, + ACTIONS(105), 1, + anon_sym_SLASH_SLASH, + ACTIONS(107), 1, + anon_sym_SLASH_STAR, + ACTIONS(129), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(132), 1, + anon_sym_DQUOTE2, + ACTIONS(134), 1, + sym_escape_sequence, + STATE(43), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1215] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6626,297 +5165,255 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(11), 1, + STATE(12), 1, sym_interpreted_string_literal, - STATE(41), 1, - sym_comment, - STATE(105), 1, - sym__string_literal, - [1168] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(42), 1, - sym_comment, - ACTIONS(39), 4, - anon_sym_RBRACE, - sym_raw_string_literal, - anon_sym_DQUOTE, - anon_sym_default, - [1184] = 7, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(121), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(125), 1, - sym_escape_sequence, - ACTIONS(127), 1, - anon_sym_DQUOTE2, - STATE(36), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(43), 1, - sym_comment, - [1206] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(129), 1, - anon_sym_COMMA, - ACTIONS(131), 1, - anon_sym_RBRACK, - ACTIONS(133), 1, - anon_sym_PLUS, STATE(44), 1, sym_comment, - STATE(62), 1, - aux_sym_list_expression_repeat1, - [1228] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(45), 1, - sym_comment, - ACTIONS(135), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1245] = 6, + STATE(92), 1, + sym__string_literal, + [1237] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(137), 1, - anon_sym_RBRACE, + anon_sym_COMMA, ACTIONS(139), 1, - sym_identifier, - STATE(46), 1, + anon_sym_RBRACE, + STATE(45), 1, sym_comment, - STATE(47), 1, - sym__colon_property, - [1264] = 6, + STATE(64), 1, + aux_sym__old_module_repeat1, + [1256] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(99), 1, + anon_sym_RPAREN, ACTIONS(141), 1, anon_sym_COMMA, - ACTIONS(143), 1, - anon_sym_RBRACE, - STATE(47), 1, + STATE(46), 1, sym_comment, - STATE(56), 1, - aux_sym__old_module_repeat1, - [1283] = 5, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - aux_sym_interpreted_string_literal_token1, - STATE(48), 1, - sym_comment, - ACTIONS(147), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1300] = 6, + STATE(61), 1, + aux_sym_select_value_repeat1, + [1275] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(127), 1, + anon_sym_PLUS, + STATE(47), 1, + sym_comment, + ACTIONS(143), 2, + ts_builtin_sym_end, sym_identifier, - ACTIONS(149), 1, + [1292] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + anon_sym_COMMA, + ACTIONS(147), 1, anon_sym_RBRACE, + STATE(48), 1, + sym_comment, + STATE(64), 1, + aux_sym__old_module_repeat1, + [1311] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(149), 1, + anon_sym_RPAREN, + ACTIONS(151), 1, + sym_identifier, STATE(49), 1, sym_comment, - STATE(70), 1, + STATE(78), 1, + sym__equal_property, + [1330] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(153), 1, + anon_sym_RBRACE, + ACTIONS(155), 1, + sym_identifier, + STATE(50), 1, + sym_comment, + STATE(71), 1, sym__colon_property, - [1319] = 5, + [1349] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(157), 1, + anon_sym_COMMA, + ACTIONS(159), 1, + anon_sym_RPAREN, + STATE(51), 1, + sym_comment, + STATE(67), 1, + aux_sym__new_module_repeat1, + [1368] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, + sym_identifier, + ACTIONS(161), 1, + anon_sym_RBRACE, + STATE(52), 1, + sym_comment, + STATE(76), 1, + sym__colon_property, + [1387] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(151), 1, - anon_sym_COMMA, - ACTIONS(154), 1, - anon_sym_RBRACK, - STATE(50), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1336] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(156), 1, - anon_sym_COMMA, - ACTIONS(158), 1, - anon_sym_RBRACE, - STATE(51), 1, - sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, - [1355] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(160), 1, + sym_identifier, + ACTIONS(163), 1, anon_sym_RPAREN, - ACTIONS(162), 1, - sym_identifier, - STATE(52), 1, - sym_comment, - STATE(72), 1, - sym__equal_property, - [1374] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(139), 1, - sym_identifier, - ACTIONS(164), 1, - anon_sym_RBRACE, STATE(53), 1, sym_comment, - STATE(60), 1, - sym__colon_property, - [1393] = 6, - ACTIONS(3), 1, + STATE(68), 1, + sym__equal_property, + [1406] = 5, + ACTIONS(105), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(107), 1, anon_sym_SLASH_STAR, - ACTIONS(166), 1, - anon_sym_COMMA, - ACTIONS(168), 1, - anon_sym_RPAREN, + ACTIONS(165), 1, + aux_sym_interpreted_string_literal_token1, STATE(54), 1, sym_comment, - STATE(64), 1, - aux_sym__new_module_repeat1, - [1412] = 6, + ACTIONS(167), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1423] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(155), 1, sym_identifier, - ACTIONS(170), 1, + ACTIONS(169), 1, anon_sym_RBRACE, STATE(55), 1, sym_comment, - STATE(70), 1, + STATE(59), 1, sym__colon_property, - [1431] = 6, + [1442] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(171), 1, anon_sym_COMMA, - ACTIONS(174), 1, - anon_sym_RBRACE, + ACTIONS(173), 1, + anon_sym_RPAREN, + STATE(46), 1, + aux_sym_select_value_repeat1, STATE(56), 1, sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, - [1450] = 5, + [1461] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(127), 1, anon_sym_PLUS, STATE(57), 1, sym_comment, - ACTIONS(176), 2, - ts_builtin_sym_end, - sym_identifier, - [1467] = 5, + ACTIONS(175), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [1478] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, + ACTIONS(155), 1, + sym_identifier, + ACTIONS(177), 1, + anon_sym_RBRACE, STATE(58), 1, sym_comment, - ACTIONS(178), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1484] = 6, + STATE(76), 1, + sym__colon_property, + [1497] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RPAREN, + ACTIONS(179), 1, + anon_sym_COMMA, + ACTIONS(181), 1, + anon_sym_RBRACE, + STATE(48), 1, + aux_sym__old_module_repeat1, STATE(59), 1, sym_comment, - STATE(63), 1, - sym__equal_property, - [1503] = 6, + [1516] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(182), 1, + ACTIONS(183), 1, anon_sym_COMMA, - ACTIONS(184), 1, - anon_sym_RBRACE, - STATE(51), 1, - aux_sym__old_module_repeat1, + ACTIONS(185), 1, + anon_sym_RBRACK, STATE(60), 1, sym_comment, - [1522] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(139), 1, - sym_identifier, - ACTIONS(186), 1, - anon_sym_RBRACE, - STATE(61), 1, - sym_comment, STATE(70), 1, - sym__colon_property, - [1541] = 6, + aux_sym_list_expression_repeat1, + [1535] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(188), 1, + ACTIONS(187), 1, anon_sym_COMMA, ACTIONS(190), 1, - anon_sym_RBRACK, - STATE(50), 1, - aux_sym_list_expression_repeat1, - STATE(62), 1, + anon_sym_RPAREN, + STATE(61), 2, sym_comment, - [1560] = 6, + aux_sym_select_value_repeat1, + [1552] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(192), 1, + ACTIONS(127), 1, + anon_sym_PLUS, + STATE(62), 1, + sym_comment, + ACTIONS(192), 2, anon_sym_COMMA, + anon_sym_RBRACE, + [1569] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, + sym_identifier, ACTIONS(194), 1, - anon_sym_RPAREN, - STATE(54), 1, - aux_sym__new_module_repeat1, + anon_sym_RBRACE, STATE(63), 1, sym_comment, - [1579] = 5, + STATE(76), 1, + sym__colon_property, + [1588] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6924,476 +5421,517 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(196), 1, anon_sym_COMMA, ACTIONS(199), 1, - anon_sym_RPAREN, + anon_sym_RBRACE, STATE(64), 2, sym_comment, - aux_sym__new_module_repeat1, - [1596] = 6, + aux_sym__old_module_repeat1, + [1605] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, - sym_identifier, - ACTIONS(201), 1, - anon_sym_RPAREN, + ACTIONS(127), 1, + anon_sym_PLUS, STATE(65), 1, sym_comment, - STATE(72), 1, - sym__equal_property, - [1615] = 5, + ACTIONS(201), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1622] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, + ACTIONS(151), 1, + sym_identifier, + ACTIONS(203), 1, + anon_sym_RPAREN, STATE(66), 1, sym_comment, - ACTIONS(203), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1632] = 6, + STATE(78), 1, + sym__equal_property, + [1641] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, - sym_identifier, ACTIONS(205), 1, - anon_sym_RBRACE, - STATE(67), 1, - sym_comment, - STATE(70), 1, - sym__colon_property, - [1651] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(207), 1, anon_sym_COMMA, - ACTIONS(210), 1, - anon_sym_RBRACE, - STATE(68), 2, + ACTIONS(208), 1, + anon_sym_RPAREN, + STATE(67), 2, sym_comment, - aux_sym__old_module_repeat1, - [1668] = 4, + aux_sym__new_module_repeat1, + [1658] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(210), 1, + anon_sym_COMMA, + ACTIONS(212), 1, + anon_sym_RPAREN, + STATE(51), 1, + aux_sym__new_module_repeat1, + STATE(68), 1, + sym_comment, + [1677] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, + sym_identifier, + ACTIONS(214), 1, + anon_sym_RBRACE, STATE(69), 1, sym_comment, - ACTIONS(212), 2, - ts_builtin_sym_end, - sym_identifier, - [1682] = 4, + STATE(76), 1, + sym__colon_property, + [1696] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(70), 1, - sym_comment, - ACTIONS(214), 2, + ACTIONS(216), 1, anon_sym_COMMA, - anon_sym_RBRACE, - [1696] = 4, + ACTIONS(219), 1, + anon_sym_RBRACK, + STATE(70), 2, + sym_comment, + aux_sym_list_expression_repeat1, + [1713] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(221), 1, + anon_sym_COMMA, + ACTIONS(223), 1, + anon_sym_RBRACE, + STATE(45), 1, + aux_sym__old_module_repeat1, STATE(71), 1, sym_comment, - ACTIONS(216), 2, - ts_builtin_sym_end, - sym_identifier, - [1710] = 4, + [1732] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(72), 1, sym_comment, - ACTIONS(218), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1724] = 4, + ACTIONS(225), 2, + ts_builtin_sym_end, + sym_identifier, + [1746] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(73), 1, sym_comment, - ACTIONS(220), 2, + ACTIONS(227), 2, ts_builtin_sym_end, sym_identifier, - [1738] = 4, + [1760] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(74), 1, sym_comment, - ACTIONS(222), 2, + ACTIONS(229), 2, ts_builtin_sym_end, sym_identifier, - [1752] = 4, + [1774] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(75), 1, sym_comment, - ACTIONS(224), 2, + ACTIONS(231), 2, ts_builtin_sym_end, sym_identifier, - [1766] = 4, + [1788] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(76), 1, sym_comment, - ACTIONS(224), 2, - ts_builtin_sym_end, - sym_identifier, - [1780] = 4, + ACTIONS(233), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1802] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(77), 1, sym_comment, - ACTIONS(226), 2, + ACTIONS(235), 2, ts_builtin_sym_end, sym_identifier, - [1794] = 4, + [1816] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(78), 1, sym_comment, - ACTIONS(228), 2, - ts_builtin_sym_end, - sym_identifier, - [1808] = 5, + ACTIONS(237), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1830] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - ACTIONS(230), 1, - anon_sym_COMMA, + ACTIONS(239), 1, + anon_sym_LBRACE, STATE(79), 1, sym_comment, - [1824] = 5, + STATE(105), 1, + sym_select_cases, + [1846] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(232), 1, - anon_sym_LBRACE, + ACTIONS(127), 1, + anon_sym_PLUS, + ACTIONS(241), 1, + anon_sym_COMMA, STATE(80), 1, sym_comment, - STATE(95), 1, - sym_select_cases, - [1840] = 4, + [1862] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(81), 1, sym_comment, - ACTIONS(234), 2, + ACTIONS(243), 2, ts_builtin_sym_end, sym_identifier, - [1854] = 4, + [1876] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(236), 2, + ACTIONS(245), 2, ts_builtin_sym_end, sym_identifier, - [1868] = 4, + [1890] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(238), 2, + ACTIONS(247), 2, ts_builtin_sym_end, sym_identifier, - [1882] = 4, + [1904] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(240), 2, + ACTIONS(249), 2, ts_builtin_sym_end, sym_identifier, - [1896] = 4, + [1918] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(242), 2, + ACTIONS(251), 2, ts_builtin_sym_end, sym_identifier, - [1910] = 5, + [1932] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(155), 1, sym_identifier, - STATE(70), 1, + STATE(76), 1, sym__colon_property, STATE(86), 1, sym_comment, - [1926] = 4, + [1948] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(253), 1, + sym_identifier, STATE(87), 1, sym_comment, - ACTIONS(244), 2, - ts_builtin_sym_end, - sym_identifier, - [1940] = 5, + STATE(103), 1, + sym_select_value, + [1964] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, + ACTIONS(151), 1, sym_identifier, - STATE(72), 1, + STATE(78), 1, sym__equal_property, STATE(88), 1, sym_comment, - [1956] = 4, - ACTIONS(103), 1, + [1980] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(105), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(246), 1, - aux_sym_comment_token1, STATE(89), 1, sym_comment, - [1969] = 4, + ACTIONS(227), 2, + ts_builtin_sym_end, + sym_identifier, + [1994] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(248), 1, - anon_sym_COMMA, STATE(90), 1, sym_comment, - [1982] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(250), 1, - anon_sym_COMMA, - STATE(91), 1, - sym_comment, - [1995] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(252), 1, - anon_sym_RPAREN, - STATE(92), 1, - sym_comment, + ACTIONS(255), 2, + ts_builtin_sym_end, + sym_identifier, [2008] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(254), 1, + STATE(91), 1, + sym_comment, + ACTIONS(257), 2, + ts_builtin_sym_end, + sym_identifier, + [2022] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(92), 1, + sym_comment, + ACTIONS(190), 2, anon_sym_COMMA, + anon_sym_RPAREN, + [2036] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - [2021] = 4, + ACTIONS(259), 2, + ts_builtin_sym_end, + sym_identifier, + [2050] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(256), 1, - anon_sym_SLASH, + ACTIONS(261), 1, + anon_sym_COMMA, STATE(94), 1, sym_comment, - [2034] = 4, + [2063] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(258), 1, - anon_sym_RPAREN, + ACTIONS(263), 1, + anon_sym_SLASH, STATE(95), 1, sym_comment, - [2047] = 4, + [2076] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(260), 1, - anon_sym_COLON, + ACTIONS(265), 1, + aux_sym_integer_literal_token1, STATE(96), 1, sym_comment, - [2060] = 4, + [2089] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, - aux_sym_integer_literal_token1, + ACTIONS(267), 1, + anon_sym_COMMA, STATE(97), 1, sym_comment, - [2073] = 4, + [2102] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(264), 1, + ACTIONS(269), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2086] = 4, + [2115] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(266), 1, - anon_sym_LPAREN, + ACTIONS(271), 1, + anon_sym_RPAREN, STATE(99), 1, sym_comment, - [2099] = 4, + [2128] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(268), 1, - anon_sym_RPAREN, + ACTIONS(273), 1, + anon_sym_COLON, STATE(100), 1, sym_comment, - [2112] = 4, + [2141] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(270), 1, - anon_sym_COLON, + ACTIONS(275), 1, + anon_sym_COMMA, STATE(101), 1, sym_comment, - [2125] = 4, + [2154] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(272), 1, - anon_sym_EQ, + ACTIONS(277), 1, + anon_sym_COLON, STATE(102), 1, sym_comment, - [2138] = 4, + [2167] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(274), 1, + ACTIONS(279), 1, anon_sym_COMMA, STATE(103), 1, sym_comment, - [2151] = 4, + [2180] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(276), 1, - ts_builtin_sym_end, + ACTIONS(281), 1, + anon_sym_LPAREN, STATE(104), 1, sym_comment, - [2164] = 4, + [2193] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(278), 1, + ACTIONS(283), 1, anon_sym_RPAREN, STATE(105), 1, sym_comment, - [2177] = 4, + [2206] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(280), 1, - anon_sym_LPAREN, + ACTIONS(285), 1, + anon_sym_COMMA, STATE(106), 1, sym_comment, - [2190] = 4, + [2219] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(282), 1, - anon_sym_LPAREN, + ACTIONS(287), 1, + anon_sym_EQ, STATE(107), 1, sym_comment, - [2203] = 4, + [2232] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(284), 1, - anon_sym_RPAREN, + ACTIONS(289), 1, + anon_sym_LPAREN, STATE(108), 1, sym_comment, - [2216] = 4, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, + [2245] = 4, ACTIONS(105), 1, + anon_sym_SLASH_SLASH, + ACTIONS(107), 1, anon_sym_SLASH_STAR, - ACTIONS(286), 1, - aux_sym_comment_token2, + ACTIONS(291), 1, + aux_sym_comment_token1, STATE(109), 1, sym_comment, - [2229] = 4, + [2258] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(288), 1, - anon_sym_COMMA, + ACTIONS(293), 1, + anon_sym_RPAREN, STATE(110), 1, sym_comment, - [2242] = 4, + [2271] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(230), 1, - anon_sym_COMMA, + ACTIONS(295), 1, + ts_builtin_sym_end, STATE(111), 1, sym_comment, - [2255] = 1, - ACTIONS(290), 1, + [2284] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(297), 1, + anon_sym_COMMA, + STATE(112), 1, + sym_comment, + [2297] = 4, + ACTIONS(105), 1, + anon_sym_SLASH_SLASH, + ACTIONS(107), 1, + anon_sym_SLASH_STAR, + ACTIONS(299), 1, + aux_sym_comment_token2, + STATE(113), 1, + sym_comment, + [2310] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(241), 1, + anon_sym_COMMA, + STATE(114), 1, + sym_comment, + [2323] = 1, + ACTIONS(301), 1, ts_builtin_sym_end, - [2259] = 1, - ACTIONS(292), 1, + [2327] = 1, + ACTIONS(303), 1, ts_builtin_sym_end, }; @@ -7408,13 +5946,13 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 512, - [SMALL_STATE(13)] = 544, - [SMALL_STATE(14)] = 578, - [SMALL_STATE(15)] = 612, - [SMALL_STATE(16)] = 632, - [SMALL_STATE(17)] = 664, - [SMALL_STATE(18)] = 684, + [SMALL_STATE(12)] = 522, + [SMALL_STATE(13)] = 542, + [SMALL_STATE(14)] = 576, + [SMALL_STATE(15)] = 596, + [SMALL_STATE(16)] = 616, + [SMALL_STATE(17)] = 648, + [SMALL_STATE(18)] = 682, [SMALL_STATE(19)] = 714, [SMALL_STATE(20)] = 733, [SMALL_STATE(21)] = 752, @@ -7432,230 +5970,238 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(33)] = 980, [SMALL_STATE(34)] = 999, [SMALL_STATE(35)] = 1018, - [SMALL_STATE(36)] = 1040, - [SMALL_STATE(37)] = 1060, - [SMALL_STATE(38)] = 1080, - [SMALL_STATE(39)] = 1102, - [SMALL_STATE(40)] = 1124, - [SMALL_STATE(41)] = 1146, - [SMALL_STATE(42)] = 1168, - [SMALL_STATE(43)] = 1184, - [SMALL_STATE(44)] = 1206, - [SMALL_STATE(45)] = 1228, - [SMALL_STATE(46)] = 1245, - [SMALL_STATE(47)] = 1264, - [SMALL_STATE(48)] = 1283, - [SMALL_STATE(49)] = 1300, - [SMALL_STATE(50)] = 1319, - [SMALL_STATE(51)] = 1336, - [SMALL_STATE(52)] = 1355, - [SMALL_STATE(53)] = 1374, - [SMALL_STATE(54)] = 1393, - [SMALL_STATE(55)] = 1412, - [SMALL_STATE(56)] = 1431, - [SMALL_STATE(57)] = 1450, - [SMALL_STATE(58)] = 1467, - [SMALL_STATE(59)] = 1484, - [SMALL_STATE(60)] = 1503, - [SMALL_STATE(61)] = 1522, - [SMALL_STATE(62)] = 1541, - [SMALL_STATE(63)] = 1560, - [SMALL_STATE(64)] = 1579, - [SMALL_STATE(65)] = 1596, - [SMALL_STATE(66)] = 1615, - [SMALL_STATE(67)] = 1632, - [SMALL_STATE(68)] = 1651, - [SMALL_STATE(69)] = 1668, - [SMALL_STATE(70)] = 1682, - [SMALL_STATE(71)] = 1696, - [SMALL_STATE(72)] = 1710, - [SMALL_STATE(73)] = 1724, - [SMALL_STATE(74)] = 1738, - [SMALL_STATE(75)] = 1752, - [SMALL_STATE(76)] = 1766, - [SMALL_STATE(77)] = 1780, - [SMALL_STATE(78)] = 1794, - [SMALL_STATE(79)] = 1808, - [SMALL_STATE(80)] = 1824, - [SMALL_STATE(81)] = 1840, - [SMALL_STATE(82)] = 1854, - [SMALL_STATE(83)] = 1868, - [SMALL_STATE(84)] = 1882, - [SMALL_STATE(85)] = 1896, - [SMALL_STATE(86)] = 1910, - [SMALL_STATE(87)] = 1926, - [SMALL_STATE(88)] = 1940, - [SMALL_STATE(89)] = 1956, - [SMALL_STATE(90)] = 1969, - [SMALL_STATE(91)] = 1982, - [SMALL_STATE(92)] = 1995, - [SMALL_STATE(93)] = 2008, - [SMALL_STATE(94)] = 2021, - [SMALL_STATE(95)] = 2034, - [SMALL_STATE(96)] = 2047, - [SMALL_STATE(97)] = 2060, - [SMALL_STATE(98)] = 2073, - [SMALL_STATE(99)] = 2086, - [SMALL_STATE(100)] = 2099, - [SMALL_STATE(101)] = 2112, - [SMALL_STATE(102)] = 2125, - [SMALL_STATE(103)] = 2138, - [SMALL_STATE(104)] = 2151, - [SMALL_STATE(105)] = 2164, - [SMALL_STATE(106)] = 2177, - [SMALL_STATE(107)] = 2190, - [SMALL_STATE(108)] = 2203, - [SMALL_STATE(109)] = 2216, - [SMALL_STATE(110)] = 2229, - [SMALL_STATE(111)] = 2242, - [SMALL_STATE(112)] = 2255, - [SMALL_STATE(113)] = 2259, + [SMALL_STATE(36)] = 1043, + [SMALL_STATE(37)] = 1068, + [SMALL_STATE(38)] = 1093, + [SMALL_STATE(39)] = 1115, + [SMALL_STATE(40)] = 1135, + [SMALL_STATE(41)] = 1157, + [SMALL_STATE(42)] = 1173, + [SMALL_STATE(43)] = 1195, + [SMALL_STATE(44)] = 1215, + [SMALL_STATE(45)] = 1237, + [SMALL_STATE(46)] = 1256, + [SMALL_STATE(47)] = 1275, + [SMALL_STATE(48)] = 1292, + [SMALL_STATE(49)] = 1311, + [SMALL_STATE(50)] = 1330, + [SMALL_STATE(51)] = 1349, + [SMALL_STATE(52)] = 1368, + [SMALL_STATE(53)] = 1387, + [SMALL_STATE(54)] = 1406, + [SMALL_STATE(55)] = 1423, + [SMALL_STATE(56)] = 1442, + [SMALL_STATE(57)] = 1461, + [SMALL_STATE(58)] = 1478, + [SMALL_STATE(59)] = 1497, + [SMALL_STATE(60)] = 1516, + [SMALL_STATE(61)] = 1535, + [SMALL_STATE(62)] = 1552, + [SMALL_STATE(63)] = 1569, + [SMALL_STATE(64)] = 1588, + [SMALL_STATE(65)] = 1605, + [SMALL_STATE(66)] = 1622, + [SMALL_STATE(67)] = 1641, + [SMALL_STATE(68)] = 1658, + [SMALL_STATE(69)] = 1677, + [SMALL_STATE(70)] = 1696, + [SMALL_STATE(71)] = 1713, + [SMALL_STATE(72)] = 1732, + [SMALL_STATE(73)] = 1746, + [SMALL_STATE(74)] = 1760, + [SMALL_STATE(75)] = 1774, + [SMALL_STATE(76)] = 1788, + [SMALL_STATE(77)] = 1802, + [SMALL_STATE(78)] = 1816, + [SMALL_STATE(79)] = 1830, + [SMALL_STATE(80)] = 1846, + [SMALL_STATE(81)] = 1862, + [SMALL_STATE(82)] = 1876, + [SMALL_STATE(83)] = 1890, + [SMALL_STATE(84)] = 1904, + [SMALL_STATE(85)] = 1918, + [SMALL_STATE(86)] = 1932, + [SMALL_STATE(87)] = 1948, + [SMALL_STATE(88)] = 1964, + [SMALL_STATE(89)] = 1980, + [SMALL_STATE(90)] = 1994, + [SMALL_STATE(91)] = 2008, + [SMALL_STATE(92)] = 2022, + [SMALL_STATE(93)] = 2036, + [SMALL_STATE(94)] = 2050, + [SMALL_STATE(95)] = 2063, + [SMALL_STATE(96)] = 2076, + [SMALL_STATE(97)] = 2089, + [SMALL_STATE(98)] = 2102, + [SMALL_STATE(99)] = 2115, + [SMALL_STATE(100)] = 2128, + [SMALL_STATE(101)] = 2141, + [SMALL_STATE(102)] = 2154, + [SMALL_STATE(103)] = 2167, + [SMALL_STATE(104)] = 2180, + [SMALL_STATE(105)] = 2193, + [SMALL_STATE(106)] = 2206, + [SMALL_STATE(107)] = 2219, + [SMALL_STATE(108)] = 2232, + [SMALL_STATE(109)] = 2245, + [SMALL_STATE(110)] = 2258, + [SMALL_STATE(111)] = 2271, + [SMALL_STATE(112)] = 2284, + [SMALL_STATE(113)] = 2297, + [SMALL_STATE(114)] = 2310, + [SMALL_STATE(115)] = 2323, + [SMALL_STATE(116)] = 2327, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(99), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(11), - [44] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(40), - [47] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(101), - [50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [56] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [58] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [64] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(39), + [42] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [50] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [52] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(12), + [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), + [60] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), + [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), - [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), - [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [246] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), - [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [256] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), - [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [276] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [286] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), - [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [107] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), + [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), + [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), + [132] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [134] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [143] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [187] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(44), + [190] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [205] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [208] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [216] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(9), + [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [257] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), + [263] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), + [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), + [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [295] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), + [299] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 0e493bb..b928e6c 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -41,7 +41,7 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (identifier) (operator) (select_expression - (soong_config_variable + (select_value (selection_type) (interpreted_string_literal) (interpreted_string_literal)) @@ -162,8 +162,7 @@ foo = select(variant(), { (operator) (select_expression (select_value - (selection_type) - (MISSING raw_string_literal)) + (selection_type)) (select_cases (select_case (interpreted_string_literal) @@ -187,14 +186,17 @@ foo = select(some_unknown_type("CONDITION"), { (assignment (identifier) (operator) - (ERROR - (identifier) - (identifier) - (interpreted_string_literal) - (interpreted_string_literal) - (default)) - (interpreted_string_literal)) - (ERROR)) + (select_expression + (select_value + (selection_type) + (interpreted_string_literal)) + (select_cases + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (default) + (interpreted_string_literal)))))) ================================================================================ Select (multiple type arguments) @@ -214,8 +216,7 @@ foo = select(release_variable("ONE", "TWO"), { (select_expression (select_value (selection_type) - (ERROR - (interpreted_string_literal)) + (interpreted_string_literal) (interpreted_string_literal)) (select_cases (select_case From 2649422636cda15bf855e681a75256d2dc837f86 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:52:36 +0000 Subject: [PATCH 11/39] Rename fields in 'select_value' This aligns with upstream, and makes more sense given their usage. --- grammar.js | 4 ++-- src/grammar.json | 4 ++-- src/node-types.json | 4 ++-- src/parser.c | 56 ++++++++++++++++++++++++--------------------- 4 files changed, 36 insertions(+), 32 deletions(-) diff --git a/grammar.js b/grammar.js index 497b8f7..ad43ec2 100644 --- a/grammar.js +++ b/grammar.js @@ -128,9 +128,9 @@ module.exports = grammar({ ), select_value: ($) => seq( - field("type", alias($.identifier, $.selection_type)), + field("name", alias($.identifier, $.selection_type)), "(", - field("condition", optional(commaSeparated($._string_literal))), + field("arguments", optional(commaSeparated($._string_literal))), ")", ), diff --git a/src/grammar.json b/src/grammar.json index c16b22d..3651dc7 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -491,7 +491,7 @@ "members": [ { "type": "FIELD", - "name": "type", + "name": "name", "content": { "type": "ALIAS", "content": { @@ -508,7 +508,7 @@ }, { "type": "FIELD", - "name": "condition", + "name": "arguments", "content": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 3e59430..cab1db6 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -453,7 +453,7 @@ "type": "select_value", "named": true, "fields": { - "condition": { + "arguments": { "multiple": true, "required": false, "types": [ @@ -471,7 +471,7 @@ } ] }, - "type": { + "name": { "multiple": false, "required": true, "types": [ diff --git a/src/parser.c b/src/parser.c index 02a91a2..34eedda 100644 --- a/src/parser.c +++ b/src/parser.c @@ -11,7 +11,7 @@ #define ALIAS_COUNT 1 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 10 +#define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 #define PRODUCTION_ID_COUNT 19 @@ -447,24 +447,26 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { }; enum ts_field_identifiers { - field_condition = 1, + field_arguments = 1, field_element = 2, field_field = 3, field_left = 4, - field_operator = 5, - field_pattern = 6, - field_property = 7, - field_right = 8, - field_type = 9, - field_value = 10, + field_name = 5, + field_operator = 6, + field_pattern = 7, + field_property = 8, + field_right = 9, + field_type = 10, + field_value = 11, }; static const char * const ts_field_names[] = { [0] = NULL, - [field_condition] = "condition", + [field_arguments] = "arguments", [field_element] = "element", [field_field] = "field", [field_left] = "left", + [field_name] = "name", [field_operator] = "operator", [field_pattern] = "pattern", [field_property] = "property", @@ -487,11 +489,11 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [11] = {.index = 23, .length = 4}, [12] = {.index = 27, .length = 2}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 5, .length = 1}, - [15] = {.index = 31, .length = 2}, - [16] = {.index = 33, .length = 3}, - [17] = {.index = 36, .length = 4}, - [18] = {.index = 40, .length = 2}, + [14] = {.index = 31, .length = 1}, + [15] = {.index = 32, .length = 2}, + [16] = {.index = 34, .length = 3}, + [17] = {.index = 37, .length = 4}, + [18] = {.index = 41, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -539,18 +541,20 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, [31] = - {field_condition, 2}, - {field_type, 0}, - [33] = - {field_condition, 2}, - {field_condition, 3}, - {field_type, 0}, - [36] = - {field_condition, 2}, - {field_condition, 3}, - {field_condition, 4}, - {field_type, 0}, - [40] = + {field_name, 0}, + [32] = + {field_arguments, 2}, + {field_name, 0}, + [34] = + {field_arguments, 2}, + {field_arguments, 3}, + {field_name, 0}, + [37] = + {field_arguments, 2}, + {field_arguments, 3}, + {field_arguments, 4}, + {field_name, 0}, + [41] = {field_pattern, 0}, {field_value, 2}, }; From f6bc0f887af9623085a4fd0846dc0169bbce62ef Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:56:10 +0000 Subject: [PATCH 12/39] Remove 'selection_type' alias --- grammar.js | 2 +- queries/highlights.scm | 3 ++- src/grammar.json | 9 ++------- src/node-types.json | 6 +----- src/parser.c | 21 +-------------------- test/corpus/select.txt | 16 ++++++++-------- 6 files changed, 15 insertions(+), 42 deletions(-) diff --git a/grammar.js b/grammar.js index ad43ec2..c108823 100644 --- a/grammar.js +++ b/grammar.js @@ -128,7 +128,7 @@ module.exports = grammar({ ), select_value: ($) => seq( - field("name", alias($.identifier, $.selection_type)), + field("name", $.identifier), "(", field("arguments", optional(commaSeparated($._string_literal))), ")", diff --git a/queries/highlights.scm b/queries/highlights.scm index 4209180..13cdcde 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -51,7 +51,8 @@ (unset) (default) ] @variable.builtin -(selection_type) @function.builtin +(select_value + name: (identifier) @function.builtin) ; }}} ; Expressions {{{ diff --git a/src/grammar.json b/src/grammar.json index 3651dc7..3c81287 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -493,13 +493,8 @@ "type": "FIELD", "name": "name", "content": { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "identifier" - }, - "named": true, - "value": "selection_type" + "type": "SYMBOL", + "name": "identifier" } }, { diff --git a/src/node-types.json b/src/node-types.json index cab1db6..3719f90 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -476,7 +476,7 @@ "required": true, "types": [ { - "type": "selection_type", + "type": "identifier", "named": true } ] @@ -578,10 +578,6 @@ "type": "select", "named": false }, - { - "type": "selection_type", - "named": true - }, { "type": "true", "named": false diff --git a/src/parser.c b/src/parser.c index 34eedda..af1eb6c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -8,7 +8,7 @@ #define STATE_COUNT 117 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 59 -#define ALIAS_COUNT 1 +#define ALIAS_COUNT 0 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 @@ -74,7 +74,6 @@ enum ts_symbol_identifiers { aux_sym_select_value_repeat1 = 56, aux_sym_select_cases_repeat1 = 57, aux_sym_list_expression_repeat1 = 58, - alias_sym_selection_type = 59, }; static const char * const ts_symbol_names[] = { @@ -137,7 +136,6 @@ static const char * const ts_symbol_names[] = { [aux_sym_select_value_repeat1] = "select_value_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", - [alias_sym_selection_type] = "selection_type", }; static const TSSymbol ts_symbol_map[] = { @@ -200,7 +198,6 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, - [alias_sym_selection_type] = alias_sym_selection_type, }; static const TSSymbolMetadata ts_symbol_metadata[] = { @@ -440,10 +437,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [alias_sym_selection_type] = { - .visible = true, - .named = true, - }, }; enum ts_field_identifiers { @@ -564,18 +557,6 @@ static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE [2] = { [1] = anon_sym_PLUS_EQ, }, - [14] = { - [0] = alias_sym_selection_type, - }, - [15] = { - [0] = alias_sym_selection_type, - }, - [16] = { - [0] = alias_sym_selection_type, - }, - [17] = { - [0] = alias_sym_selection_type, - }, }; static const uint16_t ts_non_terminal_alias_map[] = { diff --git a/test/corpus/select.txt b/test/corpus/select.txt index b928e6c..7563e96 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -15,7 +15,7 @@ foo = select(release_variable("RELEASE_TEST"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -42,7 +42,7 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal) (interpreted_string_literal)) (select_cases @@ -72,7 +72,7 @@ foo = select(variant("arch"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -102,7 +102,7 @@ foo = select(variant("VARIANT"), {}) (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases)))) @@ -126,7 +126,7 @@ foo = select(variant("VARIANT"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -162,7 +162,7 @@ foo = select(variant(), { (operator) (select_expression (select_value - (selection_type)) + (identifier)) (select_cases (select_case (interpreted_string_literal) @@ -188,7 +188,7 @@ foo = select(some_unknown_type("CONDITION"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -215,7 +215,7 @@ foo = select(release_variable("ONE", "TWO"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal) (interpreted_string_literal)) (select_cases From afdfbff7bc7674385c27e92fe01d1a9019a50fd2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:00:13 +0000 Subject: [PATCH 13/39] Add boolean-typed select values --- grammar.js | 1 + src/grammar.json | 4 + src/node-types.json | 4 + src/parser.c | 2356 ++++++++++++++++++++-------------------- test/corpus/select.txt | 27 + 5 files changed, 1237 insertions(+), 1155 deletions(-) diff --git a/grammar.js b/grammar.js index c108823..58b9b19 100644 --- a/grammar.js +++ b/grammar.js @@ -143,6 +143,7 @@ module.exports = grammar({ select_case: ($) => seq( field("pattern", choice( $._string_literal, + $.boolean_literal, alias("default", $.default), )), ":", diff --git a/src/grammar.json b/src/grammar.json index 3c81287..83b9867 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -606,6 +606,10 @@ "type": "SYMBOL", "name": "_string_literal" }, + { + "type": "SYMBOL", + "name": "boolean_literal" + }, { "type": "ALIAS", "content": { diff --git a/src/node-types.json b/src/node-types.json index 3719f90..9c77e07 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -353,6 +353,10 @@ "multiple": false, "required": true, "types": [ + { + "type": "boolean_literal", + "named": true + }, { "type": "default", "named": true diff --git a/src/parser.c b/src/parser.c index af1eb6c..82034c5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3526,560 +3526,589 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(86); - if (lookahead == '(') ADVANCE(52); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(98); - if (lookahead == ',') ADVANCE(50); - if (lookahead == '-') ADVANCE(79); - if (lookahead == '/') ADVANCE(46); - if (lookahead == ':') ADVANCE(93); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(107); + if (lookahead == ',') ADVANCE(57); + if (lookahead == '-') ADVANCE(88); + if (lookahead == '/') ADVANCE(53); + if (lookahead == ':') ADVANCE(102); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(57); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); - if (lookahead == '}') ADVANCE(51); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(64); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(29) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(36) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 1: if (lookahead == '\n') SKIP(2) - if (lookahead == '"') ADVANCE(86); - if (lookahead == '/') ADVANCE(83); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '/') ADVANCE(92); if (lookahead == '\\') ADVANCE(11); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); - if (lookahead != 0) ADVANCE(85); + lookahead == ' ') ADVANCE(93); + if (lookahead != 0) ADVANCE(94); END_STATE(); case 2: if (lookahead == '\n') SKIP(2) - if (lookahead == '/') ADVANCE(83); + if (lookahead == '/') ADVANCE(92); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); + lookahead == ' ') ADVANCE(93); if (lookahead != 0 && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); case 3: - if (lookahead == '"') ADVANCE(82); - if (lookahead == '(') ADVANCE(52); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); if (lookahead == '+') ADVANCE(10); - if (lookahead == '-') ADVANCE(79); + if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(3) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 4: - if (lookahead == '"') ADVANCE(82); - if (lookahead == '-') ADVANCE(79); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(95); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == '{') ADVANCE(49); + if (lookahead == '[') ADVANCE(104); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(4) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(82); + if (lookahead == '"') ADVANCE(91); if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(14); - if (lookahead == '}') ADVANCE(51); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(15); + if (lookahead == 'f') ADVANCE(13); + if (lookahead == 't') ADVANCE(21); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(5) END_STATE(); case 6: - if (lookahead == '*') ADVANCE(41); - if (lookahead == '/') ADVANCE(32); + if (lookahead == '*') ADVANCE(48); + if (lookahead == '/') ADVANCE(39); END_STATE(); case 7: - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead == '/') ADVANCE(9); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(7); if (lookahead != 0) ADVANCE(8); END_STATE(); case 8: - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0) ADVANCE(8); END_STATE(); case 9: - if (lookahead == '*') ADVANCE(42); - if (lookahead == '/') ADVANCE(33); + if (lookahead == '*') ADVANCE(49); + if (lookahead == '/') ADVANCE(40); if (lookahead != 0) ADVANCE(8); END_STATE(); case 10: - if (lookahead == '=') ADVANCE(48); + if (lookahead == '=') ADVANCE(55); END_STATE(); case 11: - if (lookahead == 'U') ADVANCE(26); - if (lookahead == 'u') ADVANCE(22); - if (lookahead == 'x') ADVANCE(20); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (lookahead != 0) ADVANCE(87); + if (lookahead == 'U') ADVANCE(33); + if (lookahead == 'u') ADVANCE(29); + if (lookahead == 'x') ADVANCE(27); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(98); + if (lookahead != 0) ADVANCE(96); END_STATE(); case 12: - if (lookahead == '`') ADVANCE(81); + if (lookahead == '`') ADVANCE(90); if (lookahead != 0) ADVANCE(12); END_STATE(); case 13: - if (lookahead == 'a') ADVANCE(18); + if (lookahead == 'a') ADVANCE(19); END_STATE(); case 14: - if (lookahead == 'e') ADVANCE(15); + if (lookahead == 'a') ADVANCE(25); END_STATE(); case 15: - if (lookahead == 'f') ADVANCE(13); + if (lookahead == 'e') ADVANCE(18); END_STATE(); case 16: - if (lookahead == 'l') ADVANCE(17); + if (lookahead == 'e') ADVANCE(84); END_STATE(); case 17: - if (lookahead == 't') ADVANCE(91); + if (lookahead == 'e') ADVANCE(86); END_STATE(); case 18: - if (lookahead == 'u') ADVANCE(16); + if (lookahead == 'f') ADVANCE(14); END_STATE(); case 19: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(87); + if (lookahead == 'l') ADVANCE(22); END_STATE(); case 20: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(19); + if (lookahead == 'l') ADVANCE(23); END_STATE(); case 21: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(20); + if (lookahead == 'r') ADVANCE(24); END_STATE(); case 22: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(21); + if (lookahead == 's') ADVANCE(17); END_STATE(); case 23: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(22); + if (lookahead == 't') ADVANCE(100); END_STATE(); case 24: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(23); + if (lookahead == 'u') ADVANCE(16); END_STATE(); case 25: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(24); + if (lookahead == 'u') ADVANCE(20); END_STATE(); case 26: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(25); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(96); END_STATE(); case 27: - if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\r') ADVANCE(40); - if (lookahead == '\\') ADVANCE(39); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(26); END_STATE(); case 28: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(27); + END_STATE(); + case 29: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(28); + END_STATE(); + case 30: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(29); + END_STATE(); + case 31: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(30); + END_STATE(); + case 32: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(31); + END_STATE(); + case 33: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(32); + END_STATE(); + case 34: + if (lookahead != 0 && + lookahead != '\r' && + lookahead != '\\') ADVANCE(45); + if (lookahead == '\r') ADVANCE(47); + if (lookahead == '\\') ADVANCE(46); + END_STATE(); + case 35: if (lookahead != 0 && lookahead != '`') ADVANCE(12); END_STATE(); - case 29: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(82); - if (lookahead == '(') ADVANCE(52); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(98); - if (lookahead == ',') ADVANCE(50); - if (lookahead == '-') ADVANCE(79); - if (lookahead == '/') ADVANCE(46); - if (lookahead == ':') ADVANCE(93); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(57); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); - if (lookahead == '}') ADVANCE(51); + case 36: + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(107); + if (lookahead == ',') ADVANCE(57); + if (lookahead == '-') ADVANCE(88); + if (lookahead == '/') ADVANCE(53); + if (lookahead == ':') ADVANCE(102); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(64); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(29) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(36) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 30: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(82); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(97); - if (lookahead == ',') ADVANCE(50); + case 37: + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(91); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(106); + if (lookahead == ',') ADVANCE(57); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(93); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == '}') ADVANCE(51); + if (lookahead == ':') ADVANCE(102); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(30) - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(37) + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 31: + case 38: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 32: + case 39: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); END_STATE(); - case 33: + case 40: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0) ADVANCE(8); END_STATE(); - case 34: + case 41: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 35: + case 42: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); - case 36: + case 43: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '*') ADVANCE(43); - if (lookahead == '/') ADVANCE(34); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '*') ADVANCE(50); + if (lookahead == '/') ADVANCE(41); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 37: + case 44: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '/') ADVANCE(36); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '/') ADVANCE(43); + if (lookahead == '\\') ADVANCE(34); if (lookahead == '\t' || (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(37); + lookahead == ' ') ADVANCE(44); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 38: + case 45: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 39: + case 46: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && lookahead != '\r' && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\r') ADVANCE(40); - if (lookahead == '\\') ADVANCE(39); + lookahead != '\\') ADVANCE(45); + if (lookahead == '\r') ADVANCE(47); + if (lookahead == '\\') ADVANCE(46); END_STATE(); - case 40: + case 47: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\\') ADVANCE(27); + lookahead != '\\') ADVANCE(45); + if (lookahead == '\\') ADVANCE(34); END_STATE(); - case 41: + case 48: ACCEPT_TOKEN(anon_sym_SLASH_STAR); END_STATE(); - case 42: + case 49: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 43: + case 50: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 44: + case 51: ACCEPT_TOKEN(anon_sym_SLASH_STAR); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); - case 45: + case 52: ACCEPT_TOKEN(aux_sym_comment_token2); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 46: - ACCEPT_TOKEN(anon_sym_SLASH); - if (lookahead == '*') ADVANCE(41); - if (lookahead == '/') ADVANCE(32); - END_STATE(); - case 47: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - case 48: - ACCEPT_TOKEN(anon_sym_PLUS_EQ); - END_STATE(); - case 49: - ACCEPT_TOKEN(anon_sym_LBRACE); - END_STATE(); - case 50: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 51: - ACCEPT_TOKEN(anon_sym_RBRACE); - END_STATE(); - case 52: - ACCEPT_TOKEN(anon_sym_LPAREN); - END_STATE(); case 53: - ACCEPT_TOKEN(anon_sym_RPAREN); + ACCEPT_TOKEN(anon_sym_SLASH); + if (lookahead == '*') ADVANCE(48); + if (lookahead == '/') ADVANCE(39); END_STATE(); case 54: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(66); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); case 55: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(74); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_PLUS_EQ); END_STATE(); case 56: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(72); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); case 57: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(63); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 58: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(56); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); case 59: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(77); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 60: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(71); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 61: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(78); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'a') ADVANCE(73); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); END_STATE(); case 62: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(64); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'a') ADVANCE(81); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); END_STATE(); case 63: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'f') ADVANCE(55); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'c') ADVANCE(79); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 64: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(58); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(70); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 65: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(73); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(63); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 66: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(70); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(85); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 67: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(69); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(78); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 68: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(75); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(87); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 69: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(60); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(71); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 70: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(61); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'f') ADVANCE(62); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 71: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(94); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(65); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 72: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(90); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(80); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 73: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(92); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(77); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 74: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(65); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'n') ADVANCE(76); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 75: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(59); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'r') ADVANCE(82); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 76: ACCEPT_TOKEN(sym_identifier); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 's') ADVANCE(67); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 77: - ACCEPT_TOKEN(anon_sym_true); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 's') ADVANCE(68); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 78: - ACCEPT_TOKEN(anon_sym_false); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(103); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 79: - ACCEPT_TOKEN(anon_sym_DASH); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(99); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 80: - ACCEPT_TOKEN(aux_sym_integer_literal_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(101); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 81: - ACCEPT_TOKEN(sym_raw_string_literal); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(72); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 82: - ACCEPT_TOKEN(anon_sym_DQUOTE); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(66); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 83: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '*') ADVANCE(44); - if (lookahead == '/') ADVANCE(35); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(85); + ACCEPT_TOKEN(sym_identifier); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 84: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '/') ADVANCE(83); - if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(85); + ACCEPT_TOKEN(anon_sym_true); END_STATE(); case 85: + ACCEPT_TOKEN(anon_sym_true); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 86: + ACCEPT_TOKEN(anon_sym_false); + END_STATE(); + case 87: + ACCEPT_TOKEN(anon_sym_false); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 88: + ACCEPT_TOKEN(anon_sym_DASH); + END_STATE(); + case 89: + ACCEPT_TOKEN(aux_sym_integer_literal_token1); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + END_STATE(); + case 90: + ACCEPT_TOKEN(sym_raw_string_literal); + END_STATE(); + case 91: + ACCEPT_TOKEN(anon_sym_DQUOTE); + END_STATE(); + case 92: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '*') ADVANCE(51); + if (lookahead == '/') ADVANCE(42); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(94); + END_STATE(); + case 93: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '/') ADVANCE(92); + if (lookahead == '\t' || + (11 <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(93); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(94); + END_STATE(); + case 94: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); - END_STATE(); - case 86: - ACCEPT_TOKEN(anon_sym_DQUOTE2); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_escape_sequence); - END_STATE(); - case 88: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(87); - END_STATE(); - case 89: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(88); - END_STATE(); - case 90: - ACCEPT_TOKEN(anon_sym_select); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); - END_STATE(); - case 91: - ACCEPT_TOKEN(anon_sym_default); - END_STATE(); - case 92: - ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); - END_STATE(); - case 93: - ACCEPT_TOKEN(anon_sym_COLON); - END_STATE(); - case 94: - ACCEPT_TOKEN(anon_sym_unset); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + lookahead != '\\') ADVANCE(94); END_STATE(); case 95: - ACCEPT_TOKEN(anon_sym_LBRACK); + ACCEPT_TOKEN(anon_sym_DQUOTE2); END_STATE(); case 96: - ACCEPT_TOKEN(anon_sym_RBRACK); + ACCEPT_TOKEN(sym_escape_sequence); END_STATE(); case 97: - ACCEPT_TOKEN(anon_sym_PLUS); + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(96); END_STATE(); case 98: + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(97); + END_STATE(); + case 99: + ACCEPT_TOKEN(anon_sym_select); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 100: + ACCEPT_TOKEN(anon_sym_default); + END_STATE(); + case 101: + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 102: + ACCEPT_TOKEN(anon_sym_COLON); + END_STATE(); + case 103: + ACCEPT_TOKEN(anon_sym_unset); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 104: + ACCEPT_TOKEN(anon_sym_LBRACK); + END_STATE(); + case 105: + ACCEPT_TOKEN(anon_sym_RBRACK); + END_STATE(); + case 106: ACCEPT_TOKEN(anon_sym_PLUS); - if (lookahead == '=') ADVANCE(48); + END_STATE(); + case 107: + ACCEPT_TOKEN(anon_sym_PLUS); + if (lookahead == '=') ADVANCE(55); END_STATE(); default: return false; @@ -4088,7 +4117,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 30}, + [1] = {.lex_state = 37}, [2] = {.lex_state = 3}, [3] = {.lex_state = 4}, [4] = {.lex_state = 4}, @@ -4098,89 +4127,89 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 30}, - [12] = {.lex_state = 30}, + [11] = {.lex_state = 5}, + [12] = {.lex_state = 5}, [13] = {.lex_state = 5}, - [14] = {.lex_state = 30}, - [15] = {.lex_state = 30}, - [16] = {.lex_state = 5}, - [17] = {.lex_state = 5}, - [18] = {.lex_state = 30}, - [19] = {.lex_state = 30}, - [20] = {.lex_state = 30}, - [21] = {.lex_state = 30}, - [22] = {.lex_state = 30}, - [23] = {.lex_state = 30}, - [24] = {.lex_state = 30}, - [25] = {.lex_state = 30}, - [26] = {.lex_state = 30}, - [27] = {.lex_state = 30}, - [28] = {.lex_state = 30}, - [29] = {.lex_state = 30}, - [30] = {.lex_state = 30}, - [31] = {.lex_state = 30}, - [32] = {.lex_state = 30}, - [33] = {.lex_state = 30}, - [34] = {.lex_state = 30}, - [35] = {.lex_state = 30}, - [36] = {.lex_state = 30}, - [37] = {.lex_state = 30}, - [38] = {.lex_state = 1}, - [39] = {.lex_state = 3}, - [40] = {.lex_state = 1}, - [41] = {.lex_state = 5}, - [42] = {.lex_state = 30}, - [43] = {.lex_state = 1}, - [44] = {.lex_state = 30}, - [45] = {.lex_state = 0}, - [46] = {.lex_state = 0}, - [47] = {.lex_state = 30}, + [14] = {.lex_state = 37}, + [15] = {.lex_state = 37}, + [16] = {.lex_state = 37}, + [17] = {.lex_state = 37}, + [18] = {.lex_state = 37}, + [19] = {.lex_state = 37}, + [20] = {.lex_state = 37}, + [21] = {.lex_state = 37}, + [22] = {.lex_state = 37}, + [23] = {.lex_state = 37}, + [24] = {.lex_state = 37}, + [25] = {.lex_state = 37}, + [26] = {.lex_state = 37}, + [27] = {.lex_state = 37}, + [28] = {.lex_state = 37}, + [29] = {.lex_state = 37}, + [30] = {.lex_state = 37}, + [31] = {.lex_state = 37}, + [32] = {.lex_state = 37}, + [33] = {.lex_state = 37}, + [34] = {.lex_state = 37}, + [35] = {.lex_state = 5}, + [36] = {.lex_state = 37}, + [37] = {.lex_state = 37}, + [38] = {.lex_state = 37}, + [39] = {.lex_state = 1}, + [40] = {.lex_state = 37}, + [41] = {.lex_state = 1}, + [42] = {.lex_state = 3}, + [43] = {.lex_state = 37}, + [44] = {.lex_state = 1}, + [45] = {.lex_state = 37}, + [46] = {.lex_state = 37}, + [47] = {.lex_state = 0}, [48] = {.lex_state = 0}, - [49] = {.lex_state = 30}, - [50] = {.lex_state = 30}, + [49] = {.lex_state = 37}, + [50] = {.lex_state = 37}, [51] = {.lex_state = 0}, - [52] = {.lex_state = 30}, - [53] = {.lex_state = 30}, - [54] = {.lex_state = 1}, - [55] = {.lex_state = 30}, + [52] = {.lex_state = 37}, + [53] = {.lex_state = 37}, + [54] = {.lex_state = 0}, + [55] = {.lex_state = 37}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 30}, - [58] = {.lex_state = 30}, + [57] = {.lex_state = 37}, + [58] = {.lex_state = 1}, [59] = {.lex_state = 0}, [60] = {.lex_state = 0}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 30}, - [63] = {.lex_state = 30}, + [62] = {.lex_state = 37}, + [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 30}, - [66] = {.lex_state = 30}, + [65] = {.lex_state = 37}, + [66] = {.lex_state = 37}, [67] = {.lex_state = 0}, [68] = {.lex_state = 0}, - [69] = {.lex_state = 30}, + [69] = {.lex_state = 37}, [70] = {.lex_state = 0}, [71] = {.lex_state = 0}, - [72] = {.lex_state = 30}, - [73] = {.lex_state = 30}, - [74] = {.lex_state = 30}, - [75] = {.lex_state = 30}, + [72] = {.lex_state = 37}, + [73] = {.lex_state = 37}, + [74] = {.lex_state = 37}, + [75] = {.lex_state = 37}, [76] = {.lex_state = 0}, - [77] = {.lex_state = 30}, + [77] = {.lex_state = 37}, [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 30}, - [81] = {.lex_state = 30}, - [82] = {.lex_state = 30}, - [83] = {.lex_state = 30}, - [84] = {.lex_state = 30}, - [85] = {.lex_state = 30}, - [86] = {.lex_state = 30}, - [87] = {.lex_state = 30}, - [88] = {.lex_state = 30}, - [89] = {.lex_state = 30}, - [90] = {.lex_state = 30}, - [91] = {.lex_state = 30}, + [80] = {.lex_state = 37}, + [81] = {.lex_state = 37}, + [82] = {.lex_state = 37}, + [83] = {.lex_state = 37}, + [84] = {.lex_state = 37}, + [85] = {.lex_state = 37}, + [86] = {.lex_state = 37}, + [87] = {.lex_state = 37}, + [88] = {.lex_state = 37}, + [89] = {.lex_state = 37}, + [90] = {.lex_state = 37}, + [91] = {.lex_state = 37}, [92] = {.lex_state = 0}, - [93] = {.lex_state = 30}, + [93] = {.lex_state = 37}, [94] = {.lex_state = 0}, [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, @@ -4196,7 +4225,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 37}, + [109] = {.lex_state = 44}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, [112] = {.lex_state = 0}, @@ -4245,7 +4274,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_module] = STATE(82), [sym__old_module] = STATE(89), [sym__new_module] = STATE(73), - [aux_sym_source_file_repeat1] = STATE(18), + [aux_sym_source_file_repeat1] = STATE(15), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4279,7 +4308,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(80), 1, sym__expr, @@ -4321,9 +4350,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(43), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4361,7 +4390,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, @@ -4401,7 +4430,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, @@ -4439,9 +4468,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(47), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4477,9 +4506,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(27), 1, + STATE(30), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4515,7 +4544,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(62), 1, sym__expr, @@ -4553,9 +4582,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4591,7 +4620,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(65), 1, sym__expr, @@ -4606,44 +4635,33 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 9, + [492] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(37), 1, - ts_builtin_sym_end, - ACTIONS(39), 1, - sym_identifier, - STATE(73), 1, - sym__new_module, - STATE(81), 1, - sym__definition, - STATE(89), 1, - sym__old_module, + anon_sym_RBRACE, + ACTIONS(42), 1, + sym_raw_string_literal, + ACTIONS(45), 1, + anon_sym_DQUOTE, + ACTIONS(48), 1, + anon_sym_default, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(106), 1, + sym_select_case, + ACTIONS(39), 2, + anon_sym_true, + anon_sym_false, STATE(11), 2, sym_comment, - aux_sym_source_file_repeat1, - STATE(82), 2, - sym_assignment, - sym_module, - [522] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(12), 1, - sym_comment, - ACTIONS(42), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [542] = 11, + aux_sym_select_cases_repeat1, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [529] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4652,28 +4670,59 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(44), 1, + ACTIONS(51), 1, anon_sym_RBRACE, - ACTIONS(46), 1, + ACTIONS(55), 1, anon_sym_default, STATE(12), 1, - sym_interpreted_string_literal, - STATE(13), 1, sym_comment, - STATE(16), 1, + STATE(13), 1, aux_sym_select_cases_repeat1, - STATE(100), 1, - sym__string_literal, + STATE(18), 1, + sym_interpreted_string_literal, STATE(106), 1, sym_select_case, - [576] = 4, + ACTIONS(53), 2, + anon_sym_true, + anon_sym_false, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [568] = 12, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(55), 1, + anon_sym_default, + ACTIONS(57), 1, + anon_sym_RBRACE, + STATE(11), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(106), 1, + sym_select_case, + ACTIONS(53), 2, + anon_sym_true, + anon_sym_false, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [607] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(14), 1, sym_comment, - ACTIONS(48), 8, + ACTIONS(59), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4682,80 +4731,19 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [596] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(15), 1, - sym_comment, - ACTIONS(50), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [616] = 10, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(52), 1, - anon_sym_RBRACE, - ACTIONS(54), 1, - sym_raw_string_literal, - ACTIONS(57), 1, - anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(100), 1, - sym__string_literal, - STATE(106), 1, - sym_select_case, - STATE(16), 2, - sym_comment, - aux_sym_select_cases_repeat1, - [648] = 11, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(46), 1, - anon_sym_default, - ACTIONS(63), 1, - anon_sym_RBRACE, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(17), 1, - sym_comment, - STATE(100), 1, - sym__string_literal, - STATE(106), 1, - sym_select_case, - [682] = 10, + [627] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(65), 1, + ACTIONS(61), 1, ts_builtin_sym_end, - STATE(11), 1, - aux_sym_source_file_repeat1, - STATE(18), 1, + STATE(15), 1, sym_comment, + STATE(17), 1, + aux_sym_source_file_repeat1, STATE(73), 1, sym__new_module, STATE(81), 1, @@ -4765,29 +4753,83 @@ static const uint16_t ts_small_parse_table[] = { STATE(82), 2, sym_assignment, sym_module, - [714] = 4, + [659] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(16), 1, + sym_comment, + ACTIONS(63), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [679] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(65), 1, + ts_builtin_sym_end, + ACTIONS(67), 1, + sym_identifier, + STATE(73), 1, + sym__new_module, + STATE(81), 1, + sym__definition, + STATE(89), 1, + sym__old_module, + STATE(17), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(82), 2, + sym_assignment, + sym_module, + [709] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(18), 1, + sym_comment, + ACTIONS(70), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [729] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(19), 1, sym_comment, - ACTIONS(67), 7, + ACTIONS(72), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [733] = 4, + [749] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(69), 7, + ACTIONS(74), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4795,14 +4837,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [752] = 4, + [768] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(71), 7, + ACTIONS(76), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4810,14 +4852,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [771] = 4, + [787] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(73), 7, + ACTIONS(78), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4825,14 +4867,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [790] = 4, + [806] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(75), 7, + ACTIONS(80), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4840,14 +4882,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [809] = 4, + [825] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(77), 7, + ACTIONS(82), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4855,14 +4897,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [828] = 4, + [844] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(79), 7, + ACTIONS(84), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4870,14 +4912,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [847] = 4, + [863] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(81), 7, + ACTIONS(86), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4885,14 +4927,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [866] = 4, + [882] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(83), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4900,14 +4942,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [885] = 4, + [901] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(85), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4915,14 +4957,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [904] = 4, + [920] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(87), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4930,14 +4972,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [923] = 4, + [939] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(89), 7, + ACTIONS(94), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4945,14 +4987,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [942] = 4, + [958] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(91), 7, + ACTIONS(96), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4960,14 +5002,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [961] = 4, + [977] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(93), 7, + ACTIONS(98), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4975,14 +5017,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [980] = 4, + [996] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(95), 7, + ACTIONS(100), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4990,14 +5032,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [999] = 4, + [1015] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(97), 7, + ACTIONS(102), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5005,143 +5047,21 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1018] = 8, + [1034] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(99), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, STATE(35), 1, sym_comment, - STATE(92), 1, - sym__string_literal, - [1043] = 8, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(101), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(36), 1, - sym_comment, - STATE(56), 1, - sym__string_literal, - [1068] = 8, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(103), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(37), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1093] = 7, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(109), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(111), 1, - anon_sym_DQUOTE2, - ACTIONS(113), 1, - sym_escape_sequence, - STATE(38), 1, - sym_comment, - STATE(40), 1, - aux_sym_interpreted_string_literal_repeat1, - [1115] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - anon_sym_LBRACE, - ACTIONS(119), 1, - anon_sym_LPAREN, - STATE(39), 1, - sym_comment, - ACTIONS(115), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1135] = 7, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(109), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(113), 1, - sym_escape_sequence, - ACTIONS(121), 1, - anon_sym_DQUOTE2, - STATE(40), 1, - sym_comment, - STATE(43), 1, - aux_sym_interpreted_string_literal_repeat1, - [1157] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(41), 1, - sym_comment, - ACTIONS(52), 4, + ACTIONS(37), 6, anon_sym_RBRACE, + anon_sym_true, + anon_sym_false, sym_raw_string_literal, anon_sym_DQUOTE, anon_sym_default, - [1173] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - anon_sym_COMMA, - ACTIONS(125), 1, - anon_sym_RBRACK, - ACTIONS(127), 1, - anon_sym_PLUS, - STATE(42), 1, - sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1195] = 6, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(129), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(132), 1, - anon_sym_DQUOTE2, - ACTIONS(134), 1, - sym_escape_sequence, - STATE(43), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1215] = 7, + [1052] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5150,773 +5070,897 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(12), 1, + ACTIONS(104), 1, + anon_sym_RPAREN, + STATE(18), 1, sym_interpreted_string_literal, - STATE(44), 1, + STATE(36), 1, sym_comment, STATE(92), 1, sym__string_literal, - [1237] = 6, + [1077] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(137), 1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(106), 1, + anon_sym_RPAREN, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(37), 1, + sym_comment, + STATE(47), 1, + sym__string_literal, + [1102] = 8, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(108), 1, + anon_sym_RPAREN, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(38), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1127] = 7, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(114), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(116), 1, + anon_sym_DQUOTE2, + ACTIONS(118), 1, + sym_escape_sequence, + STATE(39), 1, + sym_comment, + STATE(41), 1, + aux_sym_interpreted_string_literal_repeat1, + [1149] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(40), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1171] = 7, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(114), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(118), 1, + sym_escape_sequence, + ACTIONS(120), 1, + anon_sym_DQUOTE2, + STATE(41), 1, + sym_comment, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + [1193] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(124), 1, + anon_sym_LBRACE, + ACTIONS(126), 1, + anon_sym_LPAREN, + STATE(42), 1, + sym_comment, + ACTIONS(122), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1213] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, anon_sym_COMMA, + ACTIONS(130), 1, + anon_sym_RBRACK, + ACTIONS(132), 1, + anon_sym_PLUS, + STATE(43), 1, + sym_comment, + STATE(60), 1, + aux_sym_list_expression_repeat1, + [1235] = 6, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(134), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(137), 1, + anon_sym_DQUOTE2, ACTIONS(139), 1, + sym_escape_sequence, + STATE(44), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1255] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(142), 1, anon_sym_RBRACE, + ACTIONS(144), 1, + sym_identifier, STATE(45), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1256] = 6, + STATE(76), 1, + sym__colon_property, + [1274] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(99), 1, - anon_sym_RPAREN, - ACTIONS(141), 1, - anon_sym_COMMA, + ACTIONS(144), 1, + sym_identifier, + ACTIONS(146), 1, + anon_sym_RBRACE, STATE(46), 1, sym_comment, STATE(61), 1, - aux_sym_select_value_repeat1, - [1275] = 5, + sym__colon_property, + [1293] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, - anon_sym_PLUS, + ACTIONS(148), 1, + anon_sym_COMMA, + ACTIONS(150), 1, + anon_sym_RPAREN, STATE(47), 1, sym_comment, - ACTIONS(143), 2, - ts_builtin_sym_end, - sym_identifier, - [1292] = 6, + STATE(59), 1, + aux_sym_select_value_repeat1, + [1312] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, + ACTIONS(152), 1, anon_sym_COMMA, - ACTIONS(147), 1, + ACTIONS(154), 1, anon_sym_RBRACE, STATE(48), 1, sym_comment, STATE(64), 1, aux_sym__old_module_repeat1, - [1311] = 6, + [1331] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(149), 1, - anon_sym_RPAREN, - ACTIONS(151), 1, - sym_identifier, + ACTIONS(132), 1, + anon_sym_PLUS, STATE(49), 1, sym_comment, - STATE(78), 1, - sym__equal_property, - [1330] = 6, + ACTIONS(156), 2, + ts_builtin_sym_end, + sym_identifier, + [1348] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, - anon_sym_RBRACE, - ACTIONS(155), 1, + ACTIONS(158), 1, + anon_sym_RPAREN, + ACTIONS(160), 1, sym_identifier, STATE(50), 1, sym_comment, - STATE(71), 1, - sym__colon_property, - [1349] = 6, + STATE(78), 1, + sym__equal_property, + [1367] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, + ACTIONS(162), 1, anon_sym_COMMA, - ACTIONS(159), 1, + ACTIONS(164), 1, anon_sym_RPAREN, STATE(51), 1, sym_comment, STATE(67), 1, aux_sym__new_module_repeat1, - [1368] = 6, + [1386] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(161), 1, + ACTIONS(166), 1, anon_sym_RBRACE, STATE(52), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1387] = 6, + [1405] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(163), 1, - anon_sym_RPAREN, + ACTIONS(168), 1, + anon_sym_RBRACE, STATE(53), 1, sym_comment, - STATE(68), 1, - sym__equal_property, - [1406] = 5, - ACTIONS(105), 1, + STATE(71), 1, + sym__colon_property, + [1424] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(170), 1, + anon_sym_COMMA, + ACTIONS(172), 1, + anon_sym_RBRACE, STATE(54), 1, sym_comment, - ACTIONS(167), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1423] = 6, + STATE(64), 1, + aux_sym__old_module_repeat1, + [1443] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(160), 1, sym_identifier, - ACTIONS(169), 1, - anon_sym_RBRACE, + ACTIONS(174), 1, + anon_sym_RPAREN, STATE(55), 1, sym_comment, - STATE(59), 1, - sym__colon_property, - [1442] = 6, + STATE(70), 1, + sym__equal_property, + [1462] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(171), 1, + ACTIONS(176), 1, anon_sym_COMMA, - ACTIONS(173), 1, - anon_sym_RPAREN, - STATE(46), 1, - aux_sym_select_value_repeat1, - STATE(56), 1, + ACTIONS(179), 1, + anon_sym_RBRACK, + STATE(56), 2, sym_comment, - [1461] = 5, + aux_sym_list_expression_repeat1, + [1479] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(57), 1, sym_comment, - ACTIONS(175), 2, + ACTIONS(181), 2, anon_sym_COMMA, anon_sym_RBRACK, - [1478] = 6, - ACTIONS(3), 1, + [1496] = 5, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, - sym_identifier, - ACTIONS(177), 1, - anon_sym_RBRACE, + ACTIONS(183), 1, + aux_sym_interpreted_string_literal_token1, STATE(58), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1497] = 6, + ACTIONS(185), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1513] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(179), 1, + ACTIONS(104), 1, + anon_sym_RPAREN, + ACTIONS(187), 1, anon_sym_COMMA, - ACTIONS(181), 1, + STATE(59), 1, + sym_comment, + STATE(68), 1, + aux_sym_select_value_repeat1, + [1532] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(189), 1, + anon_sym_COMMA, + ACTIONS(191), 1, + anon_sym_RBRACK, + STATE(56), 1, + aux_sym_list_expression_repeat1, + STATE(60), 1, + sym_comment, + [1551] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(193), 1, + anon_sym_COMMA, + ACTIONS(195), 1, anon_sym_RBRACE, STATE(48), 1, aux_sym__old_module_repeat1, - STATE(59), 1, + STATE(61), 1, sym_comment, - [1516] = 6, + [1570] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(183), 1, - anon_sym_COMMA, - ACTIONS(185), 1, - anon_sym_RBRACK, - STATE(60), 1, - sym_comment, - STATE(70), 1, - aux_sym_list_expression_repeat1, - [1535] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(187), 1, - anon_sym_COMMA, - ACTIONS(190), 1, - anon_sym_RPAREN, - STATE(61), 2, - sym_comment, - aux_sym_select_value_repeat1, - [1552] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(62), 1, sym_comment, - ACTIONS(192), 2, + ACTIONS(197), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1569] = 6, + [1587] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(194), 1, + ACTIONS(199), 1, anon_sym_RBRACE, STATE(63), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1588] = 5, + [1606] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(196), 1, + ACTIONS(201), 1, anon_sym_COMMA, - ACTIONS(199), 1, + ACTIONS(204), 1, anon_sym_RBRACE, STATE(64), 2, sym_comment, aux_sym__old_module_repeat1, - [1605] = 5, + [1623] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(65), 1, sym_comment, - ACTIONS(201), 2, + ACTIONS(206), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1622] = 6, + [1640] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(160), 1, sym_identifier, - ACTIONS(203), 1, + ACTIONS(208), 1, anon_sym_RPAREN, STATE(66), 1, sym_comment, STATE(78), 1, sym__equal_property, - [1641] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(205), 1, - anon_sym_COMMA, - ACTIONS(208), 1, - anon_sym_RPAREN, - STATE(67), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1658] = 6, + [1659] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(210), 1, anon_sym_COMMA, - ACTIONS(212), 1, + ACTIONS(213), 1, anon_sym_RPAREN, - STATE(51), 1, - aux_sym__new_module_repeat1, - STATE(68), 1, + STATE(67), 2, sym_comment, - [1677] = 6, + aux_sym__new_module_repeat1, + [1676] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(215), 1, + anon_sym_COMMA, + ACTIONS(218), 1, + anon_sym_RPAREN, + STATE(68), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1693] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(144), 1, sym_identifier, - ACTIONS(214), 1, + ACTIONS(220), 1, anon_sym_RBRACE, STATE(69), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1696] = 5, + [1712] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(216), 1, + ACTIONS(222), 1, anon_sym_COMMA, - ACTIONS(219), 1, - anon_sym_RBRACK, - STATE(70), 2, + ACTIONS(224), 1, + anon_sym_RPAREN, + STATE(51), 1, + aux_sym__new_module_repeat1, + STATE(70), 1, sym_comment, - aux_sym_list_expression_repeat1, - [1713] = 6, + [1731] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(221), 1, + ACTIONS(226), 1, anon_sym_COMMA, - ACTIONS(223), 1, + ACTIONS(228), 1, anon_sym_RBRACE, - STATE(45), 1, + STATE(54), 1, aux_sym__old_module_repeat1, STATE(71), 1, sym_comment, - [1732] = 4, + [1750] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(72), 1, sym_comment, - ACTIONS(225), 2, + ACTIONS(230), 2, ts_builtin_sym_end, sym_identifier, - [1746] = 4, + [1764] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(73), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1760] = 4, + [1778] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(74), 1, sym_comment, - ACTIONS(229), 2, + ACTIONS(234), 2, ts_builtin_sym_end, sym_identifier, - [1774] = 4, + [1792] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(75), 1, sym_comment, - ACTIONS(231), 2, + ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1788] = 4, + [1806] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(76), 1, sym_comment, - ACTIONS(233), 2, + ACTIONS(238), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1802] = 4, + [1820] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(77), 1, sym_comment, - ACTIONS(235), 2, + ACTIONS(240), 2, ts_builtin_sym_end, sym_identifier, - [1816] = 4, + [1834] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(78), 1, sym_comment, - ACTIONS(237), 2, + ACTIONS(242), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1830] = 5, + [1848] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(239), 1, + ACTIONS(244), 1, anon_sym_LBRACE, STATE(79), 1, sym_comment, STATE(105), 1, sym_select_cases, - [1846] = 5, + [1864] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, - ACTIONS(241), 1, + ACTIONS(246), 1, anon_sym_COMMA, STATE(80), 1, sym_comment, - [1862] = 4, + [1880] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(81), 1, sym_comment, - ACTIONS(243), 2, + ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [1876] = 4, + [1894] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(245), 2, + ACTIONS(250), 2, ts_builtin_sym_end, sym_identifier, - [1890] = 4, + [1908] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(247), 2, + ACTIONS(252), 2, ts_builtin_sym_end, sym_identifier, - [1904] = 4, + [1922] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(249), 2, + ACTIONS(254), 2, ts_builtin_sym_end, sym_identifier, - [1918] = 4, + [1936] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(251), 2, + ACTIONS(256), 2, ts_builtin_sym_end, sym_identifier, - [1932] = 5, + [1950] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, STATE(76), 1, sym__colon_property, STATE(86), 1, sym_comment, - [1948] = 5, + [1966] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(253), 1, + ACTIONS(258), 1, sym_identifier, STATE(87), 1, sym_comment, STATE(103), 1, sym_select_value, - [1964] = 5, + [1982] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(160), 1, sym_identifier, STATE(78), 1, sym__equal_property, STATE(88), 1, sym_comment, - [1980] = 4, + [1998] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1994] = 4, + [2012] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(255), 2, + ACTIONS(260), 2, ts_builtin_sym_end, sym_identifier, - [2008] = 4, + [2026] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(257), 2, + ACTIONS(262), 2, ts_builtin_sym_end, sym_identifier, - [2022] = 4, + [2040] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(92), 1, sym_comment, - ACTIONS(190), 2, + ACTIONS(218), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2036] = 4, + [2054] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(259), 2, + ACTIONS(264), 2, ts_builtin_sym_end, sym_identifier, - [2050] = 4, + [2068] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(261), 1, + ACTIONS(266), 1, anon_sym_COMMA, STATE(94), 1, sym_comment, - [2063] = 4, + [2081] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(263), 1, + ACTIONS(268), 1, anon_sym_SLASH, STATE(95), 1, sym_comment, - [2076] = 4, + [2094] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(265), 1, + ACTIONS(270), 1, aux_sym_integer_literal_token1, STATE(96), 1, sym_comment, - [2089] = 4, + [2107] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(267), 1, + ACTIONS(272), 1, anon_sym_COMMA, STATE(97), 1, sym_comment, - [2102] = 4, + [2120] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(269), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2115] = 4, + [2133] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, + ACTIONS(276), 1, anon_sym_RPAREN, STATE(99), 1, sym_comment, - [2128] = 4, + [2146] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, + ACTIONS(278), 1, anon_sym_COLON, STATE(100), 1, sym_comment, - [2141] = 4, + [2159] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(275), 1, + ACTIONS(280), 1, anon_sym_COMMA, STATE(101), 1, sym_comment, - [2154] = 4, + [2172] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(277), 1, + ACTIONS(282), 1, anon_sym_COLON, STATE(102), 1, sym_comment, - [2167] = 4, + [2185] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(279), 1, + ACTIONS(284), 1, anon_sym_COMMA, STATE(103), 1, sym_comment, - [2180] = 4, + [2198] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(281), 1, + ACTIONS(286), 1, anon_sym_LPAREN, STATE(104), 1, sym_comment, - [2193] = 4, + [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(283), 1, + ACTIONS(288), 1, anon_sym_RPAREN, STATE(105), 1, sym_comment, - [2206] = 4, + [2224] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(285), 1, + ACTIONS(290), 1, anon_sym_COMMA, STATE(106), 1, sym_comment, - [2219] = 4, + [2237] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(287), 1, + ACTIONS(292), 1, anon_sym_EQ, STATE(107), 1, sym_comment, - [2232] = 4, + [2250] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(289), 1, + ACTIONS(294), 1, anon_sym_LPAREN, STATE(108), 1, sym_comment, - [2245] = 4, - ACTIONS(105), 1, + [2263] = 4, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(291), 1, + ACTIONS(296), 1, aux_sym_comment_token1, STATE(109), 1, sym_comment, - [2258] = 4, + [2276] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(293), 1, + ACTIONS(298), 1, anon_sym_RPAREN, STATE(110), 1, sym_comment, - [2271] = 4, + [2289] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(295), 1, + ACTIONS(300), 1, ts_builtin_sym_end, STATE(111), 1, sym_comment, - [2284] = 4, + [2302] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(297), 1, + ACTIONS(302), 1, anon_sym_COMMA, STATE(112), 1, sym_comment, - [2297] = 4, - ACTIONS(105), 1, + [2315] = 4, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(299), 1, + ACTIONS(304), 1, aux_sym_comment_token2, STATE(113), 1, sym_comment, - [2310] = 4, + [2328] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(241), 1, + ACTIONS(246), 1, anon_sym_COMMA, STATE(114), 1, sym_comment, - [2323] = 1, - ACTIONS(301), 1, + [2341] = 1, + ACTIONS(306), 1, ts_builtin_sym_end, - [2327] = 1, - ACTIONS(303), 1, + [2345] = 1, + ACTIONS(308), 1, ts_builtin_sym_end, }; @@ -5931,111 +5975,111 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 522, - [SMALL_STATE(13)] = 542, - [SMALL_STATE(14)] = 576, - [SMALL_STATE(15)] = 596, - [SMALL_STATE(16)] = 616, - [SMALL_STATE(17)] = 648, - [SMALL_STATE(18)] = 682, - [SMALL_STATE(19)] = 714, - [SMALL_STATE(20)] = 733, - [SMALL_STATE(21)] = 752, - [SMALL_STATE(22)] = 771, - [SMALL_STATE(23)] = 790, - [SMALL_STATE(24)] = 809, - [SMALL_STATE(25)] = 828, - [SMALL_STATE(26)] = 847, - [SMALL_STATE(27)] = 866, - [SMALL_STATE(28)] = 885, - [SMALL_STATE(29)] = 904, - [SMALL_STATE(30)] = 923, - [SMALL_STATE(31)] = 942, - [SMALL_STATE(32)] = 961, - [SMALL_STATE(33)] = 980, - [SMALL_STATE(34)] = 999, - [SMALL_STATE(35)] = 1018, - [SMALL_STATE(36)] = 1043, - [SMALL_STATE(37)] = 1068, - [SMALL_STATE(38)] = 1093, - [SMALL_STATE(39)] = 1115, - [SMALL_STATE(40)] = 1135, - [SMALL_STATE(41)] = 1157, - [SMALL_STATE(42)] = 1173, - [SMALL_STATE(43)] = 1195, - [SMALL_STATE(44)] = 1215, - [SMALL_STATE(45)] = 1237, - [SMALL_STATE(46)] = 1256, - [SMALL_STATE(47)] = 1275, - [SMALL_STATE(48)] = 1292, - [SMALL_STATE(49)] = 1311, - [SMALL_STATE(50)] = 1330, - [SMALL_STATE(51)] = 1349, - [SMALL_STATE(52)] = 1368, - [SMALL_STATE(53)] = 1387, - [SMALL_STATE(54)] = 1406, - [SMALL_STATE(55)] = 1423, - [SMALL_STATE(56)] = 1442, - [SMALL_STATE(57)] = 1461, - [SMALL_STATE(58)] = 1478, - [SMALL_STATE(59)] = 1497, - [SMALL_STATE(60)] = 1516, - [SMALL_STATE(61)] = 1535, - [SMALL_STATE(62)] = 1552, - [SMALL_STATE(63)] = 1569, - [SMALL_STATE(64)] = 1588, - [SMALL_STATE(65)] = 1605, - [SMALL_STATE(66)] = 1622, - [SMALL_STATE(67)] = 1641, - [SMALL_STATE(68)] = 1658, - [SMALL_STATE(69)] = 1677, - [SMALL_STATE(70)] = 1696, - [SMALL_STATE(71)] = 1713, - [SMALL_STATE(72)] = 1732, - [SMALL_STATE(73)] = 1746, - [SMALL_STATE(74)] = 1760, - [SMALL_STATE(75)] = 1774, - [SMALL_STATE(76)] = 1788, - [SMALL_STATE(77)] = 1802, - [SMALL_STATE(78)] = 1816, - [SMALL_STATE(79)] = 1830, - [SMALL_STATE(80)] = 1846, - [SMALL_STATE(81)] = 1862, - [SMALL_STATE(82)] = 1876, - [SMALL_STATE(83)] = 1890, - [SMALL_STATE(84)] = 1904, - [SMALL_STATE(85)] = 1918, - [SMALL_STATE(86)] = 1932, - [SMALL_STATE(87)] = 1948, - [SMALL_STATE(88)] = 1964, - [SMALL_STATE(89)] = 1980, - [SMALL_STATE(90)] = 1994, - [SMALL_STATE(91)] = 2008, - [SMALL_STATE(92)] = 2022, - [SMALL_STATE(93)] = 2036, - [SMALL_STATE(94)] = 2050, - [SMALL_STATE(95)] = 2063, - [SMALL_STATE(96)] = 2076, - [SMALL_STATE(97)] = 2089, - [SMALL_STATE(98)] = 2102, - [SMALL_STATE(99)] = 2115, - [SMALL_STATE(100)] = 2128, - [SMALL_STATE(101)] = 2141, - [SMALL_STATE(102)] = 2154, - [SMALL_STATE(103)] = 2167, - [SMALL_STATE(104)] = 2180, - [SMALL_STATE(105)] = 2193, - [SMALL_STATE(106)] = 2206, - [SMALL_STATE(107)] = 2219, - [SMALL_STATE(108)] = 2232, - [SMALL_STATE(109)] = 2245, - [SMALL_STATE(110)] = 2258, - [SMALL_STATE(111)] = 2271, - [SMALL_STATE(112)] = 2284, - [SMALL_STATE(113)] = 2297, - [SMALL_STATE(114)] = 2310, - [SMALL_STATE(115)] = 2323, - [SMALL_STATE(116)] = 2327, + [SMALL_STATE(12)] = 529, + [SMALL_STATE(13)] = 568, + [SMALL_STATE(14)] = 607, + [SMALL_STATE(15)] = 627, + [SMALL_STATE(16)] = 659, + [SMALL_STATE(17)] = 679, + [SMALL_STATE(18)] = 709, + [SMALL_STATE(19)] = 729, + [SMALL_STATE(20)] = 749, + [SMALL_STATE(21)] = 768, + [SMALL_STATE(22)] = 787, + [SMALL_STATE(23)] = 806, + [SMALL_STATE(24)] = 825, + [SMALL_STATE(25)] = 844, + [SMALL_STATE(26)] = 863, + [SMALL_STATE(27)] = 882, + [SMALL_STATE(28)] = 901, + [SMALL_STATE(29)] = 920, + [SMALL_STATE(30)] = 939, + [SMALL_STATE(31)] = 958, + [SMALL_STATE(32)] = 977, + [SMALL_STATE(33)] = 996, + [SMALL_STATE(34)] = 1015, + [SMALL_STATE(35)] = 1034, + [SMALL_STATE(36)] = 1052, + [SMALL_STATE(37)] = 1077, + [SMALL_STATE(38)] = 1102, + [SMALL_STATE(39)] = 1127, + [SMALL_STATE(40)] = 1149, + [SMALL_STATE(41)] = 1171, + [SMALL_STATE(42)] = 1193, + [SMALL_STATE(43)] = 1213, + [SMALL_STATE(44)] = 1235, + [SMALL_STATE(45)] = 1255, + [SMALL_STATE(46)] = 1274, + [SMALL_STATE(47)] = 1293, + [SMALL_STATE(48)] = 1312, + [SMALL_STATE(49)] = 1331, + [SMALL_STATE(50)] = 1348, + [SMALL_STATE(51)] = 1367, + [SMALL_STATE(52)] = 1386, + [SMALL_STATE(53)] = 1405, + [SMALL_STATE(54)] = 1424, + [SMALL_STATE(55)] = 1443, + [SMALL_STATE(56)] = 1462, + [SMALL_STATE(57)] = 1479, + [SMALL_STATE(58)] = 1496, + [SMALL_STATE(59)] = 1513, + [SMALL_STATE(60)] = 1532, + [SMALL_STATE(61)] = 1551, + [SMALL_STATE(62)] = 1570, + [SMALL_STATE(63)] = 1587, + [SMALL_STATE(64)] = 1606, + [SMALL_STATE(65)] = 1623, + [SMALL_STATE(66)] = 1640, + [SMALL_STATE(67)] = 1659, + [SMALL_STATE(68)] = 1676, + [SMALL_STATE(69)] = 1693, + [SMALL_STATE(70)] = 1712, + [SMALL_STATE(71)] = 1731, + [SMALL_STATE(72)] = 1750, + [SMALL_STATE(73)] = 1764, + [SMALL_STATE(74)] = 1778, + [SMALL_STATE(75)] = 1792, + [SMALL_STATE(76)] = 1806, + [SMALL_STATE(77)] = 1820, + [SMALL_STATE(78)] = 1834, + [SMALL_STATE(79)] = 1848, + [SMALL_STATE(80)] = 1864, + [SMALL_STATE(81)] = 1880, + [SMALL_STATE(82)] = 1894, + [SMALL_STATE(83)] = 1908, + [SMALL_STATE(84)] = 1922, + [SMALL_STATE(85)] = 1936, + [SMALL_STATE(86)] = 1950, + [SMALL_STATE(87)] = 1966, + [SMALL_STATE(88)] = 1982, + [SMALL_STATE(89)] = 1998, + [SMALL_STATE(90)] = 2012, + [SMALL_STATE(91)] = 2026, + [SMALL_STATE(92)] = 2040, + [SMALL_STATE(93)] = 2054, + [SMALL_STATE(94)] = 2068, + [SMALL_STATE(95)] = 2081, + [SMALL_STATE(96)] = 2094, + [SMALL_STATE(97)] = 2107, + [SMALL_STATE(98)] = 2120, + [SMALL_STATE(99)] = 2133, + [SMALL_STATE(100)] = 2146, + [SMALL_STATE(101)] = 2159, + [SMALL_STATE(102)] = 2172, + [SMALL_STATE(103)] = 2185, + [SMALL_STATE(104)] = 2198, + [SMALL_STATE(105)] = 2211, + [SMALL_STATE(106)] = 2224, + [SMALL_STATE(107)] = 2237, + [SMALL_STATE(108)] = 2250, + [SMALL_STATE(109)] = 2263, + [SMALL_STATE(110)] = 2276, + [SMALL_STATE(111)] = 2289, + [SMALL_STATE(112)] = 2302, + [SMALL_STATE(113)] = 2315, + [SMALL_STATE(114)] = 2328, + [SMALL_STATE(115)] = 2341, + [SMALL_STATE(116)] = 2345, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -6044,149 +6088,151 @@ static const TSParseActionEntry ts_parse_actions[] = { [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(39), - [42] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [50] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [52] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(12), - [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), - [60] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [107] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), - [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), - [132] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [134] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [143] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [187] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(44), - [190] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [205] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [208] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [216] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(9), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [257] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [263] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [295] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), - [299] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(18), + [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(39), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(42), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), + [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58), + [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [134] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), + [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [197] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [201] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [215] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(40), + [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [262] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), + [268] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), + [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), + [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [288] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [300] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), + [304] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), + [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 7563e96..df720d5 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -226,6 +226,33 @@ foo = select(release_variable("ONE", "TWO"), { (default) (interpreted_string_literal)))))) +================================================================================ +Select (boolean typed) +================================================================================ + +foo = select(some_boolean("IS_TRUE"), { + true: "true", + false: "false", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (interpreted_string_literal)) + (select_cases + (select_case + (boolean_literal) + (interpreted_string_literal)) + (select_case + (boolean_literal) + (interpreted_string_literal)))))) + ================================================================================ Select as an identifier ================================================================================ From 6ca4592d846adfde30547f3c689793cb8c2958e1 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:23:06 +0000 Subject: [PATCH 14/39] Remove trailing commas in 'select_value' arguments --- grammar.js | 6 +- src/grammar.json | 12 - src/parser.c | 1471 +++++++++++++++++++--------------------- test/corpus/select.txt | 28 + 4 files changed, 738 insertions(+), 779 deletions(-) diff --git a/grammar.js b/grammar.js index 58b9b19..9f68be4 100644 --- a/grammar.js +++ b/grammar.js @@ -2,6 +2,10 @@ function commaSeparated(elem) { return seq(elem, repeat(seq(",", elem)), optional(",")) } +function commaSeparatedNoTrailing(elem) { + return seq(elem, repeat(seq(",", elem))) +} + function trailingCommaSeparated(elem) { return repeat(seq(elem, ",")) } @@ -130,7 +134,7 @@ module.exports = grammar({ select_value: ($) => seq( field("name", $.identifier), "(", - field("arguments", optional(commaSeparated($._string_literal))), + field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), ")", ), diff --git a/src/grammar.json b/src/grammar.json index 83b9867..89b43b4 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -529,18 +529,6 @@ } ] } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "BLANK" - } - ] } ] }, diff --git a/src/parser.c b/src/parser.c index 82034c5..1fab250 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 117 +#define STATE_COUNT 114 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 59 #define ALIAS_COUNT 0 @@ -13,7 +13,7 @@ #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 19 +#define PRODUCTION_ID_COUNT 18 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -485,8 +485,7 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [14] = {.index = 31, .length = 1}, [15] = {.index = 32, .length = 2}, [16] = {.index = 34, .length = 3}, - [17] = {.index = 37, .length = 4}, - [18] = {.index = 41, .length = 2}, + [17] = {.index = 37, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -543,11 +542,6 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_arguments, 3}, {field_name, 0}, [37] = - {field_arguments, 2}, - {field_arguments, 3}, - {field_arguments, 4}, - {field_name, 0}, - [41] = {field_pattern, 0}, {field_value, 2}, }; @@ -678,9 +672,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, - [114] = 114, - [115] = 115, - [116] = 116, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4153,53 +4144,53 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [34] = {.lex_state = 37}, [35] = {.lex_state = 5}, [36] = {.lex_state = 37}, - [37] = {.lex_state = 37}, - [38] = {.lex_state = 37}, + [37] = {.lex_state = 3}, + [38] = {.lex_state = 1}, [39] = {.lex_state = 1}, - [40] = {.lex_state = 37}, - [41] = {.lex_state = 1}, - [42] = {.lex_state = 3}, - [43] = {.lex_state = 37}, - [44] = {.lex_state = 1}, - [45] = {.lex_state = 37}, - [46] = {.lex_state = 37}, + [40] = {.lex_state = 1}, + [41] = {.lex_state = 37}, + [42] = {.lex_state = 37}, + [43] = {.lex_state = 0}, + [44] = {.lex_state = 37}, + [45] = {.lex_state = 0}, + [46] = {.lex_state = 1}, [47] = {.lex_state = 0}, - [48] = {.lex_state = 0}, - [49] = {.lex_state = 37}, - [50] = {.lex_state = 37}, - [51] = {.lex_state = 0}, + [48] = {.lex_state = 37}, + [49] = {.lex_state = 0}, + [50] = {.lex_state = 0}, + [51] = {.lex_state = 37}, [52] = {.lex_state = 37}, - [53] = {.lex_state = 37}, - [54] = {.lex_state = 0}, - [55] = {.lex_state = 37}, + [53] = {.lex_state = 0}, + [54] = {.lex_state = 37}, + [55] = {.lex_state = 0}, [56] = {.lex_state = 0}, [57] = {.lex_state = 37}, - [58] = {.lex_state = 1}, - [59] = {.lex_state = 0}, - [60] = {.lex_state = 0}, + [58] = {.lex_state = 37}, + [59] = {.lex_state = 37}, + [60] = {.lex_state = 37}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 37}, + [62] = {.lex_state = 0}, [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 37}, + [65] = {.lex_state = 0}, [66] = {.lex_state = 37}, - [67] = {.lex_state = 0}, + [67] = {.lex_state = 37}, [68] = {.lex_state = 0}, [69] = {.lex_state = 37}, - [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, + [70] = {.lex_state = 37}, + [71] = {.lex_state = 37}, [72] = {.lex_state = 37}, [73] = {.lex_state = 37}, - [74] = {.lex_state = 37}, + [74] = {.lex_state = 0}, [75] = {.lex_state = 37}, - [76] = {.lex_state = 0}, + [76] = {.lex_state = 37}, [77] = {.lex_state = 37}, - [78] = {.lex_state = 0}, + [78] = {.lex_state = 37}, [79] = {.lex_state = 0}, [80] = {.lex_state = 37}, [81] = {.lex_state = 37}, [82] = {.lex_state = 37}, - [83] = {.lex_state = 37}, + [83] = {.lex_state = 0}, [84] = {.lex_state = 37}, [85] = {.lex_state = 37}, [86] = {.lex_state = 37}, @@ -4207,14 +4198,14 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, - [91] = {.lex_state = 37}, + [91] = {.lex_state = 0}, [92] = {.lex_state = 0}, - [93] = {.lex_state = 37}, + [93] = {.lex_state = 0}, [94] = {.lex_state = 0}, [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, [97] = {.lex_state = 0}, - [98] = {.lex_state = 0}, + [98] = {.lex_state = 44}, [99] = {.lex_state = 0}, [100] = {.lex_state = 0}, [101] = {.lex_state = 0}, @@ -4225,14 +4216,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 44}, - [110] = {.lex_state = 0}, + [109] = {.lex_state = 0}, + [110] = {.lex_state = 7}, [111] = {.lex_state = 0}, - [112] = {.lex_state = 0}, - [113] = {.lex_state = 7}, - [114] = {.lex_state = 0}, - [115] = {(TSStateId)(-1)}, - [116] = {(TSStateId)(-1)}, + [112] = {(TSStateId)(-1)}, + [113] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4267,13 +4255,13 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(111), - [sym__definition] = STATE(81), + [sym_source_file] = STATE(108), + [sym__definition] = STATE(80), [sym_comment] = STATE(1), - [sym_assignment] = STATE(82), - [sym_module] = STATE(82), + [sym_assignment] = STATE(84), + [sym_module] = STATE(84), [sym__old_module] = STATE(89), - [sym__new_module] = STATE(73), + [sym__new_module] = STATE(81), [aux_sym_source_file_repeat1] = STATE(15), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), @@ -4308,16 +4296,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(76), 1, sym__expr, - STATE(98), 1, + STATE(95), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4350,14 +4338,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(43), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4390,14 +4378,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4430,14 +4418,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4468,14 +4456,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(69), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4506,14 +4494,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(30), 1, + STATE(63), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4544,14 +4532,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(62), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4582,14 +4570,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(20), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4620,14 +4608,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(60), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4648,9 +4636,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(48), 1, anon_sym_default, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(39), 2, anon_sym_true, @@ -4674,13 +4662,13 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, ACTIONS(55), 1, anon_sym_default, + STATE(11), 1, + aux_sym_select_cases_repeat1, STATE(12), 1, sym_comment, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(53), 2, anon_sym_true, @@ -4701,13 +4689,13 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, ACTIONS(57), 1, anon_sym_RBRACE, - STATE(11), 1, + STATE(12), 1, aux_sym_select_cases_repeat1, STATE(13), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(53), 2, anon_sym_true, @@ -4744,13 +4732,13 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(17), 1, aux_sym_source_file_repeat1, - STATE(73), 1, - sym__new_module, - STATE(81), 1, + STATE(80), 1, sym__definition, + STATE(81), 1, + sym__new_module, STATE(89), 1, sym__old_module, - STATE(82), 2, + STATE(84), 2, sym_assignment, sym_module, [659] = 4, @@ -4778,16 +4766,16 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, ACTIONS(67), 1, sym_identifier, - STATE(73), 1, - sym__new_module, - STATE(81), 1, + STATE(80), 1, sym__definition, + STATE(81), 1, + sym__new_module, STATE(89), 1, sym__old_module, STATE(17), 2, sym_comment, aux_sym_source_file_repeat1, - STATE(82), 2, + STATE(84), 2, sym_assignment, sym_module, [709] = 4, @@ -5072,212 +5060,176 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(104), 1, anon_sym_RPAREN, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, STATE(36), 1, sym_comment, - STATE(92), 1, + STATE(56), 1, sym__string_literal, - [1077] = 8, + [1077] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(106), 1, - anon_sym_RPAREN, - STATE(18), 1, - sym_interpreted_string_literal, + ACTIONS(108), 1, + anon_sym_LBRACE, + ACTIONS(110), 1, + anon_sym_LPAREN, STATE(37), 1, sym_comment, - STATE(47), 1, - sym__string_literal, - [1102] = 8, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(108), 1, - anon_sym_RPAREN, - STATE(18), 1, - sym_interpreted_string_literal, - STATE(38), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1127] = 7, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(114), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(116), 1, - anon_sym_DQUOTE2, - ACTIONS(118), 1, - sym_escape_sequence, - STATE(39), 1, - sym_comment, - STATE(41), 1, - aux_sym_interpreted_string_literal_repeat1, - [1149] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(18), 1, - sym_interpreted_string_literal, - STATE(40), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1171] = 7, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(114), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(118), 1, - sym_escape_sequence, - ACTIONS(120), 1, - anon_sym_DQUOTE2, - STATE(41), 1, - sym_comment, - STATE(44), 1, - aux_sym_interpreted_string_literal_repeat1, - [1193] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(124), 1, - anon_sym_LBRACE, - ACTIONS(126), 1, - anon_sym_LPAREN, - STATE(42), 1, - sym_comment, - ACTIONS(122), 2, + ACTIONS(106), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1213] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_COMMA, - ACTIONS(130), 1, - anon_sym_RBRACK, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(43), 1, - sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1235] = 6, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, + [1097] = 7, ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, anon_sym_SLASH_STAR, - ACTIONS(134), 1, + ACTIONS(116), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(137), 1, + ACTIONS(118), 1, anon_sym_DQUOTE2, - ACTIONS(139), 1, + ACTIONS(120), 1, sym_escape_sequence, - STATE(44), 2, + STATE(38), 1, + sym_comment, + STATE(39), 1, + aux_sym_interpreted_string_literal_repeat1, + [1119] = 7, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(116), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(120), 1, + sym_escape_sequence, + ACTIONS(122), 1, + anon_sym_DQUOTE2, + STATE(39), 1, + sym_comment, + STATE(40), 1, + aux_sym_interpreted_string_literal_repeat1, + [1141] = 6, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(124), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(127), 1, + anon_sym_DQUOTE2, + ACTIONS(129), 1, + sym_escape_sequence, + STATE(40), 2, sym_comment, aux_sym_interpreted_string_literal_repeat1, - [1255] = 6, + [1161] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, - anon_sym_RBRACE, - ACTIONS(144), 1, - sym_identifier, - STATE(45), 1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(41), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1274] = 6, + STATE(83), 1, + sym__string_literal, + [1183] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(146), 1, - anon_sym_RBRACE, - STATE(46), 1, + ACTIONS(132), 1, + anon_sym_COMMA, + ACTIONS(134), 1, + anon_sym_RBRACK, + ACTIONS(136), 1, + anon_sym_PLUS, + STATE(42), 1, sym_comment, STATE(61), 1, - sym__colon_property, - [1293] = 6, + aux_sym_list_expression_repeat1, + [1205] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(148), 1, + ACTIONS(138), 1, anon_sym_COMMA, - ACTIONS(150), 1, - anon_sym_RPAREN, - STATE(47), 1, + ACTIONS(141), 1, + anon_sym_RBRACK, + STATE(43), 2, sym_comment, - STATE(59), 1, - aux_sym_select_value_repeat1, - [1312] = 6, + aux_sym_list_expression_repeat1, + [1222] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(152), 1, + ACTIONS(143), 1, + anon_sym_RBRACE, + ACTIONS(145), 1, + sym_identifier, + STATE(44), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1241] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(147), 1, anon_sym_COMMA, - ACTIONS(154), 1, + ACTIONS(149), 1, + anon_sym_RBRACE, + STATE(45), 1, + sym_comment, + STATE(55), 1, + aux_sym__old_module_repeat1, + [1260] = 5, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(151), 1, + aux_sym_interpreted_string_literal_token1, + STATE(46), 1, + sym_comment, + ACTIONS(153), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1277] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, + anon_sym_COMMA, + ACTIONS(158), 1, + anon_sym_RPAREN, + STATE(47), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1294] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(160), 1, anon_sym_RBRACE, STATE(48), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1331] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(49), 1, - sym_comment, - ACTIONS(156), 2, - ts_builtin_sym_end, - sym_identifier, - [1348] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(158), 1, - anon_sym_RPAREN, - ACTIONS(160), 1, - sym_identifier, - STATE(50), 1, - sym_comment, - STATE(78), 1, - sym__equal_property, - [1367] = 6, + STATE(91), 1, + sym__colon_property, + [1313] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5286,200 +5238,203 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, ACTIONS(164), 1, anon_sym_RPAREN, - STATE(51), 1, + STATE(47), 1, + aux_sym_select_value_repeat1, + STATE(49), 1, sym_comment, - STATE(67), 1, - aux_sym__new_module_repeat1, - [1386] = 6, + [1332] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, ACTIONS(166), 1, - anon_sym_RBRACE, - STATE(52), 1, - sym_comment, - STATE(76), 1, - sym__colon_property, - [1405] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, + anon_sym_COMMA, ACTIONS(168), 1, anon_sym_RBRACE, - STATE(53), 1, + STATE(50), 1, sym_comment, - STATE(71), 1, - sym__colon_property, - [1424] = 6, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1351] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(170), 1, - anon_sym_COMMA, + anon_sym_RPAREN, ACTIONS(172), 1, - anon_sym_RBRACE, - STATE(54), 1, + sym_identifier, + STATE(51), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1443] = 6, + STATE(74), 1, + sym__equal_property, + [1370] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(160), 1, + ACTIONS(145), 1, sym_identifier, ACTIONS(174), 1, - anon_sym_RPAREN, - STATE(55), 1, + anon_sym_RBRACE, + STATE(52), 1, sym_comment, - STATE(70), 1, - sym__equal_property, - [1462] = 5, + STATE(62), 1, + sym__colon_property, + [1389] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(176), 1, anon_sym_COMMA, - ACTIONS(179), 1, - anon_sym_RBRACK, - STATE(56), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1479] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(57), 1, - sym_comment, - ACTIONS(181), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1496] = 5, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(183), 1, - aux_sym_interpreted_string_literal_token1, - STATE(58), 1, - sym_comment, - ACTIONS(185), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1513] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, + ACTIONS(178), 1, anon_sym_RPAREN, - ACTIONS(187), 1, + STATE(53), 1, + sym_comment, + STATE(65), 1, + aux_sym__new_module_repeat1, + [1408] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RBRACE, + STATE(54), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1427] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(182), 1, anon_sym_COMMA, - STATE(59), 1, + ACTIONS(184), 1, + anon_sym_RBRACE, + STATE(55), 1, sym_comment, STATE(68), 1, - aux_sym_select_value_repeat1, - [1532] = 6, + aux_sym__old_module_repeat1, + [1446] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(162), 1, anon_sym_COMMA, - ACTIONS(191), 1, - anon_sym_RBRACK, + ACTIONS(186), 1, + anon_sym_RPAREN, + STATE(49), 1, + aux_sym_select_value_repeat1, STATE(56), 1, - aux_sym_list_expression_repeat1, + sym_comment, + [1465] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + sym_identifier, + ACTIONS(188), 1, + anon_sym_RPAREN, + STATE(57), 1, + sym_comment, + STATE(64), 1, + sym__equal_property, + [1484] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(190), 1, + anon_sym_RBRACE, + STATE(45), 1, + sym__colon_property, + STATE(58), 1, + sym_comment, + [1503] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, + STATE(59), 1, + sym_comment, + ACTIONS(192), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [1520] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(60), 1, sym_comment, - [1551] = 6, + ACTIONS(194), 2, + ts_builtin_sym_end, + sym_identifier, + [1537] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(193), 1, + ACTIONS(196), 1, anon_sym_COMMA, - ACTIONS(195), 1, - anon_sym_RBRACE, - STATE(48), 1, - aux_sym__old_module_repeat1, + ACTIONS(198), 1, + anon_sym_RBRACK, + STATE(43), 1, + aux_sym_list_expression_repeat1, STATE(61), 1, sym_comment, - [1570] = 5, + [1556] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, + ACTIONS(200), 1, + anon_sym_COMMA, + ACTIONS(202), 1, + anon_sym_RBRACE, + STATE(50), 1, + aux_sym__old_module_repeat1, STATE(62), 1, sym_comment, - ACTIONS(197), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1587] = 6, + [1575] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(199), 1, - anon_sym_RBRACE, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(63), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1606] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(201), 1, + ACTIONS(204), 2, anon_sym_COMMA, - ACTIONS(204), 1, anon_sym_RBRACE, - STATE(64), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1623] = 5, + [1592] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(206), 2, + ACTIONS(206), 1, anon_sym_COMMA, - anon_sym_RPAREN, - [1640] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(160), 1, - sym_identifier, ACTIONS(208), 1, anon_sym_RPAREN, - STATE(66), 1, + STATE(53), 1, + aux_sym__new_module_repeat1, + STATE(64), 1, sym_comment, - STATE(78), 1, - sym__equal_property, - [1659] = 5, + [1611] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5488,61 +5443,80 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, ACTIONS(213), 1, anon_sym_RPAREN, - STATE(67), 2, + STATE(65), 2, sym_comment, aux_sym__new_module_repeat1, - [1676] = 5, + [1628] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, ACTIONS(215), 1, - anon_sym_COMMA, - ACTIONS(218), 1, + anon_sym_RBRACE, + STATE(66), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1647] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + sym_identifier, + ACTIONS(217), 1, anon_sym_RPAREN, + STATE(67), 1, + sym_comment, + STATE(74), 1, + sym__equal_property, + [1666] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(219), 1, + anon_sym_COMMA, + ACTIONS(222), 1, + anon_sym_RBRACE, STATE(68), 2, sym_comment, - aux_sym_select_value_repeat1, - [1693] = 6, + aux_sym__old_module_repeat1, + [1683] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(220), 1, - anon_sym_RBRACE, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(69), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1712] = 6, + ACTIONS(224), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1700] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(222), 1, - anon_sym_COMMA, - ACTIONS(224), 1, - anon_sym_RPAREN, - STATE(51), 1, - aux_sym__new_module_repeat1, STATE(70), 1, sym_comment, - [1731] = 6, + ACTIONS(226), 2, + ts_builtin_sym_end, + sym_identifier, + [1714] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(226), 1, - anon_sym_COMMA, - ACTIONS(228), 1, - anon_sym_RBRACE, - STATE(54), 1, - aux_sym__old_module_repeat1, STATE(71), 1, sym_comment, - [1750] = 4, + ACTIONS(228), 2, + ts_builtin_sym_end, + sym_identifier, + [1728] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5552,7 +5526,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(230), 2, ts_builtin_sym_end, sym_identifier, - [1764] = 4, + [1742] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5562,7 +5536,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1778] = 4, + [1756] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5570,9 +5544,9 @@ static const uint16_t ts_small_parse_table[] = { STATE(74), 1, sym_comment, ACTIONS(234), 2, - ts_builtin_sym_end, - sym_identifier, - [1792] = 4, + anon_sym_COMMA, + anon_sym_RPAREN, + [1770] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5582,27 +5556,29 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1806] = 4, + [1784] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, + ACTIONS(238), 1, + anon_sym_COMMA, STATE(76), 1, sym_comment, - ACTIONS(238), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1820] = 4, + [1800] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(240), 1, + sym_identifier, STATE(77), 1, sym_comment, - ACTIONS(240), 2, - ts_builtin_sym_end, - sym_identifier, - [1834] = 4, + STATE(93), 1, + sym_select_value, + [1816] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5610,9 +5586,9 @@ static const uint16_t ts_small_parse_table[] = { STATE(78), 1, sym_comment, ACTIONS(242), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1848] = 5, + ts_builtin_sym_end, + sym_identifier, + [1830] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5621,20 +5597,19 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACE, STATE(79), 1, sym_comment, - STATE(105), 1, + STATE(103), 1, sym_select_cases, - [1864] = 5, + [1846] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - ACTIONS(246), 1, - anon_sym_COMMA, STATE(80), 1, sym_comment, - [1880] = 4, + ACTIONS(246), 2, + ts_builtin_sym_end, + sym_identifier, + [1860] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5644,7 +5619,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [1894] = 4, + [1874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5654,147 +5629,144 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(250), 2, ts_builtin_sym_end, sym_identifier, - [1908] = 4, + [1888] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(252), 2, - ts_builtin_sym_end, - sym_identifier, - [1922] = 4, + ACTIONS(158), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1902] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(254), 2, + ACTIONS(252), 2, ts_builtin_sym_end, sym_identifier, - [1936] = 4, + [1916] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, + ACTIONS(254), 2, + ts_builtin_sym_end, + sym_identifier, + [1930] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + STATE(86), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1946] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(87), 1, + sym_comment, ACTIONS(256), 2, ts_builtin_sym_end, sym_identifier, - [1950] = 5, + [1960] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, + ACTIONS(172), 1, sym_identifier, - STATE(76), 1, - sym__colon_property, - STATE(86), 1, - sym_comment, - [1966] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(258), 1, - sym_identifier, - STATE(87), 1, - sym_comment, - STATE(103), 1, - sym_select_value, - [1982] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(160), 1, - sym_identifier, - STATE(78), 1, + STATE(74), 1, sym__equal_property, STATE(88), 1, sym_comment, - [1998] = 4, + [1976] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - ACTIONS(232), 2, + ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [2012] = 4, + [1990] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(260), 2, + ACTIONS(258), 2, ts_builtin_sym_end, sym_identifier, - [2026] = 4, + [2004] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(262), 2, - ts_builtin_sym_end, - sym_identifier, - [2040] = 4, + ACTIONS(260), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2018] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(262), 1, + anon_sym_LPAREN, STATE(92), 1, sym_comment, - ACTIONS(218), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2054] = 4, + [2031] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(264), 1, + anon_sym_COMMA, STATE(93), 1, sym_comment, - ACTIONS(264), 2, - ts_builtin_sym_end, - sym_identifier, - [2068] = 4, + [2044] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(266), 1, - anon_sym_COMMA, + anon_sym_SLASH, STATE(94), 1, sym_comment, - [2081] = 4, + [2057] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(268), 1, - anon_sym_SLASH, + anon_sym_COMMA, STATE(95), 1, sym_comment, - [2094] = 4, + [2070] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(270), 1, - aux_sym_integer_literal_token1, + anon_sym_COLON, STATE(96), 1, sym_comment, - [2107] = 4, + [2083] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5803,16 +5775,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(97), 1, sym_comment, - [2120] = 4, - ACTIONS(3), 1, + [2096] = 4, + ACTIONS(112), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(114), 1, anon_sym_SLASH_STAR, ACTIONS(274), 1, - anon_sym_COMMA, + aux_sym_comment_token1, STATE(98), 1, sym_comment, - [2133] = 4, + [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5821,7 +5793,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(99), 1, sym_comment, - [2146] = 4, + [2122] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5830,7 +5802,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(100), 1, sym_comment, - [2159] = 4, + [2135] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5839,25 +5811,25 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(101), 1, sym_comment, - [2172] = 4, + [2148] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(282), 1, - anon_sym_COLON, + anon_sym_COMMA, STATE(102), 1, sym_comment, - [2185] = 4, + [2161] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(284), 1, - anon_sym_COMMA, + anon_sym_RPAREN, STATE(103), 1, sym_comment, - [2198] = 4, + [2174] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5866,101 +5838,74 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(104), 1, sym_comment, - [2211] = 4, + [2187] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(288), 1, - anon_sym_RPAREN, + anon_sym_COMMA, STATE(105), 1, sym_comment, - [2224] = 4, + [2200] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(290), 1, - anon_sym_COMMA, + anon_sym_EQ, STATE(106), 1, sym_comment, - [2237] = 4, + [2213] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(292), 1, - anon_sym_EQ, + aux_sym_integer_literal_token1, STATE(107), 1, sym_comment, - [2250] = 4, + [2226] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(294), 1, - anon_sym_LPAREN, + ts_builtin_sym_end, STATE(108), 1, sym_comment, - [2263] = 4, - ACTIONS(110), 1, + [2239] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(112), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(296), 1, - aux_sym_comment_token1, + anon_sym_RPAREN, STATE(109), 1, sym_comment, - [2276] = 4, - ACTIONS(3), 1, + [2252] = 4, + ACTIONS(112), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(114), 1, anon_sym_SLASH_STAR, ACTIONS(298), 1, - anon_sym_RPAREN, + aux_sym_comment_token2, STATE(110), 1, sym_comment, - [2289] = 4, + [2265] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(300), 1, - ts_builtin_sym_end, + ACTIONS(238), 1, + anon_sym_COMMA, STATE(111), 1, sym_comment, - [2302] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(302), 1, - anon_sym_COMMA, - STATE(112), 1, - sym_comment, - [2315] = 4, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(304), 1, - aux_sym_comment_token2, - STATE(113), 1, - sym_comment, - [2328] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - anon_sym_COMMA, - STATE(114), 1, - sym_comment, - [2341] = 1, - ACTIONS(306), 1, + [2278] = 1, + ACTIONS(300), 1, ts_builtin_sym_end, - [2345] = 1, - ACTIONS(308), 1, + [2282] = 1, + ACTIONS(302), 1, ts_builtin_sym_end, }; @@ -6001,238 +5946,232 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(35)] = 1034, [SMALL_STATE(36)] = 1052, [SMALL_STATE(37)] = 1077, - [SMALL_STATE(38)] = 1102, - [SMALL_STATE(39)] = 1127, - [SMALL_STATE(40)] = 1149, - [SMALL_STATE(41)] = 1171, - [SMALL_STATE(42)] = 1193, - [SMALL_STATE(43)] = 1213, - [SMALL_STATE(44)] = 1235, - [SMALL_STATE(45)] = 1255, - [SMALL_STATE(46)] = 1274, - [SMALL_STATE(47)] = 1293, - [SMALL_STATE(48)] = 1312, - [SMALL_STATE(49)] = 1331, - [SMALL_STATE(50)] = 1348, - [SMALL_STATE(51)] = 1367, - [SMALL_STATE(52)] = 1386, - [SMALL_STATE(53)] = 1405, - [SMALL_STATE(54)] = 1424, - [SMALL_STATE(55)] = 1443, - [SMALL_STATE(56)] = 1462, - [SMALL_STATE(57)] = 1479, - [SMALL_STATE(58)] = 1496, - [SMALL_STATE(59)] = 1513, - [SMALL_STATE(60)] = 1532, - [SMALL_STATE(61)] = 1551, - [SMALL_STATE(62)] = 1570, - [SMALL_STATE(63)] = 1587, - [SMALL_STATE(64)] = 1606, - [SMALL_STATE(65)] = 1623, - [SMALL_STATE(66)] = 1640, - [SMALL_STATE(67)] = 1659, - [SMALL_STATE(68)] = 1676, - [SMALL_STATE(69)] = 1693, - [SMALL_STATE(70)] = 1712, - [SMALL_STATE(71)] = 1731, - [SMALL_STATE(72)] = 1750, - [SMALL_STATE(73)] = 1764, - [SMALL_STATE(74)] = 1778, - [SMALL_STATE(75)] = 1792, - [SMALL_STATE(76)] = 1806, - [SMALL_STATE(77)] = 1820, - [SMALL_STATE(78)] = 1834, - [SMALL_STATE(79)] = 1848, - [SMALL_STATE(80)] = 1864, - [SMALL_STATE(81)] = 1880, - [SMALL_STATE(82)] = 1894, - [SMALL_STATE(83)] = 1908, - [SMALL_STATE(84)] = 1922, - [SMALL_STATE(85)] = 1936, - [SMALL_STATE(86)] = 1950, - [SMALL_STATE(87)] = 1966, - [SMALL_STATE(88)] = 1982, - [SMALL_STATE(89)] = 1998, - [SMALL_STATE(90)] = 2012, - [SMALL_STATE(91)] = 2026, - [SMALL_STATE(92)] = 2040, - [SMALL_STATE(93)] = 2054, - [SMALL_STATE(94)] = 2068, - [SMALL_STATE(95)] = 2081, - [SMALL_STATE(96)] = 2094, - [SMALL_STATE(97)] = 2107, - [SMALL_STATE(98)] = 2120, - [SMALL_STATE(99)] = 2133, - [SMALL_STATE(100)] = 2146, - [SMALL_STATE(101)] = 2159, - [SMALL_STATE(102)] = 2172, - [SMALL_STATE(103)] = 2185, - [SMALL_STATE(104)] = 2198, - [SMALL_STATE(105)] = 2211, - [SMALL_STATE(106)] = 2224, - [SMALL_STATE(107)] = 2237, - [SMALL_STATE(108)] = 2250, - [SMALL_STATE(109)] = 2263, - [SMALL_STATE(110)] = 2276, - [SMALL_STATE(111)] = 2289, - [SMALL_STATE(112)] = 2302, - [SMALL_STATE(113)] = 2315, - [SMALL_STATE(114)] = 2328, - [SMALL_STATE(115)] = 2341, - [SMALL_STATE(116)] = 2345, + [SMALL_STATE(38)] = 1097, + [SMALL_STATE(39)] = 1119, + [SMALL_STATE(40)] = 1141, + [SMALL_STATE(41)] = 1161, + [SMALL_STATE(42)] = 1183, + [SMALL_STATE(43)] = 1205, + [SMALL_STATE(44)] = 1222, + [SMALL_STATE(45)] = 1241, + [SMALL_STATE(46)] = 1260, + [SMALL_STATE(47)] = 1277, + [SMALL_STATE(48)] = 1294, + [SMALL_STATE(49)] = 1313, + [SMALL_STATE(50)] = 1332, + [SMALL_STATE(51)] = 1351, + [SMALL_STATE(52)] = 1370, + [SMALL_STATE(53)] = 1389, + [SMALL_STATE(54)] = 1408, + [SMALL_STATE(55)] = 1427, + [SMALL_STATE(56)] = 1446, + [SMALL_STATE(57)] = 1465, + [SMALL_STATE(58)] = 1484, + [SMALL_STATE(59)] = 1503, + [SMALL_STATE(60)] = 1520, + [SMALL_STATE(61)] = 1537, + [SMALL_STATE(62)] = 1556, + [SMALL_STATE(63)] = 1575, + [SMALL_STATE(64)] = 1592, + [SMALL_STATE(65)] = 1611, + [SMALL_STATE(66)] = 1628, + [SMALL_STATE(67)] = 1647, + [SMALL_STATE(68)] = 1666, + [SMALL_STATE(69)] = 1683, + [SMALL_STATE(70)] = 1700, + [SMALL_STATE(71)] = 1714, + [SMALL_STATE(72)] = 1728, + [SMALL_STATE(73)] = 1742, + [SMALL_STATE(74)] = 1756, + [SMALL_STATE(75)] = 1770, + [SMALL_STATE(76)] = 1784, + [SMALL_STATE(77)] = 1800, + [SMALL_STATE(78)] = 1816, + [SMALL_STATE(79)] = 1830, + [SMALL_STATE(80)] = 1846, + [SMALL_STATE(81)] = 1860, + [SMALL_STATE(82)] = 1874, + [SMALL_STATE(83)] = 1888, + [SMALL_STATE(84)] = 1902, + [SMALL_STATE(85)] = 1916, + [SMALL_STATE(86)] = 1930, + [SMALL_STATE(87)] = 1946, + [SMALL_STATE(88)] = 1960, + [SMALL_STATE(89)] = 1976, + [SMALL_STATE(90)] = 1990, + [SMALL_STATE(91)] = 2004, + [SMALL_STATE(92)] = 2018, + [SMALL_STATE(93)] = 2031, + [SMALL_STATE(94)] = 2044, + [SMALL_STATE(95)] = 2057, + [SMALL_STATE(96)] = 2070, + [SMALL_STATE(97)] = 2083, + [SMALL_STATE(98)] = 2096, + [SMALL_STATE(99)] = 2109, + [SMALL_STATE(100)] = 2122, + [SMALL_STATE(101)] = 2135, + [SMALL_STATE(102)] = 2148, + [SMALL_STATE(103)] = 2161, + [SMALL_STATE(104)] = 2174, + [SMALL_STATE(105)] = 2187, + [SMALL_STATE(106)] = 2200, + [SMALL_STATE(107)] = 2213, + [SMALL_STATE(108)] = 2226, + [SMALL_STATE(109)] = 2239, + [SMALL_STATE(110)] = 2252, + [SMALL_STATE(111)] = 2265, + [SMALL_STATE(112)] = 2278, + [SMALL_STATE(113)] = 2282, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(18), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(39), + [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(14), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), + [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(42), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58), - [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [134] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), - [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [197] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [201] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), + [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), + [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [124] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), + [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), + [141] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [151] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(41), + [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [215] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(40), - [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [262] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [268] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [219] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [266] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [274] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [288] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [300] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), - [304] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), - [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), + [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), + [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [294] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [298] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), + [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index df720d5..fc4bf04 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -226,6 +226,34 @@ foo = select(release_variable("ONE", "TWO"), { (default) (interpreted_string_literal)))))) +================================================================================ +Select (trailing comma in arguments) +================================================================================ + +foo = select(some_boolean("VALUE",), { + true: "true", + false: "false", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (interpreted_string_literal) + (ERROR)) + (select_cases + (select_case + (boolean_literal) + (interpreted_string_literal)) + (select_case + (boolean_literal) + (interpreted_string_literal)))))) + ================================================================================ Select (boolean typed) ================================================================================ From 0816633d9a337e4053b72284fac610ab8391522e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:27:52 +0000 Subject: [PATCH 15/39] Name 'commaSeparated*' helpers consistently --- grammar.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/grammar.js b/grammar.js index 9f68be4..c75b229 100644 --- a/grammar.js +++ b/grammar.js @@ -1,4 +1,4 @@ -function commaSeparated(elem) { +function commaSeparatedOptTrailing(elem) { return seq(elem, repeat(seq(",", elem)), optional(",")) } @@ -6,7 +6,7 @@ function commaSeparatedNoTrailing(elem) { return seq(elem, repeat(seq(",", elem))) } -function trailingCommaSeparated(elem) { +function commaSeparatedTrailing(elem) { return repeat(seq(elem, ",")) } @@ -48,7 +48,7 @@ module.exports = grammar({ _old_module: ($) => seq( field("type", $.identifier), "{", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._colon_property), $.property) )), "}", @@ -57,7 +57,7 @@ module.exports = grammar({ _new_module: ($) => seq( field("type", $.identifier), "(", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._equal_property), $.property) )), ")", @@ -140,7 +140,7 @@ module.exports = grammar({ select_cases: ($) => seq( "{", - optional(trailingCommaSeparated($.select_case)), + optional(commaSeparatedTrailing($.select_case)), "}", ), @@ -161,13 +161,13 @@ module.exports = grammar({ list_expression: ($) => seq( "[", - optional(commaSeparated(field("element", $._expr))), + optional(commaSeparatedOptTrailing(field("element", $._expr))), "]", ), map_expression: ($) => seq( "{", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._colon_property), $.property) )), "}", From d01bcf0f6d39b2a5126455a0cca669309e201a67 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:43:10 +0000 Subject: [PATCH 16/39] Add multi-valued `select` expression --- grammar.js | 24 +- src/grammar.json | 162 ++- src/node-types.json | 43 +- src/parser.c | 2753 ++++++++++++++++++++++++---------------- test/corpus/select.txt | 122 +- 5 files changed, 1926 insertions(+), 1178 deletions(-) diff --git a/grammar.js b/grammar.js index c75b229..a9e0d8c 100644 --- a/grammar.js +++ b/grammar.js @@ -131,7 +131,12 @@ module.exports = grammar({ ")", ), - select_value: ($) => seq( + select_value: ($) => choice( + $._select_value, + seq("(", commaSeparatedOptTrailing($._select_value), ")"), + ), + + _select_value: ($) => seq( field("name", $.identifier), "(", field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), @@ -145,15 +150,22 @@ module.exports = grammar({ ), select_case: ($) => seq( - field("pattern", choice( - $._string_literal, - $.boolean_literal, - alias("default", $.default), - )), + field("pattern", $.select_pattern), ":", field("value", $._case_value) ), + select_pattern: ($) => choice( + $._select_pattern, + seq("(", commaSeparatedOptTrailing($._select_pattern), ")"), + ), + + _select_pattern: ($) => choice( + $._string_literal, + $.boolean_literal, + alias("default", $.default), + ), + _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index 89b43b4..f55607c 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -487,6 +487,65 @@ ] }, "select_value": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_select_value" + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "(" + }, + { + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "_select_value" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "_select_value" + } + ] + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] + }, + { + "type": "STRING", + "value": ")" + } + ] + } + ] + }, + "_select_value": { "type": "SEQ", "members": [ { @@ -588,26 +647,8 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_string_literal" - }, - { - "type": "SYMBOL", - "name": "boolean_literal" - }, - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "default" - }, - "named": true, - "value": "default" - } - ] + "type": "SYMBOL", + "name": "select_pattern" } }, { @@ -624,6 +665,87 @@ } ] }, + "select_pattern": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_select_pattern" + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "(" + }, + { + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "_select_pattern" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "_select_pattern" + } + ] + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] + }, + { + "type": "STRING", + "value": ")" + } + ] + } + ] + }, + "_select_pattern": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_string_literal" + }, + { + "type": "SYMBOL", + "name": "boolean_literal" + }, + { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "default" + }, + "named": true, + "value": "default" + } + ] + }, "_case_value": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 9c77e07..f1817a2 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -354,19 +354,7 @@ "required": true, "types": [ { - "type": "boolean_literal", - "named": true - }, - { - "type": "default", - "named": true - }, - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", + "type": "select_pattern", "named": true } ] @@ -453,6 +441,33 @@ ] } }, + { + "type": "select_pattern", + "named": true, + "fields": {}, + "children": { + "multiple": true, + "required": true, + "types": [ + { + "type": "boolean_literal", + "named": true + }, + { + "type": "default", + "named": true + }, + { + "type": "interpreted_string_literal", + "named": true + }, + { + "type": "raw_string_literal", + "named": true + } + ] + } + }, { "type": "select_value", "named": true, @@ -476,7 +491,7 @@ ] }, "name": { - "multiple": false, + "multiple": true, "required": true, "types": [ { diff --git a/src/parser.c b/src/parser.c index 1fab250..2efc422 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,15 +5,15 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 114 +#define STATE_COUNT 140 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 59 +#define SYMBOL_COUNT 64 #define ALIAS_COUNT 0 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 18 +#define PRODUCTION_ID_COUNT 22 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -39,8 +39,8 @@ enum ts_symbol_identifiers { anon_sym_DQUOTE2 = 21, sym_escape_sequence = 22, anon_sym_select = 23, - anon_sym_default = 24, - anon_sym_COLON = 25, + anon_sym_COLON = 24, + anon_sym_default = 25, anon_sym_unset = 26, anon_sym_LBRACK = 27, anon_sym_RBRACK = 28, @@ -59,21 +59,26 @@ enum ts_symbol_identifiers { sym_interpreted_string_literal = 41, sym_select_expression = 42, sym_select_value = 43, - sym_select_cases = 44, - sym_select_case = 45, - sym__case_value = 46, - sym_list_expression = 47, - sym_map_expression = 48, - sym_binary_expression = 49, - sym__colon_property = 50, - sym__equal_property = 51, - aux_sym_source_file_repeat1 = 52, - aux_sym__old_module_repeat1 = 53, - aux_sym__new_module_repeat1 = 54, - aux_sym_interpreted_string_literal_repeat1 = 55, - aux_sym_select_value_repeat1 = 56, - aux_sym_select_cases_repeat1 = 57, - aux_sym_list_expression_repeat1 = 58, + sym__select_value = 44, + sym_select_cases = 45, + sym_select_case = 46, + sym_select_pattern = 47, + sym__select_pattern = 48, + sym__case_value = 49, + sym_list_expression = 50, + sym_map_expression = 51, + sym_binary_expression = 52, + sym__colon_property = 53, + sym__equal_property = 54, + aux_sym_source_file_repeat1 = 55, + aux_sym__old_module_repeat1 = 56, + aux_sym__new_module_repeat1 = 57, + aux_sym_interpreted_string_literal_repeat1 = 58, + aux_sym_select_value_repeat1 = 59, + aux_sym__select_value_repeat1 = 60, + aux_sym_select_cases_repeat1 = 61, + aux_sym_select_pattern_repeat1 = 62, + aux_sym_list_expression_repeat1 = 63, }; static const char * const ts_symbol_names[] = { @@ -101,8 +106,8 @@ static const char * const ts_symbol_names[] = { [anon_sym_DQUOTE2] = "\"", [sym_escape_sequence] = "escape_sequence", [anon_sym_select] = "select", - [anon_sym_default] = "default", [anon_sym_COLON] = ":", + [anon_sym_default] = "default", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -121,8 +126,11 @@ static const char * const ts_symbol_names[] = { [sym_interpreted_string_literal] = "interpreted_string_literal", [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", + [sym__select_value] = "_select_value", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", + [sym_select_pattern] = "select_pattern", + [sym__select_pattern] = "_select_pattern", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -134,7 +142,9 @@ static const char * const ts_symbol_names[] = { [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", [aux_sym_select_value_repeat1] = "select_value_repeat1", + [aux_sym__select_value_repeat1] = "_select_value_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", + [aux_sym_select_pattern_repeat1] = "select_pattern_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", }; @@ -163,8 +173,8 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_DQUOTE2] = anon_sym_DQUOTE, [sym_escape_sequence] = sym_escape_sequence, [anon_sym_select] = anon_sym_select, - [anon_sym_default] = anon_sym_default, [anon_sym_COLON] = anon_sym_COLON, + [anon_sym_default] = anon_sym_default, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -183,8 +193,11 @@ static const TSSymbol ts_symbol_map[] = { [sym_interpreted_string_literal] = sym_interpreted_string_literal, [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, + [sym__select_value] = sym__select_value, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, + [sym_select_pattern] = sym_select_pattern, + [sym__select_pattern] = sym__select_pattern, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -196,7 +209,9 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__new_module_repeat1] = aux_sym__new_module_repeat1, [aux_sym_interpreted_string_literal_repeat1] = aux_sym_interpreted_string_literal_repeat1, [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, + [aux_sym__select_value_repeat1] = aux_sym__select_value_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, + [aux_sym_select_pattern_repeat1] = aux_sym_select_pattern_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, }; @@ -297,14 +312,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [anon_sym_default] = { - .visible = true, - .named = true, - }, [anon_sym_COLON] = { .visible = true, .named = false, }, + [anon_sym_default] = { + .visible = true, + .named = true, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -377,6 +392,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym__select_value] = { + .visible = false, + .named = true, + }, [sym_select_cases] = { .visible = true, .named = true, @@ -385,6 +404,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym_select_pattern] = { + .visible = true, + .named = true, + }, + [sym__select_pattern] = { + .visible = false, + .named = true, + }, [sym__case_value] = { .visible = false, .named = true, @@ -429,10 +456,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, + [aux_sym__select_value_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_select_cases_repeat1] = { .visible = false, .named = false, }, + [aux_sym_select_pattern_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_list_expression_repeat1] = { .visible = false, .named = false, @@ -474,18 +509,22 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [3] = {.index = 5, .length = 1}, [4] = {.index = 6, .length = 4}, [5] = {.index = 10, .length = 3}, - [6] = {.index = 13, .length = 1}, - [7] = {.index = 2, .length = 3}, - [8] = {.index = 14, .length = 2}, - [9] = {.index = 16, .length = 5}, - [10] = {.index = 21, .length = 2}, - [11] = {.index = 23, .length = 4}, - [12] = {.index = 27, .length = 2}, + [6] = {.index = 13, .length = 2}, + [7] = {.index = 15, .length = 1}, + [8] = {.index = 2, .length = 3}, + [9] = {.index = 16, .length = 2}, + [10] = {.index = 18, .length = 5}, + [11] = {.index = 23, .length = 2}, + [12] = {.index = 25, .length = 4}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 31, .length = 1}, - [15] = {.index = 32, .length = 2}, - [16] = {.index = 34, .length = 3}, - [17] = {.index = 37, .length = 2}, + [14] = {.index = 31, .length = 2}, + [15] = {.index = 33, .length = 2}, + [16] = {.index = 35, .length = 1}, + [17] = {.index = 36, .length = 4}, + [18] = {.index = 40, .length = 4}, + [19] = {.index = 44, .length = 2}, + [20] = {.index = 46, .length = 3}, + [21] = {.index = 49, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -508,40 +547,56 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_property, 1}, {field_value, 1, .inherited = true}, [13] = + {field_arguments, 0, .inherited = true}, + {field_name, 0, .inherited = true}, + [15] = {field_element, 1}, - [14] = + [16] = {field_field, 0}, {field_value, 2}, - [16] = + [18] = {field_field, 2, .inherited = true}, {field_property, 2}, {field_property, 3, .inherited = true}, {field_type, 0}, {field_value, 2, .inherited = true}, - [21] = + [23] = {field_property, 0, .inherited = true}, {field_property, 1, .inherited = true}, - [23] = + [25] = {field_field, 1, .inherited = true}, {field_property, 1}, {field_property, 2, .inherited = true}, {field_value, 1, .inherited = true}, - [27] = + [29] = {field_element, 1}, {field_element, 2, .inherited = true}, - [29] = + [31] = {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, - [31] = + [33] = + {field_arguments, 1, .inherited = true}, + {field_name, 1, .inherited = true}, + [35] = {field_name, 0}, - [32] = + [36] = + {field_arguments, 1, .inherited = true}, + {field_arguments, 2, .inherited = true}, + {field_name, 1, .inherited = true}, + {field_name, 2, .inherited = true}, + [40] = + {field_arguments, 0, .inherited = true}, + {field_arguments, 1, .inherited = true}, + {field_name, 0, .inherited = true}, + {field_name, 1, .inherited = true}, + [44] = {field_arguments, 2}, {field_name, 0}, - [34] = + [46] = {field_arguments, 2}, {field_arguments, 3}, {field_name, 0}, - [37] = + [49] = {field_pattern, 0}, {field_value, 2}, }; @@ -672,6 +727,32 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, + [114] = 114, + [115] = 115, + [116] = 116, + [117] = 117, + [118] = 118, + [119] = 119, + [120] = 120, + [121] = 121, + [122] = 122, + [123] = 123, + [124] = 124, + [125] = 125, + [126] = 126, + [127] = 127, + [128] = 128, + [129] = 129, + [130] = 130, + [131] = 131, + [132] = 132, + [133] = 133, + [134] = 134, + [135] = 135, + [136] = 136, + [137] = 137, + [138] = 138, + [139] = 139, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -3525,7 +3606,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(57); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == '=') ADVANCE(54); if (lookahead == '[') ADVANCE(104); if (lookahead == '\\') ADVANCE(11); @@ -3562,6 +3643,19 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\') ADVANCE(94); END_STATE(); case 3: + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '/') ADVANCE(6); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(15); + if (lookahead == 'f') ADVANCE(13); + if (lookahead == 't') ADVANCE(21); + if (lookahead == '}') ADVANCE(58); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(3) + END_STATE(); + case 4: if (lookahead == '"') ADVANCE(91); if (lookahead == '(') ADVANCE(59); if (lookahead == '+') ADVANCE(10); @@ -3576,11 +3670,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 'u') ADVANCE(74); if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(3) + lookahead == ' ') SKIP(4) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 4: + case 5: if (lookahead == '"') ADVANCE(91); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); @@ -3592,21 +3686,10 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 't') ADVANCE(75); if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(4) + lookahead == ' ') SKIP(5) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 5: - if (lookahead == '"') ADVANCE(91); - if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'd') ADVANCE(15); - if (lookahead == 'f') ADVANCE(13); - if (lookahead == 't') ADVANCE(21); - if (lookahead == '}') ADVANCE(58); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(5) - END_STATE(); case 6: if (lookahead == '*') ADVANCE(48); if (lookahead == '/') ADVANCE(39); @@ -3672,7 +3755,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 's') ADVANCE(17); END_STATE(); case 23: - if (lookahead == 't') ADVANCE(100); + if (lookahead == 't') ADVANCE(101); END_STATE(); case 24: if (lookahead == 'u') ADVANCE(16); @@ -3740,7 +3823,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(57); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == '=') ADVANCE(54); if (lookahead == '[') ADVANCE(104); if (lookahead == ']') ADVANCE(105); @@ -3760,11 +3843,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 37: if (eof) ADVANCE(38); if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); if (lookahead == ')') ADVANCE(60); if (lookahead == '+') ADVANCE(106); if (lookahead == ',') ADVANCE(57); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == ']') ADVANCE(105); if (lookahead == '`') ADVANCE(35); if (lookahead == '}') ADVANCE(58); @@ -3985,7 +4069,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 80: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(101); + if (lookahead == 't') ADVANCE(102); if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 81: @@ -4075,14 +4159,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 100: - ACCEPT_TOKEN(anon_sym_default); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 101: ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 102: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 103: ACCEPT_TOKEN(anon_sym_unset); @@ -4109,22 +4193,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 37}, - [2] = {.lex_state = 3}, - [3] = {.lex_state = 4}, - [4] = {.lex_state = 4}, - [5] = {.lex_state = 4}, - [6] = {.lex_state = 4}, - [7] = {.lex_state = 4}, - [8] = {.lex_state = 4}, - [9] = {.lex_state = 4}, - [10] = {.lex_state = 4}, - [11] = {.lex_state = 5}, - [12] = {.lex_state = 5}, - [13] = {.lex_state = 5}, - [14] = {.lex_state = 37}, - [15] = {.lex_state = 37}, - [16] = {.lex_state = 37}, - [17] = {.lex_state = 37}, + [2] = {.lex_state = 4}, + [3] = {.lex_state = 5}, + [4] = {.lex_state = 5}, + [5] = {.lex_state = 5}, + [6] = {.lex_state = 5}, + [7] = {.lex_state = 5}, + [8] = {.lex_state = 5}, + [9] = {.lex_state = 5}, + [10] = {.lex_state = 5}, + [11] = {.lex_state = 3}, + [12] = {.lex_state = 3}, + [13] = {.lex_state = 3}, + [14] = {.lex_state = 3}, + [15] = {.lex_state = 3}, + [16] = {.lex_state = 3}, + [17] = {.lex_state = 3}, [18] = {.lex_state = 37}, [19] = {.lex_state = 37}, [20] = {.lex_state = 37}, @@ -4132,7 +4216,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [22] = {.lex_state = 37}, [23] = {.lex_state = 37}, [24] = {.lex_state = 37}, - [25] = {.lex_state = 37}, + [25] = {.lex_state = 3}, [26] = {.lex_state = 37}, [27] = {.lex_state = 37}, [28] = {.lex_state = 37}, @@ -4142,85 +4226,111 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [32] = {.lex_state = 37}, [33] = {.lex_state = 37}, [34] = {.lex_state = 37}, - [35] = {.lex_state = 5}, + [35] = {.lex_state = 37}, [36] = {.lex_state = 37}, - [37] = {.lex_state = 3}, - [38] = {.lex_state = 1}, - [39] = {.lex_state = 1}, - [40] = {.lex_state = 1}, - [41] = {.lex_state = 37}, + [37] = {.lex_state = 37}, + [38] = {.lex_state = 37}, + [39] = {.lex_state = 37}, + [40] = {.lex_state = 37}, + [41] = {.lex_state = 1}, [42] = {.lex_state = 37}, - [43] = {.lex_state = 0}, + [43] = {.lex_state = 37}, [44] = {.lex_state = 37}, - [45] = {.lex_state = 0}, - [46] = {.lex_state = 1}, - [47] = {.lex_state = 0}, + [45] = {.lex_state = 1}, + [46] = {.lex_state = 4}, + [47] = {.lex_state = 1}, [48] = {.lex_state = 37}, [49] = {.lex_state = 0}, [50] = {.lex_state = 0}, - [51] = {.lex_state = 37}, + [51] = {.lex_state = 1}, [52] = {.lex_state = 37}, [53] = {.lex_state = 0}, - [54] = {.lex_state = 37}, - [55] = {.lex_state = 0}, + [54] = {.lex_state = 0}, + [55] = {.lex_state = 37}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 37}, + [57] = {.lex_state = 0}, [58] = {.lex_state = 37}, - [59] = {.lex_state = 37}, + [59] = {.lex_state = 0}, [60] = {.lex_state = 37}, [61] = {.lex_state = 0}, [62] = {.lex_state = 0}, [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 0}, - [66] = {.lex_state = 37}, + [65] = {.lex_state = 37}, + [66] = {.lex_state = 0}, [67] = {.lex_state = 37}, - [68] = {.lex_state = 0}, + [68] = {.lex_state = 37}, [69] = {.lex_state = 37}, - [70] = {.lex_state = 37}, - [71] = {.lex_state = 37}, - [72] = {.lex_state = 37}, - [73] = {.lex_state = 37}, - [74] = {.lex_state = 0}, + [70] = {.lex_state = 0}, + [71] = {.lex_state = 0}, + [72] = {.lex_state = 0}, + [73] = {.lex_state = 0}, + [74] = {.lex_state = 37}, [75] = {.lex_state = 37}, - [76] = {.lex_state = 37}, - [77] = {.lex_state = 37}, + [76] = {.lex_state = 0}, + [77] = {.lex_state = 0}, [78] = {.lex_state = 37}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 37}, - [81] = {.lex_state = 37}, + [80] = {.lex_state = 0}, + [81] = {.lex_state = 0}, [82] = {.lex_state = 37}, - [83] = {.lex_state = 0}, + [83] = {.lex_state = 37}, [84] = {.lex_state = 37}, [85] = {.lex_state = 37}, - [86] = {.lex_state = 37}, + [86] = {.lex_state = 0}, [87] = {.lex_state = 37}, [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, - [91] = {.lex_state = 0}, - [92] = {.lex_state = 0}, - [93] = {.lex_state = 0}, - [94] = {.lex_state = 0}, + [91] = {.lex_state = 37}, + [92] = {.lex_state = 37}, + [93] = {.lex_state = 37}, + [94] = {.lex_state = 37}, [95] = {.lex_state = 0}, - [96] = {.lex_state = 0}, + [96] = {.lex_state = 37}, [97] = {.lex_state = 0}, - [98] = {.lex_state = 44}, - [99] = {.lex_state = 0}, + [98] = {.lex_state = 37}, + [99] = {.lex_state = 37}, [100] = {.lex_state = 0}, [101] = {.lex_state = 0}, - [102] = {.lex_state = 0}, - [103] = {.lex_state = 0}, + [102] = {.lex_state = 37}, + [103] = {.lex_state = 37}, [104] = {.lex_state = 0}, [105] = {.lex_state = 0}, - [106] = {.lex_state = 0}, - [107] = {.lex_state = 0}, - [108] = {.lex_state = 0}, + [106] = {.lex_state = 37}, + [107] = {.lex_state = 37}, + [108] = {.lex_state = 37}, [109] = {.lex_state = 0}, - [110] = {.lex_state = 7}, - [111] = {.lex_state = 0}, - [112] = {(TSStateId)(-1)}, - [113] = {(TSStateId)(-1)}, + [110] = {.lex_state = 0}, + [111] = {.lex_state = 37}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 0}, + [114] = {.lex_state = 0}, + [115] = {.lex_state = 0}, + [116] = {.lex_state = 0}, + [117] = {.lex_state = 7}, + [118] = {.lex_state = 0}, + [119] = {.lex_state = 0}, + [120] = {.lex_state = 0}, + [121] = {.lex_state = 0}, + [122] = {.lex_state = 0}, + [123] = {.lex_state = 0}, + [124] = {.lex_state = 0}, + [125] = {.lex_state = 0}, + [126] = {.lex_state = 0}, + [127] = {.lex_state = 0}, + [128] = {.lex_state = 0}, + [129] = {.lex_state = 0}, + [130] = {.lex_state = 0}, + [131] = {.lex_state = 0}, + [132] = {.lex_state = 44}, + [133] = {.lex_state = 0}, + [134] = {.lex_state = 0}, + [135] = {.lex_state = 0}, + [136] = {.lex_state = 0}, + [137] = {.lex_state = 0}, + [138] = {(TSStateId)(-1)}, + [139] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4247,22 +4357,22 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_DQUOTE2] = ACTIONS(1), [sym_escape_sequence] = ACTIONS(1), [anon_sym_select] = ACTIONS(1), - [anon_sym_default] = ACTIONS(1), [anon_sym_COLON] = ACTIONS(1), + [anon_sym_default] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(108), - [sym__definition] = STATE(80), + [sym_source_file] = STATE(136), + [sym__definition] = STATE(92), [sym_comment] = STATE(1), - [sym_assignment] = STATE(84), - [sym_module] = STATE(84), - [sym__old_module] = STATE(89), - [sym__new_module] = STATE(81), - [aux_sym_source_file_repeat1] = STATE(15), + [sym_assignment] = STATE(88), + [sym_module] = STATE(88), + [sym__old_module] = STATE(94), + [sym__new_module] = STATE(84), + [aux_sym_source_file_repeat1] = STATE(20), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4296,16 +4406,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(76), 1, + STATE(103), 1, sym__expr, - STATE(95), 1, + STATE(133), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4338,14 +4448,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4378,14 +4488,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4418,14 +4528,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4456,14 +4566,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(69), 1, + STATE(82), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4494,14 +4604,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(63), 1, + STATE(48), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4532,14 +4642,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(65), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4570,14 +4680,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(20), 1, + STATE(36), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4608,14 +4718,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(60), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4623,60 +4733,40 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 11, + [492] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, ACTIONS(37), 1, anon_sym_RBRACE, - ACTIONS(42), 1, - sym_raw_string_literal, - ACTIONS(45), 1, - anon_sym_DQUOTE, - ACTIONS(48), 1, - anon_sym_default, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(101), 1, - sym_select_case, - ACTIONS(39), 2, - anon_sym_true, - anon_sym_false, - STATE(11), 2, - sym_comment, - aux_sym_select_cases_repeat1, - STATE(100), 2, - sym_boolean_literal, - sym__string_literal, - [529] = 12, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(51), 1, - anon_sym_RBRACE, - ACTIONS(55), 1, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, anon_sym_default, STATE(11), 1, - aux_sym_select_cases_repeat1, - STATE(12), 1, sym_comment, - STATE(19), 1, + STATE(12), 1, + aux_sym_select_cases_repeat1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(101), 1, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, sym_select_case, - ACTIONS(53), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(100), 2, + STATE(56), 2, sym_boolean_literal, sym__string_literal, - [568] = 12, + [540] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4685,107 +4775,166 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(55), 1, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, anon_sym_default, - ACTIONS(57), 1, + ACTIONS(45), 1, anon_sym_RBRACE, STATE(12), 1, - aux_sym_select_cases_repeat1, - STATE(13), 1, sym_comment, - STATE(19), 1, + STATE(13), 1, + aux_sym_select_cases_repeat1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(101), 1, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, sym_select_case, - ACTIONS(53), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(100), 2, + STATE(56), 2, sym_boolean_literal, sym__string_literal, - [607] = 4, + [588] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(47), 1, + anon_sym_RBRACE, + ACTIONS(49), 1, + anon_sym_LPAREN, + ACTIONS(55), 1, + sym_raw_string_literal, + ACTIONS(58), 1, + anon_sym_DQUOTE, + ACTIONS(61), 1, + anon_sym_default, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, + sym_select_case, + ACTIONS(52), 2, + anon_sym_true, + anon_sym_false, + STATE(13), 2, + sym_comment, + aux_sym_select_cases_repeat1, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [634] = 11, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, + ACTIONS(64), 1, + anon_sym_RPAREN, STATE(14), 1, sym_comment, - ACTIONS(59), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [627] = 10, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [670] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(61), 1, - ts_builtin_sym_end, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, + ACTIONS(66), 1, + anon_sym_RPAREN, STATE(15), 1, sym_comment, - STATE(17), 1, - aux_sym_source_file_repeat1, - STATE(80), 1, - sym__definition, - STATE(81), 1, - sym__new_module, - STATE(89), 1, - sym__old_module, - STATE(84), 2, - sym_assignment, - sym_module, - [659] = 4, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [706] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, STATE(16), 1, sym_comment, - ACTIONS(63), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [679] = 9, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(80), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [739] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(65), 1, - ts_builtin_sym_end, - ACTIONS(67), 1, - sym_identifier, - STATE(80), 1, - sym__definition, - STATE(81), 1, - sym__new_module, - STATE(89), 1, - sym__old_module, - STATE(17), 2, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, + STATE(17), 1, sym_comment, - aux_sym_source_file_repeat1, - STATE(84), 2, - sym_assignment, - sym_module, - [709] = 4, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [772] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(18), 1, sym_comment, - ACTIONS(70), 8, + ACTIONS(68), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4794,90 +4943,105 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [729] = 4, + [792] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(19), 1, + ACTIONS(70), 1, + ts_builtin_sym_end, + ACTIONS(72), 1, + sym_identifier, + STATE(84), 1, + sym__new_module, + STATE(92), 1, + sym__definition, + STATE(94), 1, + sym__old_module, + STATE(19), 2, sym_comment, - ACTIONS(72), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [749] = 4, + aux_sym_source_file_repeat1, + STATE(88), 2, + sym_assignment, + sym_module, + [822] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(9), 1, + sym_identifier, + ACTIONS(75), 1, + ts_builtin_sym_end, + STATE(19), 1, + aux_sym_source_file_repeat1, STATE(20), 1, sym_comment, - ACTIONS(74), 7, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [768] = 4, + STATE(84), 1, + sym__new_module, + STATE(92), 1, + sym__definition, + STATE(94), 1, + sym__old_module, + STATE(88), 2, + sym_assignment, + sym_module, + [854] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(76), 7, + ACTIONS(77), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [787] = 4, + [874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(78), 7, + ACTIONS(79), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [806] = 4, + [894] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(80), 7, + ACTIONS(81), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [825] = 4, + [914] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(82), 7, + ACTIONS(83), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4885,29 +5049,29 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [844] = 4, + [933] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(84), 7, - ts_builtin_sym_end, - anon_sym_COMMA, + ACTIONS(47), 7, anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [863] = 4, + anon_sym_LPAREN, + anon_sym_true, + anon_sym_false, + sym_raw_string_literal, + anon_sym_DQUOTE, + anon_sym_default, + [952] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(86), 7, + ACTIONS(85), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4915,14 +5079,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [882] = 4, + [971] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(88), 7, + ACTIONS(87), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4930,14 +5094,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [901] = 4, + [990] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(90), 7, + ACTIONS(89), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4945,14 +5109,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [920] = 4, + [1009] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(92), 7, + ACTIONS(91), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4960,14 +5124,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [939] = 4, + [1028] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(94), 7, + ACTIONS(93), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4975,14 +5139,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [958] = 4, + [1047] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(96), 7, + ACTIONS(95), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4990,14 +5154,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [977] = 4, + [1066] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(98), 7, + ACTIONS(97), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5005,14 +5169,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [996] = 4, + [1085] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(100), 7, + ACTIONS(99), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5020,14 +5184,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1015] = 4, + [1104] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(102), 7, + ACTIONS(101), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5035,96 +5199,82 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1034] = 4, + [1123] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(35), 1, sym_comment, - ACTIONS(37), 6, + ACTIONS(103), 7, + ts_builtin_sym_end, + anon_sym_COMMA, anon_sym_RBRACE, - anon_sym_true, - anon_sym_false, - sym_raw_string_literal, - anon_sym_DQUOTE, - anon_sym_default, - [1052] = 8, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1142] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(104), 1, - anon_sym_RPAREN, - STATE(19), 1, - sym_interpreted_string_literal, STATE(36), 1, sym_comment, - STATE(56), 1, - sym__string_literal, - [1077] = 6, + ACTIONS(105), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1161] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(108), 1, - anon_sym_LBRACE, - ACTIONS(110), 1, - anon_sym_LPAREN, STATE(37), 1, sym_comment, - ACTIONS(106), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1097] = 7, - ACTIONS(112), 1, + ACTIONS(107), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1180] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(114), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(118), 1, - anon_sym_DQUOTE2, - ACTIONS(120), 1, - sym_escape_sequence, STATE(38), 1, sym_comment, - STATE(39), 1, - aux_sym_interpreted_string_literal_repeat1, - [1119] = 7, - ACTIONS(112), 1, + ACTIONS(109), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1199] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(114), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(120), 1, - sym_escape_sequence, - ACTIONS(122), 1, - anon_sym_DQUOTE2, STATE(39), 1, sym_comment, - STATE(40), 1, - aux_sym_interpreted_string_literal_repeat1, - [1141] = 6, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(124), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(127), 1, - anon_sym_DQUOTE2, - ACTIONS(129), 1, - sym_escape_sequence, - STATE(40), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1161] = 7, + ACTIONS(111), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1218] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5133,779 +5283,1097 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + ACTIONS(113), 1, + anon_sym_RPAREN, + STATE(23), 1, sym_interpreted_string_literal, - STATE(41), 1, + STATE(40), 1, sym_comment, - STATE(83), 1, + STATE(72), 1, sym__string_literal, - [1183] = 7, + [1243] = 6, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(119), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(122), 1, + anon_sym_DQUOTE2, + ACTIONS(124), 1, + sym_escape_sequence, + STATE(41), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1263] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(127), 1, anon_sym_COMMA, - ACTIONS(134), 1, + ACTIONS(129), 1, anon_sym_RBRACK, - ACTIONS(136), 1, + ACTIONS(131), 1, anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(61), 1, + STATE(64), 1, aux_sym_list_expression_repeat1, - [1205] = 5, + [1285] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(138), 1, - anon_sym_COMMA, - ACTIONS(141), 1, - anon_sym_RBRACK, - STATE(43), 2, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(43), 1, sym_comment, - aux_sym_list_expression_repeat1, - [1222] = 6, + STATE(109), 1, + sym__string_literal, + [1307] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(143), 1, - anon_sym_RBRACE, - ACTIONS(145), 1, + ACTIONS(133), 1, + anon_sym_LPAREN, + ACTIONS(135), 1, sym_identifier, STATE(44), 1, sym_comment, - STATE(91), 1, - sym__colon_property, - [1241] = 6, - ACTIONS(3), 1, + STATE(135), 1, + sym__select_value, + STATE(137), 1, + sym_select_value, + [1329] = 7, + ACTIONS(115), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(117), 1, anon_sym_SLASH_STAR, - ACTIONS(147), 1, - anon_sym_COMMA, - ACTIONS(149), 1, - anon_sym_RBRACE, + ACTIONS(137), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(139), 1, + anon_sym_DQUOTE2, + ACTIONS(141), 1, + sym_escape_sequence, + STATE(41), 1, + aux_sym_interpreted_string_literal_repeat1, STATE(45), 1, sym_comment, - STATE(55), 1, - aux_sym__old_module_repeat1, - [1260] = 5, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(151), 1, - aux_sym_interpreted_string_literal_token1, - STATE(46), 1, - sym_comment, - ACTIONS(153), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1277] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(155), 1, - anon_sym_COMMA, - ACTIONS(158), 1, - anon_sym_RPAREN, - STATE(47), 2, - sym_comment, - aux_sym_select_value_repeat1, - [1294] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(160), 1, - anon_sym_RBRACE, - STATE(48), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, - [1313] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(162), 1, - anon_sym_COMMA, - ACTIONS(164), 1, - anon_sym_RPAREN, - STATE(47), 1, - aux_sym_select_value_repeat1, - STATE(49), 1, - sym_comment, - [1332] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(166), 1, - anon_sym_COMMA, - ACTIONS(168), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, [1351] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(170), 1, - anon_sym_RPAREN, - ACTIONS(172), 1, - sym_identifier, - STATE(51), 1, - sym_comment, - STATE(74), 1, - sym__equal_property, - [1370] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(145), 1, - sym_identifier, - ACTIONS(174), 1, - anon_sym_RBRACE, - STATE(52), 1, + anon_sym_LBRACE, + ACTIONS(147), 1, + anon_sym_LPAREN, + STATE(46), 1, sym_comment, - STATE(62), 1, - sym__colon_property, - [1389] = 6, + ACTIONS(143), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1371] = 7, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(137), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(141), 1, + sym_escape_sequence, + ACTIONS(149), 1, + anon_sym_DQUOTE2, + STATE(45), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(47), 1, + sym_comment, + [1393] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(176), 1, + ACTIONS(131), 1, + anon_sym_PLUS, + STATE(48), 1, + sym_comment, + ACTIONS(151), 2, anon_sym_COMMA, - ACTIONS(178), 1, anon_sym_RPAREN, - STATE(53), 1, - sym_comment, - STATE(65), 1, - aux_sym__new_module_repeat1, - [1408] = 6, + [1410] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, - [1427] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(182), 1, + ACTIONS(153), 1, anon_sym_COMMA, - ACTIONS(184), 1, - anon_sym_RBRACE, - STATE(55), 1, - sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, - [1446] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(162), 1, - anon_sym_COMMA, - ACTIONS(186), 1, + ACTIONS(155), 1, anon_sym_RPAREN, STATE(49), 1, - aux_sym_select_value_repeat1, - STATE(56), 1, sym_comment, + STATE(73), 1, + aux_sym_select_value_repeat1, + [1429] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(157), 1, + anon_sym_COMMA, + ACTIONS(159), 1, + anon_sym_RBRACE, + STATE(50), 1, + sym_comment, + STATE(59), 1, + aux_sym__old_module_repeat1, + [1448] = 5, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(161), 1, + aux_sym_interpreted_string_literal_token1, + STATE(51), 1, + sym_comment, + ACTIONS(163), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, [1465] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(165), 1, + anon_sym_RBRACE, + ACTIONS(167), 1, sym_identifier, - ACTIONS(188), 1, + STATE(52), 1, + sym_comment, + STATE(101), 1, + sym__colon_property, + [1484] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(169), 1, + anon_sym_COMMA, + ACTIONS(172), 1, + anon_sym_RPAREN, + STATE(53), 2, + sym_comment, + aux_sym__select_value_repeat1, + [1501] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, + anon_sym_COMMA, + ACTIONS(176), 1, + anon_sym_RBRACE, + STATE(54), 1, + sym_comment, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1520] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(178), 1, + anon_sym_RPAREN, + ACTIONS(180), 1, + sym_identifier, + STATE(55), 1, + sym_comment, + STATE(95), 1, + sym__equal_property, + [1539] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(56), 1, + sym_comment, + ACTIONS(182), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1554] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(184), 1, + anon_sym_COMMA, + ACTIONS(186), 1, anon_sym_RPAREN, STATE(57), 1, sym_comment, - STATE(64), 1, - sym__equal_property, - [1484] = 6, + STATE(76), 1, + aux_sym__new_module_repeat1, + [1573] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, + ACTIONS(167), 1, sym_identifier, - ACTIONS(190), 1, + ACTIONS(188), 1, anon_sym_RBRACE, - STATE(45), 1, - sym__colon_property, STATE(58), 1, sym_comment, - [1503] = 5, + STATE(101), 1, + sym__colon_property, + [1592] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + ACTIONS(190), 1, + anon_sym_COMMA, + ACTIONS(192), 1, + anon_sym_RBRACE, STATE(59), 1, sym_comment, - ACTIONS(192), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1520] = 5, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1611] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(194), 1, + anon_sym_RBRACE, STATE(60), 1, sym_comment, - ACTIONS(194), 2, - ts_builtin_sym_end, - sym_identifier, - [1537] = 6, + STATE(81), 1, + sym__colon_property, + [1630] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(196), 1, anon_sym_COMMA, - ACTIONS(198), 1, - anon_sym_RBRACK, - STATE(43), 1, - aux_sym_list_expression_repeat1, - STATE(61), 1, - sym_comment, - [1556] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(200), 1, - anon_sym_COMMA, - ACTIONS(202), 1, - anon_sym_RBRACE, - STATE(50), 1, - aux_sym__old_module_repeat1, - STATE(62), 1, - sym_comment, - [1575] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, - STATE(63), 1, - sym_comment, - ACTIONS(204), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1592] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(206), 1, - anon_sym_COMMA, - ACTIONS(208), 1, + ACTIONS(199), 1, anon_sym_RPAREN, - STATE(53), 1, - aux_sym__new_module_repeat1, - STATE(64), 1, + STATE(61), 2, sym_comment, - [1611] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(210), 1, - anon_sym_COMMA, - ACTIONS(213), 1, - anon_sym_RPAREN, - STATE(65), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1628] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(215), 1, - anon_sym_RBRACE, - STATE(66), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, + aux_sym_select_pattern_repeat1, [1647] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(201), 1, + anon_sym_COMMA, + ACTIONS(203), 1, + anon_sym_RPAREN, + STATE(53), 1, + aux_sym__select_value_repeat1, + STATE(62), 1, + sym_comment, + [1666] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(180), 1, sym_identifier, - ACTIONS(217), 1, + ACTIONS(205), 1, + anon_sym_RPAREN, + STATE(63), 1, + sym_comment, + STATE(77), 1, + sym__equal_property, + [1685] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(207), 1, + anon_sym_COMMA, + ACTIONS(209), 1, + anon_sym_RBRACK, + STATE(64), 1, + sym_comment, + STATE(79), 1, + aux_sym_list_expression_repeat1, + [1704] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, + STATE(65), 1, + sym_comment, + ACTIONS(211), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1721] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(213), 1, + anon_sym_COMMA, + ACTIONS(216), 1, + anon_sym_RPAREN, + STATE(66), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1738] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + ACTIONS(218), 1, anon_sym_RPAREN, STATE(67), 1, sym_comment, - STATE(74), 1, - sym__equal_property, - [1666] = 5, + STATE(100), 1, + sym__select_value, + [1757] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(219), 1, - anon_sym_COMMA, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(220), 1, + anon_sym_RBRACE, + STATE(68), 1, + sym_comment, + STATE(101), 1, + sym__colon_property, + [1776] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, ACTIONS(222), 1, anon_sym_RBRACE, - STATE(68), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1683] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + STATE(50), 1, + sym__colon_property, STATE(69), 1, sym_comment, - ACTIONS(224), 2, + [1795] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(224), 1, anon_sym_COMMA, - anon_sym_RPAREN, - [1700] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(70), 1, + ACTIONS(227), 1, + anon_sym_RBRACE, + STATE(70), 2, sym_comment, - ACTIONS(226), 2, - ts_builtin_sym_end, - sym_identifier, - [1714] = 4, + aux_sym__old_module_repeat1, + [1812] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(64), 1, + anon_sym_RPAREN, + ACTIONS(229), 1, + anon_sym_COMMA, + STATE(61), 1, + aux_sym_select_pattern_repeat1, STATE(71), 1, sym_comment, - ACTIONS(228), 2, - ts_builtin_sym_end, - sym_identifier, - [1728] = 4, + [1831] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(201), 1, + anon_sym_COMMA, + ACTIONS(231), 1, + anon_sym_RPAREN, + STATE(62), 1, + aux_sym__select_value_repeat1, STATE(72), 1, sym_comment, - ACTIONS(230), 2, - ts_builtin_sym_end, - sym_identifier, - [1742] = 4, + [1850] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(233), 1, + anon_sym_COMMA, + ACTIONS(235), 1, + anon_sym_RPAREN, + STATE(66), 1, + aux_sym_select_value_repeat1, STATE(73), 1, sym_comment, - ACTIONS(232), 2, - ts_builtin_sym_end, - sym_identifier, - [1756] = 4, + [1869] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(180), 1, + sym_identifier, + ACTIONS(237), 1, + anon_sym_RPAREN, STATE(74), 1, sym_comment, - ACTIONS(234), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1770] = 4, + STATE(95), 1, + sym__equal_property, + [1888] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + ACTIONS(239), 1, + anon_sym_RPAREN, STATE(75), 1, sym_comment, - ACTIONS(236), 2, - ts_builtin_sym_end, - sym_identifier, - [1784] = 5, + STATE(100), 1, + sym__select_value, + [1907] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, - ACTIONS(238), 1, + ACTIONS(241), 1, anon_sym_COMMA, - STATE(76), 1, + ACTIONS(244), 1, + anon_sym_RPAREN, + STATE(76), 2, sym_comment, - [1800] = 5, + aux_sym__new_module_repeat1, + [1924] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(240), 1, - sym_identifier, + ACTIONS(246), 1, + anon_sym_COMMA, + ACTIONS(248), 1, + anon_sym_RPAREN, + STATE(57), 1, + aux_sym__new_module_repeat1, STATE(77), 1, sym_comment, - STATE(93), 1, - sym_select_value, - [1816] = 4, + [1943] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(250), 1, + anon_sym_RBRACE, STATE(78), 1, sym_comment, - ACTIONS(242), 2, - ts_builtin_sym_end, - sym_identifier, - [1830] = 5, + STATE(101), 1, + sym__colon_property, + [1962] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(244), 1, - anon_sym_LBRACE, - STATE(79), 1, + ACTIONS(252), 1, + anon_sym_COMMA, + ACTIONS(255), 1, + anon_sym_RBRACK, + STATE(79), 2, sym_comment, - STATE(103), 1, - sym_select_cases, - [1846] = 4, + aux_sym_list_expression_repeat1, + [1979] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(257), 1, + anon_sym_COMMA, + ACTIONS(259), 1, + anon_sym_RPAREN, + STATE(71), 1, + aux_sym_select_pattern_repeat1, STATE(80), 1, sym_comment, - ACTIONS(246), 2, - ts_builtin_sym_end, - sym_identifier, - [1860] = 4, + [1998] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(261), 1, + anon_sym_COMMA, + ACTIONS(263), 1, + anon_sym_RBRACE, + STATE(54), 1, + aux_sym__old_module_repeat1, STATE(81), 1, sym_comment, - ACTIONS(248), 2, - ts_builtin_sym_end, - sym_identifier, - [1874] = 4, + [2017] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, STATE(82), 1, sym_comment, - ACTIONS(250), 2, + ACTIONS(265), 2, ts_builtin_sym_end, sym_identifier, - [1888] = 4, + [2034] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, STATE(83), 1, sym_comment, - ACTIONS(158), 2, + ACTIONS(267), 2, anon_sym_COMMA, - anon_sym_RPAREN, - [1902] = 4, + anon_sym_RBRACK, + [2051] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(252), 2, + ACTIONS(269), 2, ts_builtin_sym_end, sym_identifier, - [1916] = 4, + [2065] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(254), 2, + ACTIONS(271), 2, ts_builtin_sym_end, sym_identifier, - [1930] = 5, + [2079] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, + ACTIONS(273), 1, + anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(91), 1, - sym__colon_property, - [1946] = 4, + STATE(123), 1, + sym_select_cases, + [2095] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(256), 2, + ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, - [1960] = 5, + [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, - sym_identifier, - STATE(74), 1, - sym__equal_property, STATE(88), 1, sym_comment, - [1976] = 4, + ACTIONS(277), 2, + ts_builtin_sym_end, + sym_identifier, + [2123] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, STATE(89), 1, sym_comment, - ACTIONS(248), 2, - ts_builtin_sym_end, - sym_identifier, - [1990] = 4, + STATE(101), 1, + sym__colon_property, + [2139] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(258), 2, + ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, - [2004] = 4, + [2153] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(180), 1, + sym_identifier, STATE(91), 1, sym_comment, - ACTIONS(260), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2018] = 4, + STATE(95), 1, + sym__equal_property, + [2169] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, - anon_sym_LPAREN, STATE(92), 1, sym_comment, - [2031] = 4, + ACTIONS(281), 2, + ts_builtin_sym_end, + sym_identifier, + [2183] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(264), 1, - anon_sym_COMMA, STATE(93), 1, sym_comment, - [2044] = 4, + ACTIONS(283), 2, + ts_builtin_sym_end, + sym_identifier, + [2197] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(266), 1, - anon_sym_SLASH, STATE(94), 1, sym_comment, - [2057] = 4, + ACTIONS(269), 2, + ts_builtin_sym_end, + sym_identifier, + [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(268), 1, - anon_sym_COMMA, STATE(95), 1, sym_comment, - [2070] = 4, + ACTIONS(285), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2225] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(270), 1, - anon_sym_COLON, STATE(96), 1, sym_comment, - [2083] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(272), 1, - anon_sym_COMMA, - STATE(97), 1, - sym_comment, - [2096] = 4, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(274), 1, - aux_sym_comment_token1, - STATE(98), 1, - sym_comment, - [2109] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(276), 1, - anon_sym_RPAREN, - STATE(99), 1, - sym_comment, - [2122] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(278), 1, - anon_sym_COLON, - STATE(100), 1, - sym_comment, - [2135] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(280), 1, - anon_sym_COMMA, - STATE(101), 1, - sym_comment, - [2148] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(282), 1, - anon_sym_COMMA, - STATE(102), 1, - sym_comment, - [2161] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(284), 1, - anon_sym_RPAREN, - STATE(103), 1, - sym_comment, - [2174] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(286), 1, - anon_sym_LPAREN, - STATE(104), 1, - sym_comment, - [2187] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(288), 1, - anon_sym_COMMA, - STATE(105), 1, - sym_comment, - [2200] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(290), 1, - anon_sym_EQ, - STATE(106), 1, - sym_comment, - [2213] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(292), 1, - aux_sym_integer_literal_token1, - STATE(107), 1, - sym_comment, - [2226] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(294), 1, + ACTIONS(287), 2, ts_builtin_sym_end, - STATE(108), 1, - sym_comment, + sym_identifier, [2239] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(296), 1, + STATE(97), 1, + sym_comment, + ACTIONS(289), 2, + anon_sym_COMMA, anon_sym_RPAREN, - STATE(109), 1, - sym_comment, - [2252] = 4, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(298), 1, - aux_sym_comment_token2, - STATE(110), 1, - sym_comment, - [2265] = 4, + [2253] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(238), 1, + STATE(98), 1, + sym_comment, + ACTIONS(291), 2, + ts_builtin_sym_end, + sym_identifier, + [2267] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(99), 1, + sym_comment, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2281] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(100), 1, + sym_comment, + ACTIONS(295), 2, anon_sym_COMMA, + anon_sym_RPAREN, + [2295] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(101), 1, + sym_comment, + ACTIONS(297), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2309] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(102), 1, + sym_comment, + ACTIONS(299), 2, + ts_builtin_sym_end, + sym_identifier, + [2323] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, + ACTIONS(301), 1, + anon_sym_COMMA, + STATE(103), 1, + sym_comment, + [2339] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(104), 1, + sym_comment, + ACTIONS(303), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2353] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(105), 1, + sym_comment, + ACTIONS(199), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2367] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + STATE(49), 1, + sym__select_value, + STATE(106), 1, + sym_comment, + [2383] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(107), 1, + sym_comment, + ACTIONS(305), 2, + ts_builtin_sym_end, + sym_identifier, + [2397] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + STATE(100), 1, + sym__select_value, + STATE(108), 1, + sym_comment, + [2413] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(109), 1, + sym_comment, + ACTIONS(172), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2427] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(110), 1, + sym_comment, + ACTIONS(307), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2441] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - [2278] = 1, - ACTIONS(300), 1, + ACTIONS(309), 2, ts_builtin_sym_end, - [2282] = 1, - ACTIONS(302), 1, + sym_identifier, + [2455] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(311), 1, + anon_sym_LPAREN, + STATE(112), 1, + sym_comment, + [2468] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(301), 1, + anon_sym_COMMA, + STATE(113), 1, + sym_comment, + [2481] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(313), 1, + anon_sym_COLON, + STATE(114), 1, + sym_comment, + [2494] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(315), 1, + anon_sym_COLON, + STATE(115), 1, + sym_comment, + [2507] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(317), 1, + anon_sym_SLASH, + STATE(116), 1, + sym_comment, + [2520] = 4, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(319), 1, + aux_sym_comment_token2, + STATE(117), 1, + sym_comment, + [2533] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(321), 1, + anon_sym_COMMA, + STATE(118), 1, + sym_comment, + [2546] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(323), 1, + anon_sym_COLON, + STATE(119), 1, + sym_comment, + [2559] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(325), 1, + anon_sym_COMMA, + STATE(120), 1, + sym_comment, + [2572] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(327), 1, + anon_sym_RPAREN, + STATE(121), 1, + sym_comment, + [2585] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(329), 1, + anon_sym_COMMA, + STATE(122), 1, + sym_comment, + [2598] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(331), 1, + anon_sym_RPAREN, + STATE(123), 1, + sym_comment, + [2611] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(333), 1, + anon_sym_LPAREN, + STATE(124), 1, + sym_comment, + [2624] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(335), 1, + aux_sym_integer_literal_token1, + STATE(125), 1, + sym_comment, + [2637] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(337), 1, + anon_sym_RPAREN, + STATE(126), 1, + sym_comment, + [2650] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(339), 1, + anon_sym_COMMA, + STATE(127), 1, + sym_comment, + [2663] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(341), 1, + anon_sym_COLON, + STATE(128), 1, + sym_comment, + [2676] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(343), 1, + anon_sym_COLON, + STATE(129), 1, + sym_comment, + [2689] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(345), 1, + anon_sym_EQ, + STATE(130), 1, + sym_comment, + [2702] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(347), 1, + anon_sym_COMMA, + STATE(131), 1, + sym_comment, + [2715] = 4, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(349), 1, + aux_sym_comment_token1, + STATE(132), 1, + sym_comment, + [2728] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(351), 1, + anon_sym_COMMA, + STATE(133), 1, + sym_comment, + [2741] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(353), 1, + anon_sym_COLON, + STATE(134), 1, + sym_comment, + [2754] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(355), 1, + anon_sym_COMMA, + STATE(135), 1, + sym_comment, + [2767] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(357), 1, + ts_builtin_sym_end, + STATE(136), 1, + sym_comment, + [2780] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(359), 1, + anon_sym_COMMA, + STATE(137), 1, + sym_comment, + [2793] = 1, + ACTIONS(361), 1, + ts_builtin_sym_end, + [2797] = 1, + ACTIONS(363), 1, ts_builtin_sym_end, }; @@ -5920,258 +6388,313 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 529, - [SMALL_STATE(13)] = 568, - [SMALL_STATE(14)] = 607, - [SMALL_STATE(15)] = 627, - [SMALL_STATE(16)] = 659, - [SMALL_STATE(17)] = 679, - [SMALL_STATE(18)] = 709, - [SMALL_STATE(19)] = 729, - [SMALL_STATE(20)] = 749, - [SMALL_STATE(21)] = 768, - [SMALL_STATE(22)] = 787, - [SMALL_STATE(23)] = 806, - [SMALL_STATE(24)] = 825, - [SMALL_STATE(25)] = 844, - [SMALL_STATE(26)] = 863, - [SMALL_STATE(27)] = 882, - [SMALL_STATE(28)] = 901, - [SMALL_STATE(29)] = 920, - [SMALL_STATE(30)] = 939, - [SMALL_STATE(31)] = 958, - [SMALL_STATE(32)] = 977, - [SMALL_STATE(33)] = 996, - [SMALL_STATE(34)] = 1015, - [SMALL_STATE(35)] = 1034, - [SMALL_STATE(36)] = 1052, - [SMALL_STATE(37)] = 1077, - [SMALL_STATE(38)] = 1097, - [SMALL_STATE(39)] = 1119, - [SMALL_STATE(40)] = 1141, - [SMALL_STATE(41)] = 1161, - [SMALL_STATE(42)] = 1183, - [SMALL_STATE(43)] = 1205, - [SMALL_STATE(44)] = 1222, - [SMALL_STATE(45)] = 1241, - [SMALL_STATE(46)] = 1260, - [SMALL_STATE(47)] = 1277, - [SMALL_STATE(48)] = 1294, - [SMALL_STATE(49)] = 1313, - [SMALL_STATE(50)] = 1332, - [SMALL_STATE(51)] = 1351, - [SMALL_STATE(52)] = 1370, - [SMALL_STATE(53)] = 1389, - [SMALL_STATE(54)] = 1408, - [SMALL_STATE(55)] = 1427, - [SMALL_STATE(56)] = 1446, - [SMALL_STATE(57)] = 1465, - [SMALL_STATE(58)] = 1484, - [SMALL_STATE(59)] = 1503, - [SMALL_STATE(60)] = 1520, - [SMALL_STATE(61)] = 1537, - [SMALL_STATE(62)] = 1556, - [SMALL_STATE(63)] = 1575, - [SMALL_STATE(64)] = 1592, - [SMALL_STATE(65)] = 1611, - [SMALL_STATE(66)] = 1628, - [SMALL_STATE(67)] = 1647, - [SMALL_STATE(68)] = 1666, - [SMALL_STATE(69)] = 1683, - [SMALL_STATE(70)] = 1700, - [SMALL_STATE(71)] = 1714, - [SMALL_STATE(72)] = 1728, - [SMALL_STATE(73)] = 1742, - [SMALL_STATE(74)] = 1756, - [SMALL_STATE(75)] = 1770, - [SMALL_STATE(76)] = 1784, - [SMALL_STATE(77)] = 1800, - [SMALL_STATE(78)] = 1816, - [SMALL_STATE(79)] = 1830, - [SMALL_STATE(80)] = 1846, - [SMALL_STATE(81)] = 1860, - [SMALL_STATE(82)] = 1874, - [SMALL_STATE(83)] = 1888, - [SMALL_STATE(84)] = 1902, - [SMALL_STATE(85)] = 1916, - [SMALL_STATE(86)] = 1930, - [SMALL_STATE(87)] = 1946, - [SMALL_STATE(88)] = 1960, - [SMALL_STATE(89)] = 1976, - [SMALL_STATE(90)] = 1990, - [SMALL_STATE(91)] = 2004, - [SMALL_STATE(92)] = 2018, - [SMALL_STATE(93)] = 2031, - [SMALL_STATE(94)] = 2044, - [SMALL_STATE(95)] = 2057, - [SMALL_STATE(96)] = 2070, - [SMALL_STATE(97)] = 2083, - [SMALL_STATE(98)] = 2096, - [SMALL_STATE(99)] = 2109, - [SMALL_STATE(100)] = 2122, - [SMALL_STATE(101)] = 2135, - [SMALL_STATE(102)] = 2148, - [SMALL_STATE(103)] = 2161, - [SMALL_STATE(104)] = 2174, - [SMALL_STATE(105)] = 2187, - [SMALL_STATE(106)] = 2200, - [SMALL_STATE(107)] = 2213, - [SMALL_STATE(108)] = 2226, - [SMALL_STATE(109)] = 2239, - [SMALL_STATE(110)] = 2252, - [SMALL_STATE(111)] = 2265, - [SMALL_STATE(112)] = 2278, - [SMALL_STATE(113)] = 2282, + [SMALL_STATE(12)] = 540, + [SMALL_STATE(13)] = 588, + [SMALL_STATE(14)] = 634, + [SMALL_STATE(15)] = 670, + [SMALL_STATE(16)] = 706, + [SMALL_STATE(17)] = 739, + [SMALL_STATE(18)] = 772, + [SMALL_STATE(19)] = 792, + [SMALL_STATE(20)] = 822, + [SMALL_STATE(21)] = 854, + [SMALL_STATE(22)] = 874, + [SMALL_STATE(23)] = 894, + [SMALL_STATE(24)] = 914, + [SMALL_STATE(25)] = 933, + [SMALL_STATE(26)] = 952, + [SMALL_STATE(27)] = 971, + [SMALL_STATE(28)] = 990, + [SMALL_STATE(29)] = 1009, + [SMALL_STATE(30)] = 1028, + [SMALL_STATE(31)] = 1047, + [SMALL_STATE(32)] = 1066, + [SMALL_STATE(33)] = 1085, + [SMALL_STATE(34)] = 1104, + [SMALL_STATE(35)] = 1123, + [SMALL_STATE(36)] = 1142, + [SMALL_STATE(37)] = 1161, + [SMALL_STATE(38)] = 1180, + [SMALL_STATE(39)] = 1199, + [SMALL_STATE(40)] = 1218, + [SMALL_STATE(41)] = 1243, + [SMALL_STATE(42)] = 1263, + [SMALL_STATE(43)] = 1285, + [SMALL_STATE(44)] = 1307, + [SMALL_STATE(45)] = 1329, + [SMALL_STATE(46)] = 1351, + [SMALL_STATE(47)] = 1371, + [SMALL_STATE(48)] = 1393, + [SMALL_STATE(49)] = 1410, + [SMALL_STATE(50)] = 1429, + [SMALL_STATE(51)] = 1448, + [SMALL_STATE(52)] = 1465, + [SMALL_STATE(53)] = 1484, + [SMALL_STATE(54)] = 1501, + [SMALL_STATE(55)] = 1520, + [SMALL_STATE(56)] = 1539, + [SMALL_STATE(57)] = 1554, + [SMALL_STATE(58)] = 1573, + [SMALL_STATE(59)] = 1592, + [SMALL_STATE(60)] = 1611, + [SMALL_STATE(61)] = 1630, + [SMALL_STATE(62)] = 1647, + [SMALL_STATE(63)] = 1666, + [SMALL_STATE(64)] = 1685, + [SMALL_STATE(65)] = 1704, + [SMALL_STATE(66)] = 1721, + [SMALL_STATE(67)] = 1738, + [SMALL_STATE(68)] = 1757, + [SMALL_STATE(69)] = 1776, + [SMALL_STATE(70)] = 1795, + [SMALL_STATE(71)] = 1812, + [SMALL_STATE(72)] = 1831, + [SMALL_STATE(73)] = 1850, + [SMALL_STATE(74)] = 1869, + [SMALL_STATE(75)] = 1888, + [SMALL_STATE(76)] = 1907, + [SMALL_STATE(77)] = 1924, + [SMALL_STATE(78)] = 1943, + [SMALL_STATE(79)] = 1962, + [SMALL_STATE(80)] = 1979, + [SMALL_STATE(81)] = 1998, + [SMALL_STATE(82)] = 2017, + [SMALL_STATE(83)] = 2034, + [SMALL_STATE(84)] = 2051, + [SMALL_STATE(85)] = 2065, + [SMALL_STATE(86)] = 2079, + [SMALL_STATE(87)] = 2095, + [SMALL_STATE(88)] = 2109, + [SMALL_STATE(89)] = 2123, + [SMALL_STATE(90)] = 2139, + [SMALL_STATE(91)] = 2153, + [SMALL_STATE(92)] = 2169, + [SMALL_STATE(93)] = 2183, + [SMALL_STATE(94)] = 2197, + [SMALL_STATE(95)] = 2211, + [SMALL_STATE(96)] = 2225, + [SMALL_STATE(97)] = 2239, + [SMALL_STATE(98)] = 2253, + [SMALL_STATE(99)] = 2267, + [SMALL_STATE(100)] = 2281, + [SMALL_STATE(101)] = 2295, + [SMALL_STATE(102)] = 2309, + [SMALL_STATE(103)] = 2323, + [SMALL_STATE(104)] = 2339, + [SMALL_STATE(105)] = 2353, + [SMALL_STATE(106)] = 2367, + [SMALL_STATE(107)] = 2383, + [SMALL_STATE(108)] = 2397, + [SMALL_STATE(109)] = 2413, + [SMALL_STATE(110)] = 2427, + [SMALL_STATE(111)] = 2441, + [SMALL_STATE(112)] = 2455, + [SMALL_STATE(113)] = 2468, + [SMALL_STATE(114)] = 2481, + [SMALL_STATE(115)] = 2494, + [SMALL_STATE(116)] = 2507, + [SMALL_STATE(117)] = 2520, + [SMALL_STATE(118)] = 2533, + [SMALL_STATE(119)] = 2546, + [SMALL_STATE(120)] = 2559, + [SMALL_STATE(121)] = 2572, + [SMALL_STATE(122)] = 2585, + [SMALL_STATE(123)] = 2598, + [SMALL_STATE(124)] = 2611, + [SMALL_STATE(125)] = 2624, + [SMALL_STATE(126)] = 2637, + [SMALL_STATE(127)] = 2650, + [SMALL_STATE(128)] = 2663, + [SMALL_STATE(129)] = 2676, + [SMALL_STATE(130)] = 2689, + [SMALL_STATE(131)] = 2702, + [SMALL_STATE(132)] = 2715, + [SMALL_STATE(133)] = 2728, + [SMALL_STATE(134)] = 2741, + [SMALL_STATE(135)] = 2754, + [SMALL_STATE(136)] = 2767, + [SMALL_STATE(137)] = 2780, + [SMALL_STATE(138)] = 2793, + [SMALL_STATE(139)] = 2797, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(14), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), - [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), - [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [124] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), - [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), - [141] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [151] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(41), - [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [219] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [266] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [274] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [294] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [298] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), - [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(16), + [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), + [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), + [58] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), + [61] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(56), + [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), + [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(46), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 7), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 7), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 12), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 13), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 8), + [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 13), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132), + [117] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), + [119] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), + [122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [124] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [137] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [151] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 9), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [169] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), SHIFT_REPEAT(43), + [172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 9), + [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), SHIFT_REPEAT(108), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [224] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(89), + [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), + [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), + [241] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(91), + [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), + [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [252] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), SHIFT_REPEAT(10), + [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 7), + [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 10), + [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 10), + [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 3, .production_id = 16), + [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 10), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 10), + [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 15), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 4, .production_id = 19), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 5, .production_id = 20), + [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [317] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), + [319] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 17), + [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 17), + [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), + [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 15), + [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(139), + [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 21), + [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1, .production_id = 6), + [357] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index fc4bf04..281a985 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -19,10 +19,12 @@ foo = select(release_variable("RELEASE_TEST"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (unset)))))) ================================================================================ @@ -47,10 +49,12 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (unset)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -76,16 +80,20 @@ foo = select(variant("arch"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -130,19 +138,24 @@ foo = select(variant("VARIANT"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (unset)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -165,10 +178,12 @@ foo = select(variant(), { (identifier)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (unset)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -192,10 +207,12 @@ foo = select(some_unknown_type("CONDITION"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -220,10 +237,12 @@ foo = select(release_variable("ONE", "TWO"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -248,10 +267,65 @@ foo = select(some_boolean("VALUE",), { (ERROR)) (select_cases (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)) (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) + (interpreted_string_literal)))))) + +================================================================================ +Select (trailing comma in values) +================================================================================ + +foo = select(( + arch(), + os(), +), { + (default, default): "true", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (identifier)) + (select_cases + (select_case + (select_pattern + (default) + (default)) + (interpreted_string_literal)))))) + +================================================================================ +Select (trailing comma in pattern) +================================================================================ + +foo = select((arch(), os()), { + (default, default,): "true", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (identifier)) + (select_cases + (select_case + (select_pattern + (default) + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -275,10 +349,12 @@ foo = select(some_boolean("IS_TRUE"), { (interpreted_string_literal)) (select_cases (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)) (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)))))) ================================================================================ From ff40b39dcf318b7697e592f5f3e351f7ef36614e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:47:30 +0000 Subject: [PATCH 17/39] Expose 'condition' node --- grammar.js | 6 +- queries/highlights.scm | 2 +- src/grammar.json | 8 +- src/node-types.json | 73 +- src/parser.c | 1915 ++++++++++++++++++++-------------------- test/corpus/select.txt | 66 +- 6 files changed, 1032 insertions(+), 1038 deletions(-) diff --git a/grammar.js b/grammar.js index a9e0d8c..53bbe96 100644 --- a/grammar.js +++ b/grammar.js @@ -132,11 +132,11 @@ module.exports = grammar({ ), select_value: ($) => choice( - $._select_value, - seq("(", commaSeparatedOptTrailing($._select_value), ")"), + $.condition, + seq("(", commaSeparatedOptTrailing($.condition), ")"), ), - _select_value: ($) => seq( + condition: ($) => seq( field("name", $.identifier), "(", field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), diff --git a/queries/highlights.scm b/queries/highlights.scm index 13cdcde..c574ffc 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -51,7 +51,7 @@ (unset) (default) ] @variable.builtin -(select_value +(condition name: (identifier) @function.builtin) ; }}} diff --git a/src/grammar.json b/src/grammar.json index f55607c..2cc4d5c 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -491,7 +491,7 @@ "members": [ { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" }, { "type": "SEQ", @@ -505,7 +505,7 @@ "members": [ { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" }, { "type": "REPEAT", @@ -518,7 +518,7 @@ }, { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" } ] } @@ -545,7 +545,7 @@ } ] }, - "_select_value": { + "condition": { "type": "SEQ", "members": [ { diff --git a/src/node-types.json b/src/node-types.json index f1817a2..9c0e5c8 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -177,6 +177,40 @@ "named": true, "fields": {} }, + { + "type": "condition", + "named": true, + "fields": { + "arguments": { + "multiple": true, + "required": false, + "types": [ + { + "type": ",", + "named": false + }, + { + "type": "interpreted_string_literal", + "named": true + }, + { + "type": "raw_string_literal", + "named": true + } + ] + }, + "name": { + "multiple": false, + "required": true, + "types": [ + { + "type": "identifier", + "named": true + } + ] + } + } + }, { "type": "integer_literal", "named": true, @@ -471,35 +505,16 @@ { "type": "select_value", "named": true, - "fields": { - "arguments": { - "multiple": true, - "required": false, - "types": [ - { - "type": ",", - "named": false - }, - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", - "named": true - } - ] - }, - "name": { - "multiple": true, - "required": true, - "types": [ - { - "type": "identifier", - "named": true - } - ] - } + "fields": {}, + "children": { + "multiple": true, + "required": true, + "types": [ + { + "type": "condition", + "named": true + } + ] } }, { diff --git a/src/parser.c b/src/parser.c index 2efc422..4b3960e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 140 +#define STATE_COUNT 139 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 64 #define ALIAS_COUNT 0 @@ -13,7 +13,7 @@ #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 22 +#define PRODUCTION_ID_COUNT 18 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -59,7 +59,7 @@ enum ts_symbol_identifiers { sym_interpreted_string_literal = 41, sym_select_expression = 42, sym_select_value = 43, - sym__select_value = 44, + sym_condition = 44, sym_select_cases = 45, sym_select_case = 46, sym_select_pattern = 47, @@ -75,7 +75,7 @@ enum ts_symbol_identifiers { aux_sym__new_module_repeat1 = 57, aux_sym_interpreted_string_literal_repeat1 = 58, aux_sym_select_value_repeat1 = 59, - aux_sym__select_value_repeat1 = 60, + aux_sym_condition_repeat1 = 60, aux_sym_select_cases_repeat1 = 61, aux_sym_select_pattern_repeat1 = 62, aux_sym_list_expression_repeat1 = 63, @@ -126,7 +126,7 @@ static const char * const ts_symbol_names[] = { [sym_interpreted_string_literal] = "interpreted_string_literal", [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", - [sym__select_value] = "_select_value", + [sym_condition] = "condition", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", [sym_select_pattern] = "select_pattern", @@ -142,7 +142,7 @@ static const char * const ts_symbol_names[] = { [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", [aux_sym_select_value_repeat1] = "select_value_repeat1", - [aux_sym__select_value_repeat1] = "_select_value_repeat1", + [aux_sym_condition_repeat1] = "condition_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_select_pattern_repeat1] = "select_pattern_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", @@ -193,7 +193,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_interpreted_string_literal] = sym_interpreted_string_literal, [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, - [sym__select_value] = sym__select_value, + [sym_condition] = sym_condition, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, [sym_select_pattern] = sym_select_pattern, @@ -209,7 +209,7 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__new_module_repeat1] = aux_sym__new_module_repeat1, [aux_sym_interpreted_string_literal_repeat1] = aux_sym_interpreted_string_literal_repeat1, [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, - [aux_sym__select_value_repeat1] = aux_sym__select_value_repeat1, + [aux_sym_condition_repeat1] = aux_sym_condition_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_select_pattern_repeat1] = aux_sym_select_pattern_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, @@ -392,8 +392,8 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym__select_value] = { - .visible = false, + [sym_condition] = { + .visible = true, .named = true, }, [sym_select_cases] = { @@ -456,7 +456,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [aux_sym__select_value_repeat1] = { + [aux_sym_condition_repeat1] = { .visible = false, .named = false, }, @@ -509,22 +509,18 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [3] = {.index = 5, .length = 1}, [4] = {.index = 6, .length = 4}, [5] = {.index = 10, .length = 3}, - [6] = {.index = 13, .length = 2}, - [7] = {.index = 15, .length = 1}, - [8] = {.index = 2, .length = 3}, - [9] = {.index = 16, .length = 2}, - [10] = {.index = 18, .length = 5}, - [11] = {.index = 23, .length = 2}, - [12] = {.index = 25, .length = 4}, + [6] = {.index = 13, .length = 1}, + [7] = {.index = 2, .length = 3}, + [8] = {.index = 14, .length = 2}, + [9] = {.index = 16, .length = 5}, + [10] = {.index = 21, .length = 2}, + [11] = {.index = 23, .length = 4}, + [12] = {.index = 27, .length = 2}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 31, .length = 2}, - [15] = {.index = 33, .length = 2}, - [16] = {.index = 35, .length = 1}, - [17] = {.index = 36, .length = 4}, - [18] = {.index = 40, .length = 4}, - [19] = {.index = 44, .length = 2}, - [20] = {.index = 46, .length = 3}, - [21] = {.index = 49, .length = 2}, + [14] = {.index = 31, .length = 1}, + [15] = {.index = 32, .length = 2}, + [16] = {.index = 34, .length = 3}, + [17] = {.index = 37, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -547,56 +543,40 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_property, 1}, {field_value, 1, .inherited = true}, [13] = - {field_arguments, 0, .inherited = true}, - {field_name, 0, .inherited = true}, - [15] = {field_element, 1}, - [16] = + [14] = {field_field, 0}, {field_value, 2}, - [18] = + [16] = {field_field, 2, .inherited = true}, {field_property, 2}, {field_property, 3, .inherited = true}, {field_type, 0}, {field_value, 2, .inherited = true}, - [23] = + [21] = {field_property, 0, .inherited = true}, {field_property, 1, .inherited = true}, - [25] = + [23] = {field_field, 1, .inherited = true}, {field_property, 1}, {field_property, 2, .inherited = true}, {field_value, 1, .inherited = true}, - [29] = + [27] = {field_element, 1}, {field_element, 2, .inherited = true}, - [31] = + [29] = {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, - [33] = - {field_arguments, 1, .inherited = true}, - {field_name, 1, .inherited = true}, - [35] = + [31] = {field_name, 0}, - [36] = - {field_arguments, 1, .inherited = true}, - {field_arguments, 2, .inherited = true}, - {field_name, 1, .inherited = true}, - {field_name, 2, .inherited = true}, - [40] = - {field_arguments, 0, .inherited = true}, - {field_arguments, 1, .inherited = true}, - {field_name, 0, .inherited = true}, - {field_name, 1, .inherited = true}, - [44] = + [32] = {field_arguments, 2}, {field_name, 0}, - [46] = + [34] = {field_arguments, 2}, {field_arguments, 3}, {field_name, 0}, - [49] = + [37] = {field_pattern, 0}, {field_value, 2}, }; @@ -752,7 +732,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [136] = 136, [137] = 137, [138] = 138, - [139] = 139, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4232,88 +4211,88 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [38] = {.lex_state = 37}, [39] = {.lex_state = 37}, [40] = {.lex_state = 37}, - [41] = {.lex_state = 1}, + [41] = {.lex_state = 4}, [42] = {.lex_state = 37}, [43] = {.lex_state = 37}, - [44] = {.lex_state = 37}, + [44] = {.lex_state = 1}, [45] = {.lex_state = 1}, - [46] = {.lex_state = 4}, - [47] = {.lex_state = 1}, + [46] = {.lex_state = 1}, + [47] = {.lex_state = 37}, [48] = {.lex_state = 37}, - [49] = {.lex_state = 0}, + [49] = {.lex_state = 37}, [50] = {.lex_state = 0}, - [51] = {.lex_state = 1}, + [51] = {.lex_state = 37}, [52] = {.lex_state = 37}, [53] = {.lex_state = 0}, [54] = {.lex_state = 0}, [55] = {.lex_state = 37}, - [56] = {.lex_state = 0}, - [57] = {.lex_state = 0}, - [58] = {.lex_state = 37}, + [56] = {.lex_state = 37}, + [57] = {.lex_state = 37}, + [58] = {.lex_state = 0}, [59] = {.lex_state = 0}, - [60] = {.lex_state = 37}, - [61] = {.lex_state = 0}, - [62] = {.lex_state = 0}, - [63] = {.lex_state = 37}, + [60] = {.lex_state = 0}, + [61] = {.lex_state = 37}, + [62] = {.lex_state = 37}, + [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 37}, + [65] = {.lex_state = 0}, [66] = {.lex_state = 0}, - [67] = {.lex_state = 37}, + [67] = {.lex_state = 0}, [68] = {.lex_state = 37}, [69] = {.lex_state = 37}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, - [72] = {.lex_state = 0}, + [71] = {.lex_state = 37}, + [72] = {.lex_state = 37}, [73] = {.lex_state = 0}, - [74] = {.lex_state = 37}, + [74] = {.lex_state = 1}, [75] = {.lex_state = 37}, [76] = {.lex_state = 0}, [77] = {.lex_state = 0}, - [78] = {.lex_state = 37}, + [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 0}, + [80] = {.lex_state = 37}, [81] = {.lex_state = 0}, - [82] = {.lex_state = 37}, - [83] = {.lex_state = 37}, - [84] = {.lex_state = 37}, + [82] = {.lex_state = 0}, + [83] = {.lex_state = 0}, + [84] = {.lex_state = 0}, [85] = {.lex_state = 37}, [86] = {.lex_state = 0}, - [87] = {.lex_state = 37}, + [87] = {.lex_state = 0}, [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, [91] = {.lex_state = 37}, [92] = {.lex_state = 37}, [93] = {.lex_state = 37}, - [94] = {.lex_state = 37}, - [95] = {.lex_state = 0}, - [96] = {.lex_state = 37}, - [97] = {.lex_state = 0}, + [94] = {.lex_state = 0}, + [95] = {.lex_state = 37}, + [96] = {.lex_state = 0}, + [97] = {.lex_state = 37}, [98] = {.lex_state = 37}, [99] = {.lex_state = 37}, - [100] = {.lex_state = 0}, - [101] = {.lex_state = 0}, - [102] = {.lex_state = 37}, - [103] = {.lex_state = 37}, - [104] = {.lex_state = 0}, - [105] = {.lex_state = 0}, + [100] = {.lex_state = 37}, + [101] = {.lex_state = 37}, + [102] = {.lex_state = 0}, + [103] = {.lex_state = 0}, + [104] = {.lex_state = 37}, + [105] = {.lex_state = 37}, [106] = {.lex_state = 37}, - [107] = {.lex_state = 37}, - [108] = {.lex_state = 37}, - [109] = {.lex_state = 0}, - [110] = {.lex_state = 0}, + [107] = {.lex_state = 0}, + [108] = {.lex_state = 0}, + [109] = {.lex_state = 37}, + [110] = {.lex_state = 37}, [111] = {.lex_state = 37}, [112] = {.lex_state = 0}, [113] = {.lex_state = 0}, [114] = {.lex_state = 0}, - [115] = {.lex_state = 0}, + [115] = {.lex_state = 44}, [116] = {.lex_state = 0}, - [117] = {.lex_state = 7}, + [117] = {.lex_state = 0}, [118] = {.lex_state = 0}, [119] = {.lex_state = 0}, [120] = {.lex_state = 0}, [121] = {.lex_state = 0}, - [122] = {.lex_state = 0}, + [122] = {.lex_state = 7}, [123] = {.lex_state = 0}, [124] = {.lex_state = 0}, [125] = {.lex_state = 0}, @@ -4323,14 +4302,13 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [129] = {.lex_state = 0}, [130] = {.lex_state = 0}, [131] = {.lex_state = 0}, - [132] = {.lex_state = 44}, + [132] = {.lex_state = 0}, [133] = {.lex_state = 0}, [134] = {.lex_state = 0}, [135] = {.lex_state = 0}, [136] = {.lex_state = 0}, - [137] = {.lex_state = 0}, + [137] = {(TSStateId)(-1)}, [138] = {(TSStateId)(-1)}, - [139] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4366,13 +4344,13 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { }, [1] = { [sym_source_file] = STATE(136), - [sym__definition] = STATE(92), + [sym__definition] = STATE(93), [sym_comment] = STATE(1), - [sym_assignment] = STATE(88), - [sym_module] = STATE(88), - [sym__old_module] = STATE(94), - [sym__new_module] = STATE(84), - [aux_sym_source_file_repeat1] = STATE(20), + [sym_assignment] = STATE(99), + [sym_module] = STATE(99), + [sym__old_module] = STATE(100), + [sym__new_module] = STATE(101), + [aux_sym_source_file_repeat1] = STATE(18), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4408,14 +4386,14 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(103), 1, + STATE(98), 1, sym__expr, - STATE(133), 1, + STATE(132), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4450,12 +4428,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4490,12 +4468,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4530,12 +4508,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4568,12 +4546,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(82), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4606,12 +4584,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(48), 1, + STATE(56), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4644,12 +4622,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(71), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4682,12 +4660,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(36), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4720,12 +4698,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(37), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4733,40 +4711,39 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 15, + [492] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, ACTIONS(37), 1, anon_sym_RBRACE, ACTIONS(39), 1, anon_sym_LPAREN, - ACTIONS(43), 1, + ACTIONS(45), 1, + sym_raw_string_literal, + ACTIONS(48), 1, + anon_sym_DQUOTE, + ACTIONS(51), 1, anon_sym_default, - STATE(11), 1, - sym_comment, - STATE(12), 1, - aux_sym_select_cases_repeat1, STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(41), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(42), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(11), 2, + sym_comment, + aux_sym_select_cases_repeat1, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [540] = 15, + [538] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4775,12 +4752,12 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(39), 1, - anon_sym_LPAREN, - ACTIONS(43), 1, - anon_sym_default, - ACTIONS(45), 1, + ACTIONS(54), 1, anon_sym_RBRACE, + ACTIONS(56), 1, + anon_sym_LPAREN, + ACTIONS(60), 1, + anon_sym_default, STATE(12), 1, sym_comment, STATE(13), 1, @@ -4788,47 +4765,48 @@ static const uint16_t ts_small_parse_table[] = { STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(41), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [588] = 14, + [586] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(47), 1, - anon_sym_RBRACE, - ACTIONS(49), 1, - anon_sym_LPAREN, - ACTIONS(55), 1, + ACTIONS(21), 1, sym_raw_string_literal, - ACTIONS(58), 1, + ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(61), 1, + ACTIONS(56), 1, + anon_sym_LPAREN, + ACTIONS(60), 1, anon_sym_default, + ACTIONS(62), 1, + anon_sym_RBRACE, + STATE(11), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(52), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(13), 2, - sym_comment, - aux_sym_select_cases_repeat1, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [634] = 11, @@ -4840,7 +4818,7 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, ACTIONS(64), 1, anon_sym_RPAREN, @@ -4848,12 +4826,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [670] = 11, @@ -4865,7 +4843,7 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, ACTIONS(66), 1, anon_sym_RPAREN, @@ -4873,12 +4851,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [706] = 10, @@ -4890,18 +4868,18 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, STATE(16), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [739] = 10, @@ -4913,87 +4891,50 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, STATE(17), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(59), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [772] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(18), 1, - sym_comment, - ACTIONS(68), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [792] = 9, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(70), 1, - ts_builtin_sym_end, - ACTIONS(72), 1, - sym_identifier, - STATE(84), 1, - sym__new_module, - STATE(92), 1, - sym__definition, - STATE(94), 1, - sym__old_module, - STATE(19), 2, - sym_comment, - aux_sym_source_file_repeat1, - STATE(88), 2, - sym_assignment, - sym_module, - [822] = 10, + [772] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(75), 1, + ACTIONS(68), 1, ts_builtin_sym_end, - STATE(19), 1, - aux_sym_source_file_repeat1, - STATE(20), 1, + STATE(18), 1, sym_comment, - STATE(84), 1, - sym__new_module, - STATE(92), 1, + STATE(21), 1, + aux_sym_source_file_repeat1, + STATE(93), 1, sym__definition, - STATE(94), 1, + STATE(100), 1, sym__old_module, - STATE(88), 2, + STATE(101), 1, + sym__new_module, + STATE(99), 2, sym_assignment, sym_module, - [854] = 4, + [804] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(21), 1, + STATE(19), 1, sym_comment, - ACTIONS(77), 8, + ACTIONS(70), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5002,6 +4943,43 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, + [824] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(20), 1, + sym_comment, + ACTIONS(72), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [844] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(74), 1, + ts_builtin_sym_end, + ACTIONS(76), 1, + sym_identifier, + STATE(93), 1, + sym__definition, + STATE(100), 1, + sym__old_module, + STATE(101), 1, + sym__new_module, + STATE(21), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(99), 2, + sym_assignment, + sym_module, [874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5056,7 +5034,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(47), 7, + ACTIONS(37), 7, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym_true, @@ -5289,38 +5267,97 @@ static const uint16_t ts_small_parse_table[] = { sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(72), 1, + STATE(60), 1, sym__string_literal, [1243] = 6, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(117), 1, + anon_sym_LBRACE, ACTIONS(119), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(122), 1, - anon_sym_DQUOTE2, - ACTIONS(124), 1, - sym_escape_sequence, - STATE(41), 2, + anon_sym_LPAREN, + STATE(41), 1, sym_comment, - aux_sym_interpreted_string_literal_repeat1, + ACTIONS(115), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, [1263] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(121), 1, anon_sym_COMMA, - ACTIONS(129), 1, + ACTIONS(123), 1, anon_sym_RBRACK, - ACTIONS(131), 1, + ACTIONS(125), 1, anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(64), 1, + STATE(63), 1, aux_sym_list_expression_repeat1, [1285] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(127), 1, + anon_sym_LPAREN, + ACTIONS(129), 1, + sym_identifier, + STATE(43), 1, + sym_comment, + STATE(129), 1, + sym_select_value, + STATE(134), 1, + sym_condition, + [1307] = 7, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(137), 1, + anon_sym_DQUOTE2, + ACTIONS(139), 1, + sym_escape_sequence, + STATE(44), 1, + sym_comment, + STATE(46), 1, + aux_sym_interpreted_string_literal_repeat1, + [1329] = 7, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(139), 1, + sym_escape_sequence, + ACTIONS(141), 1, + anon_sym_DQUOTE2, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(45), 1, + sym_comment, + [1351] = 6, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(143), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(146), 1, + anon_sym_DQUOTE2, + ACTIONS(148), 1, + sym_escape_sequence, + STATE(46), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1371] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5331,524 +5368,465 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, STATE(23), 1, sym_interpreted_string_literal, - STATE(43), 1, - sym_comment, - STATE(109), 1, - sym__string_literal, - [1307] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_LPAREN, - ACTIONS(135), 1, - sym_identifier, - STATE(44), 1, - sym_comment, - STATE(135), 1, - sym__select_value, - STATE(137), 1, - sym_select_value, - [1329] = 7, - ACTIONS(115), 1, - anon_sym_SLASH_SLASH, - ACTIONS(117), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(139), 1, - anon_sym_DQUOTE2, - ACTIONS(141), 1, - sym_escape_sequence, - STATE(41), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(45), 1, - sym_comment, - [1351] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - anon_sym_LBRACE, - ACTIONS(147), 1, - anon_sym_LPAREN, - STATE(46), 1, - sym_comment, - ACTIONS(143), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1371] = 7, - ACTIONS(115), 1, - anon_sym_SLASH_SLASH, - ACTIONS(117), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(141), 1, - sym_escape_sequence, - ACTIONS(149), 1, - anon_sym_DQUOTE2, - STATE(45), 1, - aux_sym_interpreted_string_literal_repeat1, STATE(47), 1, sym_comment, - [1393] = 5, + STATE(108), 1, + sym__string_literal, + [1393] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, + ACTIONS(151), 1, + anon_sym_RBRACE, + ACTIONS(153), 1, + sym_identifier, STATE(48), 1, sym_comment, - ACTIONS(151), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1410] = 6, + STATE(84), 1, + sym__colon_property, + [1412] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, - anon_sym_COMMA, - ACTIONS(155), 1, - anon_sym_RPAREN, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(49), 1, sym_comment, - STATE(73), 1, - aux_sym_select_value_repeat1, - [1429] = 6, + ACTIONS(155), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1429] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(157), 1, anon_sym_COMMA, - ACTIONS(159), 1, - anon_sym_RBRACE, - STATE(50), 1, + ACTIONS(160), 1, + anon_sym_RPAREN, + STATE(50), 2, sym_comment, - STATE(59), 1, - aux_sym__old_module_repeat1, - [1448] = 5, - ACTIONS(115), 1, + aux_sym_condition_repeat1, + [1446] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(161), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(162), 1, + anon_sym_RPAREN, + ACTIONS(164), 1, + sym_identifier, STATE(51), 1, sym_comment, - ACTIONS(163), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, + STATE(87), 1, + sym__equal_property, [1465] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, - anon_sym_RBRACE, - ACTIONS(167), 1, + ACTIONS(129), 1, sym_identifier, + ACTIONS(166), 1, + anon_sym_RPAREN, STATE(52), 1, sym_comment, - STATE(101), 1, - sym__colon_property, - [1484] = 5, + STATE(103), 1, + sym_condition, + [1484] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(169), 1, + ACTIONS(168), 1, anon_sym_COMMA, - ACTIONS(172), 1, + ACTIONS(170), 1, anon_sym_RPAREN, - STATE(53), 2, + STATE(53), 1, sym_comment, - aux_sym__select_value_repeat1, - [1501] = 6, + STATE(73), 1, + aux_sym__new_module_repeat1, + [1503] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(174), 1, + ACTIONS(172), 1, anon_sym_COMMA, - ACTIONS(176), 1, + ACTIONS(174), 1, anon_sym_RBRACE, STATE(54), 1, sym_comment, STATE(70), 1, aux_sym__old_module_repeat1, - [1520] = 6, + [1522] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(178), 1, - anon_sym_RPAREN, - ACTIONS(180), 1, + ACTIONS(164), 1, sym_identifier, + ACTIONS(176), 1, + anon_sym_RPAREN, STATE(55), 1, sym_comment, - STATE(95), 1, + STATE(78), 1, sym__equal_property, - [1539] = 4, + [1541] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(56), 1, sym_comment, - ACTIONS(182), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1554] = 6, + ACTIONS(178), 2, + ts_builtin_sym_end, + sym_identifier, + [1558] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(184), 1, - anon_sym_COMMA, - ACTIONS(186), 1, - anon_sym_RPAREN, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RBRACE, STATE(57), 1, sym_comment, - STATE(76), 1, - aux_sym__new_module_repeat1, - [1573] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(188), 1, - anon_sym_RBRACE, - STATE(58), 1, - sym_comment, - STATE(101), 1, - sym__colon_property, - [1592] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(190), 1, - anon_sym_COMMA, - ACTIONS(192), 1, - anon_sym_RBRACE, - STATE(59), 1, - sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1611] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(194), 1, - anon_sym_RBRACE, - STATE(60), 1, - sym_comment, STATE(81), 1, sym__colon_property, - [1630] = 5, + [1577] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(196), 1, + ACTIONS(182), 1, anon_sym_COMMA, - ACTIONS(199), 1, + ACTIONS(185), 1, anon_sym_RPAREN, - STATE(61), 2, - sym_comment, - aux_sym_select_pattern_repeat1, - [1647] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(201), 1, - anon_sym_COMMA, - ACTIONS(203), 1, - anon_sym_RPAREN, - STATE(53), 1, - aux_sym__select_value_repeat1, - STATE(62), 1, - sym_comment, - [1666] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(180), 1, - sym_identifier, - ACTIONS(205), 1, - anon_sym_RPAREN, - STATE(63), 1, - sym_comment, - STATE(77), 1, - sym__equal_property, - [1685] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(207), 1, - anon_sym_COMMA, - ACTIONS(209), 1, - anon_sym_RBRACK, - STATE(64), 1, - sym_comment, - STATE(79), 1, - aux_sym_list_expression_repeat1, - [1704] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(211), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1721] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(213), 1, - anon_sym_COMMA, - ACTIONS(216), 1, - anon_sym_RPAREN, - STATE(66), 2, + STATE(58), 2, sym_comment, aux_sym_select_value_repeat1, - [1738] = 6, + [1594] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - ACTIONS(218), 1, + ACTIONS(187), 1, + anon_sym_COMMA, + ACTIONS(189), 1, anon_sym_RPAREN, + STATE(59), 1, + sym_comment, + STATE(67), 1, + aux_sym_select_pattern_repeat1, + [1613] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(191), 1, + anon_sym_COMMA, + ACTIONS(193), 1, + anon_sym_RPAREN, + STATE(60), 1, + sym_comment, + STATE(79), 1, + aux_sym_condition_repeat1, + [1632] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(195), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym_comment, + STATE(84), 1, + sym__colon_property, + [1651] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(197), 1, + anon_sym_RBRACE, + STATE(62), 1, + sym_comment, + STATE(76), 1, + sym__colon_property, + [1670] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(199), 1, + anon_sym_COMMA, + ACTIONS(201), 1, + anon_sym_RBRACK, + STATE(63), 1, + sym_comment, + STATE(83), 1, + aux_sym_list_expression_repeat1, + [1689] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(203), 1, + anon_sym_COMMA, + ACTIONS(206), 1, + anon_sym_RPAREN, + STATE(64), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [1706] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(208), 1, + anon_sym_COMMA, + ACTIONS(210), 1, + anon_sym_RBRACE, + STATE(65), 1, + sym_comment, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1725] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(212), 1, + anon_sym_COMMA, + ACTIONS(214), 1, + anon_sym_RPAREN, + STATE(58), 1, + aux_sym_select_value_repeat1, + STATE(66), 1, + sym_comment, + [1744] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(66), 1, + anon_sym_RPAREN, + ACTIONS(216), 1, + anon_sym_COMMA, + STATE(64), 1, + aux_sym_select_pattern_repeat1, STATE(67), 1, sym_comment, - STATE(100), 1, - sym__select_value, - [1757] = 6, + [1763] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(153), 1, sym_identifier, - ACTIONS(220), 1, + ACTIONS(218), 1, anon_sym_RBRACE, STATE(68), 1, sym_comment, - STATE(101), 1, + STATE(84), 1, sym__colon_property, - [1776] = 6, + [1782] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(129), 1, sym_identifier, - ACTIONS(222), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym__colon_property, + ACTIONS(214), 1, + anon_sym_RPAREN, STATE(69), 1, sym_comment, - [1795] = 5, + STATE(103), 1, + sym_condition, + [1801] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 1, + ACTIONS(220), 1, anon_sym_COMMA, - ACTIONS(227), 1, + ACTIONS(223), 1, anon_sym_RBRACE, STATE(70), 2, sym_comment, aux_sym__old_module_repeat1, - [1812] = 6, + [1818] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(64), 1, - anon_sym_RPAREN, - ACTIONS(229), 1, - anon_sym_COMMA, - STATE(61), 1, - aux_sym_select_pattern_repeat1, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(71), 1, sym_comment, - [1831] = 6, + ACTIONS(225), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1835] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(201), 1, - anon_sym_COMMA, - ACTIONS(231), 1, + ACTIONS(164), 1, + sym_identifier, + ACTIONS(227), 1, anon_sym_RPAREN, - STATE(62), 1, - aux_sym__select_value_repeat1, STATE(72), 1, sym_comment, - [1850] = 6, + STATE(87), 1, + sym__equal_property, + [1854] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(233), 1, + ACTIONS(229), 1, anon_sym_COMMA, - ACTIONS(235), 1, + ACTIONS(232), 1, anon_sym_RPAREN, - STATE(66), 1, - aux_sym_select_value_repeat1, - STATE(73), 1, + STATE(73), 2, sym_comment, - [1869] = 6, - ACTIONS(3), 1, + aux_sym__new_module_repeat1, + [1871] = 5, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(180), 1, - sym_identifier, - ACTIONS(237), 1, - anon_sym_RPAREN, + ACTIONS(234), 1, + aux_sym_interpreted_string_literal_token1, STATE(74), 1, sym_comment, - STATE(95), 1, - sym__equal_property, + ACTIONS(236), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, [1888] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, + ACTIONS(153), 1, sym_identifier, - ACTIONS(239), 1, - anon_sym_RPAREN, + ACTIONS(238), 1, + anon_sym_RBRACE, STATE(75), 1, sym_comment, - STATE(100), 1, - sym__select_value, - [1907] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(241), 1, - anon_sym_COMMA, - ACTIONS(244), 1, - anon_sym_RPAREN, - STATE(76), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1924] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - anon_sym_COMMA, - ACTIONS(248), 1, - anon_sym_RPAREN, - STATE(57), 1, - aux_sym__new_module_repeat1, - STATE(77), 1, - sym_comment, - [1943] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(250), 1, - anon_sym_RBRACE, - STATE(78), 1, - sym_comment, - STATE(101), 1, + STATE(84), 1, sym__colon_property, - [1962] = 5, + [1907] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(252), 1, + ACTIONS(240), 1, anon_sym_COMMA, - ACTIONS(255), 1, - anon_sym_RBRACK, - STATE(79), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1979] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(257), 1, - anon_sym_COMMA, - ACTIONS(259), 1, - anon_sym_RPAREN, - STATE(71), 1, - aux_sym_select_pattern_repeat1, - STATE(80), 1, - sym_comment, - [1998] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(261), 1, - anon_sym_COMMA, - ACTIONS(263), 1, + ACTIONS(242), 1, anon_sym_RBRACE, STATE(54), 1, aux_sym__old_module_repeat1, - STATE(81), 1, + STATE(76), 1, sym_comment, - [2017] = 5, + [1926] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, + ACTIONS(244), 1, + anon_sym_COMMA, + ACTIONS(246), 1, + anon_sym_RPAREN, + STATE(66), 1, + aux_sym_select_value_repeat1, + STATE(77), 1, + sym_comment, + [1945] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(248), 1, + anon_sym_COMMA, + ACTIONS(250), 1, + anon_sym_RPAREN, + STATE(53), 1, + aux_sym__new_module_repeat1, + STATE(78), 1, + sym_comment, + [1964] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(191), 1, + anon_sym_COMMA, + ACTIONS(252), 1, + anon_sym_RPAREN, + STATE(50), 1, + aux_sym_condition_repeat1, + STATE(79), 1, + sym_comment, + [1983] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(125), 1, anon_sym_PLUS, + STATE(80), 1, + sym_comment, + ACTIONS(254), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [2000] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(256), 1, + anon_sym_COMMA, + ACTIONS(258), 1, + anon_sym_RBRACE, + STATE(65), 1, + aux_sym__old_module_repeat1, + STATE(81), 1, + sym_comment, + [2019] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(265), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(260), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, [2034] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - STATE(83), 1, - sym_comment, - ACTIONS(267), 2, + ACTIONS(262), 1, anon_sym_COMMA, + ACTIONS(265), 1, anon_sym_RBRACK, + STATE(83), 2, + sym_comment, + aux_sym_list_expression_repeat1, [2051] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5856,9 +5834,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(269), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(267), 2, + anon_sym_COMMA, + anon_sym_RBRACE, [2065] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5866,7 +5844,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(271), 2, + ACTIONS(269), 2, ts_builtin_sym_end, sym_identifier, [2079] = 5, @@ -5874,11 +5852,11 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, + ACTIONS(271), 1, anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(123), 1, + STATE(131), 1, sym_select_cases, [2095] = 4, ACTIONS(3), 1, @@ -5887,9 +5865,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(275), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(273), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5897,7 +5875,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(88), 1, sym_comment, - ACTIONS(277), 2, + ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, [2123] = 5, @@ -5905,12 +5883,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(153), 1, sym_identifier, + STATE(84), 1, + sym__colon_property, STATE(89), 1, sym_comment, - STATE(101), 1, - sym__colon_property, [2139] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5918,7 +5896,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(279), 2, + ACTIONS(277), 2, ts_builtin_sym_end, sym_identifier, [2153] = 5, @@ -5926,12 +5904,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(180), 1, + ACTIONS(164), 1, sym_identifier, + STATE(87), 1, + sym__equal_property, STATE(91), 1, sym_comment, - STATE(95), 1, - sym__equal_property, [2169] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5939,7 +5917,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(92), 1, sym_comment, - ACTIONS(281), 2, + ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, [2183] = 4, @@ -5949,7 +5927,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(283), 2, + ACTIONS(281), 2, ts_builtin_sym_end, sym_identifier, [2197] = 4, @@ -5959,9 +5937,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(94), 1, sym_comment, - ACTIONS(269), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(206), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5969,9 +5947,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(95), 1, sym_comment, - ACTIONS(285), 2, - anon_sym_COMMA, - anon_sym_RPAREN, + ACTIONS(283), 2, + ts_builtin_sym_end, + sym_identifier, [2225] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5979,9 +5957,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(287), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(285), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2239] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5989,101 +5967,101 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(97), 1, sym_comment, - ACTIONS(289), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2253] = 4, + ACTIONS(287), 2, + ts_builtin_sym_end, + sym_identifier, + [2253] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(125), 1, + anon_sym_PLUS, + ACTIONS(289), 1, + anon_sym_COMMA, STATE(98), 1, sym_comment, - ACTIONS(291), 2, - ts_builtin_sym_end, - sym_identifier, - [2267] = 4, + [2269] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(99), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2281] = 4, + [2283] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(295), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2295] = 4, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2297] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(101), 1, sym_comment, - ACTIONS(297), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2309] = 4, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2311] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(102), 1, sym_comment, - ACTIONS(299), 2, - ts_builtin_sym_end, - sym_identifier, - [2323] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - ACTIONS(301), 1, - anon_sym_COMMA, - STATE(103), 1, - sym_comment, - [2339] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(104), 1, - sym_comment, - ACTIONS(303), 2, + ACTIONS(295), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2353] = 4, + [2325] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(103), 1, + sym_comment, + ACTIONS(185), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2339] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(129), 1, + sym_identifier, + STATE(77), 1, + sym_condition, + STATE(104), 1, + sym_comment, + [2355] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(105), 1, sym_comment, - ACTIONS(199), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2367] = 5, + ACTIONS(297), 2, + ts_builtin_sym_end, + sym_identifier, + [2369] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - STATE(49), 1, - sym__select_value, STATE(106), 1, sym_comment, + ACTIONS(299), 2, + ts_builtin_sym_end, + sym_identifier, [2383] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6091,30 +6069,30 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(107), 1, sym_comment, - ACTIONS(305), 2, - ts_builtin_sym_end, - sym_identifier, - [2397] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - STATE(100), 1, - sym__select_value, - STATE(108), 1, - sym_comment, - [2413] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(109), 1, - sym_comment, - ACTIONS(172), 2, + ACTIONS(301), 2, anon_sym_COMMA, anon_sym_RPAREN, + [2397] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(108), 1, + sym_comment, + ACTIONS(160), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2411] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(129), 1, + sym_identifier, + STATE(103), 1, + sym_condition, + STATE(109), 1, + sym_comment, [2427] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6122,9 +6100,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(307), 2, - anon_sym_COMMA, - anon_sym_RPAREN, + ACTIONS(303), 2, + ts_builtin_sym_end, + sym_identifier, [2441] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6132,7 +6110,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(309), 2, + ACTIONS(305), 2, ts_builtin_sym_end, sym_identifier, [2455] = 4, @@ -6140,8 +6118,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(311), 1, - anon_sym_LPAREN, + ACTIONS(307), 1, + anon_sym_COLON, STATE(112), 1, sym_comment, [2468] = 4, @@ -6149,8 +6127,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(301), 1, - anon_sym_COMMA, + ACTIONS(309), 1, + anon_sym_RPAREN, STATE(113), 1, sym_comment, [2481] = 4, @@ -6158,17 +6136,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(313), 1, + ACTIONS(311), 1, anon_sym_COLON, STATE(114), 1, sym_comment, [2494] = 4, - ACTIONS(3), 1, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(315), 1, - anon_sym_COLON, + ACTIONS(313), 1, + aux_sym_comment_token1, STATE(115), 1, sym_comment, [2507] = 4, @@ -6176,17 +6154,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(317), 1, - anon_sym_SLASH, + ACTIONS(315), 1, + anon_sym_LPAREN, STATE(116), 1, sym_comment, [2520] = 4, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(319), 1, - aux_sym_comment_token2, + ACTIONS(317), 1, + anon_sym_COMMA, STATE(117), 1, sym_comment, [2533] = 4, @@ -6194,7 +6172,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(321), 1, + ACTIONS(319), 1, anon_sym_COMMA, STATE(118), 1, sym_comment, @@ -6203,8 +6181,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(323), 1, - anon_sym_COLON, + ACTIONS(321), 1, + anon_sym_RPAREN, STATE(119), 1, sym_comment, [2559] = 4, @@ -6212,8 +6190,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(325), 1, - anon_sym_COMMA, + ACTIONS(323), 1, + anon_sym_EQ, STATE(120), 1, sym_comment, [2572] = 4, @@ -6221,17 +6199,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(327), 1, - anon_sym_RPAREN, + ACTIONS(325), 1, + aux_sym_integer_literal_token1, STATE(121), 1, sym_comment, [2585] = 4, - ACTIONS(3), 1, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(329), 1, - anon_sym_COMMA, + ACTIONS(327), 1, + aux_sym_comment_token2, STATE(122), 1, sym_comment, [2598] = 4, @@ -6239,8 +6217,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(331), 1, - anon_sym_RPAREN, + ACTIONS(329), 1, + anon_sym_SLASH, STATE(123), 1, sym_comment, [2611] = 4, @@ -6248,8 +6226,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(333), 1, - anon_sym_LPAREN, + ACTIONS(331), 1, + anon_sym_COLON, STATE(124), 1, sym_comment, [2624] = 4, @@ -6257,8 +6235,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(335), 1, - aux_sym_integer_literal_token1, + ACTIONS(333), 1, + anon_sym_COLON, STATE(125), 1, sym_comment, [2637] = 4, @@ -6266,8 +6244,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(337), 1, - anon_sym_RPAREN, + ACTIONS(335), 1, + anon_sym_COMMA, STATE(126), 1, sym_comment, [2650] = 4, @@ -6275,8 +6253,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(339), 1, - anon_sym_COMMA, + ACTIONS(337), 1, + anon_sym_LPAREN, STATE(127), 1, sym_comment, [2663] = 4, @@ -6284,7 +6262,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(341), 1, + ACTIONS(339), 1, anon_sym_COLON, STATE(128), 1, sym_comment, @@ -6293,8 +6271,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(343), 1, - anon_sym_COLON, + ACTIONS(341), 1, + anon_sym_COMMA, STATE(129), 1, sym_comment, [2689] = 4, @@ -6302,8 +6280,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(345), 1, - anon_sym_EQ, + ACTIONS(289), 1, + anon_sym_COMMA, STATE(130), 1, sym_comment, [2702] = 4, @@ -6311,17 +6289,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(347), 1, - anon_sym_COMMA, + ACTIONS(343), 1, + anon_sym_RPAREN, STATE(131), 1, sym_comment, [2715] = 4, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(349), 1, - aux_sym_comment_token1, + ACTIONS(345), 1, + anon_sym_COMMA, STATE(132), 1, sym_comment, [2728] = 4, @@ -6329,8 +6307,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(351), 1, - anon_sym_COMMA, + ACTIONS(347), 1, + anon_sym_COLON, STATE(133), 1, sym_comment, [2741] = 4, @@ -6338,8 +6316,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(353), 1, - anon_sym_COLON, + ACTIONS(349), 1, + anon_sym_COMMA, STATE(134), 1, sym_comment, [2754] = 4, @@ -6347,7 +6325,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(355), 1, + ACTIONS(351), 1, anon_sym_COMMA, STATE(135), 1, sym_comment, @@ -6356,24 +6334,15 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(357), 1, + ACTIONS(353), 1, ts_builtin_sym_end, STATE(136), 1, sym_comment, - [2780] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(359), 1, - anon_sym_COMMA, - STATE(137), 1, - sym_comment, - [2793] = 1, - ACTIONS(361), 1, + [2780] = 1, + ACTIONS(355), 1, ts_builtin_sym_end, - [2797] = 1, - ACTIONS(363), 1, + [2784] = 1, + ACTIONS(357), 1, ts_builtin_sym_end, }; @@ -6388,16 +6357,16 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 540, - [SMALL_STATE(13)] = 588, + [SMALL_STATE(12)] = 538, + [SMALL_STATE(13)] = 586, [SMALL_STATE(14)] = 634, [SMALL_STATE(15)] = 670, [SMALL_STATE(16)] = 706, [SMALL_STATE(17)] = 739, [SMALL_STATE(18)] = 772, - [SMALL_STATE(19)] = 792, - [SMALL_STATE(20)] = 822, - [SMALL_STATE(21)] = 854, + [SMALL_STATE(19)] = 804, + [SMALL_STATE(20)] = 824, + [SMALL_STATE(21)] = 844, [SMALL_STATE(22)] = 874, [SMALL_STATE(23)] = 894, [SMALL_STATE(24)] = 914, @@ -6425,40 +6394,40 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(46)] = 1351, [SMALL_STATE(47)] = 1371, [SMALL_STATE(48)] = 1393, - [SMALL_STATE(49)] = 1410, + [SMALL_STATE(49)] = 1412, [SMALL_STATE(50)] = 1429, - [SMALL_STATE(51)] = 1448, + [SMALL_STATE(51)] = 1446, [SMALL_STATE(52)] = 1465, [SMALL_STATE(53)] = 1484, - [SMALL_STATE(54)] = 1501, - [SMALL_STATE(55)] = 1520, - [SMALL_STATE(56)] = 1539, - [SMALL_STATE(57)] = 1554, - [SMALL_STATE(58)] = 1573, - [SMALL_STATE(59)] = 1592, - [SMALL_STATE(60)] = 1611, - [SMALL_STATE(61)] = 1630, - [SMALL_STATE(62)] = 1647, - [SMALL_STATE(63)] = 1666, - [SMALL_STATE(64)] = 1685, - [SMALL_STATE(65)] = 1704, - [SMALL_STATE(66)] = 1721, - [SMALL_STATE(67)] = 1738, - [SMALL_STATE(68)] = 1757, - [SMALL_STATE(69)] = 1776, - [SMALL_STATE(70)] = 1795, - [SMALL_STATE(71)] = 1812, - [SMALL_STATE(72)] = 1831, - [SMALL_STATE(73)] = 1850, - [SMALL_STATE(74)] = 1869, + [SMALL_STATE(54)] = 1503, + [SMALL_STATE(55)] = 1522, + [SMALL_STATE(56)] = 1541, + [SMALL_STATE(57)] = 1558, + [SMALL_STATE(58)] = 1577, + [SMALL_STATE(59)] = 1594, + [SMALL_STATE(60)] = 1613, + [SMALL_STATE(61)] = 1632, + [SMALL_STATE(62)] = 1651, + [SMALL_STATE(63)] = 1670, + [SMALL_STATE(64)] = 1689, + [SMALL_STATE(65)] = 1706, + [SMALL_STATE(66)] = 1725, + [SMALL_STATE(67)] = 1744, + [SMALL_STATE(68)] = 1763, + [SMALL_STATE(69)] = 1782, + [SMALL_STATE(70)] = 1801, + [SMALL_STATE(71)] = 1818, + [SMALL_STATE(72)] = 1835, + [SMALL_STATE(73)] = 1854, + [SMALL_STATE(74)] = 1871, [SMALL_STATE(75)] = 1888, [SMALL_STATE(76)] = 1907, - [SMALL_STATE(77)] = 1924, - [SMALL_STATE(78)] = 1943, - [SMALL_STATE(79)] = 1962, - [SMALL_STATE(80)] = 1979, - [SMALL_STATE(81)] = 1998, - [SMALL_STATE(82)] = 2017, + [SMALL_STATE(77)] = 1926, + [SMALL_STATE(78)] = 1945, + [SMALL_STATE(79)] = 1964, + [SMALL_STATE(80)] = 1983, + [SMALL_STATE(81)] = 2000, + [SMALL_STATE(82)] = 2019, [SMALL_STATE(83)] = 2034, [SMALL_STATE(84)] = 2051, [SMALL_STATE(85)] = 2065, @@ -6475,17 +6444,17 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(96)] = 2225, [SMALL_STATE(97)] = 2239, [SMALL_STATE(98)] = 2253, - [SMALL_STATE(99)] = 2267, - [SMALL_STATE(100)] = 2281, - [SMALL_STATE(101)] = 2295, - [SMALL_STATE(102)] = 2309, - [SMALL_STATE(103)] = 2323, + [SMALL_STATE(99)] = 2269, + [SMALL_STATE(100)] = 2283, + [SMALL_STATE(101)] = 2297, + [SMALL_STATE(102)] = 2311, + [SMALL_STATE(103)] = 2325, [SMALL_STATE(104)] = 2339, - [SMALL_STATE(105)] = 2353, - [SMALL_STATE(106)] = 2367, + [SMALL_STATE(105)] = 2355, + [SMALL_STATE(106)] = 2369, [SMALL_STATE(107)] = 2383, [SMALL_STATE(108)] = 2397, - [SMALL_STATE(109)] = 2413, + [SMALL_STATE(109)] = 2411, [SMALL_STATE(110)] = 2427, [SMALL_STATE(111)] = 2441, [SMALL_STATE(112)] = 2455, @@ -6514,187 +6483,183 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(135)] = 2754, [SMALL_STATE(136)] = 2767, [SMALL_STATE(137)] = 2780, - [SMALL_STATE(138)] = 2793, - [SMALL_STATE(139)] = 2797, + [SMALL_STATE(138)] = 2784, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(30), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(16), - [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), - [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [58] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), - [61] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(56), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(46), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(17), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), + [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(45), + [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(82), + [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), + [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [76] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(41), [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 7), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 7), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 12), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 13), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 8), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 13), - [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132), - [117] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), - [119] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), - [122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [124] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [137] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [151] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 9), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [169] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), SHIFT_REPEAT(43), - [172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 9), - [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), SHIFT_REPEAT(108), - [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [224] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(89), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), - [241] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(91), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), - [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [252] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), SHIFT_REPEAT(10), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), - [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 7), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 10), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [131] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [133] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), + [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [143] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [148] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), + [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [182] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(109), + [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), + [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), + [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [220] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(89), + [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [229] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(91), + [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [262] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), + [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 10), - [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 3, .production_id = 16), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 10), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 10), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 15), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 4, .production_id = 19), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 5, .production_id = 20), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [317] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), - [319] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 17), - [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 17), - [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 15), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(139), - [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 21), - [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1, .production_id = 6), - [357] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [313] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), + [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [327] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), + [329] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), + [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), + [337] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), + [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), + [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), + [353] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [357] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 281a985..fe0bf9d 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -15,8 +15,9 @@ foo = select(release_variable("RELEASE_TEST"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -44,9 +45,10 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -76,8 +78,9 @@ foo = select(variant("arch"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -110,8 +113,9 @@ foo = select(variant("VARIANT"), {}) (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases)))) ================================================================================ @@ -134,8 +138,9 @@ foo = select(variant("VARIANT"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -175,7 +180,8 @@ foo = select(variant(), { (operator) (select_expression (select_value - (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -203,8 +209,9 @@ foo = select(some_unknown_type("CONDITION"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -232,9 +239,10 @@ foo = select(release_variable("ONE", "TWO"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -262,9 +270,10 @@ foo = select(some_boolean("VALUE",), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (ERROR)) + (condition + (identifier) + (interpreted_string_literal) + (ERROR))) (select_cases (select_case (select_pattern @@ -294,8 +303,10 @@ foo = select(( (operator) (select_expression (select_value - (identifier) - (identifier)) + (condition + (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -319,8 +330,10 @@ foo = select((arch(), os()), { (operator) (select_expression (select_value - (identifier) - (identifier)) + (condition + (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -345,8 +358,9 @@ foo = select(some_boolean("IS_TRUE"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern From d25b07cae093e9d5637d6b3fc47249b4d011f4ce Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:49:52 +0000 Subject: [PATCH 18/39] Add queries to 'package.json' --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 2c04da4..ce8f4f9 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,11 @@ "file-types": [ "bp" ], + "folds": "queries/folds.scm", + "highlights": "queries/highlights.scm", + "indents": "queries/indents.scm", + "injections": "queries/injections.scm", + "tags": "queries/tags.scm", "injection-regex": "bp" } ] From 533c82cdf39f77282f3c1de20c382f0ebcf5845a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:52:01 +0000 Subject: [PATCH 19/39] Add queries to Rust bindings --- bindings/rust/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 22bfdfc..78e1169 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -35,10 +35,11 @@ pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json"); // Uncomment these to include any queries that this grammar contains -// pub const HIGHLIGHTS_QUERY: &'static str = include_str!("../../queries/highlights.scm"); -// pub const INJECTIONS_QUERY: &'static str = include_str!("../../queries/injections.scm"); -// pub const LOCALS_QUERY: &'static str = include_str!("../../queries/locals.scm"); -// pub const TAGS_QUERY: &'static str = include_str!("../../queries/tags.scm"); +pub const FOLDS_QUERY: &'static str = include_str!("../../queries/folds.scm"); +pub const HIGHLIGHTS_QUERY: &'static str = include_str!("../../queries/highlights.scm"); +pub const INDENTS_QUERY: &'static str = include_str!("../../queries/indents.scm"); +pub const INJECTIONS_QUERY: &'static str = include_str!("../../queries/injections.scm"); +pub const LOCALS_QUERY: &'static str = include_str!("../../queries/locals.scm"); #[cfg(test)] mod tests { From 5cbdf5e3acb25b127c4ef95f4e283f26e9be4b94 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 25 Apr 2024 11:27:34 +0000 Subject: [PATCH 20/39] Test more 'select' related indentation cases --- test/indent_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/indent_spec.lua b/test/indent_spec.lua index cee806b..26b9d3b 100644 --- a/test/indent_spec.lua +++ b/test/indent_spec.lua @@ -39,9 +39,13 @@ describe("indent Blueprint:", function() runner:new_line("test/indent/select.bp", { on_line = 1, text = 'default: "value"', indent = 4 }, "default case") runner:new_line("test/indent/select.bp", { on_line = 11, text = '"case": "value"', indent = 4 }, "select case, trailing") runner:new_line("test/indent/select.bp", { on_line = 11, text = 'default: "value"', indent = 4 }, "default case, trailing") + runner:new_line("test/indent/select.bp", { on_line = 11, text = '}', indent = 0 }, "select cases closing delimiter") + runner:new_line("test/indent/select.bp", { on_line = 27, text = ')', indent = 0 }, "select expression closing delimiter") runner:new_line("test/indent/select.bp", { on_line = 16, text = '"case": "value"', indent = 8 }, "select case, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 16, text = 'default: "value"', indent = 8 }, "default case, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 26, text = '"case": "value"', indent = 8 }, "select case, trailing, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 26, text = 'default: "value"', indent = 8 }, "default case, trailing, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 26, text = '}', indent = 4 }, "select cases closing delimiter, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 27, text = ')', indent = 0 }, "select expression closing delimiter, alternate formatting") end) end) From f228904ed05bea4e89c54175abfc213eeb7ff225 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 13 May 2024 15:38:28 +0000 Subject: [PATCH 21/39] Fix 'nvim-test-runner' reproducibility For some reason, it looks like my personal configuration is interfering with the tests despite `--noplug -u minimal_init.lua`... Rather than investigate what _exactly_ is going on, let's merge this work-around for now. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index b78215d..a8d4f56 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,10 @@ export NVIM_TREESITTER_TEXTOBJECTS='${pkgs.vimPlugins.nvim-treesitter-textobjects}' export NVIM_TREESITTER_PARSER='${pkgs.vimPlugins.nvim-treesitter.grammarToPlugin self.packages.${system}.tree-sitter-bp}' + # FIXME: not sure why, but I get different behaviour when left untouched + XDG_CONFIG_HOME=$(mktemp -d) + export XDG_CONFIG_HOME + nvim --headless --noplugin -u ${scripts/minimal_init.lua} \ -c "PlenaryBustedDirectory test/ { minimal_init = '${./scripts/minimal_init.lua}' }" ''; From c5031e2c1672afaac215d3f5845a39b7aa6481bd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 16:36:11 +0000 Subject: [PATCH 22/39] Add indentation queries for multi-value 'select' Unfortunately, the indentation feature is still a work in progress, so we have some expected failures in our tests... --- queries/indents.scm | 9 +++++++++ test/indent/select.bp | 32 ++++++++++++++++++++++++++++++++ test/indent_spec.lua | 12 +++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/queries/indents.scm b/queries/indents.scm index 9e63d1e..9eca576 100644 --- a/queries/indents.scm +++ b/queries/indents.scm @@ -11,6 +11,15 @@ (select_expression ")" @indent.branch) +(select_value) @indent.begin +(select_value + ")" @indent.branch) + +(select_pattern + "(" @indent.begin) +(select_pattern + ")" @indent.branch) + (select_cases) @indent.begin (select_cases "}" @indent.branch) diff --git a/test/indent/select.bp b/test/indent/select.bp index 6d95b2c..6c432b2 100644 --- a/test/indent/select.bp +++ b/test/indent/select.bp @@ -26,3 +26,35 @@ foo = select( default: 0, } ) + +foo = select(( + arch(), + os(), +), { + (default, default): [], +}) + +foo = select( + (arch(), os()), + { + (default, default): [], + } +) + +// We're really getting into more and more unlikely choices here... +foo = select( + ( + arch(), + os(), + ), + { + (default, default): [], + } +) + +foo = select((arch(), os()), { + ( + default, + default, + ): [], +}) diff --git a/test/indent_spec.lua b/test/indent_spec.lua index 26b9d3b..6620148 100644 --- a/test/indent_spec.lua +++ b/test/indent_spec.lua @@ -1,6 +1,7 @@ package.path = package.path .. ";" .. vim.env.NVIM_TREESITTER .. "/?.lua" local Runner = require("tests.indent.common").Runner +local XFAIL = require("tests.indent.common").XFAIL -- FIXME: path to root local runner = Runner:new(it, ".", { @@ -19,7 +20,7 @@ describe("indent Blueprint:", function() }) runner:whole_file("test/indent/", { expected_failures = { - -- NOTE: none for now + "test/indent/select.bp", }, }) end) @@ -47,5 +48,14 @@ describe("indent Blueprint:", function() runner:new_line("test/indent/select.bp", { on_line = 26, text = 'default: "value"', indent = 8 }, "default case, trailing, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 26, text = '}', indent = 4 }, "select cases closing delimiter, alternate formatting") runner:new_line("test/indent/select.bp", { on_line = 27, text = ')', indent = 0 }, "select expression closing delimiter, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 30, text = 'device()', indent = 4 }, "multi-valued select condition, begin") + runner:new_line("test/indent/select.bp", { on_line = 31, text = 'device()', indent = 4 }, "multi-valued select condition, middle") + runner:new_line("test/indent/select.bp", { on_line = 32, text = 'device()', indent = 4 }, "multi-valued select condition, end") + runner:new_line("test/indent/select.bp", { on_line = 46, text = 'device()', indent = 8 }, "multi-valued select condition, begin, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 47, text = 'device()', indent = 8 }, "multi-valued select condition, middle, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 48, text = 'device()', indent = 8 }, "multi-valued select condition, end, alternate formatting") + runner:new_line("test/indent/select.bp", { on_line = 56, text = 'default,', indent = 8 }, "multi-valued select case, begin", XFAIL) + runner:new_line("test/indent/select.bp", { on_line = 57, text = 'default,', indent = 8 }, "multi-valued select case, middle", XFAIL) + runner:new_line("test/indent/select.bp", { on_line = 58, text = 'default,', indent = 8 }, "multi-valued select case, end", XFAIL) end) end) From bf783d99bce3bec02e2c17fa362e7bb69480e355 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 13 May 2024 15:44:33 +0000 Subject: [PATCH 23/39] Handle 'pyproject.toml' in 'bump-version' --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a8d4f56..10a8258 100644 --- a/flake.nix +++ b/flake.nix @@ -78,8 +78,9 @@ ${pkgs.jq}/bin/jq ".version = \"''${NEW_VERSION}\"" package.json > package.json.tmp mv package.json.tmp package.json ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" Cargo.toml + ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" pyproject.toml - git add Cargo.toml package.json + git add Cargo.toml package.json pyproject.toml echo "Release ''${NEW_VERSION}" | git commit -eF - git tag -a "v''${NEW_VERSION}" -m "Release ''${NEW_VERSION}" ''; From 2326d709fb9cf73cf124fdbc803c267f851721a4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 13 May 2024 15:46:07 +0000 Subject: [PATCH 24/39] Release 0.4.0 --- Cargo.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9ca884e..208bf00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tree-sitter-bp" description = "Blueprint grammar for the tree-sitter parsing library" -version = "0.3.0" +version = "0.4.0" keywords = ["incremental", "parsing", "android", "blueprint"] categories = ["parsing", "text-editors"] repository = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" diff --git a/package.json b/package.json index ce8f4f9..4c4fe4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-bp", - "version": "0.3.0", + "version": "0.4.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", "types": "bindings/node", diff --git a/pyproject.toml b/pyproject.toml index 42d79e3..ccd657c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "tree-sitter-bp" description = "Bp grammar for tree-sitter" -version = "0.3.0" +version = "0.4.0" keywords = ["incremental", "parsing", "tree-sitter", "bp"] classifiers = [ "Intended Audience :: Developers", From 970241b323009e8451f7857634d32bb5c33ef485 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:46:22 +0000 Subject: [PATCH 25/39] Add 'any' select pattern --- grammar.js | 1 + src/grammar.json | 9 + src/node-types.json | 8 + src/parser.c | 1874 ++++++++++++++++++++-------------------- test/corpus/select.txt | 5 + 5 files changed, 981 insertions(+), 916 deletions(-) diff --git a/grammar.js b/grammar.js index 53bbe96..5ad924d 100644 --- a/grammar.js +++ b/grammar.js @@ -163,6 +163,7 @@ module.exports = grammar({ _select_pattern: ($) => choice( $._string_literal, $.boolean_literal, + alias("any", $.any), alias("default", $.default), ), diff --git a/src/grammar.json b/src/grammar.json index 2cc4d5c..d14285b 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -735,6 +735,15 @@ "type": "SYMBOL", "name": "boolean_literal" }, + { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "any" + }, + "named": true, + "value": "any" + }, { "type": "ALIAS", "content": { diff --git a/src/node-types.json b/src/node-types.json index 9c0e5c8..1bde56e 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -483,6 +483,10 @@ "multiple": true, "required": true, "types": [ + { + "type": "any", + "named": true + }, { "type": "boolean_literal", "named": true @@ -584,6 +588,10 @@ "type": "]", "named": false }, + { + "type": "any", + "named": true + }, { "type": "default", "named": true diff --git a/src/parser.c b/src/parser.c index 4b3960e..bb980c0 100644 --- a/src/parser.c +++ b/src/parser.c @@ -7,9 +7,9 @@ #define LANGUAGE_VERSION 14 #define STATE_COUNT 139 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 64 +#define SYMBOL_COUNT 65 #define ALIAS_COUNT 0 -#define TOKEN_COUNT 30 +#define TOKEN_COUNT 31 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 @@ -40,45 +40,46 @@ enum ts_symbol_identifiers { sym_escape_sequence = 22, anon_sym_select = 23, anon_sym_COLON = 24, - anon_sym_default = 25, - anon_sym_unset = 26, - anon_sym_LBRACK = 27, - anon_sym_RBRACK = 28, - anon_sym_PLUS = 29, - sym_source_file = 30, - sym__definition = 31, - sym_comment = 32, - sym_assignment = 33, - sym_module = 34, - sym__old_module = 35, - sym__new_module = 36, - sym__expr = 37, - sym_boolean_literal = 38, - sym_integer_literal = 39, - sym__string_literal = 40, - sym_interpreted_string_literal = 41, - sym_select_expression = 42, - sym_select_value = 43, - sym_condition = 44, - sym_select_cases = 45, - sym_select_case = 46, - sym_select_pattern = 47, - sym__select_pattern = 48, - sym__case_value = 49, - sym_list_expression = 50, - sym_map_expression = 51, - sym_binary_expression = 52, - sym__colon_property = 53, - sym__equal_property = 54, - aux_sym_source_file_repeat1 = 55, - aux_sym__old_module_repeat1 = 56, - aux_sym__new_module_repeat1 = 57, - aux_sym_interpreted_string_literal_repeat1 = 58, - aux_sym_select_value_repeat1 = 59, - aux_sym_condition_repeat1 = 60, - aux_sym_select_cases_repeat1 = 61, - aux_sym_select_pattern_repeat1 = 62, - aux_sym_list_expression_repeat1 = 63, + anon_sym_any = 25, + anon_sym_default = 26, + anon_sym_unset = 27, + anon_sym_LBRACK = 28, + anon_sym_RBRACK = 29, + anon_sym_PLUS = 30, + sym_source_file = 31, + sym__definition = 32, + sym_comment = 33, + sym_assignment = 34, + sym_module = 35, + sym__old_module = 36, + sym__new_module = 37, + sym__expr = 38, + sym_boolean_literal = 39, + sym_integer_literal = 40, + sym__string_literal = 41, + sym_interpreted_string_literal = 42, + sym_select_expression = 43, + sym_select_value = 44, + sym_condition = 45, + sym_select_cases = 46, + sym_select_case = 47, + sym_select_pattern = 48, + sym__select_pattern = 49, + sym__case_value = 50, + sym_list_expression = 51, + sym_map_expression = 52, + sym_binary_expression = 53, + sym__colon_property = 54, + sym__equal_property = 55, + aux_sym_source_file_repeat1 = 56, + aux_sym__old_module_repeat1 = 57, + aux_sym__new_module_repeat1 = 58, + aux_sym_interpreted_string_literal_repeat1 = 59, + aux_sym_select_value_repeat1 = 60, + aux_sym_condition_repeat1 = 61, + aux_sym_select_cases_repeat1 = 62, + aux_sym_select_pattern_repeat1 = 63, + aux_sym_list_expression_repeat1 = 64, }; static const char * const ts_symbol_names[] = { @@ -107,6 +108,7 @@ static const char * const ts_symbol_names[] = { [sym_escape_sequence] = "escape_sequence", [anon_sym_select] = "select", [anon_sym_COLON] = ":", + [anon_sym_any] = "any", [anon_sym_default] = "default", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", @@ -174,6 +176,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_escape_sequence] = sym_escape_sequence, [anon_sym_select] = anon_sym_select, [anon_sym_COLON] = anon_sym_COLON, + [anon_sym_any] = anon_sym_any, [anon_sym_default] = anon_sym_default, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, @@ -316,6 +319,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, + [anon_sym_any] = { + .visible = true, + .named = true, + }, [anon_sym_default] = { .visible = true, .named = true, @@ -3577,185 +3584,183 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(38); - if (lookahead == '"') ADVANCE(95); - if (lookahead == '(') ADVANCE(59); - if (lookahead == ')') ADVANCE(60); - if (lookahead == '+') ADVANCE(107); - if (lookahead == ',') ADVANCE(57); - if (lookahead == '-') ADVANCE(88); - if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(100); - if (lookahead == '=') ADVANCE(54); - if (lookahead == '[') ADVANCE(104); + if (eof) ADVANCE(40); + if (lookahead == '"') ADVANCE(99); + if (lookahead == '(') ADVANCE(61); + if (lookahead == ')') ADVANCE(62); + if (lookahead == '+') ADVANCE(113); + if (lookahead == ',') ADVANCE(59); + if (lookahead == '-') ADVANCE(92); + if (lookahead == '/') ADVANCE(55); + if (lookahead == ':') ADVANCE(104); + if (lookahead == '=') ADVANCE(56); + if (lookahead == '[') ADVANCE(110); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(105); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'd') ADVANCE(64); - if (lookahead == 'f') ADVANCE(61); - if (lookahead == 's') ADVANCE(69); - if (lookahead == 't') ADVANCE(75); - if (lookahead == 'u') ADVANCE(74); - if (lookahead == '{') ADVANCE(56); - if (lookahead == '}') ADVANCE(58); + if (lookahead == ']') ADVANCE(111); + if (lookahead == '`') ADVANCE(37); + if (lookahead == 'a') ADVANCE(76); + if (lookahead == 'd') ADVANCE(66); + if (lookahead == 'f') ADVANCE(63); + if (lookahead == 's') ADVANCE(71); + if (lookahead == 't') ADVANCE(78); + if (lookahead == 'u') ADVANCE(77); + if (lookahead == '{') ADVANCE(58); + if (lookahead == '}') ADVANCE(60); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(36) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); + lookahead == ' ') SKIP(38) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); END_STATE(); case 1: if (lookahead == '\n') SKIP(2) - if (lookahead == '"') ADVANCE(95); - if (lookahead == '/') ADVANCE(92); + if (lookahead == '"') ADVANCE(99); + if (lookahead == '/') ADVANCE(96); if (lookahead == '\\') ADVANCE(11); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(93); - if (lookahead != 0) ADVANCE(94); + lookahead == ' ') ADVANCE(97); + if (lookahead != 0) ADVANCE(98); END_STATE(); case 2: if (lookahead == '\n') SKIP(2) - if (lookahead == '/') ADVANCE(92); + if (lookahead == '/') ADVANCE(96); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(93); + lookahead == ' ') ADVANCE(97); if (lookahead != 0 && lookahead != '"' && - lookahead != '\\') ADVANCE(94); + lookahead != '\\') ADVANCE(98); END_STATE(); case 3: - if (lookahead == '"') ADVANCE(91); - if (lookahead == '(') ADVANCE(59); - if (lookahead == ')') ADVANCE(60); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(61); + if (lookahead == ')') ADVANCE(62); if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(35); + if (lookahead == '`') ADVANCE(37); + if (lookahead == 'a') ADVANCE(21); if (lookahead == 'd') ADVANCE(15); if (lookahead == 'f') ADVANCE(13); - if (lookahead == 't') ADVANCE(21); - if (lookahead == '}') ADVANCE(58); + if (lookahead == 't') ADVANCE(22); + if (lookahead == '}') ADVANCE(60); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(3) END_STATE(); case 4: - if (lookahead == '"') ADVANCE(91); - if (lookahead == '(') ADVANCE(59); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(61); if (lookahead == '+') ADVANCE(10); - if (lookahead == '-') ADVANCE(88); + if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(54); - if (lookahead == '[') ADVANCE(104); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'f') ADVANCE(61); - if (lookahead == 's') ADVANCE(69); - if (lookahead == 't') ADVANCE(75); - if (lookahead == 'u') ADVANCE(74); - if (lookahead == '{') ADVANCE(56); + if (lookahead == '=') ADVANCE(56); + if (lookahead == '[') ADVANCE(110); + if (lookahead == '`') ADVANCE(37); + if (lookahead == 'f') ADVANCE(63); + if (lookahead == 's') ADVANCE(71); + if (lookahead == 't') ADVANCE(78); + if (lookahead == 'u') ADVANCE(77); + if (lookahead == '{') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(4) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(91); - if (lookahead == '-') ADVANCE(88); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(104); - if (lookahead == ']') ADVANCE(105); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'f') ADVANCE(61); - if (lookahead == 's') ADVANCE(69); - if (lookahead == 't') ADVANCE(75); - if (lookahead == '{') ADVANCE(56); + if (lookahead == '[') ADVANCE(110); + if (lookahead == ']') ADVANCE(111); + if (lookahead == '`') ADVANCE(37); + if (lookahead == 'f') ADVANCE(63); + if (lookahead == 's') ADVANCE(71); + if (lookahead == 't') ADVANCE(78); + if (lookahead == '{') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(5) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); END_STATE(); case 6: - if (lookahead == '*') ADVANCE(48); - if (lookahead == '/') ADVANCE(39); + if (lookahead == '*') ADVANCE(50); + if (lookahead == '/') ADVANCE(41); END_STATE(); case 7: - if (lookahead == '*') ADVANCE(52); + if (lookahead == '*') ADVANCE(54); if (lookahead == '/') ADVANCE(9); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(7); if (lookahead != 0) ADVANCE(8); END_STATE(); case 8: - if (lookahead == '*') ADVANCE(52); + if (lookahead == '*') ADVANCE(54); if (lookahead != 0) ADVANCE(8); END_STATE(); case 9: - if (lookahead == '*') ADVANCE(49); - if (lookahead == '/') ADVANCE(40); + if (lookahead == '*') ADVANCE(51); + if (lookahead == '/') ADVANCE(42); if (lookahead != 0) ADVANCE(8); END_STATE(); case 10: - if (lookahead == '=') ADVANCE(55); + if (lookahead == '=') ADVANCE(57); END_STATE(); case 11: - if (lookahead == 'U') ADVANCE(33); - if (lookahead == 'u') ADVANCE(29); - if (lookahead == 'x') ADVANCE(27); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(98); - if (lookahead != 0) ADVANCE(96); + if (lookahead == 'U') ADVANCE(35); + if (lookahead == 'u') ADVANCE(31); + if (lookahead == 'x') ADVANCE(29); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(102); + if (lookahead != 0) ADVANCE(100); END_STATE(); case 12: - if (lookahead == '`') ADVANCE(90); + if (lookahead == '`') ADVANCE(94); if (lookahead != 0) ADVANCE(12); END_STATE(); case 13: if (lookahead == 'a') ADVANCE(19); END_STATE(); case 14: - if (lookahead == 'a') ADVANCE(25); + if (lookahead == 'a') ADVANCE(26); END_STATE(); case 15: if (lookahead == 'e') ADVANCE(18); END_STATE(); case 16: - if (lookahead == 'e') ADVANCE(84); + if (lookahead == 'e') ADVANCE(88); END_STATE(); case 17: - if (lookahead == 'e') ADVANCE(86); + if (lookahead == 'e') ADVANCE(90); END_STATE(); case 18: if (lookahead == 'f') ADVANCE(14); END_STATE(); case 19: - if (lookahead == 'l') ADVANCE(22); - END_STATE(); - case 20: if (lookahead == 'l') ADVANCE(23); END_STATE(); + case 20: + if (lookahead == 'l') ADVANCE(24); + END_STATE(); case 21: - if (lookahead == 'r') ADVANCE(24); + if (lookahead == 'n') ADVANCE(27); END_STATE(); case 22: - if (lookahead == 's') ADVANCE(17); + if (lookahead == 'r') ADVANCE(25); END_STATE(); case 23: - if (lookahead == 't') ADVANCE(101); + if (lookahead == 's') ADVANCE(17); END_STATE(); case 24: - if (lookahead == 'u') ADVANCE(16); + if (lookahead == 't') ADVANCE(107); END_STATE(); case 25: - if (lookahead == 'u') ADVANCE(20); + if (lookahead == 'u') ADVANCE(16); END_STATE(); case 26: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(96); + if (lookahead == 'u') ADVANCE(20); END_STATE(); case 27: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(26); + if (lookahead == 'y') ADVANCE(105); END_STATE(); case 28: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(27); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); END_STATE(); case 29: if (('0' <= lookahead && lookahead <= '9') || @@ -3783,386 +3788,414 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'f')) ADVANCE(32); END_STATE(); case 34: - if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(45); - if (lookahead == '\r') ADVANCE(47); - if (lookahead == '\\') ADVANCE(46); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(33); END_STATE(); case 35: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(34); + END_STATE(); + case 36: + if (lookahead != 0 && + lookahead != '\r' && + lookahead != '\\') ADVANCE(47); + if (lookahead == '\r') ADVANCE(49); + if (lookahead == '\\') ADVANCE(48); + END_STATE(); + case 37: if (lookahead != 0 && lookahead != '`') ADVANCE(12); END_STATE(); - case 36: - if (eof) ADVANCE(38); - if (lookahead == '"') ADVANCE(91); - if (lookahead == '(') ADVANCE(59); - if (lookahead == ')') ADVANCE(60); - if (lookahead == '+') ADVANCE(107); - if (lookahead == ',') ADVANCE(57); - if (lookahead == '-') ADVANCE(88); - if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(100); - if (lookahead == '=') ADVANCE(54); - if (lookahead == '[') ADVANCE(104); - if (lookahead == ']') ADVANCE(105); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'd') ADVANCE(64); - if (lookahead == 'f') ADVANCE(61); - if (lookahead == 's') ADVANCE(69); - if (lookahead == 't') ADVANCE(75); - if (lookahead == 'u') ADVANCE(74); - if (lookahead == '{') ADVANCE(56); - if (lookahead == '}') ADVANCE(58); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(36) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); - END_STATE(); - case 37: - if (eof) ADVANCE(38); - if (lookahead == '"') ADVANCE(91); - if (lookahead == '(') ADVANCE(59); - if (lookahead == ')') ADVANCE(60); - if (lookahead == '+') ADVANCE(106); - if (lookahead == ',') ADVANCE(57); - if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(100); - if (lookahead == ']') ADVANCE(105); - if (lookahead == '`') ADVANCE(35); - if (lookahead == '}') ADVANCE(58); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(37) - if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); - END_STATE(); case 38: - ACCEPT_TOKEN(ts_builtin_sym_end); + if (eof) ADVANCE(40); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(61); + if (lookahead == ')') ADVANCE(62); + if (lookahead == '+') ADVANCE(113); + if (lookahead == ',') ADVANCE(59); + if (lookahead == '-') ADVANCE(92); + if (lookahead == '/') ADVANCE(55); + if (lookahead == ':') ADVANCE(104); + if (lookahead == '=') ADVANCE(56); + if (lookahead == '[') ADVANCE(110); + if (lookahead == ']') ADVANCE(111); + if (lookahead == '`') ADVANCE(37); + if (lookahead == 'a') ADVANCE(76); + if (lookahead == 'd') ADVANCE(66); + if (lookahead == 'f') ADVANCE(63); + if (lookahead == 's') ADVANCE(71); + if (lookahead == 't') ADVANCE(78); + if (lookahead == 'u') ADVANCE(77); + if (lookahead == '{') ADVANCE(58); + if (lookahead == '}') ADVANCE(60); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(38) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); END_STATE(); case 39: - ACCEPT_TOKEN(anon_sym_SLASH_SLASH); + if (eof) ADVANCE(40); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(61); + if (lookahead == ')') ADVANCE(62); + if (lookahead == '+') ADVANCE(112); + if (lookahead == ',') ADVANCE(59); + if (lookahead == '/') ADVANCE(6); + if (lookahead == ':') ADVANCE(104); + if (lookahead == ']') ADVANCE(111); + if (lookahead == '`') ADVANCE(37); + if (lookahead == '}') ADVANCE(60); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(39) + if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); END_STATE(); case 40: - ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '*') ADVANCE(52); - if (lookahead != 0) ADVANCE(8); + ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); case 41: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '\\') ADVANCE(34); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(45); END_STATE(); case 42: + ACCEPT_TOKEN(anon_sym_SLASH_SLASH); + if (lookahead == '*') ADVANCE(54); + if (lookahead != 0) ADVANCE(8); + END_STATE(); + case 43: + ACCEPT_TOKEN(anon_sym_SLASH_SLASH); + if (lookahead == '\\') ADVANCE(36); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(47); + END_STATE(); + case 44: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(94); - END_STATE(); - case 43: - ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '*') ADVANCE(50); - if (lookahead == '/') ADVANCE(41); - if (lookahead == '\\') ADVANCE(34); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(45); - END_STATE(); - case 44: - ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '/') ADVANCE(43); - if (lookahead == '\\') ADVANCE(34); - if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(44); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(45); + lookahead != '\\') ADVANCE(98); END_STATE(); case 45: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '\\') ADVANCE(34); + if (lookahead == '*') ADVANCE(52); + if (lookahead == '/') ADVANCE(43); + if (lookahead == '\\') ADVANCE(36); if (lookahead != 0 && - lookahead != '\n') ADVANCE(45); + lookahead != '\n') ADVANCE(47); END_STATE(); case 46: ACCEPT_TOKEN(aux_sym_comment_token1); + if (lookahead == '/') ADVANCE(45); + if (lookahead == '\\') ADVANCE(36); + if (lookahead == '\t' || + (11 <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(46); if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(45); - if (lookahead == '\r') ADVANCE(47); - if (lookahead == '\\') ADVANCE(46); + lookahead != '\n') ADVANCE(47); END_STATE(); case 47: ACCEPT_TOKEN(aux_sym_comment_token1); + if (lookahead == '\\') ADVANCE(36); if (lookahead != 0 && - lookahead != '\\') ADVANCE(45); - if (lookahead == '\\') ADVANCE(34); + lookahead != '\n') ADVANCE(47); END_STATE(); case 48: - ACCEPT_TOKEN(anon_sym_SLASH_STAR); + ACCEPT_TOKEN(aux_sym_comment_token1); + if (lookahead != 0 && + lookahead != '\r' && + lookahead != '\\') ADVANCE(47); + if (lookahead == '\r') ADVANCE(49); + if (lookahead == '\\') ADVANCE(48); END_STATE(); case 49: - ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '*') ADVANCE(52); + ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && - lookahead != '/') ADVANCE(8); + lookahead != '\\') ADVANCE(47); + if (lookahead == '\\') ADVANCE(36); END_STATE(); case 50: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '\\') ADVANCE(34); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(45); END_STATE(); case 51: + ACCEPT_TOKEN(anon_sym_SLASH_STAR); + if (lookahead == '*') ADVANCE(54); + if (lookahead != 0 && + lookahead != '/') ADVANCE(8); + END_STATE(); + case 52: + ACCEPT_TOKEN(anon_sym_SLASH_STAR); + if (lookahead == '\\') ADVANCE(36); + if (lookahead != 0 && + lookahead != '\n') ADVANCE(47); + END_STATE(); + case 53: ACCEPT_TOKEN(anon_sym_SLASH_STAR); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(94); + lookahead != '\\') ADVANCE(98); END_STATE(); - case 52: + case 54: ACCEPT_TOKEN(aux_sym_comment_token2); - if (lookahead == '*') ADVANCE(52); + if (lookahead == '*') ADVANCE(54); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 53: - ACCEPT_TOKEN(anon_sym_SLASH); - if (lookahead == '*') ADVANCE(48); - if (lookahead == '/') ADVANCE(39); - END_STATE(); - case 54: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); case 55: - ACCEPT_TOKEN(anon_sym_PLUS_EQ); + ACCEPT_TOKEN(anon_sym_SLASH); + if (lookahead == '*') ADVANCE(50); + if (lookahead == '/') ADVANCE(41); END_STATE(); case 56: - ACCEPT_TOKEN(anon_sym_LBRACE); + ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); case 57: - ACCEPT_TOKEN(anon_sym_COMMA); + ACCEPT_TOKEN(anon_sym_PLUS_EQ); END_STATE(); case 58: - ACCEPT_TOKEN(anon_sym_RBRACE); + ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); case 59: - ACCEPT_TOKEN(anon_sym_LPAREN); + ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 60: - ACCEPT_TOKEN(anon_sym_RPAREN); + ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); case 61: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(73); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 62: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(81); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 63: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(79); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'a') ADVANCE(75); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(87); END_STATE(); case 64: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(70); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'a') ADVANCE(84); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(87); END_STATE(); case 65: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(63); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'c') ADVANCE(82); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 66: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(85); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(72); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 67: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(78); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(65); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 68: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(87); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(89); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 69: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(71); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(81); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 70: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'f') ADVANCE(62); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(91); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 71: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(65); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'e') ADVANCE(73); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 72: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(80); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'f') ADVANCE(64); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 73: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(77); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'l') ADVANCE(67); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 74: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(76); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'l') ADVANCE(83); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 75: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(82); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'l') ADVANCE(80); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 76: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(67); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'n') ADVANCE(86); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 77: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(68); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'n') ADVANCE(79); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 78: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(103); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 'r') ADVANCE(85); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 79: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(99); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 's') ADVANCE(69); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 80: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(102); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 's') ADVANCE(70); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 81: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(72); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 't') ADVANCE(109); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 82: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(66); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 't') ADVANCE(103); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 83: ACCEPT_TOKEN(sym_identifier); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + if (lookahead == 't') ADVANCE(108); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 84: - ACCEPT_TOKEN(anon_sym_true); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(74); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 85: - ACCEPT_TOKEN(anon_sym_true); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(68); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 86: - ACCEPT_TOKEN(anon_sym_false); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'y') ADVANCE(106); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 87: - ACCEPT_TOKEN(anon_sym_false); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(sym_identifier); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 88: - ACCEPT_TOKEN(anon_sym_DASH); + ACCEPT_TOKEN(anon_sym_true); END_STATE(); case 89: - ACCEPT_TOKEN(aux_sym_integer_literal_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + ACCEPT_TOKEN(anon_sym_true); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 90: - ACCEPT_TOKEN(sym_raw_string_literal); + ACCEPT_TOKEN(anon_sym_false); END_STATE(); case 91: - ACCEPT_TOKEN(anon_sym_DQUOTE); + ACCEPT_TOKEN(anon_sym_false); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 92: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '*') ADVANCE(51); - if (lookahead == '/') ADVANCE(42); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(94); + ACCEPT_TOKEN(anon_sym_DASH); END_STATE(); case 93: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '/') ADVANCE(92); - if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(93); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(94); + ACCEPT_TOKEN(aux_sym_integer_literal_token1); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); END_STATE(); case 94: + ACCEPT_TOKEN(sym_raw_string_literal); + END_STATE(); + case 95: + ACCEPT_TOKEN(anon_sym_DQUOTE); + END_STATE(); + case 96: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '*') ADVANCE(53); + if (lookahead == '/') ADVANCE(44); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(98); + END_STATE(); + case 97: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '/') ADVANCE(96); + if (lookahead == '\t' || + (11 <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(97); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(98); + END_STATE(); + case 98: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(94); - END_STATE(); - case 95: - ACCEPT_TOKEN(anon_sym_DQUOTE2); - END_STATE(); - case 96: - ACCEPT_TOKEN(sym_escape_sequence); - END_STATE(); - case 97: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(96); - END_STATE(); - case 98: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(97); + lookahead != '\\') ADVANCE(98); END_STATE(); case 99: - ACCEPT_TOKEN(anon_sym_select); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(anon_sym_DQUOTE2); END_STATE(); case 100: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(sym_escape_sequence); END_STATE(); case 101: - ACCEPT_TOKEN(anon_sym_default); + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(100); END_STATE(); case 102: - ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(101); END_STATE(); case 103: - ACCEPT_TOKEN(anon_sym_unset); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + ACCEPT_TOKEN(anon_sym_select); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 104: - ACCEPT_TOKEN(anon_sym_LBRACK); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 105: - ACCEPT_TOKEN(anon_sym_RBRACK); + ACCEPT_TOKEN(anon_sym_any); END_STATE(); case 106: - ACCEPT_TOKEN(anon_sym_PLUS); + ACCEPT_TOKEN(anon_sym_any); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 107: + ACCEPT_TOKEN(anon_sym_default); + END_STATE(); + case 108: + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + END_STATE(); + case 109: + ACCEPT_TOKEN(anon_sym_unset); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + END_STATE(); + case 110: + ACCEPT_TOKEN(anon_sym_LBRACK); + END_STATE(); + case 111: + ACCEPT_TOKEN(anon_sym_RBRACK); + END_STATE(); + case 112: ACCEPT_TOKEN(anon_sym_PLUS); - if (lookahead == '=') ADVANCE(55); + END_STATE(); + case 113: + ACCEPT_TOKEN(anon_sym_PLUS); + if (lookahead == '=') ADVANCE(57); END_STATE(); default: return false; @@ -4171,7 +4204,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 37}, + [1] = {.lex_state = 39}, [2] = {.lex_state = 4}, [3] = {.lex_state = 5}, [4] = {.lex_state = 5}, @@ -4188,104 +4221,104 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [15] = {.lex_state = 3}, [16] = {.lex_state = 3}, [17] = {.lex_state = 3}, - [18] = {.lex_state = 37}, - [19] = {.lex_state = 37}, - [20] = {.lex_state = 37}, - [21] = {.lex_state = 37}, - [22] = {.lex_state = 37}, - [23] = {.lex_state = 37}, - [24] = {.lex_state = 37}, - [25] = {.lex_state = 3}, - [26] = {.lex_state = 37}, - [27] = {.lex_state = 37}, - [28] = {.lex_state = 37}, - [29] = {.lex_state = 37}, - [30] = {.lex_state = 37}, - [31] = {.lex_state = 37}, - [32] = {.lex_state = 37}, - [33] = {.lex_state = 37}, - [34] = {.lex_state = 37}, - [35] = {.lex_state = 37}, - [36] = {.lex_state = 37}, - [37] = {.lex_state = 37}, - [38] = {.lex_state = 37}, - [39] = {.lex_state = 37}, - [40] = {.lex_state = 37}, - [41] = {.lex_state = 4}, - [42] = {.lex_state = 37}, - [43] = {.lex_state = 37}, - [44] = {.lex_state = 1}, - [45] = {.lex_state = 1}, + [18] = {.lex_state = 39}, + [19] = {.lex_state = 3}, + [20] = {.lex_state = 39}, + [21] = {.lex_state = 39}, + [22] = {.lex_state = 39}, + [23] = {.lex_state = 39}, + [24] = {.lex_state = 39}, + [25] = {.lex_state = 39}, + [26] = {.lex_state = 39}, + [27] = {.lex_state = 39}, + [28] = {.lex_state = 39}, + [29] = {.lex_state = 39}, + [30] = {.lex_state = 39}, + [31] = {.lex_state = 39}, + [32] = {.lex_state = 39}, + [33] = {.lex_state = 39}, + [34] = {.lex_state = 39}, + [35] = {.lex_state = 39}, + [36] = {.lex_state = 39}, + [37] = {.lex_state = 39}, + [38] = {.lex_state = 39}, + [39] = {.lex_state = 39}, + [40] = {.lex_state = 39}, + [41] = {.lex_state = 39}, + [42] = {.lex_state = 1}, + [43] = {.lex_state = 39}, + [44] = {.lex_state = 39}, + [45] = {.lex_state = 4}, [46] = {.lex_state = 1}, - [47] = {.lex_state = 37}, - [48] = {.lex_state = 37}, - [49] = {.lex_state = 37}, - [50] = {.lex_state = 0}, - [51] = {.lex_state = 37}, - [52] = {.lex_state = 37}, + [47] = {.lex_state = 1}, + [48] = {.lex_state = 0}, + [49] = {.lex_state = 39}, + [50] = {.lex_state = 39}, + [51] = {.lex_state = 39}, + [52] = {.lex_state = 39}, [53] = {.lex_state = 0}, - [54] = {.lex_state = 0}, - [55] = {.lex_state = 37}, - [56] = {.lex_state = 37}, - [57] = {.lex_state = 37}, + [54] = {.lex_state = 39}, + [55] = {.lex_state = 0}, + [56] = {.lex_state = 39}, + [57] = {.lex_state = 39}, [58] = {.lex_state = 0}, - [59] = {.lex_state = 0}, + [59] = {.lex_state = 39}, [60] = {.lex_state = 0}, - [61] = {.lex_state = 37}, - [62] = {.lex_state = 37}, + [61] = {.lex_state = 0}, + [62] = {.lex_state = 39}, [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, [65] = {.lex_state = 0}, [66] = {.lex_state = 0}, [67] = {.lex_state = 0}, - [68] = {.lex_state = 37}, - [69] = {.lex_state = 37}, + [68] = {.lex_state = 39}, + [69] = {.lex_state = 39}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 37}, - [72] = {.lex_state = 37}, + [71] = {.lex_state = 39}, + [72] = {.lex_state = 39}, [73] = {.lex_state = 0}, [74] = {.lex_state = 1}, - [75] = {.lex_state = 37}, + [75] = {.lex_state = 39}, [76] = {.lex_state = 0}, [77] = {.lex_state = 0}, [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 37}, + [80] = {.lex_state = 39}, [81] = {.lex_state = 0}, [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, [84] = {.lex_state = 0}, - [85] = {.lex_state = 37}, + [85] = {.lex_state = 39}, [86] = {.lex_state = 0}, [87] = {.lex_state = 0}, - [88] = {.lex_state = 37}, - [89] = {.lex_state = 37}, - [90] = {.lex_state = 37}, - [91] = {.lex_state = 37}, - [92] = {.lex_state = 37}, - [93] = {.lex_state = 37}, + [88] = {.lex_state = 39}, + [89] = {.lex_state = 39}, + [90] = {.lex_state = 39}, + [91] = {.lex_state = 39}, + [92] = {.lex_state = 39}, + [93] = {.lex_state = 39}, [94] = {.lex_state = 0}, - [95] = {.lex_state = 37}, + [95] = {.lex_state = 39}, [96] = {.lex_state = 0}, - [97] = {.lex_state = 37}, - [98] = {.lex_state = 37}, - [99] = {.lex_state = 37}, - [100] = {.lex_state = 37}, - [101] = {.lex_state = 37}, + [97] = {.lex_state = 39}, + [98] = {.lex_state = 39}, + [99] = {.lex_state = 39}, + [100] = {.lex_state = 39}, + [101] = {.lex_state = 39}, [102] = {.lex_state = 0}, [103] = {.lex_state = 0}, - [104] = {.lex_state = 37}, - [105] = {.lex_state = 37}, - [106] = {.lex_state = 37}, + [104] = {.lex_state = 39}, + [105] = {.lex_state = 39}, + [106] = {.lex_state = 39}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 37}, - [110] = {.lex_state = 37}, - [111] = {.lex_state = 37}, + [109] = {.lex_state = 39}, + [110] = {.lex_state = 39}, + [111] = {.lex_state = 39}, [112] = {.lex_state = 0}, [113] = {.lex_state = 0}, [114] = {.lex_state = 0}, - [115] = {.lex_state = 44}, + [115] = {.lex_state = 46}, [116] = {.lex_state = 0}, [117] = {.lex_state = 0}, [118] = {.lex_state = 0}, @@ -4336,6 +4369,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_escape_sequence] = ACTIONS(1), [anon_sym_select] = ACTIONS(1), [anon_sym_COLON] = ACTIONS(1), + [anon_sym_any] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), @@ -4393,7 +4427,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4433,7 +4467,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4468,12 +4502,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(43), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4513,7 +4547,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4546,12 +4580,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4589,7 +4623,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4622,12 +4656,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(71), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4660,12 +4694,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(71), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4698,12 +4732,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(37), 1, + STATE(38), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(30), 7, + STATE(32), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4724,8 +4758,6 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(48), 1, anon_sym_DQUOTE, - ACTIONS(51), 1, - anon_sym_default, STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, @@ -4737,13 +4769,16 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(42), 2, anon_sym_true, anon_sym_false, + ACTIONS(51), 2, + anon_sym_any, + anon_sym_default, STATE(11), 2, sym_comment, aux_sym_select_cases_repeat1, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [538] = 15, + [539] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4756,8 +4791,6 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, ACTIONS(56), 1, anon_sym_LPAREN, - ACTIONS(60), 1, - anon_sym_default, STATE(12), 1, sym_comment, STATE(13), 1, @@ -4773,10 +4806,13 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [586] = 15, + [588] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4787,8 +4823,6 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(56), 1, anon_sym_LPAREN, - ACTIONS(60), 1, - anon_sym_default, ACTIONS(62), 1, anon_sym_RBRACE, STATE(11), 1, @@ -4806,10 +4840,13 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [634] = 11, + [637] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4818,8 +4855,6 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, ACTIONS(64), 1, anon_sym_RPAREN, STATE(14), 1, @@ -4831,10 +4866,13 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [670] = 11, + [674] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4843,8 +4881,6 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, ACTIONS(66), 1, anon_sym_RPAREN, STATE(15), 1, @@ -4856,10 +4892,13 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [706] = 10, + [711] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4868,8 +4907,6 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, STATE(16), 1, sym_comment, STATE(23), 1, @@ -4879,10 +4916,13 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [739] = 10, + [745] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4891,21 +4931,22 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, STATE(17), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(61), 1, sym__select_pattern, ACTIONS(58), 2, anon_sym_true, anon_sym_false, + ACTIONS(60), 2, + anon_sym_any, + anon_sym_default, STATE(82), 2, sym_boolean_literal, sym__string_literal, - [772] = 10, + [779] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4927,13 +4968,29 @@ static const uint16_t ts_small_parse_table[] = { STATE(99), 2, sym_assignment, sym_module, - [804] = 4, + [811] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(19), 1, sym_comment, + ACTIONS(37), 8, + anon_sym_RBRACE, + anon_sym_LPAREN, + anon_sym_true, + anon_sym_false, + sym_raw_string_literal, + anon_sym_DQUOTE, + anon_sym_any, + anon_sym_default, + [831] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(20), 1, + sym_comment, ACTIONS(70), 8, ts_builtin_sym_end, anon_sym_COMMA, @@ -4943,30 +5000,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [824] = 4, + [851] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(20), 1, - sym_comment, - ACTIONS(72), 8, + ACTIONS(72), 1, ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [844] = 9, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, ACTIONS(74), 1, - ts_builtin_sym_end, - ACTIONS(76), 1, sym_identifier, STATE(93), 1, sym__definition, @@ -4980,13 +5021,29 @@ static const uint16_t ts_small_parse_table[] = { STATE(99), 2, sym_assignment, sym_module, - [874] = 4, + [881] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, + ACTIONS(77), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [901] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(23), 1, + sym_comment, ACTIONS(79), 8, ts_builtin_sym_end, anon_sym_COMMA, @@ -4996,12 +5053,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [894] = 4, + [921] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(23), 1, + STATE(24), 1, sym_comment, ACTIONS(81), 8, ts_builtin_sym_end, @@ -5012,12 +5069,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [914] = 4, + [941] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(24), 1, + STATE(25), 1, sym_comment, ACTIONS(83), 7, ts_builtin_sym_end, @@ -5027,22 +5084,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [933] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(25), 1, - sym_comment, - ACTIONS(37), 7, - anon_sym_RBRACE, - anon_sym_LPAREN, - anon_sym_true, - anon_sym_false, - sym_raw_string_literal, - anon_sym_DQUOTE, - anon_sym_default, - [952] = 4, + [960] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5057,7 +5099,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [971] = 4, + [979] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5072,7 +5114,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [990] = 4, + [998] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5087,7 +5129,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1009] = 4, + [1017] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5102,7 +5144,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1028] = 4, + [1036] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5117,7 +5159,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1047] = 4, + [1055] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5132,7 +5174,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1066] = 4, + [1074] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5147,7 +5189,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1085] = 4, + [1093] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5162,7 +5204,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1104] = 4, + [1112] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5177,7 +5219,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1123] = 4, + [1131] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5192,7 +5234,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1142] = 4, + [1150] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5207,7 +5249,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1161] = 4, + [1169] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5222,7 +5264,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1180] = 4, + [1188] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5237,7 +5279,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1199] = 4, + [1207] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5252,7 +5294,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1218] = 8, + [1226] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5269,95 +5311,52 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(60), 1, sym__string_literal, - [1243] = 6, + [1251] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(115), 1, + anon_sym_LPAREN, ACTIONS(117), 1, - anon_sym_LBRACE, - ACTIONS(119), 1, - anon_sym_LPAREN, - STATE(41), 1, - sym_comment, - ACTIONS(115), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1263] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(121), 1, - anon_sym_COMMA, - ACTIONS(123), 1, - anon_sym_RBRACK, - ACTIONS(125), 1, - anon_sym_PLUS, - STATE(42), 1, - sym_comment, - STATE(63), 1, - aux_sym_list_expression_repeat1, - [1285] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(127), 1, - anon_sym_LPAREN, - ACTIONS(129), 1, sym_identifier, - STATE(43), 1, + STATE(41), 1, sym_comment, STATE(129), 1, sym_select_value, STATE(134), 1, sym_condition, - [1307] = 7, - ACTIONS(131), 1, + [1273] = 7, + ACTIONS(119), 1, anon_sym_SLASH_SLASH, - ACTIONS(133), 1, + ACTIONS(121), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, + ACTIONS(123), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(137), 1, + ACTIONS(125), 1, anon_sym_DQUOTE2, - ACTIONS(139), 1, + ACTIONS(127), 1, sym_escape_sequence, - STATE(44), 1, + STATE(42), 1, sym_comment, STATE(46), 1, aux_sym_interpreted_string_literal_repeat1, - [1329] = 7, - ACTIONS(131), 1, + [1295] = 7, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(133), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(139), 1, - sym_escape_sequence, - ACTIONS(141), 1, - anon_sym_DQUOTE2, - STATE(44), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(45), 1, - sym_comment, - [1351] = 6, + ACTIONS(129), 1, + anon_sym_COMMA, ACTIONS(131), 1, - anon_sym_SLASH_SLASH, + anon_sym_RBRACK, ACTIONS(133), 1, - anon_sym_SLASH_STAR, - ACTIONS(143), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(146), 1, - anon_sym_DQUOTE2, - ACTIONS(148), 1, - sym_escape_sequence, - STATE(46), 2, + anon_sym_PLUS, + STATE(43), 1, sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1371] = 7, + STATE(63), 1, + aux_sym_list_expression_repeat1, + [1317] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5368,138 +5367,181 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, STATE(23), 1, sym_interpreted_string_literal, - STATE(47), 1, + STATE(44), 1, sym_comment, STATE(108), 1, sym__string_literal, - [1393] = 6, + [1339] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(137), 1, + anon_sym_LBRACE, + ACTIONS(139), 1, + anon_sym_LPAREN, + STATE(45), 1, + sym_comment, + ACTIONS(135), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1359] = 6, + ACTIONS(119), 1, + anon_sym_SLASH_SLASH, + ACTIONS(121), 1, + anon_sym_SLASH_STAR, + ACTIONS(141), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(144), 1, + anon_sym_DQUOTE2, + ACTIONS(146), 1, + sym_escape_sequence, + STATE(46), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1379] = 7, + ACTIONS(119), 1, + anon_sym_SLASH_SLASH, + ACTIONS(121), 1, + anon_sym_SLASH_STAR, + ACTIONS(123), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(127), 1, + sym_escape_sequence, + ACTIONS(149), 1, + anon_sym_DQUOTE2, + STATE(42), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(47), 1, + sym_comment, + [1401] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(151), 1, - anon_sym_RBRACE, + anon_sym_COMMA, ACTIONS(153), 1, - sym_identifier, + anon_sym_RBRACE, STATE(48), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1412] = 5, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1420] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(125), 1, + ACTIONS(133), 1, anon_sym_PLUS, STATE(49), 1, sym_comment, ACTIONS(155), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1429] = 5, + [1437] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(157), 1, - anon_sym_COMMA, - ACTIONS(160), 1, - anon_sym_RPAREN, - STATE(50), 2, + anon_sym_RBRACE, + ACTIONS(159), 1, + sym_identifier, + STATE(50), 1, sym_comment, - aux_sym_condition_repeat1, - [1446] = 6, + STATE(76), 1, + sym__colon_property, + [1456] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, + ACTIONS(161), 1, anon_sym_RPAREN, - ACTIONS(164), 1, + ACTIONS(163), 1, sym_identifier, STATE(51), 1, sym_comment, STATE(87), 1, sym__equal_property, - [1465] = 6, + [1475] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(117), 1, sym_identifier, - ACTIONS(166), 1, + ACTIONS(165), 1, anon_sym_RPAREN, STATE(52), 1, sym_comment, STATE(103), 1, sym_condition, - [1484] = 6, + [1494] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(168), 1, + ACTIONS(167), 1, anon_sym_COMMA, - ACTIONS(170), 1, + ACTIONS(169), 1, anon_sym_RPAREN, STATE(53), 1, sym_comment, STATE(73), 1, aux_sym__new_module_repeat1, - [1503] = 6, + [1513] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, - anon_sym_COMMA, - ACTIONS(174), 1, + ACTIONS(159), 1, + sym_identifier, + ACTIONS(171), 1, anon_sym_RBRACE, STATE(54), 1, sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1522] = 6, + STATE(84), 1, + sym__colon_property, + [1532] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(164), 1, - sym_identifier, + ACTIONS(173), 1, + anon_sym_COMMA, ACTIONS(176), 1, anon_sym_RPAREN, - STATE(55), 1, + STATE(55), 2, sym_comment, - STATE(78), 1, - sym__equal_property, - [1541] = 5, + aux_sym_condition_repeat1, + [1549] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(125), 1, + ACTIONS(133), 1, anon_sym_PLUS, STATE(56), 1, sym_comment, ACTIONS(178), 2, ts_builtin_sym_end, sym_identifier, - [1558] = 6, + [1566] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, + ACTIONS(163), 1, sym_identifier, ACTIONS(180), 1, - anon_sym_RBRACE, + anon_sym_RPAREN, STATE(57), 1, sym_comment, - STATE(81), 1, - sym__colon_property, - [1577] = 5, + STATE(78), 1, + sym__equal_property, + [1585] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5511,59 +5553,59 @@ static const uint16_t ts_small_parse_table[] = { STATE(58), 2, sym_comment, aux_sym_select_value_repeat1, - [1594] = 6, + [1602] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(159), 1, + sym_identifier, ACTIONS(187), 1, - anon_sym_COMMA, - ACTIONS(189), 1, - anon_sym_RPAREN, + anon_sym_RBRACE, STATE(59), 1, sym_comment, - STATE(67), 1, - aux_sym_select_pattern_repeat1, - [1613] = 6, + STATE(81), 1, + sym__colon_property, + [1621] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(191), 1, + ACTIONS(189), 1, anon_sym_COMMA, - ACTIONS(193), 1, + ACTIONS(191), 1, anon_sym_RPAREN, STATE(60), 1, sym_comment, STATE(79), 1, aux_sym_condition_repeat1, - [1632] = 6, + [1640] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, - sym_identifier, + ACTIONS(193), 1, + anon_sym_COMMA, ACTIONS(195), 1, - anon_sym_RBRACE, + anon_sym_RPAREN, STATE(61), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1651] = 6, + STATE(67), 1, + aux_sym_select_pattern_repeat1, + [1659] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, + ACTIONS(159), 1, sym_identifier, ACTIONS(197), 1, anon_sym_RBRACE, STATE(62), 1, sym_comment, - STATE(76), 1, + STATE(84), 1, sym__colon_property, - [1670] = 6, + [1678] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5576,7 +5618,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(83), 1, aux_sym_list_expression_repeat1, - [1689] = 5, + [1697] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5588,7 +5630,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(64), 2, sym_comment, aux_sym_select_pattern_repeat1, - [1706] = 6, + [1714] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5601,7 +5643,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(70), 1, aux_sym__old_module_repeat1, - [1725] = 6, + [1733] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5614,7 +5656,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_select_value_repeat1, STATE(66), 1, sym_comment, - [1744] = 6, + [1752] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5627,12 +5669,12 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_select_pattern_repeat1, STATE(67), 1, sym_comment, - [1763] = 6, + [1771] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, + ACTIONS(159), 1, sym_identifier, ACTIONS(218), 1, anon_sym_RBRACE, @@ -5640,12 +5682,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(84), 1, sym__colon_property, - [1782] = 6, + [1790] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(117), 1, sym_identifier, ACTIONS(214), 1, anon_sym_RPAREN, @@ -5653,7 +5695,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(103), 1, sym_condition, - [1801] = 5, + [1809] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5665,24 +5707,24 @@ static const uint16_t ts_small_parse_table[] = { STATE(70), 2, sym_comment, aux_sym__old_module_repeat1, - [1818] = 5, + [1826] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(125), 1, + ACTIONS(133), 1, anon_sym_PLUS, STATE(71), 1, sym_comment, ACTIONS(225), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1835] = 6, + [1843] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(164), 1, + ACTIONS(163), 1, sym_identifier, ACTIONS(227), 1, anon_sym_RPAREN, @@ -5690,7 +5732,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(87), 1, sym__equal_property, - [1854] = 5, + [1862] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5702,10 +5744,10 @@ static const uint16_t ts_small_parse_table[] = { STATE(73), 2, sym_comment, aux_sym__new_module_repeat1, - [1871] = 5, - ACTIONS(131), 1, + [1879] = 5, + ACTIONS(119), 1, anon_sym_SLASH_SLASH, - ACTIONS(133), 1, + ACTIONS(121), 1, anon_sym_SLASH_STAR, ACTIONS(234), 1, aux_sym_interpreted_string_literal_token1, @@ -5714,12 +5756,12 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(236), 2, anon_sym_DQUOTE2, sym_escape_sequence, - [1888] = 6, + [1896] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, + ACTIONS(159), 1, sym_identifier, ACTIONS(238), 1, anon_sym_RBRACE, @@ -5727,7 +5769,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(84), 1, sym__colon_property, - [1907] = 6, + [1915] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5736,11 +5778,11 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, ACTIONS(242), 1, anon_sym_RBRACE, - STATE(54), 1, + STATE(48), 1, aux_sym__old_module_repeat1, STATE(76), 1, sym_comment, - [1926] = 6, + [1934] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5753,7 +5795,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_select_value_repeat1, STATE(77), 1, sym_comment, - [1945] = 6, + [1953] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5766,32 +5808,32 @@ static const uint16_t ts_small_parse_table[] = { aux_sym__new_module_repeat1, STATE(78), 1, sym_comment, - [1964] = 6, + [1972] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(191), 1, + ACTIONS(189), 1, anon_sym_COMMA, ACTIONS(252), 1, anon_sym_RPAREN, - STATE(50), 1, + STATE(55), 1, aux_sym_condition_repeat1, STATE(79), 1, sym_comment, - [1983] = 5, + [1991] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(125), 1, + ACTIONS(133), 1, anon_sym_PLUS, STATE(80), 1, sym_comment, ACTIONS(254), 2, anon_sym_COMMA, anon_sym_RBRACK, - [2000] = 6, + [2008] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5804,7 +5846,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym__old_module_repeat1, STATE(81), 1, sym_comment, - [2019] = 4, + [2027] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5815,7 +5857,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, anon_sym_RPAREN, anon_sym_COLON, - [2034] = 5, + [2042] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5827,7 +5869,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(83), 2, sym_comment, aux_sym_list_expression_repeat1, - [2051] = 4, + [2059] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5837,7 +5879,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(267), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2065] = 4, + [2073] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5847,7 +5889,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(269), 2, ts_builtin_sym_end, sym_identifier, - [2079] = 5, + [2087] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5858,7 +5900,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(131), 1, sym_select_cases, - [2095] = 4, + [2103] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5868,7 +5910,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(273), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2109] = 4, + [2117] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5878,18 +5920,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, - [2123] = 5, + [2131] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, + ACTIONS(159), 1, sym_identifier, STATE(84), 1, sym__colon_property, STATE(89), 1, sym_comment, - [2139] = 4, + [2147] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5899,18 +5941,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(277), 2, ts_builtin_sym_end, sym_identifier, - [2153] = 5, + [2161] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(164), 1, + ACTIONS(163), 1, sym_identifier, STATE(87), 1, sym__equal_property, STATE(91), 1, sym_comment, - [2169] = 4, + [2177] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5920,7 +5962,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, - [2183] = 4, + [2191] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5930,7 +5972,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(281), 2, ts_builtin_sym_end, sym_identifier, - [2197] = 4, + [2205] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5940,7 +5982,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(206), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2211] = 4, + [2219] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5950,7 +5992,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(283), 2, ts_builtin_sym_end, sym_identifier, - [2225] = 4, + [2233] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5960,7 +6002,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(285), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2239] = 4, + [2247] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5970,18 +6012,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(287), 2, ts_builtin_sym_end, sym_identifier, - [2253] = 5, + [2261] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(125), 1, + ACTIONS(133), 1, anon_sym_PLUS, ACTIONS(289), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2269] = 4, + [2277] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5991,7 +6033,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2283] = 4, + [2291] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6001,7 +6043,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(293), 2, ts_builtin_sym_end, sym_identifier, - [2297] = 4, + [2305] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6011,7 +6053,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(293), 2, ts_builtin_sym_end, sym_identifier, - [2311] = 4, + [2319] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6021,7 +6063,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(295), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2325] = 4, + [2333] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6031,18 +6073,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(185), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2339] = 5, + [2347] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(117), 1, sym_identifier, STATE(77), 1, sym_condition, STATE(104), 1, sym_comment, - [2355] = 4, + [2363] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6052,7 +6094,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(297), 2, ts_builtin_sym_end, sym_identifier, - [2369] = 4, + [2377] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6062,7 +6104,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(299), 2, ts_builtin_sym_end, sym_identifier, - [2383] = 4, + [2391] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6072,28 +6114,28 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(301), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2397] = 4, + [2405] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(108), 1, sym_comment, - ACTIONS(160), 2, + ACTIONS(176), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2411] = 5, + [2419] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(117), 1, sym_identifier, STATE(103), 1, sym_condition, STATE(109), 1, sym_comment, - [2427] = 4, + [2435] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6103,7 +6145,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(303), 2, ts_builtin_sym_end, sym_identifier, - [2441] = 4, + [2449] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6113,7 +6155,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(305), 2, ts_builtin_sym_end, sym_identifier, - [2455] = 4, + [2463] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6122,7 +6164,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(112), 1, sym_comment, - [2468] = 4, + [2476] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6131,7 +6173,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(113), 1, sym_comment, - [2481] = 4, + [2489] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6140,16 +6182,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(114), 1, sym_comment, - [2494] = 4, - ACTIONS(131), 1, + [2502] = 4, + ACTIONS(119), 1, anon_sym_SLASH_SLASH, - ACTIONS(133), 1, + ACTIONS(121), 1, anon_sym_SLASH_STAR, ACTIONS(313), 1, aux_sym_comment_token1, STATE(115), 1, sym_comment, - [2507] = 4, + [2515] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6158,7 +6200,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(116), 1, sym_comment, - [2520] = 4, + [2528] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6167,7 +6209,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(117), 1, sym_comment, - [2533] = 4, + [2541] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6176,7 +6218,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(118), 1, sym_comment, - [2546] = 4, + [2554] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6185,7 +6227,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(119), 1, sym_comment, - [2559] = 4, + [2567] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6194,7 +6236,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_EQ, STATE(120), 1, sym_comment, - [2572] = 4, + [2580] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6203,16 +6245,16 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_integer_literal_token1, STATE(121), 1, sym_comment, - [2585] = 4, - ACTIONS(131), 1, + [2593] = 4, + ACTIONS(119), 1, anon_sym_SLASH_SLASH, - ACTIONS(133), 1, + ACTIONS(121), 1, anon_sym_SLASH_STAR, ACTIONS(327), 1, aux_sym_comment_token2, STATE(122), 1, sym_comment, - [2598] = 4, + [2606] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6221,7 +6263,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH, STATE(123), 1, sym_comment, - [2611] = 4, + [2619] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6230,7 +6272,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(124), 1, sym_comment, - [2624] = 4, + [2632] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6239,7 +6281,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(125), 1, sym_comment, - [2637] = 4, + [2645] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6248,7 +6290,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(126), 1, sym_comment, - [2650] = 4, + [2658] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6257,7 +6299,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(127), 1, sym_comment, - [2663] = 4, + [2671] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6266,7 +6308,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(128), 1, sym_comment, - [2676] = 4, + [2684] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6275,7 +6317,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(129), 1, sym_comment, - [2689] = 4, + [2697] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6284,7 +6326,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(130), 1, sym_comment, - [2702] = 4, + [2710] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6293,7 +6335,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(131), 1, sym_comment, - [2715] = 4, + [2723] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6302,7 +6344,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(132), 1, sym_comment, - [2728] = 4, + [2736] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6311,7 +6353,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(133), 1, sym_comment, - [2741] = 4, + [2749] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6320,7 +6362,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(134), 1, sym_comment, - [2754] = 4, + [2762] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6329,7 +6371,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(135), 1, sym_comment, - [2767] = 4, + [2775] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6338,10 +6380,10 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, STATE(136), 1, sym_comment, - [2780] = 1, + [2788] = 1, ACTIONS(355), 1, ts_builtin_sym_end, - [2784] = 1, + [2792] = 1, ACTIONS(357), 1, ts_builtin_sym_end, }; @@ -6357,133 +6399,133 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 538, - [SMALL_STATE(13)] = 586, - [SMALL_STATE(14)] = 634, - [SMALL_STATE(15)] = 670, - [SMALL_STATE(16)] = 706, - [SMALL_STATE(17)] = 739, - [SMALL_STATE(18)] = 772, - [SMALL_STATE(19)] = 804, - [SMALL_STATE(20)] = 824, - [SMALL_STATE(21)] = 844, - [SMALL_STATE(22)] = 874, - [SMALL_STATE(23)] = 894, - [SMALL_STATE(24)] = 914, - [SMALL_STATE(25)] = 933, - [SMALL_STATE(26)] = 952, - [SMALL_STATE(27)] = 971, - [SMALL_STATE(28)] = 990, - [SMALL_STATE(29)] = 1009, - [SMALL_STATE(30)] = 1028, - [SMALL_STATE(31)] = 1047, - [SMALL_STATE(32)] = 1066, - [SMALL_STATE(33)] = 1085, - [SMALL_STATE(34)] = 1104, - [SMALL_STATE(35)] = 1123, - [SMALL_STATE(36)] = 1142, - [SMALL_STATE(37)] = 1161, - [SMALL_STATE(38)] = 1180, - [SMALL_STATE(39)] = 1199, - [SMALL_STATE(40)] = 1218, - [SMALL_STATE(41)] = 1243, - [SMALL_STATE(42)] = 1263, - [SMALL_STATE(43)] = 1285, - [SMALL_STATE(44)] = 1307, - [SMALL_STATE(45)] = 1329, - [SMALL_STATE(46)] = 1351, - [SMALL_STATE(47)] = 1371, - [SMALL_STATE(48)] = 1393, - [SMALL_STATE(49)] = 1412, - [SMALL_STATE(50)] = 1429, - [SMALL_STATE(51)] = 1446, - [SMALL_STATE(52)] = 1465, - [SMALL_STATE(53)] = 1484, - [SMALL_STATE(54)] = 1503, - [SMALL_STATE(55)] = 1522, - [SMALL_STATE(56)] = 1541, - [SMALL_STATE(57)] = 1558, - [SMALL_STATE(58)] = 1577, - [SMALL_STATE(59)] = 1594, - [SMALL_STATE(60)] = 1613, - [SMALL_STATE(61)] = 1632, - [SMALL_STATE(62)] = 1651, - [SMALL_STATE(63)] = 1670, - [SMALL_STATE(64)] = 1689, - [SMALL_STATE(65)] = 1706, - [SMALL_STATE(66)] = 1725, - [SMALL_STATE(67)] = 1744, - [SMALL_STATE(68)] = 1763, - [SMALL_STATE(69)] = 1782, - [SMALL_STATE(70)] = 1801, - [SMALL_STATE(71)] = 1818, - [SMALL_STATE(72)] = 1835, - [SMALL_STATE(73)] = 1854, - [SMALL_STATE(74)] = 1871, - [SMALL_STATE(75)] = 1888, - [SMALL_STATE(76)] = 1907, - [SMALL_STATE(77)] = 1926, - [SMALL_STATE(78)] = 1945, - [SMALL_STATE(79)] = 1964, - [SMALL_STATE(80)] = 1983, - [SMALL_STATE(81)] = 2000, - [SMALL_STATE(82)] = 2019, - [SMALL_STATE(83)] = 2034, - [SMALL_STATE(84)] = 2051, - [SMALL_STATE(85)] = 2065, - [SMALL_STATE(86)] = 2079, - [SMALL_STATE(87)] = 2095, - [SMALL_STATE(88)] = 2109, - [SMALL_STATE(89)] = 2123, - [SMALL_STATE(90)] = 2139, - [SMALL_STATE(91)] = 2153, - [SMALL_STATE(92)] = 2169, - [SMALL_STATE(93)] = 2183, - [SMALL_STATE(94)] = 2197, - [SMALL_STATE(95)] = 2211, - [SMALL_STATE(96)] = 2225, - [SMALL_STATE(97)] = 2239, - [SMALL_STATE(98)] = 2253, - [SMALL_STATE(99)] = 2269, - [SMALL_STATE(100)] = 2283, - [SMALL_STATE(101)] = 2297, - [SMALL_STATE(102)] = 2311, - [SMALL_STATE(103)] = 2325, - [SMALL_STATE(104)] = 2339, - [SMALL_STATE(105)] = 2355, - [SMALL_STATE(106)] = 2369, - [SMALL_STATE(107)] = 2383, - [SMALL_STATE(108)] = 2397, - [SMALL_STATE(109)] = 2411, - [SMALL_STATE(110)] = 2427, - [SMALL_STATE(111)] = 2441, - [SMALL_STATE(112)] = 2455, - [SMALL_STATE(113)] = 2468, - [SMALL_STATE(114)] = 2481, - [SMALL_STATE(115)] = 2494, - [SMALL_STATE(116)] = 2507, - [SMALL_STATE(117)] = 2520, - [SMALL_STATE(118)] = 2533, - [SMALL_STATE(119)] = 2546, - [SMALL_STATE(120)] = 2559, - [SMALL_STATE(121)] = 2572, - [SMALL_STATE(122)] = 2585, - [SMALL_STATE(123)] = 2598, - [SMALL_STATE(124)] = 2611, - [SMALL_STATE(125)] = 2624, - [SMALL_STATE(126)] = 2637, - [SMALL_STATE(127)] = 2650, - [SMALL_STATE(128)] = 2663, - [SMALL_STATE(129)] = 2676, - [SMALL_STATE(130)] = 2689, - [SMALL_STATE(131)] = 2702, - [SMALL_STATE(132)] = 2715, - [SMALL_STATE(133)] = 2728, - [SMALL_STATE(134)] = 2741, - [SMALL_STATE(135)] = 2754, - [SMALL_STATE(136)] = 2767, - [SMALL_STATE(137)] = 2780, - [SMALL_STATE(138)] = 2784, + [SMALL_STATE(12)] = 539, + [SMALL_STATE(13)] = 588, + [SMALL_STATE(14)] = 637, + [SMALL_STATE(15)] = 674, + [SMALL_STATE(16)] = 711, + [SMALL_STATE(17)] = 745, + [SMALL_STATE(18)] = 779, + [SMALL_STATE(19)] = 811, + [SMALL_STATE(20)] = 831, + [SMALL_STATE(21)] = 851, + [SMALL_STATE(22)] = 881, + [SMALL_STATE(23)] = 901, + [SMALL_STATE(24)] = 921, + [SMALL_STATE(25)] = 941, + [SMALL_STATE(26)] = 960, + [SMALL_STATE(27)] = 979, + [SMALL_STATE(28)] = 998, + [SMALL_STATE(29)] = 1017, + [SMALL_STATE(30)] = 1036, + [SMALL_STATE(31)] = 1055, + [SMALL_STATE(32)] = 1074, + [SMALL_STATE(33)] = 1093, + [SMALL_STATE(34)] = 1112, + [SMALL_STATE(35)] = 1131, + [SMALL_STATE(36)] = 1150, + [SMALL_STATE(37)] = 1169, + [SMALL_STATE(38)] = 1188, + [SMALL_STATE(39)] = 1207, + [SMALL_STATE(40)] = 1226, + [SMALL_STATE(41)] = 1251, + [SMALL_STATE(42)] = 1273, + [SMALL_STATE(43)] = 1295, + [SMALL_STATE(44)] = 1317, + [SMALL_STATE(45)] = 1339, + [SMALL_STATE(46)] = 1359, + [SMALL_STATE(47)] = 1379, + [SMALL_STATE(48)] = 1401, + [SMALL_STATE(49)] = 1420, + [SMALL_STATE(50)] = 1437, + [SMALL_STATE(51)] = 1456, + [SMALL_STATE(52)] = 1475, + [SMALL_STATE(53)] = 1494, + [SMALL_STATE(54)] = 1513, + [SMALL_STATE(55)] = 1532, + [SMALL_STATE(56)] = 1549, + [SMALL_STATE(57)] = 1566, + [SMALL_STATE(58)] = 1585, + [SMALL_STATE(59)] = 1602, + [SMALL_STATE(60)] = 1621, + [SMALL_STATE(61)] = 1640, + [SMALL_STATE(62)] = 1659, + [SMALL_STATE(63)] = 1678, + [SMALL_STATE(64)] = 1697, + [SMALL_STATE(65)] = 1714, + [SMALL_STATE(66)] = 1733, + [SMALL_STATE(67)] = 1752, + [SMALL_STATE(68)] = 1771, + [SMALL_STATE(69)] = 1790, + [SMALL_STATE(70)] = 1809, + [SMALL_STATE(71)] = 1826, + [SMALL_STATE(72)] = 1843, + [SMALL_STATE(73)] = 1862, + [SMALL_STATE(74)] = 1879, + [SMALL_STATE(75)] = 1896, + [SMALL_STATE(76)] = 1915, + [SMALL_STATE(77)] = 1934, + [SMALL_STATE(78)] = 1953, + [SMALL_STATE(79)] = 1972, + [SMALL_STATE(80)] = 1991, + [SMALL_STATE(81)] = 2008, + [SMALL_STATE(82)] = 2027, + [SMALL_STATE(83)] = 2042, + [SMALL_STATE(84)] = 2059, + [SMALL_STATE(85)] = 2073, + [SMALL_STATE(86)] = 2087, + [SMALL_STATE(87)] = 2103, + [SMALL_STATE(88)] = 2117, + [SMALL_STATE(89)] = 2131, + [SMALL_STATE(90)] = 2147, + [SMALL_STATE(91)] = 2161, + [SMALL_STATE(92)] = 2177, + [SMALL_STATE(93)] = 2191, + [SMALL_STATE(94)] = 2205, + [SMALL_STATE(95)] = 2219, + [SMALL_STATE(96)] = 2233, + [SMALL_STATE(97)] = 2247, + [SMALL_STATE(98)] = 2261, + [SMALL_STATE(99)] = 2277, + [SMALL_STATE(100)] = 2291, + [SMALL_STATE(101)] = 2305, + [SMALL_STATE(102)] = 2319, + [SMALL_STATE(103)] = 2333, + [SMALL_STATE(104)] = 2347, + [SMALL_STATE(105)] = 2363, + [SMALL_STATE(106)] = 2377, + [SMALL_STATE(107)] = 2391, + [SMALL_STATE(108)] = 2405, + [SMALL_STATE(109)] = 2419, + [SMALL_STATE(110)] = 2435, + [SMALL_STATE(111)] = 2449, + [SMALL_STATE(112)] = 2463, + [SMALL_STATE(113)] = 2476, + [SMALL_STATE(114)] = 2489, + [SMALL_STATE(115)] = 2502, + [SMALL_STATE(116)] = 2515, + [SMALL_STATE(117)] = 2528, + [SMALL_STATE(118)] = 2541, + [SMALL_STATE(119)] = 2554, + [SMALL_STATE(120)] = 2567, + [SMALL_STATE(121)] = 2580, + [SMALL_STATE(122)] = 2593, + [SMALL_STATE(123)] = 2606, + [SMALL_STATE(124)] = 2619, + [SMALL_STATE(125)] = 2632, + [SMALL_STATE(126)] = 2645, + [SMALL_STATE(127)] = 2658, + [SMALL_STATE(128)] = 2671, + [SMALL_STATE(129)] = 2684, + [SMALL_STATE(130)] = 2697, + [SMALL_STATE(131)] = 2710, + [SMALL_STATE(132)] = 2723, + [SMALL_STATE(133)] = 2736, + [SMALL_STATE(134)] = 2749, + [SMALL_STATE(135)] = 2762, + [SMALL_STATE(136)] = 2775, + [SMALL_STATE(137)] = 2788, + [SMALL_STATE(138)] = 2792, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -6492,25 +6534,25 @@ static const TSParseActionEntry ts_parse_actions[] = { [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(30), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(32), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(17), [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(45), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(82), [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), @@ -6520,68 +6562,68 @@ static const TSParseActionEntry ts_parse_actions[] = { [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [76] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(41), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [74] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [131] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [133] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), - [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [143] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [148] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [119] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), + [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [141] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [146] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), - [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [173] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(44), + [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), [182] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(109), [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), @@ -6600,8 +6642,8 @@ static const TSParseActionEntry ts_parse_actions[] = { [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), @@ -6609,10 +6651,10 @@ static const TSParseActionEntry ts_parse_actions[] = { [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [262] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), + [262] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), @@ -6634,16 +6676,16 @@ static const TSParseActionEntry ts_parse_actions[] = { [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), [313] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), - [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), [327] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), [329] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), @@ -6652,7 +6694,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [337] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), diff --git a/test/corpus/select.txt b/test/corpus/select.txt index fe0bf9d..d46ce7e 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -4,6 +4,7 @@ Select foo = select(release_variable("RELEASE_TEST"), { "d": "d2", + any: unset, default: unset, }) @@ -23,6 +24,10 @@ foo = select(release_variable("RELEASE_TEST"), { (select_pattern (interpreted_string_literal)) (interpreted_string_literal)) + (select_case + (select_pattern + (any)) + (unset)) (select_case (select_pattern (default)) From 3e685cb691744006a0cb42b0d50f2b4bbaebace7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:50:43 +0000 Subject: [PATCH 26/39] Add 'any' highlighting --- queries/highlights.scm | 1 + test/highlight/builtins.bp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/queries/highlights.scm b/queries/highlights.scm index c574ffc..d6e66ea 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -50,6 +50,7 @@ [ (unset) (default) + (any) ] @variable.builtin (condition name: (identifier) @function.builtin) diff --git a/test/highlight/builtins.bp b/test/highlight/builtins.bp index 73b32e3..624b106 100644 --- a/test/highlight/builtins.bp +++ b/test/highlight/builtins.bp @@ -2,6 +2,8 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { // ^ function.builtin "foo": unset, // ^ variable.builtin + any: unset, + // <- variable.builtin default: select(variant("VARIANT"), {}), // <- variable.builtin // ^ function.builtin From 1fd9b67dbe8a9bb2de82ab4011563a2c6f92a41e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:53:48 +0000 Subject: [PATCH 27/39] Add select binding --- grammar.js | 7 + src/grammar.json | 43 + src/node-types.json | 40 + src/parser.c | 2398 ++++++++++++++++++++------------------ test/corpus/select.txt | 10 +- test/highlight/select.bp | 3 + 6 files changed, 1345 insertions(+), 1156 deletions(-) diff --git a/grammar.js b/grammar.js index 5ad924d..0c3bc4a 100644 --- a/grammar.js +++ b/grammar.js @@ -164,9 +164,16 @@ module.exports = grammar({ $._string_literal, $.boolean_literal, alias("any", $.any), + $.pattern_binding, alias("default", $.default), ), + pattern_binding: ($) => seq( + field("value", alias("any", $.any)), + field("operator", alias("@", $.operator)), + field("binding", $.identifier), + ), + _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index d14285b..d54a443 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -744,6 +744,10 @@ "named": true, "value": "any" }, + { + "type": "SYMBOL", + "name": "pattern_binding" + }, { "type": "ALIAS", "content": { @@ -755,6 +759,45 @@ } ] }, + "pattern_binding": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "value", + "content": { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "any" + }, + "named": true, + "value": "any" + } + }, + { + "type": "FIELD", + "name": "operator", + "content": { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "@" + }, + "named": true, + "value": "operator" + } + }, + { + "type": "FIELD", + "name": "binding", + "content": { + "type": "SYMBOL", + "name": "identifier" + } + } + ] + }, "_case_value": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 1bde56e..16ecf61 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -321,6 +321,42 @@ } } }, + { + "type": "pattern_binding", + "named": true, + "fields": { + "binding": { + "multiple": false, + "required": true, + "types": [ + { + "type": "identifier", + "named": true + } + ] + }, + "operator": { + "multiple": false, + "required": true, + "types": [ + { + "type": "operator", + "named": true + } + ] + }, + "value": { + "multiple": false, + "required": true, + "types": [ + { + "type": "any", + "named": true + } + ] + } + } + }, { "type": "property", "named": true, @@ -499,6 +535,10 @@ "type": "interpreted_string_literal", "named": true }, + { + "type": "pattern_binding", + "named": true + }, { "type": "raw_string_literal", "named": true diff --git a/src/parser.c b/src/parser.c index bb980c0..5e0ef96 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,15 +5,15 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 139 +#define STATE_COUNT 142 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 65 +#define SYMBOL_COUNT 67 #define ALIAS_COUNT 0 -#define TOKEN_COUNT 31 +#define TOKEN_COUNT 32 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 11 +#define FIELD_COUNT 12 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 18 +#define PRODUCTION_ID_COUNT 19 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -42,44 +42,46 @@ enum ts_symbol_identifiers { anon_sym_COLON = 24, anon_sym_any = 25, anon_sym_default = 26, - anon_sym_unset = 27, - anon_sym_LBRACK = 28, - anon_sym_RBRACK = 29, - anon_sym_PLUS = 30, - sym_source_file = 31, - sym__definition = 32, - sym_comment = 33, - sym_assignment = 34, - sym_module = 35, - sym__old_module = 36, - sym__new_module = 37, - sym__expr = 38, - sym_boolean_literal = 39, - sym_integer_literal = 40, - sym__string_literal = 41, - sym_interpreted_string_literal = 42, - sym_select_expression = 43, - sym_select_value = 44, - sym_condition = 45, - sym_select_cases = 46, - sym_select_case = 47, - sym_select_pattern = 48, - sym__select_pattern = 49, - sym__case_value = 50, - sym_list_expression = 51, - sym_map_expression = 52, - sym_binary_expression = 53, - sym__colon_property = 54, - sym__equal_property = 55, - aux_sym_source_file_repeat1 = 56, - aux_sym__old_module_repeat1 = 57, - aux_sym__new_module_repeat1 = 58, - aux_sym_interpreted_string_literal_repeat1 = 59, - aux_sym_select_value_repeat1 = 60, - aux_sym_condition_repeat1 = 61, - aux_sym_select_cases_repeat1 = 62, - aux_sym_select_pattern_repeat1 = 63, - aux_sym_list_expression_repeat1 = 64, + anon_sym_AT = 27, + anon_sym_unset = 28, + anon_sym_LBRACK = 29, + anon_sym_RBRACK = 30, + anon_sym_PLUS = 31, + sym_source_file = 32, + sym__definition = 33, + sym_comment = 34, + sym_assignment = 35, + sym_module = 36, + sym__old_module = 37, + sym__new_module = 38, + sym__expr = 39, + sym_boolean_literal = 40, + sym_integer_literal = 41, + sym__string_literal = 42, + sym_interpreted_string_literal = 43, + sym_select_expression = 44, + sym_select_value = 45, + sym_condition = 46, + sym_select_cases = 47, + sym_select_case = 48, + sym_select_pattern = 49, + sym__select_pattern = 50, + sym_pattern_binding = 51, + sym__case_value = 52, + sym_list_expression = 53, + sym_map_expression = 54, + sym_binary_expression = 55, + sym__colon_property = 56, + sym__equal_property = 57, + aux_sym_source_file_repeat1 = 58, + aux_sym__old_module_repeat1 = 59, + aux_sym__new_module_repeat1 = 60, + aux_sym_interpreted_string_literal_repeat1 = 61, + aux_sym_select_value_repeat1 = 62, + aux_sym_condition_repeat1 = 63, + aux_sym_select_cases_repeat1 = 64, + aux_sym_select_pattern_repeat1 = 65, + aux_sym_list_expression_repeat1 = 66, }; static const char * const ts_symbol_names[] = { @@ -110,6 +112,7 @@ static const char * const ts_symbol_names[] = { [anon_sym_COLON] = ":", [anon_sym_any] = "any", [anon_sym_default] = "default", + [anon_sym_AT] = "operator", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -133,6 +136,7 @@ static const char * const ts_symbol_names[] = { [sym_select_case] = "select_case", [sym_select_pattern] = "select_pattern", [sym__select_pattern] = "_select_pattern", + [sym_pattern_binding] = "pattern_binding", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -178,6 +182,7 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_COLON] = anon_sym_COLON, [anon_sym_any] = anon_sym_any, [anon_sym_default] = anon_sym_default, + [anon_sym_AT] = anon_sym_PLUS_EQ, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -201,6 +206,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_select_case] = sym_select_case, [sym_select_pattern] = sym_select_pattern, [sym__select_pattern] = sym__select_pattern, + [sym_pattern_binding] = sym_pattern_binding, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -327,6 +333,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [anon_sym_AT] = { + .visible = true, + .named = true, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -419,6 +429,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = true, }, + [sym_pattern_binding] = { + .visible = true, + .named = true, + }, [sym__case_value] = { .visible = false, .named = true, @@ -483,21 +497,23 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { enum ts_field_identifiers { field_arguments = 1, - field_element = 2, - field_field = 3, - field_left = 4, - field_name = 5, - field_operator = 6, - field_pattern = 7, - field_property = 8, - field_right = 9, - field_type = 10, - field_value = 11, + field_binding = 2, + field_element = 3, + field_field = 4, + field_left = 5, + field_name = 6, + field_operator = 7, + field_pattern = 8, + field_property = 9, + field_right = 10, + field_type = 11, + field_value = 12, }; static const char * const ts_field_names[] = { [0] = NULL, [field_arguments] = "arguments", + [field_binding] = "binding", [field_element] = "element", [field_field] = "field", [field_left] = "left", @@ -527,7 +543,8 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [14] = {.index = 31, .length = 1}, [15] = {.index = 32, .length = 2}, [16] = {.index = 34, .length = 3}, - [17] = {.index = 37, .length = 2}, + [17] = {.index = 37, .length = 3}, + [18] = {.index = 40, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -584,6 +601,10 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_arguments, 3}, {field_name, 0}, [37] = + {field_binding, 2}, + {field_operator, 1}, + {field_value, 0}, + [40] = {field_pattern, 0}, {field_value, 2}, }; @@ -739,6 +760,9 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [136] = 136, [137] = 137, [138] = 138, + [139] = 139, + [140] = 140, + [141] = 141, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -3588,15 +3612,16 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(99); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(113); + if (lookahead == '+') ADVANCE(114); if (lookahead == ',') ADVANCE(59); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(55); if (lookahead == ':') ADVANCE(104); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); + if (lookahead == '@') ADVANCE(109); + if (lookahead == '[') ADVANCE(111); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'a') ADVANCE(76); if (lookahead == 'd') ADVANCE(66); @@ -3650,7 +3675,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); + if (lookahead == '[') ADVANCE(111); if (lookahead == '`') ADVANCE(37); if (lookahead == 'f') ADVANCE(63); if (lookahead == 's') ADVANCE(71); @@ -3666,8 +3691,8 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(110); - if (lookahead == ']') ADVANCE(111); + if (lookahead == '[') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'f') ADVANCE(63); if (lookahead == 's') ADVANCE(71); @@ -3813,14 +3838,15 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(113); + if (lookahead == '+') ADVANCE(114); if (lookahead == ',') ADVANCE(59); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(55); if (lookahead == ':') ADVANCE(104); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); - if (lookahead == ']') ADVANCE(111); + if (lookahead == '@') ADVANCE(109); + if (lookahead == '[') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'a') ADVANCE(76); if (lookahead == 'd') ADVANCE(66); @@ -3840,11 +3866,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(112); + if (lookahead == '+') ADVANCE(113); if (lookahead == ',') ADVANCE(59); if (lookahead == '/') ADVANCE(6); if (lookahead == ':') ADVANCE(104); - if (lookahead == ']') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == '}') ADVANCE(60); if (('\t' <= lookahead && lookahead <= '\r') || @@ -4059,7 +4085,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 81: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(109); + if (lookahead == 't') ADVANCE(110); if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 82: @@ -4181,19 +4207,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 109: + ACCEPT_TOKEN(anon_sym_AT); + END_STATE(); + case 110: ACCEPT_TOKEN(anon_sym_unset); if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); - case 110: + case 111: ACCEPT_TOKEN(anon_sym_LBRACK); END_STATE(); - case 111: + case 112: ACCEPT_TOKEN(anon_sym_RBRACK); END_STATE(); - case 112: + case 113: ACCEPT_TOKEN(anon_sym_PLUS); END_STATE(); - case 113: + case 114: ACCEPT_TOKEN(anon_sym_PLUS); if (lookahead == '=') ADVANCE(57); END_STATE(); @@ -4244,94 +4273,94 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [38] = {.lex_state = 39}, [39] = {.lex_state = 39}, [40] = {.lex_state = 39}, - [41] = {.lex_state = 39}, - [42] = {.lex_state = 1}, + [41] = {.lex_state = 0}, + [42] = {.lex_state = 39}, [43] = {.lex_state = 39}, - [44] = {.lex_state = 39}, + [44] = {.lex_state = 1}, [45] = {.lex_state = 4}, [46] = {.lex_state = 1}, - [47] = {.lex_state = 1}, - [48] = {.lex_state = 0}, + [47] = {.lex_state = 39}, + [48] = {.lex_state = 1}, [49] = {.lex_state = 39}, [50] = {.lex_state = 39}, - [51] = {.lex_state = 39}, - [52] = {.lex_state = 39}, - [53] = {.lex_state = 0}, - [54] = {.lex_state = 39}, + [51] = {.lex_state = 0}, + [52] = {.lex_state = 1}, + [53] = {.lex_state = 39}, + [54] = {.lex_state = 0}, [55] = {.lex_state = 0}, [56] = {.lex_state = 39}, - [57] = {.lex_state = 39}, + [57] = {.lex_state = 0}, [58] = {.lex_state = 0}, [59] = {.lex_state = 39}, [60] = {.lex_state = 0}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 39}, + [62] = {.lex_state = 0}, [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, [65] = {.lex_state = 0}, - [66] = {.lex_state = 0}, - [67] = {.lex_state = 0}, + [66] = {.lex_state = 39}, + [67] = {.lex_state = 39}, [68] = {.lex_state = 39}, [69] = {.lex_state = 39}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 39}, - [72] = {.lex_state = 39}, + [71] = {.lex_state = 0}, + [72] = {.lex_state = 0}, [73] = {.lex_state = 0}, - [74] = {.lex_state = 1}, + [74] = {.lex_state = 39}, [75] = {.lex_state = 39}, [76] = {.lex_state = 0}, - [77] = {.lex_state = 0}, - [78] = {.lex_state = 0}, + [77] = {.lex_state = 39}, + [78] = {.lex_state = 39}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 39}, + [80] = {.lex_state = 0}, [81] = {.lex_state = 0}, [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, - [84] = {.lex_state = 0}, + [84] = {.lex_state = 39}, [85] = {.lex_state = 39}, - [86] = {.lex_state = 0}, - [87] = {.lex_state = 0}, - [88] = {.lex_state = 39}, + [86] = {.lex_state = 39}, + [87] = {.lex_state = 39}, + [88] = {.lex_state = 0}, [89] = {.lex_state = 39}, [90] = {.lex_state = 39}, [91] = {.lex_state = 39}, [92] = {.lex_state = 39}, [93] = {.lex_state = 39}, - [94] = {.lex_state = 0}, - [95] = {.lex_state = 39}, + [94] = {.lex_state = 39}, + [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, [97] = {.lex_state = 39}, [98] = {.lex_state = 39}, [99] = {.lex_state = 39}, [100] = {.lex_state = 39}, [101] = {.lex_state = 39}, - [102] = {.lex_state = 0}, + [102] = {.lex_state = 39}, [103] = {.lex_state = 0}, [104] = {.lex_state = 39}, [105] = {.lex_state = 39}, [106] = {.lex_state = 39}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 39}, + [109] = {.lex_state = 0}, [110] = {.lex_state = 39}, - [111] = {.lex_state = 39}, - [112] = {.lex_state = 0}, + [111] = {.lex_state = 0}, + [112] = {.lex_state = 39}, [113] = {.lex_state = 0}, [114] = {.lex_state = 0}, - [115] = {.lex_state = 46}, + [115] = {.lex_state = 0}, [116] = {.lex_state = 0}, - [117] = {.lex_state = 0}, + [117] = {.lex_state = 7}, [118] = {.lex_state = 0}, [119] = {.lex_state = 0}, [120] = {.lex_state = 0}, [121] = {.lex_state = 0}, - [122] = {.lex_state = 7}, + [122] = {.lex_state = 0}, [123] = {.lex_state = 0}, - [124] = {.lex_state = 0}, + [124] = {.lex_state = 39}, [125] = {.lex_state = 0}, [126] = {.lex_state = 0}, [127] = {.lex_state = 0}, - [128] = {.lex_state = 0}, + [128] = {.lex_state = 46}, [129] = {.lex_state = 0}, [130] = {.lex_state = 0}, [131] = {.lex_state = 0}, @@ -4340,8 +4369,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [134] = {.lex_state = 0}, [135] = {.lex_state = 0}, [136] = {.lex_state = 0}, - [137] = {(TSStateId)(-1)}, - [138] = {(TSStateId)(-1)}, + [137] = {.lex_state = 0}, + [138] = {.lex_state = 0}, + [139] = {.lex_state = 0}, + [140] = {(TSStateId)(-1)}, + [141] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4371,20 +4403,21 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_COLON] = ACTIONS(1), [anon_sym_any] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), + [anon_sym_AT] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(136), - [sym__definition] = STATE(93), + [sym_source_file] = STATE(138), + [sym__definition] = STATE(101), [sym_comment] = STATE(1), - [sym_assignment] = STATE(99), - [sym_module] = STATE(99), - [sym__old_module] = STATE(100), - [sym__new_module] = STATE(101), - [aux_sym_source_file_repeat1] = STATE(18), + [sym_assignment] = STATE(102), + [sym_module] = STATE(102), + [sym__old_module] = STATE(104), + [sym__new_module] = STATE(106), + [aux_sym_source_file_repeat1] = STATE(21), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4422,12 +4455,12 @@ static const uint16_t ts_small_parse_table[] = { sym_interpreted_string_literal, STATE(98), 1, sym__expr, - STATE(132), 1, + STATE(135), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4462,12 +4495,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4502,12 +4535,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(43), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4542,12 +4575,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4580,12 +4613,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(66), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4618,12 +4651,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4656,12 +4689,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(28), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4694,12 +4727,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(71), 1, + STATE(85), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4732,12 +4765,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(38), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4745,7 +4778,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 14, + [492] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4758,27 +4791,29 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(48), 1, anon_sym_DQUOTE, + ACTIONS(51), 1, + anon_sym_any, + ACTIONS(54), 1, + anon_sym_default, STATE(23), 1, sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, + STATE(119), 1, sym_select_pattern, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, ACTIONS(42), 2, anon_sym_true, anon_sym_false, - ACTIONS(51), 2, - anon_sym_any, - anon_sym_default, STATE(11), 2, sym_comment, aux_sym_select_cases_repeat1, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [539] = 15, + sym_pattern_binding, + [542] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4787,66 +4822,34 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(54), 1, + ACTIONS(57), 1, anon_sym_RBRACE, - ACTIONS(56), 1, + ACTIONS(59), 1, anon_sym_LPAREN, - STATE(12), 1, - sym_comment, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(23), 1, - sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, - sym_select_pattern, - ACTIONS(58), 2, - anon_sym_true, - anon_sym_false, - ACTIONS(60), 2, + ACTIONS(63), 1, anon_sym_any, + ACTIONS(65), 1, anon_sym_default, - STATE(82), 2, - sym_boolean_literal, - sym__string_literal, - [588] = 15, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(56), 1, - anon_sym_LPAREN, - ACTIONS(62), 1, - anon_sym_RBRACE, STATE(11), 1, aux_sym_select_cases_repeat1, - STATE(13), 1, + STATE(12), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, + STATE(119), 1, sym_select_pattern, - ACTIONS(58), 2, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [637] = 11, + sym_pattern_binding, + [594] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4855,24 +4858,62 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(64), 1, + ACTIONS(59), 1, + anon_sym_LPAREN, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(67), 1, + anon_sym_RBRACE, + STATE(12), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(119), 1, + sym_select_pattern, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, + ACTIONS(61), 2, + anon_sym_true, + anon_sym_false, + STATE(64), 3, + sym_boolean_literal, + sym__string_literal, + sym_pattern_binding, + [646] = 12, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(69), 1, anon_sym_RPAREN, STATE(14), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [674] = 11, + sym_pattern_binding, + [686] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4881,24 +4922,26 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(66), 1, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(71), 1, anon_sym_RPAREN, STATE(15), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [711] = 10, + sym_pattern_binding, + [726] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4907,22 +4950,24 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, STATE(16), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [745] = 10, + sym_pattern_binding, + [763] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4931,44 +4976,40 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, STATE(17), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(61), 1, + STATE(62), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [779] = 10, + sym_pattern_binding, + [800] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(68), 1, - ts_builtin_sym_end, STATE(18), 1, sym_comment, - STATE(21), 1, - aux_sym_source_file_repeat1, - STATE(93), 1, - sym__definition, - STATE(100), 1, - sym__old_module, - STATE(101), 1, - sym__new_module, - STATE(99), 2, - sym_assignment, - sym_module, - [811] = 4, + ACTIONS(73), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [820] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4984,14 +5025,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, anon_sym_any, anon_sym_default, - [831] = 4, + [840] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(70), 8, + ACTIONS(75), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5000,50 +5041,35 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [851] = 9, + [860] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(72), 1, - ts_builtin_sym_end, - ACTIONS(74), 1, + ACTIONS(9), 1, sym_identifier, - STATE(93), 1, - sym__definition, - STATE(100), 1, - sym__old_module, - STATE(101), 1, - sym__new_module, - STATE(21), 2, + ACTIONS(77), 1, + ts_builtin_sym_end, + STATE(21), 1, sym_comment, + STATE(24), 1, aux_sym_source_file_repeat1, - STATE(99), 2, + STATE(101), 1, + sym__definition, + STATE(104), 1, + sym__old_module, + STATE(106), 1, + sym__new_module, + STATE(102), 2, sym_assignment, sym_module, - [881] = 4, + [892] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(77), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [901] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(23), 1, - sym_comment, ACTIONS(79), 8, ts_builtin_sym_end, anon_sym_COMMA, @@ -5053,12 +5079,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [921] = 4, + [912] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(24), 1, + STATE(23), 1, sym_comment, ACTIONS(81), 8, ts_builtin_sym_end, @@ -5069,14 +5095,35 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [941] = 4, + [932] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(83), 1, + ts_builtin_sym_end, + ACTIONS(85), 1, + sym_identifier, + STATE(101), 1, + sym__definition, + STATE(104), 1, + sym__old_module, + STATE(106), 1, + sym__new_module, + STATE(24), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(102), 2, + sym_assignment, + sym_module, + [962] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(83), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5084,14 +5131,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [960] = 4, + [981] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(85), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5099,14 +5146,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [979] = 4, + [1000] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(87), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5114,14 +5161,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [998] = 4, + [1019] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(89), 7, + ACTIONS(94), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5129,14 +5176,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1017] = 4, + [1038] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(91), 7, + ACTIONS(96), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5144,14 +5191,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1036] = 4, + [1057] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(93), 7, + ACTIONS(98), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5159,14 +5206,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1055] = 4, + [1076] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(95), 7, + ACTIONS(100), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5174,14 +5221,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1074] = 4, + [1095] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(97), 7, + ACTIONS(102), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5189,14 +5236,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1093] = 4, + [1114] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(99), 7, + ACTIONS(104), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5204,14 +5251,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1112] = 4, + [1133] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(101), 7, + ACTIONS(106), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5219,14 +5266,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1131] = 4, + [1152] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(35), 1, sym_comment, - ACTIONS(103), 7, + ACTIONS(108), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5234,14 +5281,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1150] = 4, + [1171] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(36), 1, sym_comment, - ACTIONS(105), 7, + ACTIONS(110), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5249,14 +5296,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1169] = 4, + [1190] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(37), 1, sym_comment, - ACTIONS(107), 7, + ACTIONS(112), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5264,14 +5311,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1188] = 4, + [1209] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(38), 1, sym_comment, - ACTIONS(109), 7, + ACTIONS(114), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5279,14 +5326,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1207] = 4, + [1228] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(39), 1, sym_comment, - ACTIONS(111), 7, + ACTIONS(116), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5294,7 +5341,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1226] = 8, + [1247] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5303,60 +5350,102 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(113), 1, + ACTIONS(118), 1, anon_sym_RPAREN, STATE(23), 1, sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(60), 1, + STATE(79), 1, sym__string_literal, - [1251] = 7, + [1272] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(115), 1, - anon_sym_LPAREN, - ACTIONS(117), 1, - sym_identifier, + ACTIONS(122), 1, + anon_sym_AT, STATE(41), 1, sym_comment, - STATE(129), 1, - sym_select_value, - STATE(134), 1, - sym_condition, - [1273] = 7, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(125), 1, - anon_sym_DQUOTE2, - ACTIONS(127), 1, - sym_escape_sequence, - STATE(42), 1, - sym_comment, - STATE(46), 1, - aux_sym_interpreted_string_literal_repeat1, - [1295] = 7, + ACTIONS(120), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1290] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(124), 1, anon_sym_COMMA, - ACTIONS(131), 1, + ACTIONS(126), 1, anon_sym_RBRACK, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, + STATE(42), 1, + sym_comment, + STATE(65), 1, + aux_sym_list_expression_repeat1, + [1312] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(130), 1, + anon_sym_LPAREN, + ACTIONS(132), 1, + sym_identifier, STATE(43), 1, sym_comment, - STATE(63), 1, - aux_sym_list_expression_repeat1, - [1317] = 7, + STATE(122), 1, + sym_condition, + STATE(123), 1, + sym_select_value, + [1334] = 7, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(138), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(140), 1, + anon_sym_DQUOTE2, + ACTIONS(142), 1, + sym_escape_sequence, + STATE(44), 1, + sym_comment, + STATE(48), 1, + aux_sym_interpreted_string_literal_repeat1, + [1356] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(146), 1, + anon_sym_LBRACE, + ACTIONS(148), 1, + anon_sym_LPAREN, + STATE(45), 1, + sym_comment, + ACTIONS(144), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1376] = 7, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(138), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(142), 1, + sym_escape_sequence, + ACTIONS(150), 1, + anon_sym_DQUOTE2, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(46), 1, + sym_comment, + [1398] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5367,283 +5456,225 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, STATE(23), 1, sym_interpreted_string_literal, - STATE(44), 1, - sym_comment, - STATE(108), 1, - sym__string_literal, - [1339] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - anon_sym_LBRACE, - ACTIONS(139), 1, - anon_sym_LPAREN, - STATE(45), 1, - sym_comment, - ACTIONS(135), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1359] = 6, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(141), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(144), 1, - anon_sym_DQUOTE2, - ACTIONS(146), 1, - sym_escape_sequence, - STATE(46), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1379] = 7, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(127), 1, - sym_escape_sequence, - ACTIONS(149), 1, - anon_sym_DQUOTE2, - STATE(42), 1, - aux_sym_interpreted_string_literal_repeat1, STATE(47), 1, sym_comment, - [1401] = 6, - ACTIONS(3), 1, + STATE(113), 1, + sym__string_literal, + [1420] = 6, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, - anon_sym_COMMA, - ACTIONS(153), 1, - anon_sym_RBRACE, - STATE(48), 1, + ACTIONS(152), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(155), 1, + anon_sym_DQUOTE2, + ACTIONS(157), 1, + sym_escape_sequence, + STATE(48), 2, sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1420] = 5, + aux_sym_interpreted_string_literal_repeat1, + [1440] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, STATE(49), 1, sym_comment, - ACTIONS(155), 2, + ACTIONS(160), 2, anon_sym_COMMA, - anon_sym_RBRACE, - [1437] = 6, + anon_sym_RPAREN, + [1457] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - anon_sym_RBRACE, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, + ACTIONS(162), 1, + anon_sym_RPAREN, STATE(50), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1456] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(161), 1, - anon_sym_RPAREN, - ACTIONS(163), 1, - sym_identifier, - STATE(51), 1, - sym_comment, - STATE(87), 1, - sym__equal_property, - [1475] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - ACTIONS(165), 1, - anon_sym_RPAREN, - STATE(52), 1, - sym_comment, STATE(103), 1, sym_condition, - [1494] = 6, + [1476] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(164), 1, anon_sym_COMMA, - ACTIONS(169), 1, - anon_sym_RPAREN, + ACTIONS(166), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym_comment, + STATE(60), 1, + aux_sym__old_module_repeat1, + [1495] = 5, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(168), 1, + aux_sym_interpreted_string_literal_token1, + STATE(52), 1, + sym_comment, + ACTIONS(170), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1512] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + anon_sym_RBRACE, + ACTIONS(174), 1, + sym_identifier, STATE(53), 1, sym_comment, - STATE(73), 1, - aux_sym__new_module_repeat1, - [1513] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(159), 1, - sym_identifier, - ACTIONS(171), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(84), 1, + STATE(111), 1, sym__colon_property, - [1532] = 5, + [1531] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(173), 1, - anon_sym_COMMA, ACTIONS(176), 1, - anon_sym_RPAREN, - STATE(55), 2, - sym_comment, - aux_sym_condition_repeat1, - [1549] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(56), 1, - sym_comment, - ACTIONS(178), 2, - ts_builtin_sym_end, - sym_identifier, - [1566] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RPAREN, - STATE(57), 1, - sym_comment, - STATE(78), 1, - sym__equal_property, - [1585] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(182), 1, anon_sym_COMMA, + ACTIONS(179), 1, + anon_sym_RPAREN, + STATE(54), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [1548] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(181), 1, + anon_sym_COMMA, + ACTIONS(183), 1, + anon_sym_RBRACE, + STATE(55), 1, + sym_comment, + STATE(71), 1, + aux_sym__old_module_repeat1, + [1567] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, ACTIONS(185), 1, anon_sym_RPAREN, - STATE(58), 2, + ACTIONS(187), 1, + sym_identifier, + STATE(56), 1, sym_comment, - aux_sym_select_value_repeat1, - [1602] = 6, + STATE(108), 1, + sym__equal_property, + [1586] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + STATE(57), 1, + sym_comment, + ACTIONS(189), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1601] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(191), 1, + anon_sym_COMMA, + ACTIONS(193), 1, + anon_sym_RPAREN, + STATE(58), 1, + sym_comment, + STATE(76), 1, + aux_sym__new_module_repeat1, + [1620] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, sym_identifier, - ACTIONS(187), 1, + ACTIONS(195), 1, anon_sym_RBRACE, STATE(59), 1, sym_comment, - STATE(81), 1, + STATE(111), 1, sym__colon_property, - [1621] = 6, + [1639] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(197), 1, anon_sym_COMMA, - ACTIONS(191), 1, - anon_sym_RPAREN, + ACTIONS(199), 1, + anon_sym_RBRACE, STATE(60), 1, sym_comment, - STATE(79), 1, - aux_sym_condition_repeat1, - [1640] = 6, + STATE(71), 1, + aux_sym__old_module_repeat1, + [1658] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(193), 1, - anon_sym_COMMA, - ACTIONS(195), 1, + ACTIONS(71), 1, anon_sym_RPAREN, + ACTIONS(201), 1, + anon_sym_COMMA, + STATE(54), 1, + aux_sym_select_pattern_repeat1, STATE(61), 1, sym_comment, - STATE(67), 1, - aux_sym_select_pattern_repeat1, - [1659] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(159), 1, - sym_identifier, - ACTIONS(197), 1, - anon_sym_RBRACE, - STATE(62), 1, - sym_comment, - STATE(84), 1, - sym__colon_property, - [1678] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(199), 1, - anon_sym_COMMA, - ACTIONS(201), 1, - anon_sym_RBRACK, - STATE(63), 1, - sym_comment, - STATE(83), 1, - aux_sym_list_expression_repeat1, - [1697] = 5, + [1677] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(203), 1, anon_sym_COMMA, - ACTIONS(206), 1, + ACTIONS(205), 1, anon_sym_RPAREN, - STATE(64), 2, - sym_comment, + STATE(61), 1, aux_sym_select_pattern_repeat1, - [1714] = 6, + STATE(62), 1, + sym_comment, + [1696] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(208), 1, + ACTIONS(207), 1, anon_sym_COMMA, ACTIONS(210), 1, - anon_sym_RBRACE, - STATE(65), 1, + anon_sym_RPAREN, + STATE(63), 2, sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1733] = 6, + aux_sym_condition_repeat1, + [1713] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(64), 1, + sym_comment, + ACTIONS(120), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1728] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5651,740 +5682,789 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(212), 1, anon_sym_COMMA, ACTIONS(214), 1, - anon_sym_RPAREN, - STATE(58), 1, - aux_sym_select_value_repeat1, + anon_sym_RBRACK, + STATE(65), 1, + sym_comment, + STATE(81), 1, + aux_sym_list_expression_repeat1, + [1747] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(66), 1, sym_comment, - [1752] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(66), 1, - anon_sym_RPAREN, - ACTIONS(216), 1, + ACTIONS(216), 2, anon_sym_COMMA, - STATE(64), 1, - aux_sym_select_pattern_repeat1, - STATE(67), 1, - sym_comment, - [1771] = 6, + anon_sym_RBRACE, + [1764] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(174), 1, sym_identifier, ACTIONS(218), 1, anon_sym_RBRACE, + STATE(67), 1, + sym_comment, + STATE(83), 1, + sym__colon_property, + [1783] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(187), 1, + sym_identifier, + ACTIONS(220), 1, + anon_sym_RPAREN, STATE(68), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1790] = 6, + STATE(72), 1, + sym__equal_property, + [1802] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(117), 1, + ACTIONS(174), 1, sym_identifier, - ACTIONS(214), 1, - anon_sym_RPAREN, + ACTIONS(222), 1, + anon_sym_RBRACE, STATE(69), 1, sym_comment, - STATE(103), 1, - sym_condition, - [1809] = 5, + STATE(111), 1, + sym__colon_property, + [1821] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(220), 1, + ACTIONS(224), 1, anon_sym_COMMA, - ACTIONS(223), 1, + ACTIONS(226), 1, + anon_sym_RPAREN, + STATE(63), 1, + aux_sym_condition_repeat1, + STATE(70), 1, + sym_comment, + [1840] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(228), 1, + anon_sym_COMMA, + ACTIONS(231), 1, anon_sym_RBRACE, - STATE(70), 2, + STATE(71), 2, sym_comment, aux_sym__old_module_repeat1, - [1826] = 5, + [1857] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(71), 1, - sym_comment, - ACTIONS(225), 2, + ACTIONS(233), 1, anon_sym_COMMA, + ACTIONS(235), 1, anon_sym_RPAREN, - [1843] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - ACTIONS(227), 1, - anon_sym_RPAREN, + STATE(58), 1, + aux_sym__new_module_repeat1, STATE(72), 1, sym_comment, - STATE(87), 1, - sym__equal_property, - [1862] = 5, + [1876] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(229), 1, + ACTIONS(237), 1, anon_sym_COMMA, - ACTIONS(232), 1, + ACTIONS(240), 1, anon_sym_RPAREN, STATE(73), 2, sym_comment, - aux_sym__new_module_repeat1, - [1879] = 5, - ACTIONS(119), 1, + aux_sym_select_value_repeat1, + [1893] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(234), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(187), 1, + sym_identifier, + ACTIONS(242), 1, + anon_sym_RPAREN, STATE(74), 1, sym_comment, - ACTIONS(236), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1896] = 6, + STATE(108), 1, + sym__equal_property, + [1912] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, - ACTIONS(238), 1, - anon_sym_RBRACE, + ACTIONS(244), 1, + anon_sym_RPAREN, STATE(75), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1915] = 6, + STATE(103), 1, + sym_condition, + [1931] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(240), 1, - anon_sym_COMMA, - ACTIONS(242), 1, - anon_sym_RBRACE, - STATE(48), 1, - aux_sym__old_module_repeat1, - STATE(76), 1, - sym_comment, - [1934] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(244), 1, - anon_sym_COMMA, ACTIONS(246), 1, + anon_sym_COMMA, + ACTIONS(249), 1, anon_sym_RPAREN, - STATE(66), 1, - aux_sym_select_value_repeat1, + STATE(76), 2, + sym_comment, + aux_sym__new_module_repeat1, + [1948] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, + sym_identifier, + ACTIONS(251), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym__colon_property, STATE(77), 1, sym_comment, - [1953] = 6, + [1967] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(248), 1, - anon_sym_COMMA, - ACTIONS(250), 1, - anon_sym_RPAREN, - STATE(53), 1, - aux_sym__new_module_repeat1, + ACTIONS(174), 1, + sym_identifier, + ACTIONS(253), 1, + anon_sym_RBRACE, STATE(78), 1, sym_comment, - [1972] = 6, + STATE(111), 1, + sym__colon_property, + [1986] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(224), 1, anon_sym_COMMA, - ACTIONS(252), 1, + ACTIONS(255), 1, anon_sym_RPAREN, - STATE(55), 1, + STATE(70), 1, aux_sym_condition_repeat1, STATE(79), 1, sym_comment, - [1991] = 5, + [2005] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, + ACTIONS(257), 1, + anon_sym_COMMA, + ACTIONS(259), 1, + anon_sym_RPAREN, STATE(80), 1, sym_comment, - ACTIONS(254), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [2008] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(256), 1, - anon_sym_COMMA, - ACTIONS(258), 1, - anon_sym_RBRACE, - STATE(65), 1, - aux_sym__old_module_repeat1, - STATE(81), 1, - sym_comment, - [2027] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, STATE(82), 1, - sym_comment, - ACTIONS(260), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [2042] = 5, + aux_sym_select_value_repeat1, + [2024] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, + ACTIONS(261), 1, anon_sym_COMMA, - ACTIONS(265), 1, + ACTIONS(264), 1, anon_sym_RBRACK, - STATE(83), 2, + STATE(81), 2, sym_comment, aux_sym_list_expression_repeat1, - [2059] = 4, + [2041] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(162), 1, + anon_sym_RPAREN, + ACTIONS(266), 1, + anon_sym_COMMA, + STATE(73), 1, + aux_sym_select_value_repeat1, + STATE(82), 1, + sym_comment, + [2060] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(268), 1, + anon_sym_COMMA, + ACTIONS(270), 1, + anon_sym_RBRACE, + STATE(55), 1, + aux_sym__old_module_repeat1, + STATE(83), 1, + sym_comment, + [2079] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(84), 1, sym_comment, - ACTIONS(267), 2, + ACTIONS(272), 2, anon_sym_COMMA, - anon_sym_RBRACE, - [2073] = 4, + anon_sym_RBRACK, + [2096] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(85), 1, sym_comment, - ACTIONS(269), 2, + ACTIONS(274), 2, ts_builtin_sym_end, sym_identifier, - [2087] = 5, + [2113] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, - anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(131), 1, - sym_select_cases, - [2103] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(87), 1, - sym_comment, - ACTIONS(273), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2117] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(88), 1, - sym_comment, - ACTIONS(275), 2, + ACTIONS(276), 2, ts_builtin_sym_end, sym_identifier, - [2131] = 5, + [2127] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, - STATE(84), 1, - sym__colon_property, + STATE(80), 1, + sym_condition, + STATE(87), 1, + sym_comment, + [2143] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(278), 1, + anon_sym_LBRACE, + STATE(88), 1, + sym_comment, + STATE(134), 1, + sym_select_cases, + [2159] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - [2147] = 4, + ACTIONS(280), 2, + ts_builtin_sym_end, + sym_identifier, + [2173] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(277), 2, + ACTIONS(282), 2, ts_builtin_sym_end, sym_identifier, - [2161] = 5, + [2187] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - STATE(87), 1, - sym__equal_property, STATE(91), 1, sym_comment, - [2177] = 4, + ACTIONS(284), 2, + ts_builtin_sym_end, + sym_identifier, + [2201] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(174), 1, + sym_identifier, STATE(92), 1, sym_comment, - ACTIONS(279), 2, - ts_builtin_sym_end, - sym_identifier, - [2191] = 4, + STATE(111), 1, + sym__colon_property, + [2217] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(281), 2, + ACTIONS(286), 2, ts_builtin_sym_end, sym_identifier, - [2205] = 4, + [2231] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(187), 1, + sym_identifier, STATE(94), 1, sym_comment, - ACTIONS(206), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2219] = 4, + STATE(108), 1, + sym__equal_property, + [2247] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(95), 1, sym_comment, - ACTIONS(283), 2, - ts_builtin_sym_end, - sym_identifier, - [2233] = 4, + ACTIONS(179), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2261] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(285), 2, + ACTIONS(288), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2247] = 4, + [2275] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(97), 1, sym_comment, - ACTIONS(287), 2, + ACTIONS(290), 2, ts_builtin_sym_end, sym_identifier, - [2261] = 5, + [2289] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, - ACTIONS(289), 1, + ACTIONS(292), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2277] = 4, + [2305] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(132), 1, + sym_identifier, STATE(99), 1, sym_comment, - ACTIONS(291), 2, - ts_builtin_sym_end, - sym_identifier, - [2291] = 4, + STATE(103), 1, + sym_condition, + [2321] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(294), 2, ts_builtin_sym_end, sym_identifier, - [2305] = 4, + [2335] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(101), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(296), 2, ts_builtin_sym_end, sym_identifier, - [2319] = 4, + [2349] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(102), 1, sym_comment, - ACTIONS(295), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2333] = 4, + ACTIONS(298), 2, + ts_builtin_sym_end, + sym_identifier, + [2363] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(103), 1, sym_comment, - ACTIONS(185), 2, + ACTIONS(240), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2347] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - STATE(77), 1, - sym_condition, - STATE(104), 1, - sym_comment, - [2363] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(105), 1, - sym_comment, - ACTIONS(297), 2, - ts_builtin_sym_end, - sym_identifier, [2377] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(106), 1, + STATE(104), 1, sym_comment, - ACTIONS(299), 2, + ACTIONS(300), 2, ts_builtin_sym_end, sym_identifier, [2391] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(105), 1, + sym_comment, + ACTIONS(302), 2, + ts_builtin_sym_end, + sym_identifier, + [2405] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(106), 1, + sym_comment, + ACTIONS(300), 2, + ts_builtin_sym_end, + sym_identifier, + [2419] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(107), 1, sym_comment, - ACTIONS(301), 2, + ACTIONS(304), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2405] = 4, + [2433] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(108), 1, sym_comment, - ACTIONS(176), 2, + ACTIONS(306), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2419] = 5, + [2447] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - STATE(103), 1, - sym_condition, STATE(109), 1, sym_comment, - [2435] = 4, + ACTIONS(308), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2461] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(303), 2, + ACTIONS(310), 2, ts_builtin_sym_end, sym_identifier, - [2449] = 4, + [2475] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(305), 2, - ts_builtin_sym_end, - sym_identifier, - [2463] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(307), 1, - anon_sym_COLON, - STATE(112), 1, - sym_comment, - [2476] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(309), 1, - anon_sym_RPAREN, - STATE(113), 1, - sym_comment, + ACTIONS(312), 2, + anon_sym_COMMA, + anon_sym_RBRACE, [2489] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(311), 1, - anon_sym_COLON, + STATE(112), 1, + sym_comment, + ACTIONS(314), 2, + ts_builtin_sym_end, + sym_identifier, + [2503] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(113), 1, + sym_comment, + ACTIONS(210), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2517] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(316), 1, + aux_sym_integer_literal_token1, STATE(114), 1, sym_comment, - [2502] = 4, - ACTIONS(119), 1, + [2530] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(313), 1, - aux_sym_comment_token1, + ACTIONS(318), 1, + anon_sym_RPAREN, STATE(115), 1, sym_comment, - [2515] = 4, + [2543] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(315), 1, - anon_sym_LPAREN, + ACTIONS(320), 1, + anon_sym_SLASH, STATE(116), 1, sym_comment, - [2528] = 4, - ACTIONS(3), 1, + [2556] = 4, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(317), 1, - anon_sym_COMMA, + ACTIONS(322), 1, + aux_sym_comment_token2, STATE(117), 1, sym_comment, - [2541] = 4, + [2569] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(319), 1, + ACTIONS(324), 1, anon_sym_COMMA, STATE(118), 1, sym_comment, - [2554] = 4, + [2582] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(321), 1, - anon_sym_RPAREN, + ACTIONS(326), 1, + anon_sym_COLON, STATE(119), 1, sym_comment, - [2567] = 4, + [2595] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(323), 1, - anon_sym_EQ, + ACTIONS(328), 1, + anon_sym_COLON, STATE(120), 1, sym_comment, - [2580] = 4, + [2608] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(325), 1, - aux_sym_integer_literal_token1, + ACTIONS(330), 1, + anon_sym_COMMA, STATE(121), 1, sym_comment, - [2593] = 4, - ACTIONS(119), 1, + [2621] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(327), 1, - aux_sym_comment_token2, + ACTIONS(332), 1, + anon_sym_COMMA, STATE(122), 1, sym_comment, - [2606] = 4, + [2634] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(329), 1, - anon_sym_SLASH, + ACTIONS(334), 1, + anon_sym_COMMA, STATE(123), 1, sym_comment, - [2619] = 4, + [2647] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(331), 1, - anon_sym_COLON, + ACTIONS(336), 1, + sym_identifier, STATE(124), 1, sym_comment, - [2632] = 4, + [2660] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(333), 1, - anon_sym_COLON, + ACTIONS(338), 1, + anon_sym_RPAREN, STATE(125), 1, sym_comment, - [2645] = 4, + [2673] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(335), 1, - anon_sym_COMMA, + ACTIONS(340), 1, + anon_sym_COLON, STATE(126), 1, sym_comment, - [2658] = 4, + [2686] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(337), 1, - anon_sym_LPAREN, + ACTIONS(342), 1, + anon_sym_COLON, STATE(127), 1, sym_comment, - [2671] = 4, - ACTIONS(3), 1, + [2699] = 4, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(339), 1, - anon_sym_COLON, + ACTIONS(344), 1, + aux_sym_comment_token1, STATE(128), 1, sym_comment, - [2684] = 4, + [2712] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(341), 1, + ACTIONS(346), 1, anon_sym_COMMA, STATE(129), 1, sym_comment, - [2697] = 4, + [2725] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(289), 1, - anon_sym_COMMA, + ACTIONS(348), 1, + anon_sym_COLON, STATE(130), 1, sym_comment, - [2710] = 4, + [2738] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(343), 1, - anon_sym_RPAREN, + ACTIONS(350), 1, + anon_sym_LPAREN, STATE(131), 1, sym_comment, - [2723] = 4, + [2751] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(345), 1, - anon_sym_COMMA, + ACTIONS(352), 1, + anon_sym_EQ, STATE(132), 1, sym_comment, - [2736] = 4, + [2764] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(347), 1, - anon_sym_COLON, + ACTIONS(292), 1, + anon_sym_COMMA, STATE(133), 1, sym_comment, - [2749] = 4, + [2777] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(349), 1, - anon_sym_COMMA, + ACTIONS(354), 1, + anon_sym_RPAREN, STATE(134), 1, sym_comment, - [2762] = 4, + [2790] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(351), 1, + ACTIONS(356), 1, anon_sym_COMMA, STATE(135), 1, sym_comment, - [2775] = 4, + [2803] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(353), 1, - ts_builtin_sym_end, + ACTIONS(358), 1, + anon_sym_COLON, STATE(136), 1, sym_comment, - [2788] = 1, - ACTIONS(355), 1, + [2816] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(360), 1, + anon_sym_LPAREN, + STATE(137), 1, + sym_comment, + [2829] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(362), 1, ts_builtin_sym_end, - [2792] = 1, - ACTIONS(357), 1, + STATE(138), 1, + sym_comment, + [2842] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(364), 1, + anon_sym_COMMA, + STATE(139), 1, + sym_comment, + [2855] = 1, + ACTIONS(366), 1, + ts_builtin_sym_end, + [2859] = 1, + ACTIONS(368), 1, ts_builtin_sym_end, }; @@ -6399,309 +6479,317 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 539, - [SMALL_STATE(13)] = 588, - [SMALL_STATE(14)] = 637, - [SMALL_STATE(15)] = 674, - [SMALL_STATE(16)] = 711, - [SMALL_STATE(17)] = 745, - [SMALL_STATE(18)] = 779, - [SMALL_STATE(19)] = 811, - [SMALL_STATE(20)] = 831, - [SMALL_STATE(21)] = 851, - [SMALL_STATE(22)] = 881, - [SMALL_STATE(23)] = 901, - [SMALL_STATE(24)] = 921, - [SMALL_STATE(25)] = 941, - [SMALL_STATE(26)] = 960, - [SMALL_STATE(27)] = 979, - [SMALL_STATE(28)] = 998, - [SMALL_STATE(29)] = 1017, - [SMALL_STATE(30)] = 1036, - [SMALL_STATE(31)] = 1055, - [SMALL_STATE(32)] = 1074, - [SMALL_STATE(33)] = 1093, - [SMALL_STATE(34)] = 1112, - [SMALL_STATE(35)] = 1131, - [SMALL_STATE(36)] = 1150, - [SMALL_STATE(37)] = 1169, - [SMALL_STATE(38)] = 1188, - [SMALL_STATE(39)] = 1207, - [SMALL_STATE(40)] = 1226, - [SMALL_STATE(41)] = 1251, - [SMALL_STATE(42)] = 1273, - [SMALL_STATE(43)] = 1295, - [SMALL_STATE(44)] = 1317, - [SMALL_STATE(45)] = 1339, - [SMALL_STATE(46)] = 1359, - [SMALL_STATE(47)] = 1379, - [SMALL_STATE(48)] = 1401, - [SMALL_STATE(49)] = 1420, - [SMALL_STATE(50)] = 1437, - [SMALL_STATE(51)] = 1456, - [SMALL_STATE(52)] = 1475, - [SMALL_STATE(53)] = 1494, - [SMALL_STATE(54)] = 1513, - [SMALL_STATE(55)] = 1532, - [SMALL_STATE(56)] = 1549, - [SMALL_STATE(57)] = 1566, - [SMALL_STATE(58)] = 1585, - [SMALL_STATE(59)] = 1602, - [SMALL_STATE(60)] = 1621, - [SMALL_STATE(61)] = 1640, - [SMALL_STATE(62)] = 1659, - [SMALL_STATE(63)] = 1678, - [SMALL_STATE(64)] = 1697, - [SMALL_STATE(65)] = 1714, - [SMALL_STATE(66)] = 1733, - [SMALL_STATE(67)] = 1752, - [SMALL_STATE(68)] = 1771, - [SMALL_STATE(69)] = 1790, - [SMALL_STATE(70)] = 1809, - [SMALL_STATE(71)] = 1826, - [SMALL_STATE(72)] = 1843, - [SMALL_STATE(73)] = 1862, - [SMALL_STATE(74)] = 1879, - [SMALL_STATE(75)] = 1896, - [SMALL_STATE(76)] = 1915, - [SMALL_STATE(77)] = 1934, - [SMALL_STATE(78)] = 1953, - [SMALL_STATE(79)] = 1972, - [SMALL_STATE(80)] = 1991, - [SMALL_STATE(81)] = 2008, - [SMALL_STATE(82)] = 2027, - [SMALL_STATE(83)] = 2042, - [SMALL_STATE(84)] = 2059, - [SMALL_STATE(85)] = 2073, - [SMALL_STATE(86)] = 2087, - [SMALL_STATE(87)] = 2103, - [SMALL_STATE(88)] = 2117, - [SMALL_STATE(89)] = 2131, - [SMALL_STATE(90)] = 2147, - [SMALL_STATE(91)] = 2161, - [SMALL_STATE(92)] = 2177, - [SMALL_STATE(93)] = 2191, - [SMALL_STATE(94)] = 2205, - [SMALL_STATE(95)] = 2219, - [SMALL_STATE(96)] = 2233, - [SMALL_STATE(97)] = 2247, - [SMALL_STATE(98)] = 2261, - [SMALL_STATE(99)] = 2277, - [SMALL_STATE(100)] = 2291, - [SMALL_STATE(101)] = 2305, - [SMALL_STATE(102)] = 2319, - [SMALL_STATE(103)] = 2333, - [SMALL_STATE(104)] = 2347, - [SMALL_STATE(105)] = 2363, - [SMALL_STATE(106)] = 2377, - [SMALL_STATE(107)] = 2391, - [SMALL_STATE(108)] = 2405, - [SMALL_STATE(109)] = 2419, - [SMALL_STATE(110)] = 2435, - [SMALL_STATE(111)] = 2449, - [SMALL_STATE(112)] = 2463, - [SMALL_STATE(113)] = 2476, - [SMALL_STATE(114)] = 2489, - [SMALL_STATE(115)] = 2502, - [SMALL_STATE(116)] = 2515, - [SMALL_STATE(117)] = 2528, - [SMALL_STATE(118)] = 2541, - [SMALL_STATE(119)] = 2554, - [SMALL_STATE(120)] = 2567, - [SMALL_STATE(121)] = 2580, - [SMALL_STATE(122)] = 2593, - [SMALL_STATE(123)] = 2606, - [SMALL_STATE(124)] = 2619, - [SMALL_STATE(125)] = 2632, - [SMALL_STATE(126)] = 2645, - [SMALL_STATE(127)] = 2658, - [SMALL_STATE(128)] = 2671, - [SMALL_STATE(129)] = 2684, - [SMALL_STATE(130)] = 2697, - [SMALL_STATE(131)] = 2710, - [SMALL_STATE(132)] = 2723, - [SMALL_STATE(133)] = 2736, - [SMALL_STATE(134)] = 2749, - [SMALL_STATE(135)] = 2762, - [SMALL_STATE(136)] = 2775, - [SMALL_STATE(137)] = 2788, - [SMALL_STATE(138)] = 2792, + [SMALL_STATE(12)] = 542, + [SMALL_STATE(13)] = 594, + [SMALL_STATE(14)] = 646, + [SMALL_STATE(15)] = 686, + [SMALL_STATE(16)] = 726, + [SMALL_STATE(17)] = 763, + [SMALL_STATE(18)] = 800, + [SMALL_STATE(19)] = 820, + [SMALL_STATE(20)] = 840, + [SMALL_STATE(21)] = 860, + [SMALL_STATE(22)] = 892, + [SMALL_STATE(23)] = 912, + [SMALL_STATE(24)] = 932, + [SMALL_STATE(25)] = 962, + [SMALL_STATE(26)] = 981, + [SMALL_STATE(27)] = 1000, + [SMALL_STATE(28)] = 1019, + [SMALL_STATE(29)] = 1038, + [SMALL_STATE(30)] = 1057, + [SMALL_STATE(31)] = 1076, + [SMALL_STATE(32)] = 1095, + [SMALL_STATE(33)] = 1114, + [SMALL_STATE(34)] = 1133, + [SMALL_STATE(35)] = 1152, + [SMALL_STATE(36)] = 1171, + [SMALL_STATE(37)] = 1190, + [SMALL_STATE(38)] = 1209, + [SMALL_STATE(39)] = 1228, + [SMALL_STATE(40)] = 1247, + [SMALL_STATE(41)] = 1272, + [SMALL_STATE(42)] = 1290, + [SMALL_STATE(43)] = 1312, + [SMALL_STATE(44)] = 1334, + [SMALL_STATE(45)] = 1356, + [SMALL_STATE(46)] = 1376, + [SMALL_STATE(47)] = 1398, + [SMALL_STATE(48)] = 1420, + [SMALL_STATE(49)] = 1440, + [SMALL_STATE(50)] = 1457, + [SMALL_STATE(51)] = 1476, + [SMALL_STATE(52)] = 1495, + [SMALL_STATE(53)] = 1512, + [SMALL_STATE(54)] = 1531, + [SMALL_STATE(55)] = 1548, + [SMALL_STATE(56)] = 1567, + [SMALL_STATE(57)] = 1586, + [SMALL_STATE(58)] = 1601, + [SMALL_STATE(59)] = 1620, + [SMALL_STATE(60)] = 1639, + [SMALL_STATE(61)] = 1658, + [SMALL_STATE(62)] = 1677, + [SMALL_STATE(63)] = 1696, + [SMALL_STATE(64)] = 1713, + [SMALL_STATE(65)] = 1728, + [SMALL_STATE(66)] = 1747, + [SMALL_STATE(67)] = 1764, + [SMALL_STATE(68)] = 1783, + [SMALL_STATE(69)] = 1802, + [SMALL_STATE(70)] = 1821, + [SMALL_STATE(71)] = 1840, + [SMALL_STATE(72)] = 1857, + [SMALL_STATE(73)] = 1876, + [SMALL_STATE(74)] = 1893, + [SMALL_STATE(75)] = 1912, + [SMALL_STATE(76)] = 1931, + [SMALL_STATE(77)] = 1948, + [SMALL_STATE(78)] = 1967, + [SMALL_STATE(79)] = 1986, + [SMALL_STATE(80)] = 2005, + [SMALL_STATE(81)] = 2024, + [SMALL_STATE(82)] = 2041, + [SMALL_STATE(83)] = 2060, + [SMALL_STATE(84)] = 2079, + [SMALL_STATE(85)] = 2096, + [SMALL_STATE(86)] = 2113, + [SMALL_STATE(87)] = 2127, + [SMALL_STATE(88)] = 2143, + [SMALL_STATE(89)] = 2159, + [SMALL_STATE(90)] = 2173, + [SMALL_STATE(91)] = 2187, + [SMALL_STATE(92)] = 2201, + [SMALL_STATE(93)] = 2217, + [SMALL_STATE(94)] = 2231, + [SMALL_STATE(95)] = 2247, + [SMALL_STATE(96)] = 2261, + [SMALL_STATE(97)] = 2275, + [SMALL_STATE(98)] = 2289, + [SMALL_STATE(99)] = 2305, + [SMALL_STATE(100)] = 2321, + [SMALL_STATE(101)] = 2335, + [SMALL_STATE(102)] = 2349, + [SMALL_STATE(103)] = 2363, + [SMALL_STATE(104)] = 2377, + [SMALL_STATE(105)] = 2391, + [SMALL_STATE(106)] = 2405, + [SMALL_STATE(107)] = 2419, + [SMALL_STATE(108)] = 2433, + [SMALL_STATE(109)] = 2447, + [SMALL_STATE(110)] = 2461, + [SMALL_STATE(111)] = 2475, + [SMALL_STATE(112)] = 2489, + [SMALL_STATE(113)] = 2503, + [SMALL_STATE(114)] = 2517, + [SMALL_STATE(115)] = 2530, + [SMALL_STATE(116)] = 2543, + [SMALL_STATE(117)] = 2556, + [SMALL_STATE(118)] = 2569, + [SMALL_STATE(119)] = 2582, + [SMALL_STATE(120)] = 2595, + [SMALL_STATE(121)] = 2608, + [SMALL_STATE(122)] = 2621, + [SMALL_STATE(123)] = 2634, + [SMALL_STATE(124)] = 2647, + [SMALL_STATE(125)] = 2660, + [SMALL_STATE(126)] = 2673, + [SMALL_STATE(127)] = 2686, + [SMALL_STATE(128)] = 2699, + [SMALL_STATE(129)] = 2712, + [SMALL_STATE(130)] = 2725, + [SMALL_STATE(131)] = 2738, + [SMALL_STATE(132)] = 2751, + [SMALL_STATE(133)] = 2764, + [SMALL_STATE(134)] = 2777, + [SMALL_STATE(135)] = 2790, + [SMALL_STATE(136)] = 2803, + [SMALL_STATE(137)] = 2816, + [SMALL_STATE(138)] = 2829, + [SMALL_STATE(139)] = 2842, + [SMALL_STATE(140)] = 2855, + [SMALL_STATE(141)] = 2859, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(32), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(133), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(17), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(18), [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(82), - [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [74] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [119] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), - [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [141] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [146] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [173] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(44), - [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), - [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [182] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(109), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), - [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [220] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(89), - [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [229] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(91), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [262] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), - [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [313] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), - [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [327] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), - [329] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), - [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), - [337] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), - [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), - [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), - [353] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [357] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(46), + [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), + [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(64), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), + [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [85] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [104] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [106] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [108] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), + [134] = {.entry = {.count = 1, .reusable = false}}, SHIFT(128), + [136] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), + [138] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [152] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), + [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), + [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, .production_id = 17), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), + [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), + [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(92), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [237] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(99), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [246] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(94), + [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), + [261] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), + [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [304] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), + [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), + [310] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [312] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [314] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [318] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [320] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), + [322] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [324] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), + [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [328] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), + [334] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [344] = {.entry = {.count = 1, .reusable = false}}, SHIFT(141), + [346] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), + [348] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [350] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [352] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [362] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), + [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index d46ce7e..c10ee09 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -40,6 +40,7 @@ Select (soong config variable) foo = select(soong_config_variable("my_namespace", "my_var"), { "foo": unset, "default": "bar", + any @ foo: unset, }) -------------------------------------------------------------------------------- @@ -62,7 +63,14 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (select_case (select_pattern (interpreted_string_literal)) - (interpreted_string_literal)))))) + (interpreted_string_literal)) + (select_case + (select_pattern + (pattern_binding + (any) + (operator) + (identifier))) + (unset)))))) ================================================================================ Select (no default) diff --git a/test/highlight/select.bp b/test/highlight/select.bp index b857c1e..254d483 100644 --- a/test/highlight/select.bp +++ b/test/highlight/select.bp @@ -1,6 +1,9 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { // ^ keyword.conditional "foo": unset, + any @ foo: unset, + // ^ operator + // ^ variable default: "bar", }) From 6b0cdd912249e4c7b51cfaa8caebf48c527f8b49 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:56:21 +0000 Subject: [PATCH 28/39] Add select binding locals query --- queries/locals.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/queries/locals.scm b/queries/locals.scm index 7efe573..089d116 100644 --- a/queries/locals.scm +++ b/queries/locals.scm @@ -9,6 +9,9 @@ (assignment left: (identifier) @local.definition.var) +(pattern_binding + binding: (identifier) @local.definition.var) + (identifier) @local.reference ; vim: sw=2 foldmethod=marker From 4e60cf3c2e613625c06f6f85540b3631e2d06cd3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:56:45 +0000 Subject: [PATCH 29/39] Release 0.5.0 --- Cargo.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 208bf00..1784cdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tree-sitter-bp" description = "Blueprint grammar for the tree-sitter parsing library" -version = "0.4.0" +version = "0.5.0" keywords = ["incremental", "parsing", "android", "blueprint"] categories = ["parsing", "text-editors"] repository = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" diff --git a/package.json b/package.json index 4c4fe4c..15d1092 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-bp", - "version": "0.4.0", + "version": "0.5.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", "types": "bindings/node", diff --git a/pyproject.toml b/pyproject.toml index ccd657c..ca572a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "tree-sitter-bp" description = "Bp grammar for tree-sitter" -version = "0.4.0" +version = "0.5.0" keywords = ["incremental", "parsing", "tree-sitter", "bp"] classifiers = [ "Intended Audience :: Developers", From fd92a31674044737fa96a152181da3a0f9db8054 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 23 Dec 2024 17:48:08 -0500 Subject: [PATCH 30/39] Fix typos --- bindings/rust/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 78e1169..0dd1947 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -6,7 +6,7 @@ //! ``` //! let code = ""; //! let mut parser = tree_sitter::Parser::new(); -//! parser.set_language(tree_sitter_bp::language()).expect("Error loading txtpb grammar"); +//! parser.set_language(tree_sitter_bp::language()).expect("Error loading bp grammar"); //! let tree = parser.parse(code, None).unwrap(); //! ``` //! From aeb1fc2bb595d47f7ce76cddabddcfd76c7f0043 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 23 Dec 2024 22:51:53 -0500 Subject: [PATCH 31/39] Allow optional trailing comma in 'select' --- grammar.js | 2 +- src/grammar.json | 47 +- src/parser.c | 2488 +++++++++++++++++++++------------------- test/corpus/select.txt | 25 + 4 files changed, 1347 insertions(+), 1215 deletions(-) diff --git a/grammar.js b/grammar.js index 0c3bc4a..1a9c8e9 100644 --- a/grammar.js +++ b/grammar.js @@ -145,7 +145,7 @@ module.exports = grammar({ select_cases: ($) => seq( "{", - optional(commaSeparatedTrailing($.select_case)), + optional(commaSeparatedOptTrailing($.select_case)), "}", ), diff --git a/src/grammar.json b/src/grammar.json index d54a443..369d802 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -614,20 +614,41 @@ "type": "CHOICE", "members": [ { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "select_case" - }, - { - "type": "STRING", - "value": "," + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "select_case" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "select_case" + } + ] } - ] - } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] }, { "type": "BLANK" diff --git a/src/parser.c b/src/parser.c index 5e0ef96..bf2a2bd 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 142 +#define STATE_COUNT 147 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 67 #define ALIAS_COUNT 0 @@ -763,6 +763,11 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [139] = 139, [140] = 140, [141] = 141, + [142] = 142, + [143] = 143, + [144] = 144, + [145] = 145, + [146] = 146, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4250,8 +4255,8 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [15] = {.lex_state = 3}, [16] = {.lex_state = 3}, [17] = {.lex_state = 3}, - [18] = {.lex_state = 39}, - [19] = {.lex_state = 3}, + [18] = {.lex_state = 3}, + [19] = {.lex_state = 39}, [20] = {.lex_state = 39}, [21] = {.lex_state = 39}, [22] = {.lex_state = 39}, @@ -4273,96 +4278,96 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [38] = {.lex_state = 39}, [39] = {.lex_state = 39}, [40] = {.lex_state = 39}, - [41] = {.lex_state = 0}, + [41] = {.lex_state = 1}, [42] = {.lex_state = 39}, [43] = {.lex_state = 39}, - [44] = {.lex_state = 1}, - [45] = {.lex_state = 4}, - [46] = {.lex_state = 1}, - [47] = {.lex_state = 39}, + [44] = {.lex_state = 4}, + [45] = {.lex_state = 39}, + [46] = {.lex_state = 0}, + [47] = {.lex_state = 1}, [48] = {.lex_state = 1}, - [49] = {.lex_state = 39}, - [50] = {.lex_state = 39}, + [49] = {.lex_state = 0}, + [50] = {.lex_state = 0}, [51] = {.lex_state = 0}, - [52] = {.lex_state = 1}, + [52] = {.lex_state = 0}, [53] = {.lex_state = 39}, [54] = {.lex_state = 0}, - [55] = {.lex_state = 0}, - [56] = {.lex_state = 39}, + [55] = {.lex_state = 39}, + [56] = {.lex_state = 0}, [57] = {.lex_state = 0}, [58] = {.lex_state = 0}, - [59] = {.lex_state = 39}, + [59] = {.lex_state = 0}, [60] = {.lex_state = 0}, - [61] = {.lex_state = 0}, - [62] = {.lex_state = 0}, + [61] = {.lex_state = 39}, + [62] = {.lex_state = 1}, [63] = {.lex_state = 0}, - [64] = {.lex_state = 0}, - [65] = {.lex_state = 0}, - [66] = {.lex_state = 39}, + [64] = {.lex_state = 39}, + [65] = {.lex_state = 39}, + [66] = {.lex_state = 0}, [67] = {.lex_state = 39}, [68] = {.lex_state = 39}, - [69] = {.lex_state = 39}, - [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, - [72] = {.lex_state = 0}, + [69] = {.lex_state = 0}, + [70] = {.lex_state = 39}, + [71] = {.lex_state = 39}, + [72] = {.lex_state = 39}, [73] = {.lex_state = 0}, [74] = {.lex_state = 39}, - [75] = {.lex_state = 39}, + [75] = {.lex_state = 0}, [76] = {.lex_state = 0}, [77] = {.lex_state = 39}, - [78] = {.lex_state = 39}, + [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, [80] = {.lex_state = 0}, - [81] = {.lex_state = 0}, - [82] = {.lex_state = 0}, + [81] = {.lex_state = 39}, + [82] = {.lex_state = 39}, [83] = {.lex_state = 0}, - [84] = {.lex_state = 39}, - [85] = {.lex_state = 39}, + [84] = {.lex_state = 0}, + [85] = {.lex_state = 0}, [86] = {.lex_state = 39}, [87] = {.lex_state = 39}, [88] = {.lex_state = 0}, - [89] = {.lex_state = 39}, + [89] = {.lex_state = 0}, [90] = {.lex_state = 39}, - [91] = {.lex_state = 39}, - [92] = {.lex_state = 39}, + [91] = {.lex_state = 0}, + [92] = {.lex_state = 0}, [93] = {.lex_state = 39}, [94] = {.lex_state = 39}, - [95] = {.lex_state = 0}, + [95] = {.lex_state = 39}, [96] = {.lex_state = 0}, [97] = {.lex_state = 39}, [98] = {.lex_state = 39}, [99] = {.lex_state = 39}, - [100] = {.lex_state = 39}, - [101] = {.lex_state = 39}, - [102] = {.lex_state = 39}, + [100] = {.lex_state = 0}, + [101] = {.lex_state = 0}, + [102] = {.lex_state = 0}, [103] = {.lex_state = 0}, [104] = {.lex_state = 39}, - [105] = {.lex_state = 39}, + [105] = {.lex_state = 0}, [106] = {.lex_state = 39}, [107] = {.lex_state = 0}, - [108] = {.lex_state = 0}, + [108] = {.lex_state = 39}, [109] = {.lex_state = 0}, [110] = {.lex_state = 39}, [111] = {.lex_state = 0}, [112] = {.lex_state = 39}, - [113] = {.lex_state = 0}, - [114] = {.lex_state = 0}, - [115] = {.lex_state = 0}, - [116] = {.lex_state = 0}, - [117] = {.lex_state = 7}, - [118] = {.lex_state = 0}, - [119] = {.lex_state = 0}, + [113] = {.lex_state = 39}, + [114] = {.lex_state = 39}, + [115] = {.lex_state = 39}, + [116] = {.lex_state = 39}, + [117] = {.lex_state = 0}, + [118] = {.lex_state = 39}, + [119] = {.lex_state = 39}, [120] = {.lex_state = 0}, [121] = {.lex_state = 0}, [122] = {.lex_state = 0}, - [123] = {.lex_state = 0}, - [124] = {.lex_state = 39}, + [123] = {.lex_state = 39}, + [124] = {.lex_state = 0}, [125] = {.lex_state = 0}, [126] = {.lex_state = 0}, [127] = {.lex_state = 0}, - [128] = {.lex_state = 46}, + [128] = {.lex_state = 0}, [129] = {.lex_state = 0}, - [130] = {.lex_state = 0}, + [130] = {.lex_state = 7}, [131] = {.lex_state = 0}, [132] = {.lex_state = 0}, [133] = {.lex_state = 0}, @@ -4372,8 +4377,13 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [137] = {.lex_state = 0}, [138] = {.lex_state = 0}, [139] = {.lex_state = 0}, - [140] = {(TSStateId)(-1)}, - [141] = {(TSStateId)(-1)}, + [140] = {.lex_state = 46}, + [141] = {.lex_state = 0}, + [142] = {.lex_state = 0}, + [143] = {.lex_state = 0}, + [144] = {.lex_state = 0}, + [145] = {(TSStateId)(-1)}, + [146] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4410,14 +4420,14 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(138), - [sym__definition] = STATE(101), + [sym_source_file] = STATE(121), + [sym__definition] = STATE(94), [sym_comment] = STATE(1), - [sym_assignment] = STATE(102), - [sym_module] = STATE(102), - [sym__old_module] = STATE(104), - [sym__new_module] = STATE(106), - [aux_sym_source_file_repeat1] = STATE(21), + [sym_assignment] = STATE(99), + [sym_module] = STATE(99), + [sym__old_module] = STATE(108), + [sym__new_module] = STATE(110), + [aux_sym_source_file_repeat1] = STATE(24), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4451,16 +4461,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(98), 1, + STATE(72), 1, sym__expr, - STATE(135), 1, + STATE(102), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4493,14 +4503,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(84), 1, + STATE(82), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4533,14 +4543,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(84), 1, + STATE(82), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4573,14 +4583,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(43), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4611,14 +4621,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(66), 1, + STATE(33), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4649,14 +4659,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(82), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4687,14 +4697,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(28), 1, + STATE(71), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4725,14 +4735,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(85), 1, + STATE(65), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4763,14 +4773,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(84), 1, + STATE(81), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(37), 7, + STATE(38), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4783,73 +4793,36 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, ACTIONS(37), 1, anon_sym_RBRACE, ACTIONS(39), 1, anon_sym_LPAREN, + ACTIONS(43), 1, + anon_sym_any, ACTIONS(45), 1, - sym_raw_string_literal, - ACTIONS(48), 1, - anon_sym_DQUOTE, - ACTIONS(51), 1, - anon_sym_any, - ACTIONS(54), 1, - anon_sym_default, - STATE(23), 1, - sym_interpreted_string_literal, - STATE(119), 1, - sym_select_pattern, - STATE(121), 1, - sym_select_case, - STATE(127), 1, - sym__select_pattern, - ACTIONS(42), 2, - anon_sym_true, - anon_sym_false, - STATE(11), 2, - sym_comment, - aux_sym_select_cases_repeat1, - STATE(64), 3, - sym_boolean_literal, - sym__string_literal, - sym_pattern_binding, - [542] = 16, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(57), 1, - anon_sym_RBRACE, - ACTIONS(59), 1, - anon_sym_LPAREN, - ACTIONS(63), 1, - anon_sym_any, - ACTIONS(65), 1, anon_sym_default, STATE(11), 1, - aux_sym_select_cases_repeat1, - STATE(12), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(119), 1, - sym_select_pattern, - STATE(121), 1, + STATE(111), 1, sym_select_case, - STATE(127), 1, + STATE(122), 1, sym__select_pattern, - ACTIONS(61), 2, + STATE(126), 1, + sym_select_pattern, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [594] = 16, + [541] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4858,34 +4831,66 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(59), 1, + ACTIONS(39), 1, anon_sym_LPAREN, - ACTIONS(63), 1, + ACTIONS(43), 1, anon_sym_any, - ACTIONS(65), 1, + ACTIONS(45), 1, anon_sym_default, - ACTIONS(67), 1, + ACTIONS(47), 1, anon_sym_RBRACE, STATE(12), 1, - aux_sym_select_cases_repeat1, + sym_comment, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(111), 1, + sym_select_case, + STATE(122), 1, + sym__select_pattern, + STATE(126), 1, + sym_select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(51), 3, + sym_boolean_literal, + sym__string_literal, + sym_pattern_binding, + [590] = 15, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, + anon_sym_any, + ACTIONS(45), 1, + anon_sym_default, + ACTIONS(49), 1, + anon_sym_RBRACE, STATE(13), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(119), 1, - sym_select_pattern, - STATE(121), 1, + STATE(60), 1, sym_select_case, - STATE(127), 1, + STATE(122), 1, sym__select_pattern, - ACTIONS(61), 2, + STATE(126), 1, + sym_select_pattern, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [646] = 12, + [639] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4894,26 +4899,30 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(63), 1, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, anon_sym_any, - ACTIONS(65), 1, + ACTIONS(45), 1, anon_sym_default, - ACTIONS(69), 1, - anon_sym_RPAREN, STATE(14), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(95), 1, + STATE(111), 1, + sym_select_case, + STATE(122), 1, sym__select_pattern, - ACTIONS(61), 2, + STATE(126), 1, + sym_select_pattern, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [686] = 12, + [685] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4922,26 +4931,26 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(63), 1, + ACTIONS(43), 1, anon_sym_any, - ACTIONS(65), 1, + ACTIONS(45), 1, anon_sym_default, - ACTIONS(71), 1, + ACTIONS(51), 1, anon_sym_RPAREN, STATE(15), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(95), 1, + STATE(100), 1, sym__select_pattern, - ACTIONS(61), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [726] = 11, + [725] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4950,24 +4959,26 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(63), 1, + ACTIONS(43), 1, anon_sym_any, - ACTIONS(65), 1, + ACTIONS(45), 1, anon_sym_default, + ACTIONS(53), 1, + anon_sym_RPAREN, STATE(16), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(95), 1, + STATE(100), 1, sym__select_pattern, - ACTIONS(61), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [763] = 11, + [765] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4976,63 +4987,73 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(63), 1, + ACTIONS(43), 1, anon_sym_any, - ACTIONS(65), 1, + ACTIONS(45), 1, anon_sym_default, STATE(17), 1, sym_comment, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(62), 1, + STATE(100), 1, sym__select_pattern, - ACTIONS(61), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(64), 3, + STATE(51), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [800] = 4, + [802] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_any, + ACTIONS(45), 1, + anon_sym_default, STATE(18), 1, sym_comment, - ACTIONS(73), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [820] = 4, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(80), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(51), 3, + sym_boolean_literal, + sym__string_literal, + sym_pattern_binding, + [839] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(19), 1, sym_comment, - ACTIONS(37), 8, + ACTIONS(55), 8, + ts_builtin_sym_end, + anon_sym_COMMA, anon_sym_RBRACE, - anon_sym_LPAREN, - anon_sym_true, - anon_sym_false, - sym_raw_string_literal, - anon_sym_DQUOTE, - anon_sym_any, - anon_sym_default, - [840] = 4, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [859] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(75), 8, + ACTIONS(57), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5041,36 +5062,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [860] = 10, + [879] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(77), 1, - ts_builtin_sym_end, STATE(21), 1, sym_comment, - STATE(24), 1, - aux_sym_source_file_repeat1, - STATE(101), 1, - sym__definition, - STATE(104), 1, - sym__old_module, - STATE(106), 1, - sym__new_module, - STATE(102), 2, - sym_assignment, - sym_module, - [892] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(22), 1, - sym_comment, - ACTIONS(79), 8, + ACTIONS(59), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5079,14 +5078,35 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [912] = 4, + [899] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(61), 1, + ts_builtin_sym_end, + ACTIONS(63), 1, + sym_identifier, + STATE(94), 1, + sym__definition, + STATE(108), 1, + sym__old_module, + STATE(110), 1, + sym__new_module, + STATE(22), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(99), 2, + sym_assignment, + sym_module, + [929] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(81), 8, + ACTIONS(66), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5095,50 +5115,36 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [932] = 9, + [949] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(83), 1, - ts_builtin_sym_end, - ACTIONS(85), 1, + ACTIONS(9), 1, sym_identifier, - STATE(101), 1, - sym__definition, - STATE(104), 1, - sym__old_module, - STATE(106), 1, - sym__new_module, - STATE(24), 2, - sym_comment, + ACTIONS(68), 1, + ts_builtin_sym_end, + STATE(22), 1, aux_sym_source_file_repeat1, - STATE(102), 2, + STATE(24), 1, + sym_comment, + STATE(94), 1, + sym__definition, + STATE(108), 1, + sym__old_module, + STATE(110), 1, + sym__new_module, + STATE(99), 2, sym_assignment, sym_module, - [962] = 4, + [981] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(88), 7, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [981] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(26), 1, - sym_comment, - ACTIONS(90), 7, + ACTIONS(70), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5151,9 +5157,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(27), 1, + STATE(26), 1, sym_comment, - ACTIONS(92), 7, + ACTIONS(72), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5166,9 +5172,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(28), 1, + STATE(27), 1, sym_comment, - ACTIONS(94), 7, + ACTIONS(74), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5181,9 +5187,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(29), 1, + STATE(28), 1, sym_comment, - ACTIONS(96), 7, + ACTIONS(76), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5196,9 +5202,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(30), 1, + STATE(29), 1, sym_comment, - ACTIONS(98), 7, + ACTIONS(78), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5211,9 +5217,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(31), 1, + STATE(30), 1, sym_comment, - ACTIONS(100), 7, + ACTIONS(80), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5226,9 +5232,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(32), 1, + STATE(31), 1, sym_comment, - ACTIONS(102), 7, + ACTIONS(82), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5241,9 +5247,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(33), 1, + STATE(32), 1, sym_comment, - ACTIONS(104), 7, + ACTIONS(84), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5256,9 +5262,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(34), 1, + STATE(33), 1, sym_comment, - ACTIONS(106), 7, + ACTIONS(86), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5271,9 +5277,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(35), 1, + STATE(34), 1, sym_comment, - ACTIONS(108), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5286,9 +5292,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(36), 1, + STATE(35), 1, sym_comment, - ACTIONS(110), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5301,9 +5307,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(37), 1, + STATE(36), 1, sym_comment, - ACTIONS(112), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5316,9 +5322,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(38), 1, + STATE(37), 1, sym_comment, - ACTIONS(114), 7, + ACTIONS(94), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5331,9 +5337,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(39), 1, + STATE(38), 1, sym_comment, - ACTIONS(116), 7, + ACTIONS(96), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5341,7 +5347,22 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1247] = 8, + [1247] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(39), 1, + sym_comment, + ACTIONS(98), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1266] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5350,102 +5371,74 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(118), 1, + ACTIONS(100), 1, anon_sym_RPAREN, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(79), 1, + STATE(89), 1, sym__string_literal, - [1272] = 5, + [1291] = 7, + ACTIONS(102), 1, + anon_sym_SLASH_SLASH, + ACTIONS(104), 1, + anon_sym_SLASH_STAR, + ACTIONS(106), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(108), 1, + anon_sym_DQUOTE2, + ACTIONS(110), 1, + sym_escape_sequence, + STATE(41), 1, + sym_comment, + STATE(48), 1, + aux_sym_interpreted_string_literal_repeat1, + [1313] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(122), 1, - anon_sym_AT, - STATE(41), 1, + ACTIONS(112), 1, + anon_sym_LPAREN, + ACTIONS(114), 1, + sym_identifier, + STATE(42), 1, sym_comment, - ACTIONS(120), 3, + STATE(135), 1, + sym_select_value, + STATE(137), 1, + sym_condition, + [1335] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(116), 1, anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1290] = 7, + ACTIONS(118), 1, + anon_sym_RBRACK, + ACTIONS(120), 1, + anon_sym_PLUS, + STATE(43), 1, + sym_comment, + STATE(63), 1, + aux_sym_list_expression_repeat1, + [1357] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(124), 1, - anon_sym_COMMA, + anon_sym_LBRACE, ACTIONS(126), 1, - anon_sym_RBRACK, - ACTIONS(128), 1, - anon_sym_PLUS, - STATE(42), 1, - sym_comment, - STATE(65), 1, - aux_sym_list_expression_repeat1, - [1312] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(130), 1, anon_sym_LPAREN, - ACTIONS(132), 1, - sym_identifier, - STATE(43), 1, - sym_comment, - STATE(122), 1, - sym_condition, - STATE(123), 1, - sym_select_value, - [1334] = 7, - ACTIONS(134), 1, - anon_sym_SLASH_SLASH, - ACTIONS(136), 1, - anon_sym_SLASH_STAR, - ACTIONS(138), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(140), 1, - anon_sym_DQUOTE2, - ACTIONS(142), 1, - sym_escape_sequence, STATE(44), 1, sym_comment, - STATE(48), 1, - aux_sym_interpreted_string_literal_repeat1, - [1356] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(146), 1, - anon_sym_LBRACE, - ACTIONS(148), 1, - anon_sym_LPAREN, - STATE(45), 1, - sym_comment, - ACTIONS(144), 2, + ACTIONS(122), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1376] = 7, - ACTIONS(134), 1, - anon_sym_SLASH_SLASH, - ACTIONS(136), 1, - anon_sym_SLASH_STAR, - ACTIONS(138), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(142), 1, - sym_escape_sequence, - ACTIONS(150), 1, - anon_sym_DQUOTE2, - STATE(44), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(46), 1, - sym_comment, - [1398] = 7, + [1377] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5454,304 +5447,394 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(23), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(47), 1, + STATE(45), 1, sym_comment, - STATE(113), 1, + STATE(91), 1, sym__string_literal, - [1420] = 6, - ACTIONS(134), 1, - anon_sym_SLASH_SLASH, - ACTIONS(136), 1, - anon_sym_SLASH_STAR, - ACTIONS(152), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(155), 1, - anon_sym_DQUOTE2, - ACTIONS(157), 1, - sym_escape_sequence, - STATE(48), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1440] = 5, + [1399] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_PLUS, - STATE(49), 1, + ACTIONS(130), 1, + anon_sym_AT, + STATE(46), 1, sym_comment, - ACTIONS(160), 2, + ACTIONS(128), 3, anon_sym_COMMA, anon_sym_RPAREN, - [1457] = 6, - ACTIONS(3), 1, + anon_sym_COLON, + [1417] = 6, + ACTIONS(102), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(104), 1, anon_sym_SLASH_STAR, ACTIONS(132), 1, - sym_identifier, - ACTIONS(162), 1, - anon_sym_RPAREN, - STATE(50), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(135), 1, + anon_sym_DQUOTE2, + ACTIONS(137), 1, + sym_escape_sequence, + STATE(47), 2, sym_comment, - STATE(103), 1, - sym_condition, - [1476] = 6, + aux_sym_interpreted_string_literal_repeat1, + [1437] = 7, + ACTIONS(102), 1, + anon_sym_SLASH_SLASH, + ACTIONS(104), 1, + anon_sym_SLASH_STAR, + ACTIONS(106), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(110), 1, + sym_escape_sequence, + ACTIONS(140), 1, + anon_sym_DQUOTE2, + STATE(47), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(48), 1, + sym_comment, + [1459] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(164), 1, + ACTIONS(142), 1, anon_sym_COMMA, - ACTIONS(166), 1, + ACTIONS(144), 1, anon_sym_RBRACE, + STATE(49), 1, + sym_comment, + STATE(54), 1, + aux_sym__old_module_repeat1, + [1478] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(146), 1, + anon_sym_COMMA, + ACTIONS(149), 1, + anon_sym_RBRACE, + STATE(50), 2, + sym_comment, + aux_sym__old_module_repeat1, + [1495] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(51), 1, sym_comment, - STATE(60), 1, - aux_sym__old_module_repeat1, - [1495] = 5, - ACTIONS(134), 1, - anon_sym_SLASH_SLASH, - ACTIONS(136), 1, - anon_sym_SLASH_STAR, - ACTIONS(168), 1, - aux_sym_interpreted_string_literal_token1, - STATE(52), 1, - sym_comment, - ACTIONS(170), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1512] = 6, + ACTIONS(128), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1510] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(151), 1, + anon_sym_COMMA, + ACTIONS(153), 1, + anon_sym_RPAREN, + STATE(52), 1, + sym_comment, + STATE(75), 1, + aux_sym__new_module_repeat1, + [1529] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, anon_sym_RBRACE, - ACTIONS(174), 1, + ACTIONS(157), 1, sym_identifier, STATE(53), 1, sym_comment, - STATE(111), 1, + STATE(105), 1, sym__colon_property, - [1531] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(176), 1, - anon_sym_COMMA, - ACTIONS(179), 1, - anon_sym_RPAREN, - STATE(54), 2, - sym_comment, - aux_sym_select_pattern_repeat1, [1548] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(181), 1, + ACTIONS(159), 1, anon_sym_COMMA, - ACTIONS(183), 1, + ACTIONS(161), 1, anon_sym_RBRACE, - STATE(55), 1, - sym_comment, - STATE(71), 1, + STATE(50), 1, aux_sym__old_module_repeat1, + STATE(54), 1, + sym_comment, [1567] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(185), 1, + ACTIONS(163), 1, anon_sym_RPAREN, - ACTIONS(187), 1, + ACTIONS(165), 1, sym_identifier, - STATE(56), 1, + STATE(55), 1, sym_comment, - STATE(108), 1, + STATE(73), 1, sym__equal_property, - [1586] = 4, + [1586] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(53), 1, + anon_sym_RPAREN, + ACTIONS(167), 1, + anon_sym_COMMA, + STATE(56), 1, + sym_comment, + STATE(83), 1, + aux_sym_select_pattern_repeat1, + [1605] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(169), 1, + anon_sym_COMMA, + ACTIONS(171), 1, + anon_sym_RBRACE, + STATE(50), 1, + aux_sym__old_module_repeat1, STATE(57), 1, sym_comment, - ACTIONS(189), 3, + [1624] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(58), 1, + sym_comment, + ACTIONS(173), 3, anon_sym_COMMA, anon_sym_RPAREN, anon_sym_COLON, - [1601] = 6, + [1639] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(191), 1, + ACTIONS(175), 1, anon_sym_COMMA, - ACTIONS(193), 1, + ACTIONS(177), 1, anon_sym_RPAREN, - STATE(58), 1, - sym_comment, - STATE(76), 1, - aux_sym__new_module_repeat1, - [1620] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(174), 1, - sym_identifier, - ACTIONS(195), 1, - anon_sym_RBRACE, STATE(59), 1, sym_comment, - STATE(111), 1, + STATE(76), 1, + aux_sym_condition_repeat1, + [1658] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(179), 1, + anon_sym_COMMA, + ACTIONS(181), 1, + anon_sym_RBRACE, + STATE(60), 1, + sym_comment, + STATE(84), 1, + aux_sym_select_cases_repeat1, + [1677] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(157), 1, + sym_identifier, + ACTIONS(183), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym_comment, + STATE(105), 1, sym__colon_property, - [1639] = 6, + [1696] = 5, + ACTIONS(102), 1, + anon_sym_SLASH_SLASH, + ACTIONS(104), 1, + anon_sym_SLASH_STAR, + ACTIONS(185), 1, + aux_sym_interpreted_string_literal_token1, + STATE(62), 1, + sym_comment, + ACTIONS(187), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1713] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(189), 1, + anon_sym_COMMA, + ACTIONS(191), 1, + anon_sym_RBRACK, + STATE(63), 1, + sym_comment, + STATE(85), 1, + aux_sym_list_expression_repeat1, + [1732] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(157), 1, + sym_identifier, + ACTIONS(193), 1, + anon_sym_RBRACE, + STATE(64), 1, + sym_comment, + STATE(78), 1, + sym__colon_property, + [1751] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(120), 1, + anon_sym_PLUS, + STATE(65), 1, + sym_comment, + ACTIONS(195), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1768] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(197), 1, anon_sym_COMMA, - ACTIONS(199), 1, - anon_sym_RBRACE, - STATE(60), 1, - sym_comment, - STATE(71), 1, - aux_sym__old_module_repeat1, - [1658] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(71), 1, + ACTIONS(200), 1, anon_sym_RPAREN, - ACTIONS(201), 1, - anon_sym_COMMA, - STATE(54), 1, - aux_sym_select_pattern_repeat1, - STATE(61), 1, + STATE(66), 2, sym_comment, - [1677] = 6, + aux_sym_select_value_repeat1, + [1785] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(203), 1, - anon_sym_COMMA, - ACTIONS(205), 1, - anon_sym_RPAREN, - STATE(61), 1, - aux_sym_select_pattern_repeat1, - STATE(62), 1, - sym_comment, - [1696] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(207), 1, - anon_sym_COMMA, - ACTIONS(210), 1, - anon_sym_RPAREN, - STATE(63), 2, - sym_comment, - aux_sym_condition_repeat1, - [1713] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(64), 1, - sym_comment, - ACTIONS(120), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1728] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(212), 1, - anon_sym_COMMA, - ACTIONS(214), 1, - anon_sym_RBRACK, - STATE(65), 1, - sym_comment, - STATE(81), 1, - aux_sym_list_expression_repeat1, - [1747] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_PLUS, - STATE(66), 1, - sym_comment, - ACTIONS(216), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1764] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(174), 1, + ACTIONS(114), 1, sym_identifier, - ACTIONS(218), 1, - anon_sym_RBRACE, + ACTIONS(202), 1, + anon_sym_RPAREN, STATE(67), 1, sym_comment, - STATE(83), 1, - sym__colon_property, - [1783] = 6, + STATE(103), 1, + sym_condition, + [1804] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(187), 1, + ACTIONS(157), 1, sym_identifier, - ACTIONS(220), 1, - anon_sym_RPAREN, + ACTIONS(204), 1, + anon_sym_RBRACE, STATE(68), 1, sym_comment, - STATE(72), 1, - sym__equal_property, - [1802] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(174), 1, - sym_identifier, - ACTIONS(222), 1, - anon_sym_RBRACE, - STATE(69), 1, - sym_comment, - STATE(111), 1, + STATE(105), 1, sym__colon_property, - [1821] = 6, + [1823] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 1, + ACTIONS(206), 1, + anon_sym_COMMA, + ACTIONS(209), 1, + anon_sym_RBRACE, + STATE(69), 2, + sym_comment, + aux_sym_select_cases_repeat1, + [1840] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(165), 1, + sym_identifier, + ACTIONS(211), 1, + anon_sym_RPAREN, + STATE(70), 1, + sym_comment, + STATE(101), 1, + sym__equal_property, + [1859] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(120), 1, + anon_sym_PLUS, + STATE(71), 1, + sym_comment, + ACTIONS(213), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1876] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(120), 1, + anon_sym_PLUS, + STATE(72), 1, + sym_comment, + ACTIONS(215), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1893] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(217), 1, + anon_sym_COMMA, + ACTIONS(219), 1, + anon_sym_RPAREN, + STATE(52), 1, + aux_sym__new_module_repeat1, + STATE(73), 1, + sym_comment, + [1912] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(165), 1, + sym_identifier, + ACTIONS(221), 1, + anon_sym_RPAREN, + STATE(74), 1, + sym_comment, + STATE(101), 1, + sym__equal_property, + [1931] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(223), 1, anon_sym_COMMA, ACTIONS(226), 1, anon_sym_RPAREN, - STATE(63), 1, - aux_sym_condition_repeat1, - STATE(70), 1, + STATE(75), 2, sym_comment, - [1840] = 5, + aux_sym__new_module_repeat1, + [1948] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5759,712 +5842,710 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(228), 1, anon_sym_COMMA, ACTIONS(231), 1, - anon_sym_RBRACE, - STATE(71), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1857] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(233), 1, - anon_sym_COMMA, - ACTIONS(235), 1, - anon_sym_RPAREN, - STATE(58), 1, - aux_sym__new_module_repeat1, - STATE(72), 1, - sym_comment, - [1876] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(237), 1, - anon_sym_COMMA, - ACTIONS(240), 1, - anon_sym_RPAREN, - STATE(73), 2, - sym_comment, - aux_sym_select_value_repeat1, - [1893] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(187), 1, - sym_identifier, - ACTIONS(242), 1, - anon_sym_RPAREN, - STATE(74), 1, - sym_comment, - STATE(108), 1, - sym__equal_property, - [1912] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(132), 1, - sym_identifier, - ACTIONS(244), 1, - anon_sym_RPAREN, - STATE(75), 1, - sym_comment, - STATE(103), 1, - sym_condition, - [1931] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - anon_sym_COMMA, - ACTIONS(249), 1, anon_sym_RPAREN, STATE(76), 2, sym_comment, - aux_sym__new_module_repeat1, - [1948] = 6, + aux_sym_condition_repeat1, + [1965] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(174), 1, + ACTIONS(157), 1, sym_identifier, - ACTIONS(251), 1, + ACTIONS(233), 1, anon_sym_RBRACE, - STATE(51), 1, - sym__colon_property, STATE(77), 1, sym_comment, - [1967] = 6, + STATE(105), 1, + sym__colon_property, + [1984] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(174), 1, - sym_identifier, - ACTIONS(253), 1, + ACTIONS(235), 1, + anon_sym_COMMA, + ACTIONS(237), 1, anon_sym_RBRACE, + STATE(57), 1, + aux_sym__old_module_repeat1, STATE(78), 1, sym_comment, - STATE(111), 1, - sym__colon_property, - [1986] = 6, + [2003] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 1, + ACTIONS(239), 1, anon_sym_COMMA, - ACTIONS(255), 1, + ACTIONS(241), 1, anon_sym_RPAREN, - STATE(70), 1, - aux_sym_condition_repeat1, STATE(79), 1, sym_comment, - [2005] = 6, + STATE(88), 1, + aux_sym_select_value_repeat1, + [2022] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(257), 1, + ACTIONS(243), 1, anon_sym_COMMA, - ACTIONS(259), 1, + ACTIONS(245), 1, anon_sym_RPAREN, + STATE(56), 1, + aux_sym_select_pattern_repeat1, STATE(80), 1, sym_comment, - STATE(82), 1, - aux_sym_select_value_repeat1, - [2024] = 5, + [2041] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(261), 1, - anon_sym_COMMA, - ACTIONS(264), 1, - anon_sym_RBRACK, - STATE(81), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [2041] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(162), 1, - anon_sym_RPAREN, - ACTIONS(266), 1, - anon_sym_COMMA, - STATE(73), 1, - aux_sym_select_value_repeat1, - STATE(82), 1, - sym_comment, - [2060] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(268), 1, - anon_sym_COMMA, - ACTIONS(270), 1, - anon_sym_RBRACE, - STATE(55), 1, - aux_sym__old_module_repeat1, - STATE(83), 1, - sym_comment, - [2079] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, + ACTIONS(120), 1, anon_sym_PLUS, + STATE(81), 1, + sym_comment, + ACTIONS(247), 2, + ts_builtin_sym_end, + sym_identifier, + [2058] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(120), 1, + anon_sym_PLUS, + STATE(82), 1, + sym_comment, + ACTIONS(249), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [2075] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(251), 1, + anon_sym_COMMA, + ACTIONS(254), 1, + anon_sym_RPAREN, + STATE(83), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [2092] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(47), 1, + anon_sym_RBRACE, + ACTIONS(256), 1, + anon_sym_COMMA, + STATE(69), 1, + aux_sym_select_cases_repeat1, STATE(84), 1, sym_comment, - ACTIONS(272), 2, + [2111] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(258), 1, anon_sym_COMMA, + ACTIONS(261), 1, anon_sym_RBRACK, - [2096] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_PLUS, - STATE(85), 1, + STATE(85), 2, sym_comment, - ACTIONS(274), 2, - ts_builtin_sym_end, - sym_identifier, - [2113] = 4, + aux_sym_list_expression_repeat1, + [2128] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(157), 1, + sym_identifier, + ACTIONS(263), 1, + anon_sym_RBRACE, + STATE(49), 1, + sym__colon_property, STATE(86), 1, sym_comment, - ACTIONS(276), 2, - ts_builtin_sym_end, - sym_identifier, - [2127] = 5, + [2147] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(114), 1, sym_identifier, - STATE(80), 1, - sym_condition, + ACTIONS(265), 1, + anon_sym_RPAREN, STATE(87), 1, sym_comment, - [2143] = 5, + STATE(103), 1, + sym_condition, + [2166] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(278), 1, - anon_sym_LBRACE, + ACTIONS(265), 1, + anon_sym_RPAREN, + ACTIONS(267), 1, + anon_sym_COMMA, + STATE(66), 1, + aux_sym_select_value_repeat1, STATE(88), 1, sym_comment, - STATE(134), 1, - sym_select_cases, - [2159] = 4, + [2185] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(175), 1, + anon_sym_COMMA, + ACTIONS(269), 1, + anon_sym_RPAREN, + STATE(59), 1, + aux_sym_condition_repeat1, STATE(89), 1, sym_comment, - ACTIONS(280), 2, - ts_builtin_sym_end, - sym_identifier, - [2173] = 4, + [2204] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(282), 2, + ACTIONS(271), 2, ts_builtin_sym_end, sym_identifier, - [2187] = 4, + [2218] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(284), 2, - ts_builtin_sym_end, - sym_identifier, - [2201] = 5, + ACTIONS(231), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2232] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(174), 1, - sym_identifier, + ACTIONS(273), 1, + anon_sym_LBRACE, STATE(92), 1, sym_comment, - STATE(111), 1, - sym__colon_property, - [2217] = 4, + STATE(141), 1, + sym_select_cases, + [2248] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(286), 2, + ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, - [2231] = 5, + [2262] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(187), 1, - sym_identifier, STATE(94), 1, sym_comment, - STATE(108), 1, - sym__equal_property, - [2247] = 4, + ACTIONS(277), 2, + ts_builtin_sym_end, + sym_identifier, + [2276] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(95), 1, sym_comment, - ACTIONS(179), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2261] = 4, + ACTIONS(279), 2, + ts_builtin_sym_end, + sym_identifier, + [2290] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(288), 2, + ACTIONS(281), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2275] = 4, + [2304] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(157), 1, + sym_identifier, STATE(97), 1, sym_comment, - ACTIONS(290), 2, - ts_builtin_sym_end, - sym_identifier, - [2289] = 5, + STATE(105), 1, + sym__colon_property, + [2320] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_PLUS, - ACTIONS(292), 1, - anon_sym_COMMA, STATE(98), 1, sym_comment, - [2305] = 5, + ACTIONS(283), 2, + ts_builtin_sym_end, + sym_identifier, + [2334] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - sym_identifier, STATE(99), 1, sym_comment, - STATE(103), 1, - sym_condition, - [2321] = 4, + ACTIONS(285), 2, + ts_builtin_sym_end, + sym_identifier, + [2348] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(294), 2, - ts_builtin_sym_end, - sym_identifier, - [2335] = 4, + ACTIONS(254), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2362] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(101), 1, sym_comment, - ACTIONS(296), 2, - ts_builtin_sym_end, - sym_identifier, - [2349] = 4, + ACTIONS(287), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2376] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(102), 1, sym_comment, - ACTIONS(298), 2, - ts_builtin_sym_end, - sym_identifier, - [2363] = 4, + ACTIONS(289), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2390] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(103), 1, sym_comment, - ACTIONS(240), 2, + ACTIONS(200), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2377] = 4, + [2404] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(104), 1, sym_comment, - ACTIONS(300), 2, + ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2391] = 4, + [2418] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(105), 1, sym_comment, - ACTIONS(302), 2, - ts_builtin_sym_end, - sym_identifier, - [2405] = 4, + ACTIONS(293), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2432] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(106), 1, sym_comment, - ACTIONS(300), 2, + ACTIONS(295), 2, ts_builtin_sym_end, sym_identifier, - [2419] = 4, + [2446] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(107), 1, sym_comment, - ACTIONS(304), 2, + ACTIONS(297), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2433] = 4, + [2460] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(108), 1, sym_comment, - ACTIONS(306), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2447] = 4, + ACTIONS(299), 2, + ts_builtin_sym_end, + sym_identifier, + [2474] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(109), 1, sym_comment, - ACTIONS(308), 2, + ACTIONS(215), 2, anon_sym_COMMA, - anon_sym_RPAREN, - [2461] = 4, + anon_sym_RBRACE, + [2488] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(310), 2, + ACTIONS(299), 2, ts_builtin_sym_end, sym_identifier, - [2475] = 4, + [2502] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(312), 2, + ACTIONS(209), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2489] = 4, + [2516] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(114), 1, + sym_identifier, + STATE(79), 1, + sym_condition, STATE(112), 1, sym_comment, - ACTIONS(314), 2, - ts_builtin_sym_end, - sym_identifier, - [2503] = 4, + [2532] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(113), 1, sym_comment, - ACTIONS(210), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2517] = 4, + ACTIONS(301), 2, + ts_builtin_sym_end, + sym_identifier, + [2546] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(316), 1, - aux_sym_integer_literal_token1, STATE(114), 1, sym_comment, - [2530] = 4, + ACTIONS(303), 2, + ts_builtin_sym_end, + sym_identifier, + [2560] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(318), 1, - anon_sym_RPAREN, STATE(115), 1, sym_comment, - [2543] = 4, + ACTIONS(305), 2, + ts_builtin_sym_end, + sym_identifier, + [2574] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(320), 1, - anon_sym_SLASH, STATE(116), 1, sym_comment, - [2556] = 4, - ACTIONS(134), 1, + ACTIONS(307), 2, + ts_builtin_sym_end, + sym_identifier, + [2588] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(136), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(322), 1, - aux_sym_comment_token2, STATE(117), 1, sym_comment, - [2569] = 4, + ACTIONS(309), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2602] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(324), 1, - anon_sym_COMMA, + ACTIONS(114), 1, + sym_identifier, + STATE(103), 1, + sym_condition, STATE(118), 1, sym_comment, - [2582] = 4, + [2618] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(326), 1, - anon_sym_COLON, + ACTIONS(165), 1, + sym_identifier, + STATE(101), 1, + sym__equal_property, STATE(119), 1, sym_comment, - [2595] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(328), 1, - anon_sym_COLON, - STATE(120), 1, - sym_comment, - [2608] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(330), 1, - anon_sym_COMMA, - STATE(121), 1, - sym_comment, - [2621] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(332), 1, - anon_sym_COMMA, - STATE(122), 1, - sym_comment, [2634] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(334), 1, - anon_sym_COMMA, - STATE(123), 1, + ACTIONS(311), 1, + anon_sym_RPAREN, + STATE(120), 1, sym_comment, [2647] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(336), 1, - sym_identifier, - STATE(124), 1, + ACTIONS(313), 1, + ts_builtin_sym_end, + STATE(121), 1, sym_comment, [2660] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(338), 1, - anon_sym_RPAREN, - STATE(125), 1, + ACTIONS(315), 1, + anon_sym_COLON, + STATE(122), 1, sym_comment, [2673] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(340), 1, - anon_sym_COLON, - STATE(126), 1, + ACTIONS(317), 1, + sym_identifier, + STATE(123), 1, sym_comment, [2686] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(342), 1, + ACTIONS(319), 1, anon_sym_COLON, - STATE(127), 1, + STATE(124), 1, sym_comment, [2699] = 4, - ACTIONS(134), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(136), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(344), 1, - aux_sym_comment_token1, - STATE(128), 1, + ACTIONS(321), 1, + anon_sym_RPAREN, + STATE(125), 1, sym_comment, [2712] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(346), 1, - anon_sym_COMMA, - STATE(129), 1, + ACTIONS(323), 1, + anon_sym_COLON, + STATE(126), 1, sym_comment, [2725] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(348), 1, - anon_sym_COLON, - STATE(130), 1, + ACTIONS(325), 1, + anon_sym_LPAREN, + STATE(127), 1, sym_comment, [2738] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(350), 1, - anon_sym_LPAREN, - STATE(131), 1, + ACTIONS(327), 1, + aux_sym_integer_literal_token1, + STATE(128), 1, sym_comment, [2751] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(352), 1, - anon_sym_EQ, - STATE(132), 1, + ACTIONS(329), 1, + anon_sym_COLON, + STATE(129), 1, sym_comment, [2764] = 4, - ACTIONS(3), 1, + ACTIONS(102), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(104), 1, anon_sym_SLASH_STAR, - ACTIONS(292), 1, - anon_sym_COMMA, - STATE(133), 1, + ACTIONS(331), 1, + aux_sym_comment_token2, + STATE(130), 1, sym_comment, [2777] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(354), 1, - anon_sym_RPAREN, - STATE(134), 1, + ACTIONS(333), 1, + anon_sym_COLON, + STATE(131), 1, sym_comment, [2790] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(356), 1, - anon_sym_COMMA, - STATE(135), 1, + ACTIONS(335), 1, + anon_sym_EQ, + STATE(132), 1, sym_comment, [2803] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(358), 1, - anon_sym_COLON, - STATE(136), 1, + ACTIONS(337), 1, + anon_sym_COMMA, + STATE(133), 1, sym_comment, [2816] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(360), 1, - anon_sym_LPAREN, - STATE(137), 1, + ACTIONS(339), 1, + anon_sym_SLASH, + STATE(134), 1, sym_comment, [2829] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(362), 1, - ts_builtin_sym_end, - STATE(138), 1, + ACTIONS(341), 1, + anon_sym_COMMA, + STATE(135), 1, sym_comment, [2842] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(364), 1, + ACTIONS(343), 1, + anon_sym_RPAREN, + STATE(136), 1, + sym_comment, + [2855] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(345), 1, anon_sym_COMMA, + STATE(137), 1, + sym_comment, + [2868] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(347), 1, + anon_sym_COMMA, + STATE(138), 1, + sym_comment, + [2881] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(349), 1, + anon_sym_COLON, STATE(139), 1, sym_comment, - [2855] = 1, - ACTIONS(366), 1, + [2894] = 4, + ACTIONS(102), 1, + anon_sym_SLASH_SLASH, + ACTIONS(104), 1, + anon_sym_SLASH_STAR, + ACTIONS(351), 1, + aux_sym_comment_token1, + STATE(140), 1, + sym_comment, + [2907] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(353), 1, + anon_sym_RPAREN, + STATE(141), 1, + sym_comment, + [2920] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(355), 1, + anon_sym_COMMA, + STATE(142), 1, + sym_comment, + [2933] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(357), 1, + anon_sym_RPAREN, + STATE(143), 1, + sym_comment, + [2946] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(359), 1, + anon_sym_LPAREN, + STATE(144), 1, + sym_comment, + [2959] = 1, + ACTIONS(361), 1, ts_builtin_sym_end, - [2859] = 1, - ACTIONS(368), 1, + [2963] = 1, + ACTIONS(363), 1, ts_builtin_sym_end, }; @@ -6479,317 +6560,322 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 542, - [SMALL_STATE(13)] = 594, - [SMALL_STATE(14)] = 646, - [SMALL_STATE(15)] = 686, - [SMALL_STATE(16)] = 726, - [SMALL_STATE(17)] = 763, - [SMALL_STATE(18)] = 800, - [SMALL_STATE(19)] = 820, - [SMALL_STATE(20)] = 840, - [SMALL_STATE(21)] = 860, - [SMALL_STATE(22)] = 892, - [SMALL_STATE(23)] = 912, - [SMALL_STATE(24)] = 932, - [SMALL_STATE(25)] = 962, - [SMALL_STATE(26)] = 981, - [SMALL_STATE(27)] = 1000, - [SMALL_STATE(28)] = 1019, - [SMALL_STATE(29)] = 1038, - [SMALL_STATE(30)] = 1057, - [SMALL_STATE(31)] = 1076, - [SMALL_STATE(32)] = 1095, - [SMALL_STATE(33)] = 1114, - [SMALL_STATE(34)] = 1133, - [SMALL_STATE(35)] = 1152, - [SMALL_STATE(36)] = 1171, - [SMALL_STATE(37)] = 1190, - [SMALL_STATE(38)] = 1209, - [SMALL_STATE(39)] = 1228, - [SMALL_STATE(40)] = 1247, - [SMALL_STATE(41)] = 1272, - [SMALL_STATE(42)] = 1290, - [SMALL_STATE(43)] = 1312, - [SMALL_STATE(44)] = 1334, - [SMALL_STATE(45)] = 1356, - [SMALL_STATE(46)] = 1376, - [SMALL_STATE(47)] = 1398, - [SMALL_STATE(48)] = 1420, - [SMALL_STATE(49)] = 1440, - [SMALL_STATE(50)] = 1457, - [SMALL_STATE(51)] = 1476, - [SMALL_STATE(52)] = 1495, - [SMALL_STATE(53)] = 1512, - [SMALL_STATE(54)] = 1531, - [SMALL_STATE(55)] = 1548, - [SMALL_STATE(56)] = 1567, - [SMALL_STATE(57)] = 1586, - [SMALL_STATE(58)] = 1601, - [SMALL_STATE(59)] = 1620, - [SMALL_STATE(60)] = 1639, - [SMALL_STATE(61)] = 1658, - [SMALL_STATE(62)] = 1677, - [SMALL_STATE(63)] = 1696, - [SMALL_STATE(64)] = 1713, - [SMALL_STATE(65)] = 1728, - [SMALL_STATE(66)] = 1747, - [SMALL_STATE(67)] = 1764, - [SMALL_STATE(68)] = 1783, - [SMALL_STATE(69)] = 1802, - [SMALL_STATE(70)] = 1821, - [SMALL_STATE(71)] = 1840, - [SMALL_STATE(72)] = 1857, - [SMALL_STATE(73)] = 1876, - [SMALL_STATE(74)] = 1893, - [SMALL_STATE(75)] = 1912, - [SMALL_STATE(76)] = 1931, - [SMALL_STATE(77)] = 1948, - [SMALL_STATE(78)] = 1967, - [SMALL_STATE(79)] = 1986, - [SMALL_STATE(80)] = 2005, - [SMALL_STATE(81)] = 2024, - [SMALL_STATE(82)] = 2041, - [SMALL_STATE(83)] = 2060, - [SMALL_STATE(84)] = 2079, - [SMALL_STATE(85)] = 2096, - [SMALL_STATE(86)] = 2113, - [SMALL_STATE(87)] = 2127, - [SMALL_STATE(88)] = 2143, - [SMALL_STATE(89)] = 2159, - [SMALL_STATE(90)] = 2173, - [SMALL_STATE(91)] = 2187, - [SMALL_STATE(92)] = 2201, - [SMALL_STATE(93)] = 2217, - [SMALL_STATE(94)] = 2231, - [SMALL_STATE(95)] = 2247, - [SMALL_STATE(96)] = 2261, - [SMALL_STATE(97)] = 2275, - [SMALL_STATE(98)] = 2289, - [SMALL_STATE(99)] = 2305, - [SMALL_STATE(100)] = 2321, - [SMALL_STATE(101)] = 2335, - [SMALL_STATE(102)] = 2349, - [SMALL_STATE(103)] = 2363, - [SMALL_STATE(104)] = 2377, - [SMALL_STATE(105)] = 2391, - [SMALL_STATE(106)] = 2405, - [SMALL_STATE(107)] = 2419, - [SMALL_STATE(108)] = 2433, - [SMALL_STATE(109)] = 2447, - [SMALL_STATE(110)] = 2461, - [SMALL_STATE(111)] = 2475, - [SMALL_STATE(112)] = 2489, - [SMALL_STATE(113)] = 2503, - [SMALL_STATE(114)] = 2517, - [SMALL_STATE(115)] = 2530, - [SMALL_STATE(116)] = 2543, - [SMALL_STATE(117)] = 2556, - [SMALL_STATE(118)] = 2569, - [SMALL_STATE(119)] = 2582, - [SMALL_STATE(120)] = 2595, - [SMALL_STATE(121)] = 2608, - [SMALL_STATE(122)] = 2621, - [SMALL_STATE(123)] = 2634, - [SMALL_STATE(124)] = 2647, - [SMALL_STATE(125)] = 2660, - [SMALL_STATE(126)] = 2673, - [SMALL_STATE(127)] = 2686, - [SMALL_STATE(128)] = 2699, - [SMALL_STATE(129)] = 2712, - [SMALL_STATE(130)] = 2725, - [SMALL_STATE(131)] = 2738, - [SMALL_STATE(132)] = 2751, - [SMALL_STATE(133)] = 2764, - [SMALL_STATE(134)] = 2777, - [SMALL_STATE(135)] = 2790, - [SMALL_STATE(136)] = 2803, - [SMALL_STATE(137)] = 2816, - [SMALL_STATE(138)] = 2829, - [SMALL_STATE(139)] = 2842, - [SMALL_STATE(140)] = 2855, - [SMALL_STATE(141)] = 2859, + [SMALL_STATE(12)] = 541, + [SMALL_STATE(13)] = 590, + [SMALL_STATE(14)] = 639, + [SMALL_STATE(15)] = 685, + [SMALL_STATE(16)] = 725, + [SMALL_STATE(17)] = 765, + [SMALL_STATE(18)] = 802, + [SMALL_STATE(19)] = 839, + [SMALL_STATE(20)] = 859, + [SMALL_STATE(21)] = 879, + [SMALL_STATE(22)] = 899, + [SMALL_STATE(23)] = 929, + [SMALL_STATE(24)] = 949, + [SMALL_STATE(25)] = 981, + [SMALL_STATE(26)] = 1000, + [SMALL_STATE(27)] = 1019, + [SMALL_STATE(28)] = 1038, + [SMALL_STATE(29)] = 1057, + [SMALL_STATE(30)] = 1076, + [SMALL_STATE(31)] = 1095, + [SMALL_STATE(32)] = 1114, + [SMALL_STATE(33)] = 1133, + [SMALL_STATE(34)] = 1152, + [SMALL_STATE(35)] = 1171, + [SMALL_STATE(36)] = 1190, + [SMALL_STATE(37)] = 1209, + [SMALL_STATE(38)] = 1228, + [SMALL_STATE(39)] = 1247, + [SMALL_STATE(40)] = 1266, + [SMALL_STATE(41)] = 1291, + [SMALL_STATE(42)] = 1313, + [SMALL_STATE(43)] = 1335, + [SMALL_STATE(44)] = 1357, + [SMALL_STATE(45)] = 1377, + [SMALL_STATE(46)] = 1399, + [SMALL_STATE(47)] = 1417, + [SMALL_STATE(48)] = 1437, + [SMALL_STATE(49)] = 1459, + [SMALL_STATE(50)] = 1478, + [SMALL_STATE(51)] = 1495, + [SMALL_STATE(52)] = 1510, + [SMALL_STATE(53)] = 1529, + [SMALL_STATE(54)] = 1548, + [SMALL_STATE(55)] = 1567, + [SMALL_STATE(56)] = 1586, + [SMALL_STATE(57)] = 1605, + [SMALL_STATE(58)] = 1624, + [SMALL_STATE(59)] = 1639, + [SMALL_STATE(60)] = 1658, + [SMALL_STATE(61)] = 1677, + [SMALL_STATE(62)] = 1696, + [SMALL_STATE(63)] = 1713, + [SMALL_STATE(64)] = 1732, + [SMALL_STATE(65)] = 1751, + [SMALL_STATE(66)] = 1768, + [SMALL_STATE(67)] = 1785, + [SMALL_STATE(68)] = 1804, + [SMALL_STATE(69)] = 1823, + [SMALL_STATE(70)] = 1840, + [SMALL_STATE(71)] = 1859, + [SMALL_STATE(72)] = 1876, + [SMALL_STATE(73)] = 1893, + [SMALL_STATE(74)] = 1912, + [SMALL_STATE(75)] = 1931, + [SMALL_STATE(76)] = 1948, + [SMALL_STATE(77)] = 1965, + [SMALL_STATE(78)] = 1984, + [SMALL_STATE(79)] = 2003, + [SMALL_STATE(80)] = 2022, + [SMALL_STATE(81)] = 2041, + [SMALL_STATE(82)] = 2058, + [SMALL_STATE(83)] = 2075, + [SMALL_STATE(84)] = 2092, + [SMALL_STATE(85)] = 2111, + [SMALL_STATE(86)] = 2128, + [SMALL_STATE(87)] = 2147, + [SMALL_STATE(88)] = 2166, + [SMALL_STATE(89)] = 2185, + [SMALL_STATE(90)] = 2204, + [SMALL_STATE(91)] = 2218, + [SMALL_STATE(92)] = 2232, + [SMALL_STATE(93)] = 2248, + [SMALL_STATE(94)] = 2262, + [SMALL_STATE(95)] = 2276, + [SMALL_STATE(96)] = 2290, + [SMALL_STATE(97)] = 2304, + [SMALL_STATE(98)] = 2320, + [SMALL_STATE(99)] = 2334, + [SMALL_STATE(100)] = 2348, + [SMALL_STATE(101)] = 2362, + [SMALL_STATE(102)] = 2376, + [SMALL_STATE(103)] = 2390, + [SMALL_STATE(104)] = 2404, + [SMALL_STATE(105)] = 2418, + [SMALL_STATE(106)] = 2432, + [SMALL_STATE(107)] = 2446, + [SMALL_STATE(108)] = 2460, + [SMALL_STATE(109)] = 2474, + [SMALL_STATE(110)] = 2488, + [SMALL_STATE(111)] = 2502, + [SMALL_STATE(112)] = 2516, + [SMALL_STATE(113)] = 2532, + [SMALL_STATE(114)] = 2546, + [SMALL_STATE(115)] = 2560, + [SMALL_STATE(116)] = 2574, + [SMALL_STATE(117)] = 2588, + [SMALL_STATE(118)] = 2602, + [SMALL_STATE(119)] = 2618, + [SMALL_STATE(120)] = 2634, + [SMALL_STATE(121)] = 2647, + [SMALL_STATE(122)] = 2660, + [SMALL_STATE(123)] = 2673, + [SMALL_STATE(124)] = 2686, + [SMALL_STATE(125)] = 2699, + [SMALL_STATE(126)] = 2712, + [SMALL_STATE(127)] = 2725, + [SMALL_STATE(128)] = 2738, + [SMALL_STATE(129)] = 2751, + [SMALL_STATE(130)] = 2764, + [SMALL_STATE(131)] = 2777, + [SMALL_STATE(132)] = 2790, + [SMALL_STATE(133)] = 2803, + [SMALL_STATE(134)] = 2816, + [SMALL_STATE(135)] = 2829, + [SMALL_STATE(136)] = 2842, + [SMALL_STATE(137)] = 2855, + [SMALL_STATE(138)] = 2868, + [SMALL_STATE(139)] = 2881, + [SMALL_STATE(140)] = 2894, + [SMALL_STATE(141)] = 2907, + [SMALL_STATE(142)] = 2920, + [SMALL_STATE(143)] = 2933, + [SMALL_STATE(144)] = 2946, + [SMALL_STATE(145)] = 2959, + [SMALL_STATE(146)] = 2963, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(133), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(17), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(18), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(46), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), - [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(64), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [85] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [104] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [106] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [108] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), - [134] = {.entry = {.count = 1, .reusable = false}}, SHIFT(128), - [136] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), - [138] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [152] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), - [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), - [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, .production_id = 17), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), - [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(92), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [237] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(99), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [246] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(94), - [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), - [261] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), - [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [304] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), - [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), - [310] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [312] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [314] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [318] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [320] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), - [322] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [324] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), - [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [328] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), - [334] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [344] = {.entry = {.count = 1, .reusable = false}}, SHIFT(141), - [346] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), - [348] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [350] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [352] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), - [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [362] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), - [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), + [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [63] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(44), + [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), + [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), + [106] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144), + [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [128] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), + [132] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(62), + [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [137] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(62), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [146] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(97), + [149] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, .production_id = 17), + [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [185] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [197] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(118), + [200] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), + [204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), + [206] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(14), + [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [223] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(119), + [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(45), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), + [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), + [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [251] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [258] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), + [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138), + [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), + [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), + [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4), + [313] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [327] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [331] = {.entry = {.count = 1, .reusable = false}}, SHIFT(134), + [333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), + [339] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146), + [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), + [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), + [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [351] = {.entry = {.count = 1, .reusable = false}}, SHIFT(145), + [353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), + [357] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5), + [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index c10ee09..7fb9f3d 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -33,6 +33,31 @@ foo = select(release_variable("RELEASE_TEST"), { (default)) (unset)))))) +================================================================================ +Select (no trailing comma) +================================================================================ + +foo = select(release_variable("RELEASE_TEST"), { + default: unset +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (condition + (identifier) + (interpreted_string_literal))) + (select_cases + (select_case + (select_pattern + (default)) + (unset)))))) + ================================================================================ Select (soong config variable) ================================================================================ From 16c43068ec30828c5aed11e87262c56f36782595 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 23 Dec 2024 23:08:26 -0500 Subject: [PATCH 32/39] Align queries with 'nvim-treesitter' Makes it easier to update either way. --- queries/folds.scm | 2 -- queries/highlights.scm | 48 ++++++++++++++++-------------------------- queries/indents.scm | 14 ++++++------ queries/injections.scm | 2 -- queries/locals.scm | 2 -- 5 files changed, 26 insertions(+), 42 deletions(-) diff --git a/queries/folds.scm b/queries/folds.scm index 6f39fe9..c40ea3d 100644 --- a/queries/folds.scm +++ b/queries/folds.scm @@ -4,5 +4,3 @@ (module) (select_expression) ] @fold - -; vim: sw=2 foldmethod=marker diff --git a/queries/highlights.scm b/queries/highlights.scm index d6e66ea..4fc8854 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,41 +1,35 @@ (comment) @comment -; Operators {{{ (operator) @operator -(integer_literal ("-") @operator) -; }}} +(integer_literal + "-" @operator) -; Punctuation {{{ [ - "," - ":" + "," + ":" ] @punctuation.delimiter [ - "(" - ")" - "[" - "]" - "{" - "}" + "(" + ")" + "[" + "]" + "{" + "}" ] @punctuation.bracket -; }}} -; Literal {{{ (boolean_literal) @boolean (integer_literal) @number [ - (raw_string_literal) - (interpreted_string_literal) + (raw_string_literal) + (interpreted_string_literal) ] @string (escape_sequence) @string.escape -; }}} -; Declarations {{{ (identifier) @variable (module @@ -44,25 +38,19 @@ (module (property field: (identifier) @variable.parameter)) -; }}} -; Built-ins {{{ [ - (unset) - (default) - (any) + (unset) + (default) + (any) ] @variable.builtin -(condition - name: (identifier) @function.builtin) -; }}} -; Expressions {{{ +(condition + name: (identifier) @function.builtin) + (map_expression (property field: (identifier) @property)) (select_expression "select" @keyword.conditional) -; }}} - -; vim: sw=2 foldmethod=marker diff --git a/queries/indents.scm b/queries/indents.scm index 9eca576..8cf8adc 100644 --- a/queries/indents.scm +++ b/queries/indents.scm @@ -1,36 +1,38 @@ -; Expressions {{{ (list_expression) @indent.begin + (list_expression "]" @indent.branch) (map_expression) @indent.begin + (map_expression "}" @indent.branch) (select_expression) @indent.begin + (select_expression ")" @indent.branch) (select_value) @indent.begin + (select_value ")" @indent.branch) (select_pattern "(" @indent.begin) + (select_pattern ")" @indent.branch) (select_cases) @indent.begin + (select_cases "}" @indent.branch) -; }}} -; Declarations {{{ (module) @indent.begin + (module ")" @indent.branch) + (module "}" @indent.branch) -; }}} - -; vim: sw=2 foldmethod=marker diff --git a/queries/injections.scm b/queries/injections.scm index 9735c59..2f0e58e 100644 --- a/queries/injections.scm +++ b/queries/injections.scm @@ -1,4 +1,2 @@ ((comment) @injection.content (#set! injection.language "comment")) - -; vim: sw=2 foldmethod=marker diff --git a/queries/locals.scm b/queries/locals.scm index 089d116..c8a5a17 100644 --- a/queries/locals.scm +++ b/queries/locals.scm @@ -13,5 +13,3 @@ binding: (identifier) @local.definition.var) (identifier) @local.reference - -; vim: sw=2 foldmethod=marker From 9f5e6b01419533b8271bbeb2b1c3eff6b745dc73 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 23 Dec 2024 23:31:23 -0500 Subject: [PATCH 33/39] Bump flake inputs Remove deleted input, update generated files. --- flake.lock | 24 +- flake.nix | 2 - src/grammar.json | 6 +- src/node-types.json | 1 + src/parser.c | 5245 ++++++++++---------------------------- src/tree_sitter/alloc.h | 8 +- src/tree_sitter/array.h | 3 +- src/tree_sitter/parser.h | 81 +- tree-sitter.json | 30 + 9 files changed, 1428 insertions(+), 3972 deletions(-) create mode 100644 tree-sitter.json diff --git a/flake.lock b/flake.lock index 73db48c..3dd7acc 100644 --- a/flake.lock +++ b/flake.lock @@ -21,11 +21,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1713687659, - "narHash": "sha256-Yd8KuOBpZ0Slau/NxFhMPJI0gBxeax0vq/FD0rqKwuQ=", + "lastModified": 1741802033, + "narHash": "sha256-AOazEmkhbKnNQi0LqJdAcqPQx711L84a0Vkaos/ZW/A=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f2d7a289c5a5ece8521dd082b81ac7e4a57c2c5c", + "rev": "8c1f3147639f009f09d2bfffc64bcf8485bf3fd2", "type": "github" }, "original": { @@ -75,23 +75,17 @@ "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat", - "flake-utils": [ - "flake-utils" - ], "gitignore": "gitignore", "nixpkgs": [ "nixpkgs" - ], - "nixpkgs-stable": [ - "nixpkgs" ] }, "locked": { - "lastModified": 1713775815, - "narHash": "sha256-Wu9cdYTnGQQwtT20QQMg7jzkANKQjwBD9iccfGKkfls=", + "lastModified": 1735882644, + "narHash": "sha256-3FZAG+pGt3OElQjesCAWeMkQ7C/nB1oTHLRQ8ceP110=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "2ac4dcbf55ed43f3be0bae15e181f08a57af24a4", + "rev": "a5a961387e75ae44cc20f0a57ae463da5e959656", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 10a8258..e2d0879 100644 --- a/flake.nix +++ b/flake.nix @@ -22,9 +22,7 @@ repo = "pre-commit-hooks.nix"; ref = "master"; inputs = { - flake-utils.follows = "flake-utils"; nixpkgs.follows = "nixpkgs"; - nixpkgs-stable.follows = "nixpkgs"; }; }; }; diff --git a/src/grammar.json b/src/grammar.json index 369d802..e11517b 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1,4 +1,5 @@ { + "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json", "name": "bp", "rules": { "source_file": { @@ -1082,5 +1083,6 @@ "precedences": [], "externals": [], "inline": [], - "supertypes": [] -} + "supertypes": [], + "reserved": {} +} \ No newline at end of file diff --git a/src/node-types.json b/src/node-types.json index 16ecf61..3cf0c60 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -564,6 +564,7 @@ { "type": "source_file", "named": true, + "root": true, "fields": {}, "children": { "multiple": true, diff --git a/src/parser.c b/src/parser.c index bf2a2bd..18a1669 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,10 +1,12 @@ +/* Automatically generated by tree-sitter v0.25.1 */ + #include "tree_sitter/parser.h" #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif -#define LANGUAGE_VERSION 14 +#define LANGUAGE_VERSION 15 #define STATE_COUNT 147 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 67 @@ -13,7 +15,9 @@ #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 12 #define MAX_ALIAS_SEQUENCE_LENGTH 6 +#define MAX_RESERVED_WORD_SET_SIZE 0 #define PRODUCTION_ID_COUNT 19 +#define SUPERTYPE_COUNT 0 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -526,7 +530,7 @@ static const char * const ts_field_names[] = { [field_value] = "value", }; -static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { +static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [1] = {.index = 0, .length = 2}, [2] = {.index = 2, .length = 3}, [3] = {.index = 5, .length = 1}, @@ -770,2843 +774,197 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [146] = 146, }; -static inline bool sym_identifier_character_set_1(int32_t c) { - return (c < 43514 - ? (c < 4193 - ? (c < 2707 - ? (c < 1994 - ? (c < 931 - ? (c < 748 - ? (c < 192 - ? (c < 170 - ? (c < '_' - ? (c >= 'A' && c <= 'Z') - : c <= 'z') - : (c <= 170 || (c < 186 - ? c == 181 - : c <= 186))) - : (c <= 214 || (c < 710 - ? (c < 248 - ? (c >= 216 && c <= 246) - : c <= 705) - : (c <= 721 || (c >= 736 && c <= 740))))) - : (c <= 748 || (c < 895 - ? (c < 886 - ? (c < 880 - ? c == 750 - : c <= 884) - : (c <= 887 || (c >= 891 && c <= 893))) - : (c <= 895 || (c < 908 - ? (c < 904 - ? c == 902 - : c <= 906) - : (c <= 908 || (c >= 910 && c <= 929))))))) - : (c <= 1013 || (c < 1649 - ? (c < 1376 - ? (c < 1329 - ? (c < 1162 - ? (c >= 1015 && c <= 1153) - : c <= 1327) - : (c <= 1366 || c == 1369)) - : (c <= 1416 || (c < 1568 - ? (c < 1519 - ? (c >= 1488 && c <= 1514) - : c <= 1522) - : (c <= 1610 || (c >= 1646 && c <= 1647))))) - : (c <= 1747 || (c < 1791 - ? (c < 1774 - ? (c < 1765 - ? c == 1749 - : c <= 1766) - : (c <= 1775 || (c >= 1786 && c <= 1788))) - : (c <= 1791 || (c < 1869 - ? (c < 1810 - ? c == 1808 - : c <= 1839) - : (c <= 1957 || c == 1969)))))))) - : (c <= 2026 || (c < 2482 - ? (c < 2208 - ? (c < 2088 - ? (c < 2048 - ? (c < 2042 - ? (c >= 2036 && c <= 2037) - : c <= 2042) - : (c <= 2069 || (c < 2084 - ? c == 2074 - : c <= 2084))) - : (c <= 2088 || (c < 2160 - ? (c < 2144 - ? (c >= 2112 && c <= 2136) - : c <= 2154) - : (c <= 2183 || (c >= 2185 && c <= 2190))))) - : (c <= 2249 || (c < 2417 - ? (c < 2384 - ? (c < 2365 - ? (c >= 2308 && c <= 2361) - : c <= 2365) - : (c <= 2384 || (c >= 2392 && c <= 2401))) - : (c <= 2432 || (c < 2451 - ? (c < 2447 - ? (c >= 2437 && c <= 2444) - : c <= 2448) - : (c <= 2472 || (c >= 2474 && c <= 2480))))))) - : (c <= 2482 || (c < 2579 - ? (c < 2527 - ? (c < 2510 - ? (c < 2493 - ? (c >= 2486 && c <= 2489) - : c <= 2493) - : (c <= 2510 || (c >= 2524 && c <= 2525))) - : (c <= 2529 || (c < 2565 - ? (c < 2556 - ? (c >= 2544 && c <= 2545) - : c <= 2556) - : (c <= 2570 || (c >= 2575 && c <= 2576))))) - : (c <= 2600 || (c < 2649 - ? (c < 2613 - ? (c < 2610 - ? (c >= 2602 && c <= 2608) - : c <= 2611) - : (c <= 2614 || (c >= 2616 && c <= 2617))) - : (c <= 2652 || (c < 2693 - ? (c < 2674 - ? c == 2654 - : c <= 2676) - : (c <= 2701 || (c >= 2703 && c <= 2705))))))))))) - : (c <= 2728 || (c < 3242 - ? (c < 2962 - ? (c < 2858 - ? (c < 2784 - ? (c < 2741 - ? (c < 2738 - ? (c >= 2730 && c <= 2736) - : c <= 2739) - : (c <= 2745 || (c < 2768 - ? c == 2749 - : c <= 2768))) - : (c <= 2785 || (c < 2831 - ? (c < 2821 - ? c == 2809 - : c <= 2828) - : (c <= 2832 || (c >= 2835 && c <= 2856))))) - : (c <= 2864 || (c < 2911 - ? (c < 2877 - ? (c < 2869 - ? (c >= 2866 && c <= 2867) - : c <= 2873) - : (c <= 2877 || (c >= 2908 && c <= 2909))) - : (c <= 2913 || (c < 2949 - ? (c < 2947 - ? c == 2929 - : c <= 2947) - : (c <= 2954 || (c >= 2958 && c <= 2960))))))) - : (c <= 2965 || (c < 3090 - ? (c < 2984 - ? (c < 2974 - ? (c < 2972 - ? (c >= 2969 && c <= 2970) - : c <= 2972) - : (c <= 2975 || (c >= 2979 && c <= 2980))) - : (c <= 2986 || (c < 3077 - ? (c < 3024 - ? (c >= 2990 && c <= 3001) - : c <= 3024) - : (c <= 3084 || (c >= 3086 && c <= 3088))))) - : (c <= 3112 || (c < 3168 - ? (c < 3160 - ? (c < 3133 - ? (c >= 3114 && c <= 3129) - : c <= 3133) - : (c <= 3162 || c == 3165)) - : (c <= 3169 || (c < 3214 - ? (c < 3205 - ? c == 3200 - : c <= 3212) - : (c <= 3216 || (c >= 3218 && c <= 3240))))))))) - : (c <= 3251 || (c < 3648 - ? (c < 3412 - ? (c < 3332 - ? (c < 3293 - ? (c < 3261 - ? (c >= 3253 && c <= 3257) - : c <= 3261) - : (c <= 3294 || (c < 3313 - ? (c >= 3296 && c <= 3297) - : c <= 3314))) - : (c <= 3340 || (c < 3389 - ? (c < 3346 - ? (c >= 3342 && c <= 3344) - : c <= 3386) - : (c <= 3389 || c == 3406)))) - : (c <= 3414 || (c < 3507 - ? (c < 3461 - ? (c < 3450 - ? (c >= 3423 && c <= 3425) - : c <= 3455) - : (c <= 3478 || (c >= 3482 && c <= 3505))) - : (c <= 3515 || (c < 3585 - ? (c < 3520 - ? c == 3517 - : c <= 3526) - : (c <= 3632 || c == 3634)))))) - : (c <= 3654 || (c < 3782 - ? (c < 3749 - ? (c < 3718 - ? (c < 3716 - ? (c >= 3713 && c <= 3714) - : c <= 3716) - : (c <= 3722 || (c >= 3724 && c <= 3747))) - : (c <= 3749 || (c < 3773 - ? (c < 3762 - ? (c >= 3751 && c <= 3760) - : c <= 3762) - : (c <= 3773 || (c >= 3776 && c <= 3780))))) - : (c <= 3782 || (c < 3976 - ? (c < 3904 - ? (c < 3840 - ? (c >= 3804 && c <= 3807) - : c <= 3840) - : (c <= 3911 || (c >= 3913 && c <= 3948))) - : (c <= 3980 || (c < 4176 - ? (c < 4159 - ? (c >= 4096 && c <= 4138) - : c <= 4159) - : (c <= 4181 || (c >= 4186 && c <= 4189))))))))))))) - : (c <= 4193 || (c < 8134 - ? (c < 6176 - ? (c < 4808 - ? (c < 4688 - ? (c < 4295 - ? (c < 4213 - ? (c < 4206 - ? (c >= 4197 && c <= 4198) - : c <= 4208) - : (c <= 4225 || (c < 4256 - ? c == 4238 - : c <= 4293))) - : (c <= 4295 || (c < 4348 - ? (c < 4304 - ? c == 4301 - : c <= 4346) - : (c <= 4680 || (c >= 4682 && c <= 4685))))) - : (c <= 4694 || (c < 4752 - ? (c < 4704 - ? (c < 4698 - ? c == 4696 - : c <= 4701) - : (c <= 4744 || (c >= 4746 && c <= 4749))) - : (c <= 4784 || (c < 4800 - ? (c < 4792 - ? (c >= 4786 && c <= 4789) - : c <= 4798) - : (c <= 4800 || (c >= 4802 && c <= 4805))))))) - : (c <= 4822 || (c < 5792 - ? (c < 5024 - ? (c < 4888 - ? (c < 4882 - ? (c >= 4824 && c <= 4880) - : c <= 4885) - : (c <= 4954 || (c >= 4992 && c <= 5007))) - : (c <= 5109 || (c < 5743 - ? (c < 5121 - ? (c >= 5112 && c <= 5117) - : c <= 5740) - : (c <= 5759 || (c >= 5761 && c <= 5786))))) - : (c <= 5866 || (c < 5984 - ? (c < 5919 - ? (c < 5888 - ? (c >= 5870 && c <= 5880) - : c <= 5905) - : (c <= 5937 || (c >= 5952 && c <= 5969))) - : (c <= 5996 || (c < 6103 - ? (c < 6016 - ? (c >= 5998 && c <= 6000) - : c <= 6067) - : (c <= 6103 || c == 6108)))))))) - : (c <= 6264 || (c < 7312 - ? (c < 6823 - ? (c < 6512 - ? (c < 6320 - ? (c < 6314 - ? (c >= 6272 && c <= 6312) - : c <= 6314) - : (c <= 6389 || (c < 6480 - ? (c >= 6400 && c <= 6430) - : c <= 6509))) - : (c <= 6516 || (c < 6656 - ? (c < 6576 - ? (c >= 6528 && c <= 6571) - : c <= 6601) - : (c <= 6678 || (c >= 6688 && c <= 6740))))) - : (c <= 6823 || (c < 7098 - ? (c < 7043 - ? (c < 6981 - ? (c >= 6917 && c <= 6963) - : c <= 6988) - : (c <= 7072 || (c >= 7086 && c <= 7087))) - : (c <= 7141 || (c < 7258 - ? (c < 7245 - ? (c >= 7168 && c <= 7203) - : c <= 7247) - : (c <= 7293 || (c >= 7296 && c <= 7304))))))) - : (c <= 7354 || (c < 8008 - ? (c < 7418 - ? (c < 7406 - ? (c < 7401 - ? (c >= 7357 && c <= 7359) - : c <= 7404) - : (c <= 7411 || (c >= 7413 && c <= 7414))) - : (c <= 7418 || (c < 7960 - ? (c < 7680 - ? (c >= 7424 && c <= 7615) - : c <= 7957) - : (c <= 7965 || (c >= 7968 && c <= 8005))))) - : (c <= 8013 || (c < 8031 - ? (c < 8027 - ? (c < 8025 - ? (c >= 8016 && c <= 8023) - : c <= 8025) - : (c <= 8027 || c == 8029)) - : (c <= 8061 || (c < 8126 - ? (c < 8118 - ? (c >= 8064 && c <= 8116) - : c <= 8124) - : (c <= 8126 || (c >= 8130 && c <= 8132))))))))))) - : (c <= 8140 || (c < 12337 - ? (c < 8544 - ? (c < 8458 - ? (c < 8305 - ? (c < 8160 - ? (c < 8150 - ? (c >= 8144 && c <= 8147) - : c <= 8155) - : (c <= 8172 || (c < 8182 - ? (c >= 8178 && c <= 8180) - : c <= 8188))) - : (c <= 8305 || (c < 8450 - ? (c < 8336 - ? c == 8319 - : c <= 8348) - : (c <= 8450 || c == 8455)))) - : (c <= 8467 || (c < 8488 - ? (c < 8484 - ? (c < 8472 - ? c == 8469 - : c <= 8477) - : (c <= 8484 || c == 8486)) - : (c <= 8488 || (c < 8517 - ? (c < 8508 - ? (c >= 8490 && c <= 8505) - : c <= 8511) - : (c <= 8521 || c == 8526)))))) - : (c <= 8584 || (c < 11680 - ? (c < 11559 - ? (c < 11506 - ? (c < 11499 - ? (c >= 11264 && c <= 11492) - : c <= 11502) - : (c <= 11507 || (c >= 11520 && c <= 11557))) - : (c <= 11559 || (c < 11631 - ? (c < 11568 - ? c == 11565 - : c <= 11623) - : (c <= 11631 || (c >= 11648 && c <= 11670))))) - : (c <= 11686 || (c < 11720 - ? (c < 11704 - ? (c < 11696 - ? (c >= 11688 && c <= 11694) - : c <= 11702) - : (c <= 11710 || (c >= 11712 && c <= 11718))) - : (c <= 11726 || (c < 12293 - ? (c < 11736 - ? (c >= 11728 && c <= 11734) - : c <= 11742) - : (c <= 12295 || (c >= 12321 && c <= 12329))))))))) - : (c <= 12341 || (c < 42891 - ? (c < 19968 - ? (c < 12549 - ? (c < 12445 - ? (c < 12353 - ? (c >= 12344 && c <= 12348) - : c <= 12438) - : (c <= 12447 || (c < 12540 - ? (c >= 12449 && c <= 12538) - : c <= 12543))) - : (c <= 12591 || (c < 12784 - ? (c < 12704 - ? (c >= 12593 && c <= 12686) - : c <= 12735) - : (c <= 12799 || (c >= 13312 && c <= 19903))))) - : (c <= 42124 || (c < 42560 - ? (c < 42512 - ? (c < 42240 - ? (c >= 42192 && c <= 42237) - : c <= 42508) - : (c <= 42527 || (c >= 42538 && c <= 42539))) - : (c <= 42606 || (c < 42775 - ? (c < 42656 - ? (c >= 42623 && c <= 42653) - : c <= 42735) - : (c <= 42783 || (c >= 42786 && c <= 42888))))))) - : (c <= 42954 || (c < 43250 - ? (c < 43011 - ? (c < 42965 - ? (c < 42963 - ? (c >= 42960 && c <= 42961) - : c <= 42963) - : (c <= 42969 || (c >= 42994 && c <= 43009))) - : (c <= 43013 || (c < 43072 - ? (c < 43020 - ? (c >= 43015 && c <= 43018) - : c <= 43042) - : (c <= 43123 || (c >= 43138 && c <= 43187))))) - : (c <= 43255 || (c < 43360 - ? (c < 43274 - ? (c < 43261 - ? c == 43259 - : c <= 43262) - : (c <= 43301 || (c >= 43312 && c <= 43334))) - : (c <= 43388 || (c < 43488 - ? (c < 43471 - ? (c >= 43396 && c <= 43442) - : c <= 43471) - : (c <= 43492 || (c >= 43494 && c <= 43503))))))))))))))) - : (c <= 43518 || (c < 70727 - ? (c < 66956 - ? (c < 64914 - ? (c < 43868 - ? (c < 43714 - ? (c < 43646 - ? (c < 43588 - ? (c < 43584 - ? (c >= 43520 && c <= 43560) - : c <= 43586) - : (c <= 43595 || (c < 43642 - ? (c >= 43616 && c <= 43638) - : c <= 43642))) - : (c <= 43695 || (c < 43705 - ? (c < 43701 - ? c == 43697 - : c <= 43702) - : (c <= 43709 || c == 43712)))) - : (c <= 43714 || (c < 43785 - ? (c < 43762 - ? (c < 43744 - ? (c >= 43739 && c <= 43741) - : c <= 43754) - : (c <= 43764 || (c >= 43777 && c <= 43782))) - : (c <= 43790 || (c < 43816 - ? (c < 43808 - ? (c >= 43793 && c <= 43798) - : c <= 43814) - : (c <= 43822 || (c >= 43824 && c <= 43866))))))) - : (c <= 43881 || (c < 64287 - ? (c < 63744 - ? (c < 55216 - ? (c < 44032 - ? (c >= 43888 && c <= 44002) - : c <= 55203) - : (c <= 55238 || (c >= 55243 && c <= 55291))) - : (c <= 64109 || (c < 64275 - ? (c < 64256 - ? (c >= 64112 && c <= 64217) - : c <= 64262) - : (c <= 64279 || c == 64285)))) - : (c <= 64296 || (c < 64323 - ? (c < 64318 - ? (c < 64312 - ? (c >= 64298 && c <= 64310) - : c <= 64316) - : (c <= 64318 || (c >= 64320 && c <= 64321))) - : (c <= 64324 || (c < 64612 - ? (c < 64467 - ? (c >= 64326 && c <= 64433) - : c <= 64605) - : (c <= 64829 || (c >= 64848 && c <= 64911))))))))) - : (c <= 64967 || (c < 65599 - ? (c < 65382 - ? (c < 65147 - ? (c < 65139 - ? (c < 65137 - ? (c >= 65008 && c <= 65017) - : c <= 65137) - : (c <= 65139 || (c < 65145 - ? c == 65143 - : c <= 65145))) - : (c <= 65147 || (c < 65313 - ? (c < 65151 - ? c == 65149 - : c <= 65276) - : (c <= 65338 || (c >= 65345 && c <= 65370))))) - : (c <= 65437 || (c < 65498 - ? (c < 65482 - ? (c < 65474 - ? (c >= 65440 && c <= 65470) - : c <= 65479) - : (c <= 65487 || (c >= 65490 && c <= 65495))) - : (c <= 65500 || (c < 65576 - ? (c < 65549 - ? (c >= 65536 && c <= 65547) - : c <= 65574) - : (c <= 65594 || (c >= 65596 && c <= 65597))))))) - : (c <= 65613 || (c < 66464 - ? (c < 66208 - ? (c < 65856 - ? (c < 65664 - ? (c >= 65616 && c <= 65629) - : c <= 65786) - : (c <= 65908 || (c >= 66176 && c <= 66204))) - : (c <= 66256 || (c < 66384 - ? (c < 66349 - ? (c >= 66304 && c <= 66335) - : c <= 66378) - : (c <= 66421 || (c >= 66432 && c <= 66461))))) - : (c <= 66499 || (c < 66776 - ? (c < 66560 - ? (c < 66513 - ? (c >= 66504 && c <= 66511) - : c <= 66517) - : (c <= 66717 || (c >= 66736 && c <= 66771))) - : (c <= 66811 || (c < 66928 - ? (c < 66864 - ? (c >= 66816 && c <= 66855) - : c <= 66915) - : (c <= 66938 || (c >= 66940 && c <= 66954))))))))))) - : (c <= 66962 || (c < 68864 - ? (c < 67828 - ? (c < 67506 - ? (c < 67072 - ? (c < 66979 - ? (c < 66967 - ? (c >= 66964 && c <= 66965) - : c <= 66977) - : (c <= 66993 || (c < 67003 - ? (c >= 66995 && c <= 67001) - : c <= 67004))) - : (c <= 67382 || (c < 67456 - ? (c < 67424 - ? (c >= 67392 && c <= 67413) - : c <= 67431) - : (c <= 67461 || (c >= 67463 && c <= 67504))))) - : (c <= 67514 || (c < 67644 - ? (c < 67594 - ? (c < 67592 - ? (c >= 67584 && c <= 67589) - : c <= 67592) - : (c <= 67637 || (c >= 67639 && c <= 67640))) - : (c <= 67644 || (c < 67712 - ? (c < 67680 - ? (c >= 67647 && c <= 67669) - : c <= 67702) - : (c <= 67742 || (c >= 67808 && c <= 67826))))))) - : (c <= 67829 || (c < 68224 - ? (c < 68096 - ? (c < 67968 - ? (c < 67872 - ? (c >= 67840 && c <= 67861) - : c <= 67897) - : (c <= 68023 || (c >= 68030 && c <= 68031))) - : (c <= 68096 || (c < 68121 - ? (c < 68117 - ? (c >= 68112 && c <= 68115) - : c <= 68119) - : (c <= 68149 || (c >= 68192 && c <= 68220))))) - : (c <= 68252 || (c < 68448 - ? (c < 68352 - ? (c < 68297 - ? (c >= 68288 && c <= 68295) - : c <= 68324) - : (c <= 68405 || (c >= 68416 && c <= 68437))) - : (c <= 68466 || (c < 68736 - ? (c < 68608 - ? (c >= 68480 && c <= 68497) - : c <= 68680) - : (c <= 68786 || (c >= 68800 && c <= 68850))))))))) - : (c <= 68899 || (c < 70106 - ? (c < 69749 - ? (c < 69488 - ? (c < 69376 - ? (c < 69296 - ? (c >= 69248 && c <= 69289) - : c <= 69297) - : (c <= 69404 || (c < 69424 - ? c == 69415 - : c <= 69445))) - : (c <= 69505 || (c < 69635 - ? (c < 69600 - ? (c >= 69552 && c <= 69572) - : c <= 69622) - : (c <= 69687 || (c >= 69745 && c <= 69746))))) - : (c <= 69749 || (c < 69959 - ? (c < 69891 - ? (c < 69840 - ? (c >= 69763 && c <= 69807) - : c <= 69864) - : (c <= 69926 || c == 69956)) - : (c <= 69959 || (c < 70019 - ? (c < 70006 - ? (c >= 69968 && c <= 70002) - : c <= 70006) - : (c <= 70066 || (c >= 70081 && c <= 70084))))))) - : (c <= 70106 || (c < 70405 - ? (c < 70280 - ? (c < 70163 - ? (c < 70144 - ? c == 70108 - : c <= 70161) - : (c <= 70187 || (c >= 70272 && c <= 70278))) - : (c <= 70280 || (c < 70303 - ? (c < 70287 - ? (c >= 70282 && c <= 70285) - : c <= 70301) - : (c <= 70312 || (c >= 70320 && c <= 70366))))) - : (c <= 70412 || (c < 70453 - ? (c < 70442 - ? (c < 70419 - ? (c >= 70415 && c <= 70416) - : c <= 70440) - : (c <= 70448 || (c >= 70450 && c <= 70451))) - : (c <= 70457 || (c < 70493 - ? (c < 70480 - ? c == 70461 - : c <= 70480) - : (c <= 70497 || (c >= 70656 && c <= 70708))))))))))))) - : (c <= 70730 || (c < 119894 - ? (c < 73056 - ? (c < 72001 - ? (c < 71424 - ? (c < 71128 - ? (c < 70852 - ? (c < 70784 - ? (c >= 70751 && c <= 70753) - : c <= 70831) - : (c <= 70853 || (c < 71040 - ? c == 70855 - : c <= 71086))) - : (c <= 71131 || (c < 71296 - ? (c < 71236 - ? (c >= 71168 && c <= 71215) - : c <= 71236) - : (c <= 71338 || c == 71352)))) - : (c <= 71450 || (c < 71945 - ? (c < 71840 - ? (c < 71680 - ? (c >= 71488 && c <= 71494) - : c <= 71723) - : (c <= 71903 || (c >= 71935 && c <= 71942))) - : (c <= 71945 || (c < 71960 - ? (c < 71957 - ? (c >= 71948 && c <= 71955) - : c <= 71958) - : (c <= 71983 || c == 71999)))))) - : (c <= 72001 || (c < 72349 - ? (c < 72192 - ? (c < 72161 - ? (c < 72106 - ? (c >= 72096 && c <= 72103) - : c <= 72144) - : (c <= 72161 || c == 72163)) - : (c <= 72192 || (c < 72272 - ? (c < 72250 - ? (c >= 72203 && c <= 72242) - : c <= 72250) - : (c <= 72272 || (c >= 72284 && c <= 72329))))) - : (c <= 72349 || (c < 72818 - ? (c < 72714 - ? (c < 72704 - ? (c >= 72368 && c <= 72440) - : c <= 72712) - : (c <= 72750 || c == 72768)) - : (c <= 72847 || (c < 72971 - ? (c < 72968 - ? (c >= 72960 && c <= 72966) - : c <= 72969) - : (c <= 73008 || c == 73030)))))))) - : (c <= 73061 || (c < 93952 - ? (c < 82944 - ? (c < 73728 - ? (c < 73112 - ? (c < 73066 - ? (c >= 73063 && c <= 73064) - : c <= 73097) - : (c <= 73112 || (c < 73648 - ? (c >= 73440 && c <= 73458) - : c <= 73648))) - : (c <= 74649 || (c < 77712 - ? (c < 74880 - ? (c >= 74752 && c <= 74862) - : c <= 75075) - : (c <= 77808 || (c >= 77824 && c <= 78894))))) - : (c <= 83526 || (c < 92928 - ? (c < 92784 - ? (c < 92736 - ? (c >= 92160 && c <= 92728) - : c <= 92766) - : (c <= 92862 || (c >= 92880 && c <= 92909))) - : (c <= 92975 || (c < 93053 - ? (c < 93027 - ? (c >= 92992 && c <= 92995) - : c <= 93047) - : (c <= 93071 || (c >= 93760 && c <= 93823))))))) - : (c <= 94026 || (c < 110589 - ? (c < 94208 - ? (c < 94176 - ? (c < 94099 - ? c == 94032 - : c <= 94111) - : (c <= 94177 || c == 94179)) - : (c <= 100343 || (c < 110576 - ? (c < 101632 - ? (c >= 100352 && c <= 101589) - : c <= 101640) - : (c <= 110579 || (c >= 110581 && c <= 110587))))) - : (c <= 110590 || (c < 113664 - ? (c < 110948 - ? (c < 110928 - ? (c >= 110592 && c <= 110882) - : c <= 110930) - : (c <= 110951 || (c >= 110960 && c <= 111355))) - : (c <= 113770 || (c < 113808 - ? (c < 113792 - ? (c >= 113776 && c <= 113788) - : c <= 113800) - : (c <= 113817 || (c >= 119808 && c <= 119892))))))))))) - : (c <= 119964 || (c < 125259 - ? (c < 120572 - ? (c < 120086 - ? (c < 119995 - ? (c < 119973 - ? (c < 119970 - ? (c >= 119966 && c <= 119967) - : c <= 119970) - : (c <= 119974 || (c < 119982 - ? (c >= 119977 && c <= 119980) - : c <= 119993))) - : (c <= 119995 || (c < 120071 - ? (c < 120005 - ? (c >= 119997 && c <= 120003) - : c <= 120069) - : (c <= 120074 || (c >= 120077 && c <= 120084))))) - : (c <= 120092 || (c < 120138 - ? (c < 120128 - ? (c < 120123 - ? (c >= 120094 && c <= 120121) - : c <= 120126) - : (c <= 120132 || c == 120134)) - : (c <= 120144 || (c < 120514 - ? (c < 120488 - ? (c >= 120146 && c <= 120485) - : c <= 120512) - : (c <= 120538 || (c >= 120540 && c <= 120570))))))) - : (c <= 120596 || (c < 123191 - ? (c < 120714 - ? (c < 120656 - ? (c < 120630 - ? (c >= 120598 && c <= 120628) - : c <= 120654) - : (c <= 120686 || (c >= 120688 && c <= 120712))) - : (c <= 120744 || (c < 122624 - ? (c < 120772 - ? (c >= 120746 && c <= 120770) - : c <= 120779) - : (c <= 122654 || (c >= 123136 && c <= 123180))))) - : (c <= 123197 || (c < 124904 - ? (c < 123584 - ? (c < 123536 - ? c == 123214 - : c <= 123565) - : (c <= 123627 || (c >= 124896 && c <= 124902))) - : (c <= 124907 || (c < 124928 - ? (c < 124912 - ? (c >= 124909 && c <= 124910) - : c <= 124926) - : (c <= 125124 || (c >= 125184 && c <= 125251))))))))) - : (c <= 125259 || (c < 126559 - ? (c < 126535 - ? (c < 126505 - ? (c < 126497 - ? (c < 126469 - ? (c >= 126464 && c <= 126467) - : c <= 126495) - : (c <= 126498 || (c < 126503 - ? c == 126500 - : c <= 126503))) - : (c <= 126514 || (c < 126523 - ? (c < 126521 - ? (c >= 126516 && c <= 126519) - : c <= 126521) - : (c <= 126523 || c == 126530)))) - : (c <= 126535 || (c < 126548 - ? (c < 126541 - ? (c < 126539 - ? c == 126537 - : c <= 126539) - : (c <= 126543 || (c >= 126545 && c <= 126546))) - : (c <= 126548 || (c < 126555 - ? (c < 126553 - ? c == 126551 - : c <= 126553) - : (c <= 126555 || c == 126557)))))) - : (c <= 126559 || (c < 126625 - ? (c < 126580 - ? (c < 126567 - ? (c < 126564 - ? (c >= 126561 && c <= 126562) - : c <= 126564) - : (c <= 126570 || (c >= 126572 && c <= 126578))) - : (c <= 126583 || (c < 126592 - ? (c < 126590 - ? (c >= 126585 && c <= 126588) - : c <= 126590) - : (c <= 126601 || (c >= 126603 && c <= 126619))))) - : (c <= 126627 || (c < 177984 - ? (c < 131072 - ? (c < 126635 - ? (c >= 126629 && c <= 126633) - : c <= 126651) - : (c <= 173791 || (c >= 173824 && c <= 177976))) - : (c <= 178205 || (c < 194560 - ? (c < 183984 - ? (c >= 178208 && c <= 183969) - : c <= 191456) - : (c <= 195101 || (c >= 196608 && c <= 201546))))))))))))))))); -} +const TSCharacterRange sym_identifier_character_set_1[] = { + {'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {0xaa, 0xaa}, {0xb5, 0xb5}, {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6}, + {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x370, 0x374}, {0x376, 0x377}, {0x37b, 0x37d}, + {0x37f, 0x37f}, {0x386, 0x386}, {0x388, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481}, {0x48a, 0x52f}, + {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2}, {0x620, 0x64a}, {0x66e, 0x66f}, {0x671, 0x6d3}, + {0x6d5, 0x6d5}, {0x6e5, 0x6e6}, {0x6ee, 0x6ef}, {0x6fa, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x710}, {0x712, 0x72f}, {0x74d, 0x7a5}, + {0x7b1, 0x7b1}, {0x7ca, 0x7ea}, {0x7f4, 0x7f5}, {0x7fa, 0x7fa}, {0x800, 0x815}, {0x81a, 0x81a}, {0x824, 0x824}, {0x828, 0x828}, + {0x840, 0x858}, {0x860, 0x86a}, {0x870, 0x887}, {0x889, 0x88e}, {0x8a0, 0x8c9}, {0x904, 0x939}, {0x93d, 0x93d}, {0x950, 0x950}, + {0x958, 0x961}, {0x971, 0x980}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8}, {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, + {0x9bd, 0x9bd}, {0x9ce, 0x9ce}, {0x9dc, 0x9dd}, {0x9df, 0x9e1}, {0x9f0, 0x9f1}, {0x9fc, 0x9fc}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, + {0xa13, 0xa28}, {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39}, {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa72, 0xa74}, + {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabd, 0xabd}, {0xad0, 0xad0}, + {0xae0, 0xae1}, {0xaf9, 0xaf9}, {0xb05, 0xb0c}, {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33}, {0xb35, 0xb39}, + {0xb3d, 0xb3d}, {0xb5c, 0xb5d}, {0xb5f, 0xb61}, {0xb71, 0xb71}, {0xb83, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90}, {0xb92, 0xb95}, + {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb9}, {0xbd0, 0xbd0}, {0xc05, 0xc0c}, + {0xc0e, 0xc10}, {0xc12, 0xc28}, {0xc2a, 0xc39}, {0xc3d, 0xc3d}, {0xc58, 0xc5a}, {0xc5d, 0xc5d}, {0xc60, 0xc61}, {0xc80, 0xc80}, + {0xc85, 0xc8c}, {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbd, 0xcbd}, {0xcdd, 0xcde}, {0xce0, 0xce1}, + {0xcf1, 0xcf2}, {0xd04, 0xd0c}, {0xd0e, 0xd10}, {0xd12, 0xd3a}, {0xd3d, 0xd3d}, {0xd4e, 0xd4e}, {0xd54, 0xd56}, {0xd5f, 0xd61}, + {0xd7a, 0xd7f}, {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xe01, 0xe30}, {0xe32, 0xe32}, + {0xe40, 0xe46}, {0xe81, 0xe82}, {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3}, {0xea5, 0xea5}, {0xea7, 0xeb0}, {0xeb2, 0xeb2}, + {0xebd, 0xebd}, {0xec0, 0xec4}, {0xec6, 0xec6}, {0xedc, 0xedf}, {0xf00, 0xf00}, {0xf40, 0xf47}, {0xf49, 0xf6c}, {0xf88, 0xf8c}, + {0x1000, 0x102a}, {0x103f, 0x103f}, {0x1050, 0x1055}, {0x105a, 0x105d}, {0x1061, 0x1061}, {0x1065, 0x1066}, {0x106e, 0x1070}, {0x1075, 0x1081}, + {0x108e, 0x108e}, {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa}, {0x10fc, 0x1248}, {0x124a, 0x124d}, {0x1250, 0x1256}, + {0x1258, 0x1258}, {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0}, {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, + {0x12c2, 0x12c5}, {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a}, {0x1380, 0x138f}, {0x13a0, 0x13f5}, {0x13f8, 0x13fd}, + {0x1401, 0x166c}, {0x166f, 0x167f}, {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x16ee, 0x16f8}, {0x1700, 0x1711}, {0x171f, 0x1731}, {0x1740, 0x1751}, + {0x1760, 0x176c}, {0x176e, 0x1770}, {0x1780, 0x17b3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dc}, {0x1820, 0x1878}, {0x1880, 0x18a8}, {0x18aa, 0x18aa}, + {0x18b0, 0x18f5}, {0x1900, 0x191e}, {0x1950, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab}, {0x19b0, 0x19c9}, {0x1a00, 0x1a16}, {0x1a20, 0x1a54}, + {0x1aa7, 0x1aa7}, {0x1b05, 0x1b33}, {0x1b45, 0x1b4c}, {0x1b83, 0x1ba0}, {0x1bae, 0x1baf}, {0x1bba, 0x1be5}, {0x1c00, 0x1c23}, {0x1c4d, 0x1c4f}, + {0x1c5a, 0x1c7d}, {0x1c80, 0x1c8a}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf}, {0x1ce9, 0x1cec}, {0x1cee, 0x1cf3}, {0x1cf5, 0x1cf6}, {0x1cfa, 0x1cfa}, + {0x1d00, 0x1dbf}, {0x1e00, 0x1f15}, {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57}, {0x1f59, 0x1f59}, {0x1f5b, 0x1f5b}, + {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fcc}, {0x1fd0, 0x1fd3}, + {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x2071, 0x2071}, {0x207f, 0x207f}, {0x2090, 0x209c}, {0x2102, 0x2102}, + {0x2107, 0x2107}, {0x210a, 0x2113}, {0x2115, 0x2115}, {0x2118, 0x211d}, {0x2124, 0x2124}, {0x2126, 0x2126}, {0x2128, 0x2128}, {0x212a, 0x2139}, + {0x213c, 0x213f}, {0x2145, 0x2149}, {0x214e, 0x214e}, {0x2160, 0x2188}, {0x2c00, 0x2ce4}, {0x2ceb, 0x2cee}, {0x2cf2, 0x2cf3}, {0x2d00, 0x2d25}, + {0x2d27, 0x2d27}, {0x2d2d, 0x2d2d}, {0x2d30, 0x2d67}, {0x2d6f, 0x2d6f}, {0x2d80, 0x2d96}, {0x2da0, 0x2da6}, {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, + {0x2db8, 0x2dbe}, {0x2dc0, 0x2dc6}, {0x2dc8, 0x2dce}, {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde}, {0x3005, 0x3007}, {0x3021, 0x3029}, {0x3031, 0x3035}, + {0x3038, 0x303c}, {0x3041, 0x3096}, {0x309d, 0x309f}, {0x30a1, 0x30fa}, {0x30fc, 0x30ff}, {0x3105, 0x312f}, {0x3131, 0x318e}, {0x31a0, 0x31bf}, + {0x31f0, 0x31ff}, {0x3400, 0x4dbf}, {0x4e00, 0xa48c}, {0xa4d0, 0xa4fd}, {0xa500, 0xa60c}, {0xa610, 0xa61f}, {0xa62a, 0xa62b}, {0xa640, 0xa66e}, + {0xa67f, 0xa69d}, {0xa6a0, 0xa6ef}, {0xa717, 0xa71f}, {0xa722, 0xa788}, {0xa78b, 0xa7cd}, {0xa7d0, 0xa7d1}, {0xa7d3, 0xa7d3}, {0xa7d5, 0xa7dc}, + {0xa7f2, 0xa801}, {0xa803, 0xa805}, {0xa807, 0xa80a}, {0xa80c, 0xa822}, {0xa840, 0xa873}, {0xa882, 0xa8b3}, {0xa8f2, 0xa8f7}, {0xa8fb, 0xa8fb}, + {0xa8fd, 0xa8fe}, {0xa90a, 0xa925}, {0xa930, 0xa946}, {0xa960, 0xa97c}, {0xa984, 0xa9b2}, {0xa9cf, 0xa9cf}, {0xa9e0, 0xa9e4}, {0xa9e6, 0xa9ef}, + {0xa9fa, 0xa9fe}, {0xaa00, 0xaa28}, {0xaa40, 0xaa42}, {0xaa44, 0xaa4b}, {0xaa60, 0xaa76}, {0xaa7a, 0xaa7a}, {0xaa7e, 0xaaaf}, {0xaab1, 0xaab1}, + {0xaab5, 0xaab6}, {0xaab9, 0xaabd}, {0xaac0, 0xaac0}, {0xaac2, 0xaac2}, {0xaadb, 0xaadd}, {0xaae0, 0xaaea}, {0xaaf2, 0xaaf4}, {0xab01, 0xab06}, + {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, {0xab28, 0xab2e}, {0xab30, 0xab5a}, {0xab5c, 0xab69}, {0xab70, 0xabe2}, {0xac00, 0xd7a3}, + {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb}, {0xf900, 0xfa6d}, {0xfa70, 0xfad9}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb1d}, {0xfb1f, 0xfb28}, + {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e}, {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfc5d}, {0xfc64, 0xfd3d}, + {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdf9}, {0xfe71, 0xfe71}, {0xfe73, 0xfe73}, {0xfe77, 0xfe77}, {0xfe79, 0xfe79}, {0xfe7b, 0xfe7b}, + {0xfe7d, 0xfe7d}, {0xfe7f, 0xfefc}, {0xff21, 0xff3a}, {0xff41, 0xff5a}, {0xff66, 0xff9d}, {0xffa0, 0xffbe}, {0xffc2, 0xffc7}, {0xffca, 0xffcf}, + {0xffd2, 0xffd7}, {0xffda, 0xffdc}, {0x10000, 0x1000b}, {0x1000d, 0x10026}, {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d}, {0x10050, 0x1005d}, + {0x10080, 0x100fa}, {0x10140, 0x10174}, {0x10280, 0x1029c}, {0x102a0, 0x102d0}, {0x10300, 0x1031f}, {0x1032d, 0x1034a}, {0x10350, 0x10375}, {0x10380, 0x1039d}, + {0x103a0, 0x103c3}, {0x103c8, 0x103cf}, {0x103d1, 0x103d5}, {0x10400, 0x1049d}, {0x104b0, 0x104d3}, {0x104d8, 0x104fb}, {0x10500, 0x10527}, {0x10530, 0x10563}, + {0x10570, 0x1057a}, {0x1057c, 0x1058a}, {0x1058c, 0x10592}, {0x10594, 0x10595}, {0x10597, 0x105a1}, {0x105a3, 0x105b1}, {0x105b3, 0x105b9}, {0x105bb, 0x105bc}, + {0x105c0, 0x105f3}, {0x10600, 0x10736}, {0x10740, 0x10755}, {0x10760, 0x10767}, {0x10780, 0x10785}, {0x10787, 0x107b0}, {0x107b2, 0x107ba}, {0x10800, 0x10805}, + {0x10808, 0x10808}, {0x1080a, 0x10835}, {0x10837, 0x10838}, {0x1083c, 0x1083c}, {0x1083f, 0x10855}, {0x10860, 0x10876}, {0x10880, 0x1089e}, {0x108e0, 0x108f2}, + {0x108f4, 0x108f5}, {0x10900, 0x10915}, {0x10920, 0x10939}, {0x10980, 0x109b7}, {0x109be, 0x109bf}, {0x10a00, 0x10a00}, {0x10a10, 0x10a13}, {0x10a15, 0x10a17}, + {0x10a19, 0x10a35}, {0x10a60, 0x10a7c}, {0x10a80, 0x10a9c}, {0x10ac0, 0x10ac7}, {0x10ac9, 0x10ae4}, {0x10b00, 0x10b35}, {0x10b40, 0x10b55}, {0x10b60, 0x10b72}, + {0x10b80, 0x10b91}, {0x10c00, 0x10c48}, {0x10c80, 0x10cb2}, {0x10cc0, 0x10cf2}, {0x10d00, 0x10d23}, {0x10d4a, 0x10d65}, {0x10d6f, 0x10d85}, {0x10e80, 0x10ea9}, + {0x10eb0, 0x10eb1}, {0x10ec2, 0x10ec4}, {0x10f00, 0x10f1c}, {0x10f27, 0x10f27}, {0x10f30, 0x10f45}, {0x10f70, 0x10f81}, {0x10fb0, 0x10fc4}, {0x10fe0, 0x10ff6}, + {0x11003, 0x11037}, {0x11071, 0x11072}, {0x11075, 0x11075}, {0x11083, 0x110af}, {0x110d0, 0x110e8}, {0x11103, 0x11126}, {0x11144, 0x11144}, {0x11147, 0x11147}, + {0x11150, 0x11172}, {0x11176, 0x11176}, {0x11183, 0x111b2}, {0x111c1, 0x111c4}, {0x111da, 0x111da}, {0x111dc, 0x111dc}, {0x11200, 0x11211}, {0x11213, 0x1122b}, + {0x1123f, 0x11240}, {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128a, 0x1128d}, {0x1128f, 0x1129d}, {0x1129f, 0x112a8}, {0x112b0, 0x112de}, {0x11305, 0x1130c}, + {0x1130f, 0x11310}, {0x11313, 0x11328}, {0x1132a, 0x11330}, {0x11332, 0x11333}, {0x11335, 0x11339}, {0x1133d, 0x1133d}, {0x11350, 0x11350}, {0x1135d, 0x11361}, + {0x11380, 0x11389}, {0x1138b, 0x1138b}, {0x1138e, 0x1138e}, {0x11390, 0x113b5}, {0x113b7, 0x113b7}, {0x113d1, 0x113d1}, {0x113d3, 0x113d3}, {0x11400, 0x11434}, + {0x11447, 0x1144a}, {0x1145f, 0x11461}, {0x11480, 0x114af}, {0x114c4, 0x114c5}, {0x114c7, 0x114c7}, {0x11580, 0x115ae}, {0x115d8, 0x115db}, {0x11600, 0x1162f}, + {0x11644, 0x11644}, {0x11680, 0x116aa}, {0x116b8, 0x116b8}, {0x11700, 0x1171a}, {0x11740, 0x11746}, {0x11800, 0x1182b}, {0x118a0, 0x118df}, {0x118ff, 0x11906}, + {0x11909, 0x11909}, {0x1190c, 0x11913}, {0x11915, 0x11916}, {0x11918, 0x1192f}, {0x1193f, 0x1193f}, {0x11941, 0x11941}, {0x119a0, 0x119a7}, {0x119aa, 0x119d0}, + {0x119e1, 0x119e1}, {0x119e3, 0x119e3}, {0x11a00, 0x11a00}, {0x11a0b, 0x11a32}, {0x11a3a, 0x11a3a}, {0x11a50, 0x11a50}, {0x11a5c, 0x11a89}, {0x11a9d, 0x11a9d}, + {0x11ab0, 0x11af8}, {0x11bc0, 0x11be0}, {0x11c00, 0x11c08}, {0x11c0a, 0x11c2e}, {0x11c40, 0x11c40}, {0x11c72, 0x11c8f}, {0x11d00, 0x11d06}, {0x11d08, 0x11d09}, + {0x11d0b, 0x11d30}, {0x11d46, 0x11d46}, {0x11d60, 0x11d65}, {0x11d67, 0x11d68}, {0x11d6a, 0x11d89}, {0x11d98, 0x11d98}, {0x11ee0, 0x11ef2}, {0x11f02, 0x11f02}, + {0x11f04, 0x11f10}, {0x11f12, 0x11f33}, {0x11fb0, 0x11fb0}, {0x12000, 0x12399}, {0x12400, 0x1246e}, {0x12480, 0x12543}, {0x12f90, 0x12ff0}, {0x13000, 0x1342f}, + {0x13441, 0x13446}, {0x13460, 0x143fa}, {0x14400, 0x14646}, {0x16100, 0x1611d}, {0x16800, 0x16a38}, {0x16a40, 0x16a5e}, {0x16a70, 0x16abe}, {0x16ad0, 0x16aed}, + {0x16b00, 0x16b2f}, {0x16b40, 0x16b43}, {0x16b63, 0x16b77}, {0x16b7d, 0x16b8f}, {0x16d40, 0x16d6c}, {0x16e40, 0x16e7f}, {0x16f00, 0x16f4a}, {0x16f50, 0x16f50}, + {0x16f93, 0x16f9f}, {0x16fe0, 0x16fe1}, {0x16fe3, 0x16fe3}, {0x17000, 0x187f7}, {0x18800, 0x18cd5}, {0x18cff, 0x18d08}, {0x1aff0, 0x1aff3}, {0x1aff5, 0x1affb}, + {0x1affd, 0x1affe}, {0x1b000, 0x1b122}, {0x1b132, 0x1b132}, {0x1b150, 0x1b152}, {0x1b155, 0x1b155}, {0x1b164, 0x1b167}, {0x1b170, 0x1b2fb}, {0x1bc00, 0x1bc6a}, + {0x1bc70, 0x1bc7c}, {0x1bc80, 0x1bc88}, {0x1bc90, 0x1bc99}, {0x1d400, 0x1d454}, {0x1d456, 0x1d49c}, {0x1d49e, 0x1d49f}, {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6}, + {0x1d4a9, 0x1d4ac}, {0x1d4ae, 0x1d4b9}, {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3}, {0x1d4c5, 0x1d505}, {0x1d507, 0x1d50a}, {0x1d50d, 0x1d514}, {0x1d516, 0x1d51c}, + {0x1d51e, 0x1d539}, {0x1d53b, 0x1d53e}, {0x1d540, 0x1d544}, {0x1d546, 0x1d546}, {0x1d54a, 0x1d550}, {0x1d552, 0x1d6a5}, {0x1d6a8, 0x1d6c0}, {0x1d6c2, 0x1d6da}, + {0x1d6dc, 0x1d6fa}, {0x1d6fc, 0x1d714}, {0x1d716, 0x1d734}, {0x1d736, 0x1d74e}, {0x1d750, 0x1d76e}, {0x1d770, 0x1d788}, {0x1d78a, 0x1d7a8}, {0x1d7aa, 0x1d7c2}, + {0x1d7c4, 0x1d7cb}, {0x1df00, 0x1df1e}, {0x1df25, 0x1df2a}, {0x1e030, 0x1e06d}, {0x1e100, 0x1e12c}, {0x1e137, 0x1e13d}, {0x1e14e, 0x1e14e}, {0x1e290, 0x1e2ad}, + {0x1e2c0, 0x1e2eb}, {0x1e4d0, 0x1e4eb}, {0x1e5d0, 0x1e5ed}, {0x1e5f0, 0x1e5f0}, {0x1e7e0, 0x1e7e6}, {0x1e7e8, 0x1e7eb}, {0x1e7ed, 0x1e7ee}, {0x1e7f0, 0x1e7fe}, + {0x1e800, 0x1e8c4}, {0x1e900, 0x1e943}, {0x1e94b, 0x1e94b}, {0x1ee00, 0x1ee03}, {0x1ee05, 0x1ee1f}, {0x1ee21, 0x1ee22}, {0x1ee24, 0x1ee24}, {0x1ee27, 0x1ee27}, + {0x1ee29, 0x1ee32}, {0x1ee34, 0x1ee37}, {0x1ee39, 0x1ee39}, {0x1ee3b, 0x1ee3b}, {0x1ee42, 0x1ee42}, {0x1ee47, 0x1ee47}, {0x1ee49, 0x1ee49}, {0x1ee4b, 0x1ee4b}, + {0x1ee4d, 0x1ee4f}, {0x1ee51, 0x1ee52}, {0x1ee54, 0x1ee54}, {0x1ee57, 0x1ee57}, {0x1ee59, 0x1ee59}, {0x1ee5b, 0x1ee5b}, {0x1ee5d, 0x1ee5d}, {0x1ee5f, 0x1ee5f}, + {0x1ee61, 0x1ee62}, {0x1ee64, 0x1ee64}, {0x1ee67, 0x1ee6a}, {0x1ee6c, 0x1ee72}, {0x1ee74, 0x1ee77}, {0x1ee79, 0x1ee7c}, {0x1ee7e, 0x1ee7e}, {0x1ee80, 0x1ee89}, + {0x1ee8b, 0x1ee9b}, {0x1eea1, 0x1eea3}, {0x1eea5, 0x1eea9}, {0x1eeab, 0x1eebb}, {0x20000, 0x2a6df}, {0x2a700, 0x2b739}, {0x2b740, 0x2b81d}, {0x2b820, 0x2cea1}, + {0x2ceb0, 0x2ebe0}, {0x2ebf0, 0x2ee5d}, {0x2f800, 0x2fa1d}, {0x30000, 0x3134a}, {0x31350, 0x323af}, +}; -static inline bool sym_identifier_character_set_2(int32_t c) { - return (c < 43616 - ? (c < 3782 - ? (c < 2748 - ? (c < 2045 - ? (c < 1015 - ? (c < 710 - ? (c < 181 - ? (c < '_' - ? (c < 'A' - ? (c >= '0' && c <= '9') - : c <= 'Z') - : (c <= '_' || (c < 170 - ? (c >= 'b' && c <= 'z') - : c <= 170))) - : (c <= 181 || (c < 192 - ? (c < 186 - ? c == 183 - : c <= 186) - : (c <= 214 || (c < 248 - ? (c >= 216 && c <= 246) - : c <= 705))))) - : (c <= 721 || (c < 891 - ? (c < 750 - ? (c < 748 - ? (c >= 736 && c <= 740) - : c <= 748) - : (c <= 750 || (c < 886 - ? (c >= 768 && c <= 884) - : c <= 887))) - : (c <= 893 || (c < 908 - ? (c < 902 - ? c == 895 - : c <= 906) - : (c <= 908 || (c < 931 - ? (c >= 910 && c <= 929) - : c <= 1013))))))) - : (c <= 1153 || (c < 1519 - ? (c < 1425 - ? (c < 1329 - ? (c < 1162 - ? (c >= 1155 && c <= 1159) - : c <= 1327) - : (c <= 1366 || (c < 1376 - ? c == 1369 - : c <= 1416))) - : (c <= 1469 || (c < 1476 - ? (c < 1473 - ? c == 1471 - : c <= 1474) - : (c <= 1477 || (c < 1488 - ? c == 1479 - : c <= 1514))))) - : (c <= 1522 || (c < 1770 - ? (c < 1646 - ? (c < 1568 - ? (c >= 1552 && c <= 1562) - : c <= 1641) - : (c <= 1747 || (c < 1759 - ? (c >= 1749 && c <= 1756) - : c <= 1768))) - : (c <= 1788 || (c < 1869 - ? (c < 1808 - ? c == 1791 - : c <= 1866) - : (c <= 1969 || (c < 2042 - ? (c >= 1984 && c <= 2037) - : c <= 2042))))))))) - : (c <= 2045 || (c < 2558 - ? (c < 2451 - ? (c < 2200 - ? (c < 2144 - ? (c < 2112 - ? (c >= 2048 && c <= 2093) - : c <= 2139) - : (c <= 2154 || (c < 2185 - ? (c >= 2160 && c <= 2183) - : c <= 2190))) - : (c <= 2273 || (c < 2417 - ? (c < 2406 - ? (c >= 2275 && c <= 2403) - : c <= 2415) - : (c <= 2435 || (c < 2447 - ? (c >= 2437 && c <= 2444) - : c <= 2448))))) - : (c <= 2472 || (c < 2507 - ? (c < 2486 - ? (c < 2482 - ? (c >= 2474 && c <= 2480) - : c <= 2482) - : (c <= 2489 || (c < 2503 - ? (c >= 2492 && c <= 2500) - : c <= 2504))) - : (c <= 2510 || (c < 2527 - ? (c < 2524 - ? c == 2519 - : c <= 2525) - : (c <= 2531 || (c < 2556 - ? (c >= 2534 && c <= 2545) - : c <= 2556))))))) - : (c <= 2558 || (c < 2635 - ? (c < 2610 - ? (c < 2575 - ? (c < 2565 - ? (c >= 2561 && c <= 2563) - : c <= 2570) - : (c <= 2576 || (c < 2602 - ? (c >= 2579 && c <= 2600) - : c <= 2608))) - : (c <= 2611 || (c < 2620 - ? (c < 2616 - ? (c >= 2613 && c <= 2614) - : c <= 2617) - : (c <= 2620 || (c < 2631 - ? (c >= 2622 && c <= 2626) - : c <= 2632))))) - : (c <= 2637 || (c < 2693 - ? (c < 2654 - ? (c < 2649 - ? c == 2641 - : c <= 2652) - : (c <= 2654 || (c < 2689 - ? (c >= 2662 && c <= 2677) - : c <= 2691))) - : (c <= 2701 || (c < 2730 - ? (c < 2707 - ? (c >= 2703 && c <= 2705) - : c <= 2728) - : (c <= 2736 || (c < 2741 - ? (c >= 2738 && c <= 2739) - : c <= 2745))))))))))) - : (c <= 2757 || (c < 3168 - ? (c < 2958 - ? (c < 2866 - ? (c < 2809 - ? (c < 2768 - ? (c < 2763 - ? (c >= 2759 && c <= 2761) - : c <= 2765) - : (c <= 2768 || (c < 2790 - ? (c >= 2784 && c <= 2787) - : c <= 2799))) - : (c <= 2815 || (c < 2831 - ? (c < 2821 - ? (c >= 2817 && c <= 2819) - : c <= 2828) - : (c <= 2832 || (c < 2858 - ? (c >= 2835 && c <= 2856) - : c <= 2864))))) - : (c <= 2867 || (c < 2908 - ? (c < 2887 - ? (c < 2876 - ? (c >= 2869 && c <= 2873) - : c <= 2884) - : (c <= 2888 || (c < 2901 - ? (c >= 2891 && c <= 2893) - : c <= 2903))) - : (c <= 2909 || (c < 2929 - ? (c < 2918 - ? (c >= 2911 && c <= 2915) - : c <= 2927) - : (c <= 2929 || (c < 2949 - ? (c >= 2946 && c <= 2947) - : c <= 2954))))))) - : (c <= 2960 || (c < 3031 - ? (c < 2984 - ? (c < 2972 - ? (c < 2969 - ? (c >= 2962 && c <= 2965) - : c <= 2970) - : (c <= 2972 || (c < 2979 - ? (c >= 2974 && c <= 2975) - : c <= 2980))) - : (c <= 2986 || (c < 3014 - ? (c < 3006 - ? (c >= 2990 && c <= 3001) - : c <= 3010) - : (c <= 3016 || (c < 3024 - ? (c >= 3018 && c <= 3021) - : c <= 3024))))) - : (c <= 3031 || (c < 3132 - ? (c < 3086 - ? (c < 3072 - ? (c >= 3046 && c <= 3055) - : c <= 3084) - : (c <= 3088 || (c < 3114 - ? (c >= 3090 && c <= 3112) - : c <= 3129))) - : (c <= 3140 || (c < 3157 - ? (c < 3146 - ? (c >= 3142 && c <= 3144) - : c <= 3149) - : (c <= 3158 || (c < 3165 - ? (c >= 3160 && c <= 3162) - : c <= 3165))))))))) - : (c <= 3171 || (c < 3450 - ? (c < 3293 - ? (c < 3242 - ? (c < 3205 - ? (c < 3200 - ? (c >= 3174 && c <= 3183) - : c <= 3203) - : (c <= 3212 || (c < 3218 - ? (c >= 3214 && c <= 3216) - : c <= 3240))) - : (c <= 3251 || (c < 3270 - ? (c < 3260 - ? (c >= 3253 && c <= 3257) - : c <= 3268) - : (c <= 3272 || (c < 3285 - ? (c >= 3274 && c <= 3277) - : c <= 3286))))) - : (c <= 3294 || (c < 3346 - ? (c < 3313 - ? (c < 3302 - ? (c >= 3296 && c <= 3299) - : c <= 3311) - : (c <= 3314 || (c < 3342 - ? (c >= 3328 && c <= 3340) - : c <= 3344))) - : (c <= 3396 || (c < 3412 - ? (c < 3402 - ? (c >= 3398 && c <= 3400) - : c <= 3406) - : (c <= 3415 || (c < 3430 - ? (c >= 3423 && c <= 3427) - : c <= 3439))))))) - : (c <= 3455 || (c < 3570 - ? (c < 3520 - ? (c < 3482 - ? (c < 3461 - ? (c >= 3457 && c <= 3459) - : c <= 3478) - : (c <= 3505 || (c < 3517 - ? (c >= 3507 && c <= 3515) - : c <= 3517))) - : (c <= 3526 || (c < 3542 - ? (c < 3535 - ? c == 3530 - : c <= 3540) - : (c <= 3542 || (c < 3558 - ? (c >= 3544 && c <= 3551) - : c <= 3567))))) - : (c <= 3571 || (c < 3718 - ? (c < 3664 - ? (c < 3648 - ? (c >= 3585 && c <= 3642) - : c <= 3662) - : (c <= 3673 || (c < 3716 - ? (c >= 3713 && c <= 3714) - : c <= 3716))) - : (c <= 3722 || (c < 3751 - ? (c < 3749 - ? (c >= 3724 && c <= 3747) - : c <= 3749) - : (c <= 3773 || (c >= 3776 && c <= 3780))))))))))))) - : (c <= 3782 || (c < 8025 - ? (c < 5888 - ? (c < 4688 - ? (c < 3953 - ? (c < 3872 - ? (c < 3804 - ? (c < 3792 - ? (c >= 3784 && c <= 3789) - : c <= 3801) - : (c <= 3807 || (c < 3864 - ? c == 3840 - : c <= 3865))) - : (c <= 3881 || (c < 3897 - ? (c < 3895 - ? c == 3893 - : c <= 3895) - : (c <= 3897 || (c < 3913 - ? (c >= 3902 && c <= 3911) - : c <= 3948))))) - : (c <= 3972 || (c < 4256 - ? (c < 4038 - ? (c < 3993 - ? (c >= 3974 && c <= 3991) - : c <= 4028) - : (c <= 4038 || (c < 4176 - ? (c >= 4096 && c <= 4169) - : c <= 4253))) - : (c <= 4293 || (c < 4304 - ? (c < 4301 - ? c == 4295 - : c <= 4301) - : (c <= 4346 || (c < 4682 - ? (c >= 4348 && c <= 4680) - : c <= 4685))))))) - : (c <= 4694 || (c < 4882 - ? (c < 4786 - ? (c < 4704 - ? (c < 4698 - ? c == 4696 - : c <= 4701) - : (c <= 4744 || (c < 4752 - ? (c >= 4746 && c <= 4749) - : c <= 4784))) - : (c <= 4789 || (c < 4802 - ? (c < 4800 - ? (c >= 4792 && c <= 4798) - : c <= 4800) - : (c <= 4805 || (c < 4824 - ? (c >= 4808 && c <= 4822) - : c <= 4880))))) - : (c <= 4885 || (c < 5112 - ? (c < 4969 - ? (c < 4957 - ? (c >= 4888 && c <= 4954) - : c <= 4959) - : (c <= 4977 || (c < 5024 - ? (c >= 4992 && c <= 5007) - : c <= 5109))) - : (c <= 5117 || (c < 5761 - ? (c < 5743 - ? (c >= 5121 && c <= 5740) - : c <= 5759) - : (c <= 5786 || (c < 5870 - ? (c >= 5792 && c <= 5866) - : c <= 5880))))))))) - : (c <= 5909 || (c < 6688 - ? (c < 6176 - ? (c < 6016 - ? (c < 5984 - ? (c < 5952 - ? (c >= 5919 && c <= 5940) - : c <= 5971) - : (c <= 5996 || (c < 6002 - ? (c >= 5998 && c <= 6000) - : c <= 6003))) - : (c <= 6099 || (c < 6112 - ? (c < 6108 - ? c == 6103 - : c <= 6109) - : (c <= 6121 || (c < 6159 - ? (c >= 6155 && c <= 6157) - : c <= 6169))))) - : (c <= 6264 || (c < 6470 - ? (c < 6400 - ? (c < 6320 - ? (c >= 6272 && c <= 6314) - : c <= 6389) - : (c <= 6430 || (c < 6448 - ? (c >= 6432 && c <= 6443) - : c <= 6459))) - : (c <= 6509 || (c < 6576 - ? (c < 6528 - ? (c >= 6512 && c <= 6516) - : c <= 6571) - : (c <= 6601 || (c < 6656 - ? (c >= 6608 && c <= 6618) - : c <= 6683))))))) - : (c <= 6750 || (c < 7232 - ? (c < 6847 - ? (c < 6800 - ? (c < 6783 - ? (c >= 6752 && c <= 6780) - : c <= 6793) - : (c <= 6809 || (c < 6832 - ? c == 6823 - : c <= 6845))) - : (c <= 6862 || (c < 7019 - ? (c < 6992 - ? (c >= 6912 && c <= 6988) - : c <= 7001) - : (c <= 7027 || (c < 7168 - ? (c >= 7040 && c <= 7155) - : c <= 7223))))) - : (c <= 7241 || (c < 7380 - ? (c < 7312 - ? (c < 7296 - ? (c >= 7245 && c <= 7293) - : c <= 7304) - : (c <= 7354 || (c < 7376 - ? (c >= 7357 && c <= 7359) - : c <= 7378))) - : (c <= 7418 || (c < 7968 - ? (c < 7960 - ? (c >= 7424 && c <= 7957) - : c <= 7965) - : (c <= 8005 || (c < 8016 - ? (c >= 8008 && c <= 8013) - : c <= 8023))))))))))) - : (c <= 8025 || (c < 11720 - ? (c < 8458 - ? (c < 8178 - ? (c < 8126 - ? (c < 8031 - ? (c < 8029 - ? c == 8027 - : c <= 8029) - : (c <= 8061 || (c < 8118 - ? (c >= 8064 && c <= 8116) - : c <= 8124))) - : (c <= 8126 || (c < 8144 - ? (c < 8134 - ? (c >= 8130 && c <= 8132) - : c <= 8140) - : (c <= 8147 || (c < 8160 - ? (c >= 8150 && c <= 8155) - : c <= 8172))))) - : (c <= 8180 || (c < 8336 - ? (c < 8276 - ? (c < 8255 - ? (c >= 8182 && c <= 8188) - : c <= 8256) - : (c <= 8276 || (c < 8319 - ? c == 8305 - : c <= 8319))) - : (c <= 8348 || (c < 8421 - ? (c < 8417 - ? (c >= 8400 && c <= 8412) - : c <= 8417) - : (c <= 8432 || (c < 8455 - ? c == 8450 - : c <= 8455))))))) - : (c <= 8467 || (c < 11499 - ? (c < 8490 - ? (c < 8484 - ? (c < 8472 - ? c == 8469 - : c <= 8477) - : (c <= 8484 || (c < 8488 - ? c == 8486 - : c <= 8488))) - : (c <= 8505 || (c < 8526 - ? (c < 8517 - ? (c >= 8508 && c <= 8511) - : c <= 8521) - : (c <= 8526 || (c < 11264 - ? (c >= 8544 && c <= 8584) - : c <= 11492))))) - : (c <= 11507 || (c < 11647 - ? (c < 11565 - ? (c < 11559 - ? (c >= 11520 && c <= 11557) - : c <= 11559) - : (c <= 11565 || (c < 11631 - ? (c >= 11568 && c <= 11623) - : c <= 11631))) - : (c <= 11670 || (c < 11696 - ? (c < 11688 - ? (c >= 11680 && c <= 11686) - : c <= 11694) - : (c <= 11702 || (c < 11712 - ? (c >= 11704 && c <= 11710) - : c <= 11718))))))))) - : (c <= 11726 || (c < 42623 - ? (c < 12540 - ? (c < 12337 - ? (c < 11744 - ? (c < 11736 - ? (c >= 11728 && c <= 11734) - : c <= 11742) - : (c <= 11775 || (c < 12321 - ? (c >= 12293 && c <= 12295) - : c <= 12335))) - : (c <= 12341 || (c < 12441 - ? (c < 12353 - ? (c >= 12344 && c <= 12348) - : c <= 12438) - : (c <= 12442 || (c < 12449 - ? (c >= 12445 && c <= 12447) - : c <= 12538))))) - : (c <= 12543 || (c < 19968 - ? (c < 12704 - ? (c < 12593 - ? (c >= 12549 && c <= 12591) - : c <= 12686) - : (c <= 12735 || (c < 13312 - ? (c >= 12784 && c <= 12799) - : c <= 19903))) - : (c <= 42124 || (c < 42512 - ? (c < 42240 - ? (c >= 42192 && c <= 42237) - : c <= 42508) - : (c <= 42539 || (c < 42612 - ? (c >= 42560 && c <= 42607) - : c <= 42621))))))) - : (c <= 42737 || (c < 43232 - ? (c < 42965 - ? (c < 42891 - ? (c < 42786 - ? (c >= 42775 && c <= 42783) - : c <= 42888) - : (c <= 42954 || (c < 42963 - ? (c >= 42960 && c <= 42961) - : c <= 42963))) - : (c <= 42969 || (c < 43072 - ? (c < 43052 - ? (c >= 42994 && c <= 43047) - : c <= 43052) - : (c <= 43123 || (c < 43216 - ? (c >= 43136 && c <= 43205) - : c <= 43225))))) - : (c <= 43255 || (c < 43471 - ? (c < 43312 - ? (c < 43261 - ? c == 43259 - : c <= 43309) - : (c <= 43347 || (c < 43392 - ? (c >= 43360 && c <= 43388) - : c <= 43456))) - : (c <= 43481 || (c < 43584 - ? (c < 43520 - ? (c >= 43488 && c <= 43518) - : c <= 43574) - : (c <= 43597 || (c >= 43600 && c <= 43609))))))))))))))) - : (c <= 43638 || (c < 71453 - ? (c < 67639 - ? (c < 65345 - ? (c < 64312 - ? (c < 43888 - ? (c < 43785 - ? (c < 43744 - ? (c < 43739 - ? (c >= 43642 && c <= 43714) - : c <= 43741) - : (c <= 43759 || (c < 43777 - ? (c >= 43762 && c <= 43766) - : c <= 43782))) - : (c <= 43790 || (c < 43816 - ? (c < 43808 - ? (c >= 43793 && c <= 43798) - : c <= 43814) - : (c <= 43822 || (c < 43868 - ? (c >= 43824 && c <= 43866) - : c <= 43881))))) - : (c <= 44010 || (c < 63744 - ? (c < 44032 - ? (c < 44016 - ? (c >= 44012 && c <= 44013) - : c <= 44025) - : (c <= 55203 || (c < 55243 - ? (c >= 55216 && c <= 55238) - : c <= 55291))) - : (c <= 64109 || (c < 64275 - ? (c < 64256 - ? (c >= 64112 && c <= 64217) - : c <= 64262) - : (c <= 64279 || (c < 64298 - ? (c >= 64285 && c <= 64296) - : c <= 64310))))))) - : (c <= 64316 || (c < 65075 - ? (c < 64612 - ? (c < 64323 - ? (c < 64320 - ? c == 64318 - : c <= 64321) - : (c <= 64324 || (c < 64467 - ? (c >= 64326 && c <= 64433) - : c <= 64605))) - : (c <= 64829 || (c < 65008 - ? (c < 64914 - ? (c >= 64848 && c <= 64911) - : c <= 64967) - : (c <= 65017 || (c < 65056 - ? (c >= 65024 && c <= 65039) - : c <= 65071))))) - : (c <= 65076 || (c < 65147 - ? (c < 65139 - ? (c < 65137 - ? (c >= 65101 && c <= 65103) - : c <= 65137) - : (c <= 65139 || (c < 65145 - ? c == 65143 - : c <= 65145))) - : (c <= 65147 || (c < 65296 - ? (c < 65151 - ? c == 65149 - : c <= 65276) - : (c <= 65305 || (c < 65343 - ? (c >= 65313 && c <= 65338) - : c <= 65343))))))))) - : (c <= 65370 || (c < 66513 - ? (c < 65664 - ? (c < 65536 - ? (c < 65482 - ? (c < 65474 - ? (c >= 65382 && c <= 65470) - : c <= 65479) - : (c <= 65487 || (c < 65498 - ? (c >= 65490 && c <= 65495) - : c <= 65500))) - : (c <= 65547 || (c < 65596 - ? (c < 65576 - ? (c >= 65549 && c <= 65574) - : c <= 65594) - : (c <= 65597 || (c < 65616 - ? (c >= 65599 && c <= 65613) - : c <= 65629))))) - : (c <= 65786 || (c < 66304 - ? (c < 66176 - ? (c < 66045 - ? (c >= 65856 && c <= 65908) - : c <= 66045) - : (c <= 66204 || (c < 66272 - ? (c >= 66208 && c <= 66256) - : c <= 66272))) - : (c <= 66335 || (c < 66432 - ? (c < 66384 - ? (c >= 66349 && c <= 66378) - : c <= 66426) - : (c <= 66461 || (c < 66504 - ? (c >= 66464 && c <= 66499) - : c <= 66511))))))) - : (c <= 66517 || (c < 66979 - ? (c < 66864 - ? (c < 66736 - ? (c < 66720 - ? (c >= 66560 && c <= 66717) - : c <= 66729) - : (c <= 66771 || (c < 66816 - ? (c >= 66776 && c <= 66811) - : c <= 66855))) - : (c <= 66915 || (c < 66956 - ? (c < 66940 - ? (c >= 66928 && c <= 66938) - : c <= 66954) - : (c <= 66962 || (c < 66967 - ? (c >= 66964 && c <= 66965) - : c <= 66977))))) - : (c <= 66993 || (c < 67456 - ? (c < 67072 - ? (c < 67003 - ? (c >= 66995 && c <= 67001) - : c <= 67004) - : (c <= 67382 || (c < 67424 - ? (c >= 67392 && c <= 67413) - : c <= 67431))) - : (c <= 67461 || (c < 67584 - ? (c < 67506 - ? (c >= 67463 && c <= 67504) - : c <= 67514) - : (c <= 67589 || (c < 67594 - ? c == 67592 - : c <= 67637))))))))))) - : (c <= 67640 || (c < 69956 - ? (c < 68448 - ? (c < 68101 - ? (c < 67828 - ? (c < 67680 - ? (c < 67647 - ? c == 67644 - : c <= 67669) - : (c <= 67702 || (c < 67808 - ? (c >= 67712 && c <= 67742) - : c <= 67826))) - : (c <= 67829 || (c < 67968 - ? (c < 67872 - ? (c >= 67840 && c <= 67861) - : c <= 67897) - : (c <= 68023 || (c < 68096 - ? (c >= 68030 && c <= 68031) - : c <= 68099))))) - : (c <= 68102 || (c < 68192 - ? (c < 68121 - ? (c < 68117 - ? (c >= 68108 && c <= 68115) - : c <= 68119) - : (c <= 68149 || (c < 68159 - ? (c >= 68152 && c <= 68154) - : c <= 68159))) - : (c <= 68220 || (c < 68297 - ? (c < 68288 - ? (c >= 68224 && c <= 68252) - : c <= 68295) - : (c <= 68326 || (c < 68416 - ? (c >= 68352 && c <= 68405) - : c <= 68437))))))) - : (c <= 68466 || (c < 69424 - ? (c < 68912 - ? (c < 68736 - ? (c < 68608 - ? (c >= 68480 && c <= 68497) - : c <= 68680) - : (c <= 68786 || (c < 68864 - ? (c >= 68800 && c <= 68850) - : c <= 68903))) - : (c <= 68921 || (c < 69296 - ? (c < 69291 - ? (c >= 69248 && c <= 69289) - : c <= 69292) - : (c <= 69297 || (c < 69415 - ? (c >= 69376 && c <= 69404) - : c <= 69415))))) - : (c <= 69456 || (c < 69759 - ? (c < 69600 - ? (c < 69552 - ? (c >= 69488 && c <= 69509) - : c <= 69572) - : (c <= 69622 || (c < 69734 - ? (c >= 69632 && c <= 69702) - : c <= 69749))) - : (c <= 69818 || (c < 69872 - ? (c < 69840 - ? c == 69826 - : c <= 69864) - : (c <= 69881 || (c < 69942 - ? (c >= 69888 && c <= 69940) - : c <= 69951))))))))) - : (c <= 69959 || (c < 70459 - ? (c < 70282 - ? (c < 70108 - ? (c < 70016 - ? (c < 70006 - ? (c >= 69968 && c <= 70003) - : c <= 70006) - : (c <= 70084 || (c < 70094 - ? (c >= 70089 && c <= 70092) - : c <= 70106))) - : (c <= 70108 || (c < 70206 - ? (c < 70163 - ? (c >= 70144 && c <= 70161) - : c <= 70199) - : (c <= 70206 || (c < 70280 - ? (c >= 70272 && c <= 70278) - : c <= 70280))))) - : (c <= 70285 || (c < 70405 - ? (c < 70320 - ? (c < 70303 - ? (c >= 70287 && c <= 70301) - : c <= 70312) - : (c <= 70378 || (c < 70400 - ? (c >= 70384 && c <= 70393) - : c <= 70403))) - : (c <= 70412 || (c < 70442 - ? (c < 70419 - ? (c >= 70415 && c <= 70416) - : c <= 70440) - : (c <= 70448 || (c < 70453 - ? (c >= 70450 && c <= 70451) - : c <= 70457))))))) - : (c <= 70468 || (c < 70855 - ? (c < 70502 - ? (c < 70480 - ? (c < 70475 - ? (c >= 70471 && c <= 70472) - : c <= 70477) - : (c <= 70480 || (c < 70493 - ? c == 70487 - : c <= 70499))) - : (c <= 70508 || (c < 70736 - ? (c < 70656 - ? (c >= 70512 && c <= 70516) - : c <= 70730) - : (c <= 70745 || (c < 70784 - ? (c >= 70750 && c <= 70753) - : c <= 70853))))) - : (c <= 70855 || (c < 71236 - ? (c < 71096 - ? (c < 71040 - ? (c >= 70864 && c <= 70873) - : c <= 71093) - : (c <= 71104 || (c < 71168 - ? (c >= 71128 && c <= 71133) - : c <= 71232))) - : (c <= 71236 || (c < 71360 - ? (c < 71296 - ? (c >= 71248 && c <= 71257) - : c <= 71352) - : (c <= 71369 || (c >= 71424 && c <= 71450))))))))))))) - : (c <= 71467 || (c < 119973 - ? (c < 77824 - ? (c < 72760 - ? (c < 72016 - ? (c < 71945 - ? (c < 71680 - ? (c < 71488 - ? (c >= 71472 && c <= 71481) - : c <= 71494) - : (c <= 71738 || (c < 71935 - ? (c >= 71840 && c <= 71913) - : c <= 71942))) - : (c <= 71945 || (c < 71960 - ? (c < 71957 - ? (c >= 71948 && c <= 71955) - : c <= 71958) - : (c <= 71989 || (c < 71995 - ? (c >= 71991 && c <= 71992) - : c <= 72003))))) - : (c <= 72025 || (c < 72263 - ? (c < 72154 - ? (c < 72106 - ? (c >= 72096 && c <= 72103) - : c <= 72151) - : (c <= 72161 || (c < 72192 - ? (c >= 72163 && c <= 72164) - : c <= 72254))) - : (c <= 72263 || (c < 72368 - ? (c < 72349 - ? (c >= 72272 && c <= 72345) - : c <= 72349) - : (c <= 72440 || (c < 72714 - ? (c >= 72704 && c <= 72712) - : c <= 72758))))))) - : (c <= 72768 || (c < 73056 - ? (c < 72968 - ? (c < 72850 - ? (c < 72818 - ? (c >= 72784 && c <= 72793) - : c <= 72847) - : (c <= 72871 || (c < 72960 - ? (c >= 72873 && c <= 72886) - : c <= 72966))) - : (c <= 72969 || (c < 73020 - ? (c < 73018 - ? (c >= 72971 && c <= 73014) - : c <= 73018) - : (c <= 73021 || (c < 73040 - ? (c >= 73023 && c <= 73031) - : c <= 73049))))) - : (c <= 73061 || (c < 73440 - ? (c < 73104 - ? (c < 73066 - ? (c >= 73063 && c <= 73064) - : c <= 73102) - : (c <= 73105 || (c < 73120 - ? (c >= 73107 && c <= 73112) - : c <= 73129))) - : (c <= 73462 || (c < 74752 - ? (c < 73728 - ? c == 73648 - : c <= 74649) - : (c <= 74862 || (c < 77712 - ? (c >= 74880 && c <= 75075) - : c <= 77808))))))))) - : (c <= 78894 || (c < 110576 - ? (c < 93027 - ? (c < 92864 - ? (c < 92736 - ? (c < 92160 - ? (c >= 82944 && c <= 83526) - : c <= 92728) - : (c <= 92766 || (c < 92784 - ? (c >= 92768 && c <= 92777) - : c <= 92862))) - : (c <= 92873 || (c < 92928 - ? (c < 92912 - ? (c >= 92880 && c <= 92909) - : c <= 92916) - : (c <= 92982 || (c < 93008 - ? (c >= 92992 && c <= 92995) - : c <= 93017))))) - : (c <= 93047 || (c < 94176 - ? (c < 93952 - ? (c < 93760 - ? (c >= 93053 && c <= 93071) - : c <= 93823) - : (c <= 94026 || (c < 94095 - ? (c >= 94031 && c <= 94087) - : c <= 94111))) - : (c <= 94177 || (c < 94208 - ? (c < 94192 - ? (c >= 94179 && c <= 94180) - : c <= 94193) - : (c <= 100343 || (c < 101632 - ? (c >= 100352 && c <= 101589) - : c <= 101640))))))) - : (c <= 110579 || (c < 118528 - ? (c < 110960 - ? (c < 110592 - ? (c < 110589 - ? (c >= 110581 && c <= 110587) - : c <= 110590) - : (c <= 110882 || (c < 110948 - ? (c >= 110928 && c <= 110930) - : c <= 110951))) - : (c <= 111355 || (c < 113792 - ? (c < 113776 - ? (c >= 113664 && c <= 113770) - : c <= 113788) - : (c <= 113800 || (c < 113821 - ? (c >= 113808 && c <= 113817) - : c <= 113822))))) - : (c <= 118573 || (c < 119210 - ? (c < 119149 - ? (c < 119141 - ? (c >= 118576 && c <= 118598) - : c <= 119145) - : (c <= 119154 || (c < 119173 - ? (c >= 119163 && c <= 119170) - : c <= 119179))) - : (c <= 119213 || (c < 119894 - ? (c < 119808 - ? (c >= 119362 && c <= 119364) - : c <= 119892) - : (c <= 119964 || (c < 119970 - ? (c >= 119966 && c <= 119967) - : c <= 119970))))))))))) - : (c <= 119974 || (c < 124912 - ? (c < 120746 - ? (c < 120134 - ? (c < 120071 - ? (c < 119995 - ? (c < 119982 - ? (c >= 119977 && c <= 119980) - : c <= 119993) - : (c <= 119995 || (c < 120005 - ? (c >= 119997 && c <= 120003) - : c <= 120069))) - : (c <= 120074 || (c < 120094 - ? (c < 120086 - ? (c >= 120077 && c <= 120084) - : c <= 120092) - : (c <= 120121 || (c < 120128 - ? (c >= 120123 && c <= 120126) - : c <= 120132))))) - : (c <= 120134 || (c < 120572 - ? (c < 120488 - ? (c < 120146 - ? (c >= 120138 && c <= 120144) - : c <= 120485) - : (c <= 120512 || (c < 120540 - ? (c >= 120514 && c <= 120538) - : c <= 120570))) - : (c <= 120596 || (c < 120656 - ? (c < 120630 - ? (c >= 120598 && c <= 120628) - : c <= 120654) - : (c <= 120686 || (c < 120714 - ? (c >= 120688 && c <= 120712) - : c <= 120744))))))) - : (c <= 120770 || (c < 122907 - ? (c < 121476 - ? (c < 121344 - ? (c < 120782 - ? (c >= 120772 && c <= 120779) - : c <= 120831) - : (c <= 121398 || (c < 121461 - ? (c >= 121403 && c <= 121452) - : c <= 121461))) - : (c <= 121476 || (c < 122624 - ? (c < 121505 - ? (c >= 121499 && c <= 121503) - : c <= 121519) - : (c <= 122654 || (c < 122888 - ? (c >= 122880 && c <= 122886) - : c <= 122904))))) - : (c <= 122913 || (c < 123214 - ? (c < 123136 - ? (c < 122918 - ? (c >= 122915 && c <= 122916) - : c <= 122922) - : (c <= 123180 || (c < 123200 - ? (c >= 123184 && c <= 123197) - : c <= 123209))) - : (c <= 123214 || (c < 124896 - ? (c < 123584 - ? (c >= 123536 && c <= 123566) - : c <= 123641) - : (c <= 124902 || (c < 124909 - ? (c >= 124904 && c <= 124907) - : c <= 124910))))))))) - : (c <= 124926 || (c < 126557 - ? (c < 126521 - ? (c < 126469 - ? (c < 125184 - ? (c < 125136 - ? (c >= 124928 && c <= 125124) - : c <= 125142) - : (c <= 125259 || (c < 126464 - ? (c >= 125264 && c <= 125273) - : c <= 126467))) - : (c <= 126495 || (c < 126503 - ? (c < 126500 - ? (c >= 126497 && c <= 126498) - : c <= 126500) - : (c <= 126503 || (c < 126516 - ? (c >= 126505 && c <= 126514) - : c <= 126519))))) - : (c <= 126521 || (c < 126541 - ? (c < 126535 - ? (c < 126530 - ? c == 126523 - : c <= 126530) - : (c <= 126535 || (c < 126539 - ? c == 126537 - : c <= 126539))) - : (c <= 126543 || (c < 126551 - ? (c < 126548 - ? (c >= 126545 && c <= 126546) - : c <= 126548) - : (c <= 126551 || (c < 126555 - ? c == 126553 - : c <= 126555))))))) - : (c <= 126557 || (c < 126629 - ? (c < 126580 - ? (c < 126564 - ? (c < 126561 - ? c == 126559 - : c <= 126562) - : (c <= 126564 || (c < 126572 - ? (c >= 126567 && c <= 126570) - : c <= 126578))) - : (c <= 126583 || (c < 126592 - ? (c < 126590 - ? (c >= 126585 && c <= 126588) - : c <= 126590) - : (c <= 126601 || (c < 126625 - ? (c >= 126603 && c <= 126619) - : c <= 126627))))) - : (c <= 126633 || (c < 178208 - ? (c < 131072 - ? (c < 130032 - ? (c >= 126635 && c <= 126651) - : c <= 130041) - : (c <= 173791 || (c < 177984 - ? (c >= 173824 && c <= 177976) - : c <= 178205))) - : (c <= 183969 || (c < 196608 - ? (c < 194560 - ? (c >= 183984 && c <= 191456) - : c <= 195101) - : (c <= 201546 || (c >= 917760 && c <= 917999))))))))))))))))); -} - -static inline bool sym_identifier_character_set_3(int32_t c) { - return (c < 43616 - ? (c < 3782 - ? (c < 2748 - ? (c < 2045 - ? (c < 1015 - ? (c < 710 - ? (c < 181 - ? (c < '_' - ? (c < 'A' - ? (c >= '0' && c <= '9') - : c <= 'Z') - : (c <= '_' || (c < 170 - ? (c >= 'a' && c <= 'z') - : c <= 170))) - : (c <= 181 || (c < 192 - ? (c < 186 - ? c == 183 - : c <= 186) - : (c <= 214 || (c < 248 - ? (c >= 216 && c <= 246) - : c <= 705))))) - : (c <= 721 || (c < 891 - ? (c < 750 - ? (c < 748 - ? (c >= 736 && c <= 740) - : c <= 748) - : (c <= 750 || (c < 886 - ? (c >= 768 && c <= 884) - : c <= 887))) - : (c <= 893 || (c < 908 - ? (c < 902 - ? c == 895 - : c <= 906) - : (c <= 908 || (c < 931 - ? (c >= 910 && c <= 929) - : c <= 1013))))))) - : (c <= 1153 || (c < 1519 - ? (c < 1425 - ? (c < 1329 - ? (c < 1162 - ? (c >= 1155 && c <= 1159) - : c <= 1327) - : (c <= 1366 || (c < 1376 - ? c == 1369 - : c <= 1416))) - : (c <= 1469 || (c < 1476 - ? (c < 1473 - ? c == 1471 - : c <= 1474) - : (c <= 1477 || (c < 1488 - ? c == 1479 - : c <= 1514))))) - : (c <= 1522 || (c < 1770 - ? (c < 1646 - ? (c < 1568 - ? (c >= 1552 && c <= 1562) - : c <= 1641) - : (c <= 1747 || (c < 1759 - ? (c >= 1749 && c <= 1756) - : c <= 1768))) - : (c <= 1788 || (c < 1869 - ? (c < 1808 - ? c == 1791 - : c <= 1866) - : (c <= 1969 || (c < 2042 - ? (c >= 1984 && c <= 2037) - : c <= 2042))))))))) - : (c <= 2045 || (c < 2558 - ? (c < 2451 - ? (c < 2200 - ? (c < 2144 - ? (c < 2112 - ? (c >= 2048 && c <= 2093) - : c <= 2139) - : (c <= 2154 || (c < 2185 - ? (c >= 2160 && c <= 2183) - : c <= 2190))) - : (c <= 2273 || (c < 2417 - ? (c < 2406 - ? (c >= 2275 && c <= 2403) - : c <= 2415) - : (c <= 2435 || (c < 2447 - ? (c >= 2437 && c <= 2444) - : c <= 2448))))) - : (c <= 2472 || (c < 2507 - ? (c < 2486 - ? (c < 2482 - ? (c >= 2474 && c <= 2480) - : c <= 2482) - : (c <= 2489 || (c < 2503 - ? (c >= 2492 && c <= 2500) - : c <= 2504))) - : (c <= 2510 || (c < 2527 - ? (c < 2524 - ? c == 2519 - : c <= 2525) - : (c <= 2531 || (c < 2556 - ? (c >= 2534 && c <= 2545) - : c <= 2556))))))) - : (c <= 2558 || (c < 2635 - ? (c < 2610 - ? (c < 2575 - ? (c < 2565 - ? (c >= 2561 && c <= 2563) - : c <= 2570) - : (c <= 2576 || (c < 2602 - ? (c >= 2579 && c <= 2600) - : c <= 2608))) - : (c <= 2611 || (c < 2620 - ? (c < 2616 - ? (c >= 2613 && c <= 2614) - : c <= 2617) - : (c <= 2620 || (c < 2631 - ? (c >= 2622 && c <= 2626) - : c <= 2632))))) - : (c <= 2637 || (c < 2693 - ? (c < 2654 - ? (c < 2649 - ? c == 2641 - : c <= 2652) - : (c <= 2654 || (c < 2689 - ? (c >= 2662 && c <= 2677) - : c <= 2691))) - : (c <= 2701 || (c < 2730 - ? (c < 2707 - ? (c >= 2703 && c <= 2705) - : c <= 2728) - : (c <= 2736 || (c < 2741 - ? (c >= 2738 && c <= 2739) - : c <= 2745))))))))))) - : (c <= 2757 || (c < 3168 - ? (c < 2958 - ? (c < 2866 - ? (c < 2809 - ? (c < 2768 - ? (c < 2763 - ? (c >= 2759 && c <= 2761) - : c <= 2765) - : (c <= 2768 || (c < 2790 - ? (c >= 2784 && c <= 2787) - : c <= 2799))) - : (c <= 2815 || (c < 2831 - ? (c < 2821 - ? (c >= 2817 && c <= 2819) - : c <= 2828) - : (c <= 2832 || (c < 2858 - ? (c >= 2835 && c <= 2856) - : c <= 2864))))) - : (c <= 2867 || (c < 2908 - ? (c < 2887 - ? (c < 2876 - ? (c >= 2869 && c <= 2873) - : c <= 2884) - : (c <= 2888 || (c < 2901 - ? (c >= 2891 && c <= 2893) - : c <= 2903))) - : (c <= 2909 || (c < 2929 - ? (c < 2918 - ? (c >= 2911 && c <= 2915) - : c <= 2927) - : (c <= 2929 || (c < 2949 - ? (c >= 2946 && c <= 2947) - : c <= 2954))))))) - : (c <= 2960 || (c < 3031 - ? (c < 2984 - ? (c < 2972 - ? (c < 2969 - ? (c >= 2962 && c <= 2965) - : c <= 2970) - : (c <= 2972 || (c < 2979 - ? (c >= 2974 && c <= 2975) - : c <= 2980))) - : (c <= 2986 || (c < 3014 - ? (c < 3006 - ? (c >= 2990 && c <= 3001) - : c <= 3010) - : (c <= 3016 || (c < 3024 - ? (c >= 3018 && c <= 3021) - : c <= 3024))))) - : (c <= 3031 || (c < 3132 - ? (c < 3086 - ? (c < 3072 - ? (c >= 3046 && c <= 3055) - : c <= 3084) - : (c <= 3088 || (c < 3114 - ? (c >= 3090 && c <= 3112) - : c <= 3129))) - : (c <= 3140 || (c < 3157 - ? (c < 3146 - ? (c >= 3142 && c <= 3144) - : c <= 3149) - : (c <= 3158 || (c < 3165 - ? (c >= 3160 && c <= 3162) - : c <= 3165))))))))) - : (c <= 3171 || (c < 3450 - ? (c < 3293 - ? (c < 3242 - ? (c < 3205 - ? (c < 3200 - ? (c >= 3174 && c <= 3183) - : c <= 3203) - : (c <= 3212 || (c < 3218 - ? (c >= 3214 && c <= 3216) - : c <= 3240))) - : (c <= 3251 || (c < 3270 - ? (c < 3260 - ? (c >= 3253 && c <= 3257) - : c <= 3268) - : (c <= 3272 || (c < 3285 - ? (c >= 3274 && c <= 3277) - : c <= 3286))))) - : (c <= 3294 || (c < 3346 - ? (c < 3313 - ? (c < 3302 - ? (c >= 3296 && c <= 3299) - : c <= 3311) - : (c <= 3314 || (c < 3342 - ? (c >= 3328 && c <= 3340) - : c <= 3344))) - : (c <= 3396 || (c < 3412 - ? (c < 3402 - ? (c >= 3398 && c <= 3400) - : c <= 3406) - : (c <= 3415 || (c < 3430 - ? (c >= 3423 && c <= 3427) - : c <= 3439))))))) - : (c <= 3455 || (c < 3570 - ? (c < 3520 - ? (c < 3482 - ? (c < 3461 - ? (c >= 3457 && c <= 3459) - : c <= 3478) - : (c <= 3505 || (c < 3517 - ? (c >= 3507 && c <= 3515) - : c <= 3517))) - : (c <= 3526 || (c < 3542 - ? (c < 3535 - ? c == 3530 - : c <= 3540) - : (c <= 3542 || (c < 3558 - ? (c >= 3544 && c <= 3551) - : c <= 3567))))) - : (c <= 3571 || (c < 3718 - ? (c < 3664 - ? (c < 3648 - ? (c >= 3585 && c <= 3642) - : c <= 3662) - : (c <= 3673 || (c < 3716 - ? (c >= 3713 && c <= 3714) - : c <= 3716))) - : (c <= 3722 || (c < 3751 - ? (c < 3749 - ? (c >= 3724 && c <= 3747) - : c <= 3749) - : (c <= 3773 || (c >= 3776 && c <= 3780))))))))))))) - : (c <= 3782 || (c < 8025 - ? (c < 5888 - ? (c < 4688 - ? (c < 3953 - ? (c < 3872 - ? (c < 3804 - ? (c < 3792 - ? (c >= 3784 && c <= 3789) - : c <= 3801) - : (c <= 3807 || (c < 3864 - ? c == 3840 - : c <= 3865))) - : (c <= 3881 || (c < 3897 - ? (c < 3895 - ? c == 3893 - : c <= 3895) - : (c <= 3897 || (c < 3913 - ? (c >= 3902 && c <= 3911) - : c <= 3948))))) - : (c <= 3972 || (c < 4256 - ? (c < 4038 - ? (c < 3993 - ? (c >= 3974 && c <= 3991) - : c <= 4028) - : (c <= 4038 || (c < 4176 - ? (c >= 4096 && c <= 4169) - : c <= 4253))) - : (c <= 4293 || (c < 4304 - ? (c < 4301 - ? c == 4295 - : c <= 4301) - : (c <= 4346 || (c < 4682 - ? (c >= 4348 && c <= 4680) - : c <= 4685))))))) - : (c <= 4694 || (c < 4882 - ? (c < 4786 - ? (c < 4704 - ? (c < 4698 - ? c == 4696 - : c <= 4701) - : (c <= 4744 || (c < 4752 - ? (c >= 4746 && c <= 4749) - : c <= 4784))) - : (c <= 4789 || (c < 4802 - ? (c < 4800 - ? (c >= 4792 && c <= 4798) - : c <= 4800) - : (c <= 4805 || (c < 4824 - ? (c >= 4808 && c <= 4822) - : c <= 4880))))) - : (c <= 4885 || (c < 5112 - ? (c < 4969 - ? (c < 4957 - ? (c >= 4888 && c <= 4954) - : c <= 4959) - : (c <= 4977 || (c < 5024 - ? (c >= 4992 && c <= 5007) - : c <= 5109))) - : (c <= 5117 || (c < 5761 - ? (c < 5743 - ? (c >= 5121 && c <= 5740) - : c <= 5759) - : (c <= 5786 || (c < 5870 - ? (c >= 5792 && c <= 5866) - : c <= 5880))))))))) - : (c <= 5909 || (c < 6688 - ? (c < 6176 - ? (c < 6016 - ? (c < 5984 - ? (c < 5952 - ? (c >= 5919 && c <= 5940) - : c <= 5971) - : (c <= 5996 || (c < 6002 - ? (c >= 5998 && c <= 6000) - : c <= 6003))) - : (c <= 6099 || (c < 6112 - ? (c < 6108 - ? c == 6103 - : c <= 6109) - : (c <= 6121 || (c < 6159 - ? (c >= 6155 && c <= 6157) - : c <= 6169))))) - : (c <= 6264 || (c < 6470 - ? (c < 6400 - ? (c < 6320 - ? (c >= 6272 && c <= 6314) - : c <= 6389) - : (c <= 6430 || (c < 6448 - ? (c >= 6432 && c <= 6443) - : c <= 6459))) - : (c <= 6509 || (c < 6576 - ? (c < 6528 - ? (c >= 6512 && c <= 6516) - : c <= 6571) - : (c <= 6601 || (c < 6656 - ? (c >= 6608 && c <= 6618) - : c <= 6683))))))) - : (c <= 6750 || (c < 7232 - ? (c < 6847 - ? (c < 6800 - ? (c < 6783 - ? (c >= 6752 && c <= 6780) - : c <= 6793) - : (c <= 6809 || (c < 6832 - ? c == 6823 - : c <= 6845))) - : (c <= 6862 || (c < 7019 - ? (c < 6992 - ? (c >= 6912 && c <= 6988) - : c <= 7001) - : (c <= 7027 || (c < 7168 - ? (c >= 7040 && c <= 7155) - : c <= 7223))))) - : (c <= 7241 || (c < 7380 - ? (c < 7312 - ? (c < 7296 - ? (c >= 7245 && c <= 7293) - : c <= 7304) - : (c <= 7354 || (c < 7376 - ? (c >= 7357 && c <= 7359) - : c <= 7378))) - : (c <= 7418 || (c < 7968 - ? (c < 7960 - ? (c >= 7424 && c <= 7957) - : c <= 7965) - : (c <= 8005 || (c < 8016 - ? (c >= 8008 && c <= 8013) - : c <= 8023))))))))))) - : (c <= 8025 || (c < 11720 - ? (c < 8458 - ? (c < 8178 - ? (c < 8126 - ? (c < 8031 - ? (c < 8029 - ? c == 8027 - : c <= 8029) - : (c <= 8061 || (c < 8118 - ? (c >= 8064 && c <= 8116) - : c <= 8124))) - : (c <= 8126 || (c < 8144 - ? (c < 8134 - ? (c >= 8130 && c <= 8132) - : c <= 8140) - : (c <= 8147 || (c < 8160 - ? (c >= 8150 && c <= 8155) - : c <= 8172))))) - : (c <= 8180 || (c < 8336 - ? (c < 8276 - ? (c < 8255 - ? (c >= 8182 && c <= 8188) - : c <= 8256) - : (c <= 8276 || (c < 8319 - ? c == 8305 - : c <= 8319))) - : (c <= 8348 || (c < 8421 - ? (c < 8417 - ? (c >= 8400 && c <= 8412) - : c <= 8417) - : (c <= 8432 || (c < 8455 - ? c == 8450 - : c <= 8455))))))) - : (c <= 8467 || (c < 11499 - ? (c < 8490 - ? (c < 8484 - ? (c < 8472 - ? c == 8469 - : c <= 8477) - : (c <= 8484 || (c < 8488 - ? c == 8486 - : c <= 8488))) - : (c <= 8505 || (c < 8526 - ? (c < 8517 - ? (c >= 8508 && c <= 8511) - : c <= 8521) - : (c <= 8526 || (c < 11264 - ? (c >= 8544 && c <= 8584) - : c <= 11492))))) - : (c <= 11507 || (c < 11647 - ? (c < 11565 - ? (c < 11559 - ? (c >= 11520 && c <= 11557) - : c <= 11559) - : (c <= 11565 || (c < 11631 - ? (c >= 11568 && c <= 11623) - : c <= 11631))) - : (c <= 11670 || (c < 11696 - ? (c < 11688 - ? (c >= 11680 && c <= 11686) - : c <= 11694) - : (c <= 11702 || (c < 11712 - ? (c >= 11704 && c <= 11710) - : c <= 11718))))))))) - : (c <= 11726 || (c < 42623 - ? (c < 12540 - ? (c < 12337 - ? (c < 11744 - ? (c < 11736 - ? (c >= 11728 && c <= 11734) - : c <= 11742) - : (c <= 11775 || (c < 12321 - ? (c >= 12293 && c <= 12295) - : c <= 12335))) - : (c <= 12341 || (c < 12441 - ? (c < 12353 - ? (c >= 12344 && c <= 12348) - : c <= 12438) - : (c <= 12442 || (c < 12449 - ? (c >= 12445 && c <= 12447) - : c <= 12538))))) - : (c <= 12543 || (c < 19968 - ? (c < 12704 - ? (c < 12593 - ? (c >= 12549 && c <= 12591) - : c <= 12686) - : (c <= 12735 || (c < 13312 - ? (c >= 12784 && c <= 12799) - : c <= 19903))) - : (c <= 42124 || (c < 42512 - ? (c < 42240 - ? (c >= 42192 && c <= 42237) - : c <= 42508) - : (c <= 42539 || (c < 42612 - ? (c >= 42560 && c <= 42607) - : c <= 42621))))))) - : (c <= 42737 || (c < 43232 - ? (c < 42965 - ? (c < 42891 - ? (c < 42786 - ? (c >= 42775 && c <= 42783) - : c <= 42888) - : (c <= 42954 || (c < 42963 - ? (c >= 42960 && c <= 42961) - : c <= 42963))) - : (c <= 42969 || (c < 43072 - ? (c < 43052 - ? (c >= 42994 && c <= 43047) - : c <= 43052) - : (c <= 43123 || (c < 43216 - ? (c >= 43136 && c <= 43205) - : c <= 43225))))) - : (c <= 43255 || (c < 43471 - ? (c < 43312 - ? (c < 43261 - ? c == 43259 - : c <= 43309) - : (c <= 43347 || (c < 43392 - ? (c >= 43360 && c <= 43388) - : c <= 43456))) - : (c <= 43481 || (c < 43584 - ? (c < 43520 - ? (c >= 43488 && c <= 43518) - : c <= 43574) - : (c <= 43597 || (c >= 43600 && c <= 43609))))))))))))))) - : (c <= 43638 || (c < 71453 - ? (c < 67639 - ? (c < 65345 - ? (c < 64312 - ? (c < 43888 - ? (c < 43785 - ? (c < 43744 - ? (c < 43739 - ? (c >= 43642 && c <= 43714) - : c <= 43741) - : (c <= 43759 || (c < 43777 - ? (c >= 43762 && c <= 43766) - : c <= 43782))) - : (c <= 43790 || (c < 43816 - ? (c < 43808 - ? (c >= 43793 && c <= 43798) - : c <= 43814) - : (c <= 43822 || (c < 43868 - ? (c >= 43824 && c <= 43866) - : c <= 43881))))) - : (c <= 44010 || (c < 63744 - ? (c < 44032 - ? (c < 44016 - ? (c >= 44012 && c <= 44013) - : c <= 44025) - : (c <= 55203 || (c < 55243 - ? (c >= 55216 && c <= 55238) - : c <= 55291))) - : (c <= 64109 || (c < 64275 - ? (c < 64256 - ? (c >= 64112 && c <= 64217) - : c <= 64262) - : (c <= 64279 || (c < 64298 - ? (c >= 64285 && c <= 64296) - : c <= 64310))))))) - : (c <= 64316 || (c < 65075 - ? (c < 64612 - ? (c < 64323 - ? (c < 64320 - ? c == 64318 - : c <= 64321) - : (c <= 64324 || (c < 64467 - ? (c >= 64326 && c <= 64433) - : c <= 64605))) - : (c <= 64829 || (c < 65008 - ? (c < 64914 - ? (c >= 64848 && c <= 64911) - : c <= 64967) - : (c <= 65017 || (c < 65056 - ? (c >= 65024 && c <= 65039) - : c <= 65071))))) - : (c <= 65076 || (c < 65147 - ? (c < 65139 - ? (c < 65137 - ? (c >= 65101 && c <= 65103) - : c <= 65137) - : (c <= 65139 || (c < 65145 - ? c == 65143 - : c <= 65145))) - : (c <= 65147 || (c < 65296 - ? (c < 65151 - ? c == 65149 - : c <= 65276) - : (c <= 65305 || (c < 65343 - ? (c >= 65313 && c <= 65338) - : c <= 65343))))))))) - : (c <= 65370 || (c < 66513 - ? (c < 65664 - ? (c < 65536 - ? (c < 65482 - ? (c < 65474 - ? (c >= 65382 && c <= 65470) - : c <= 65479) - : (c <= 65487 || (c < 65498 - ? (c >= 65490 && c <= 65495) - : c <= 65500))) - : (c <= 65547 || (c < 65596 - ? (c < 65576 - ? (c >= 65549 && c <= 65574) - : c <= 65594) - : (c <= 65597 || (c < 65616 - ? (c >= 65599 && c <= 65613) - : c <= 65629))))) - : (c <= 65786 || (c < 66304 - ? (c < 66176 - ? (c < 66045 - ? (c >= 65856 && c <= 65908) - : c <= 66045) - : (c <= 66204 || (c < 66272 - ? (c >= 66208 && c <= 66256) - : c <= 66272))) - : (c <= 66335 || (c < 66432 - ? (c < 66384 - ? (c >= 66349 && c <= 66378) - : c <= 66426) - : (c <= 66461 || (c < 66504 - ? (c >= 66464 && c <= 66499) - : c <= 66511))))))) - : (c <= 66517 || (c < 66979 - ? (c < 66864 - ? (c < 66736 - ? (c < 66720 - ? (c >= 66560 && c <= 66717) - : c <= 66729) - : (c <= 66771 || (c < 66816 - ? (c >= 66776 && c <= 66811) - : c <= 66855))) - : (c <= 66915 || (c < 66956 - ? (c < 66940 - ? (c >= 66928 && c <= 66938) - : c <= 66954) - : (c <= 66962 || (c < 66967 - ? (c >= 66964 && c <= 66965) - : c <= 66977))))) - : (c <= 66993 || (c < 67456 - ? (c < 67072 - ? (c < 67003 - ? (c >= 66995 && c <= 67001) - : c <= 67004) - : (c <= 67382 || (c < 67424 - ? (c >= 67392 && c <= 67413) - : c <= 67431))) - : (c <= 67461 || (c < 67584 - ? (c < 67506 - ? (c >= 67463 && c <= 67504) - : c <= 67514) - : (c <= 67589 || (c < 67594 - ? c == 67592 - : c <= 67637))))))))))) - : (c <= 67640 || (c < 69956 - ? (c < 68448 - ? (c < 68101 - ? (c < 67828 - ? (c < 67680 - ? (c < 67647 - ? c == 67644 - : c <= 67669) - : (c <= 67702 || (c < 67808 - ? (c >= 67712 && c <= 67742) - : c <= 67826))) - : (c <= 67829 || (c < 67968 - ? (c < 67872 - ? (c >= 67840 && c <= 67861) - : c <= 67897) - : (c <= 68023 || (c < 68096 - ? (c >= 68030 && c <= 68031) - : c <= 68099))))) - : (c <= 68102 || (c < 68192 - ? (c < 68121 - ? (c < 68117 - ? (c >= 68108 && c <= 68115) - : c <= 68119) - : (c <= 68149 || (c < 68159 - ? (c >= 68152 && c <= 68154) - : c <= 68159))) - : (c <= 68220 || (c < 68297 - ? (c < 68288 - ? (c >= 68224 && c <= 68252) - : c <= 68295) - : (c <= 68326 || (c < 68416 - ? (c >= 68352 && c <= 68405) - : c <= 68437))))))) - : (c <= 68466 || (c < 69424 - ? (c < 68912 - ? (c < 68736 - ? (c < 68608 - ? (c >= 68480 && c <= 68497) - : c <= 68680) - : (c <= 68786 || (c < 68864 - ? (c >= 68800 && c <= 68850) - : c <= 68903))) - : (c <= 68921 || (c < 69296 - ? (c < 69291 - ? (c >= 69248 && c <= 69289) - : c <= 69292) - : (c <= 69297 || (c < 69415 - ? (c >= 69376 && c <= 69404) - : c <= 69415))))) - : (c <= 69456 || (c < 69759 - ? (c < 69600 - ? (c < 69552 - ? (c >= 69488 && c <= 69509) - : c <= 69572) - : (c <= 69622 || (c < 69734 - ? (c >= 69632 && c <= 69702) - : c <= 69749))) - : (c <= 69818 || (c < 69872 - ? (c < 69840 - ? c == 69826 - : c <= 69864) - : (c <= 69881 || (c < 69942 - ? (c >= 69888 && c <= 69940) - : c <= 69951))))))))) - : (c <= 69959 || (c < 70459 - ? (c < 70282 - ? (c < 70108 - ? (c < 70016 - ? (c < 70006 - ? (c >= 69968 && c <= 70003) - : c <= 70006) - : (c <= 70084 || (c < 70094 - ? (c >= 70089 && c <= 70092) - : c <= 70106))) - : (c <= 70108 || (c < 70206 - ? (c < 70163 - ? (c >= 70144 && c <= 70161) - : c <= 70199) - : (c <= 70206 || (c < 70280 - ? (c >= 70272 && c <= 70278) - : c <= 70280))))) - : (c <= 70285 || (c < 70405 - ? (c < 70320 - ? (c < 70303 - ? (c >= 70287 && c <= 70301) - : c <= 70312) - : (c <= 70378 || (c < 70400 - ? (c >= 70384 && c <= 70393) - : c <= 70403))) - : (c <= 70412 || (c < 70442 - ? (c < 70419 - ? (c >= 70415 && c <= 70416) - : c <= 70440) - : (c <= 70448 || (c < 70453 - ? (c >= 70450 && c <= 70451) - : c <= 70457))))))) - : (c <= 70468 || (c < 70855 - ? (c < 70502 - ? (c < 70480 - ? (c < 70475 - ? (c >= 70471 && c <= 70472) - : c <= 70477) - : (c <= 70480 || (c < 70493 - ? c == 70487 - : c <= 70499))) - : (c <= 70508 || (c < 70736 - ? (c < 70656 - ? (c >= 70512 && c <= 70516) - : c <= 70730) - : (c <= 70745 || (c < 70784 - ? (c >= 70750 && c <= 70753) - : c <= 70853))))) - : (c <= 70855 || (c < 71236 - ? (c < 71096 - ? (c < 71040 - ? (c >= 70864 && c <= 70873) - : c <= 71093) - : (c <= 71104 || (c < 71168 - ? (c >= 71128 && c <= 71133) - : c <= 71232))) - : (c <= 71236 || (c < 71360 - ? (c < 71296 - ? (c >= 71248 && c <= 71257) - : c <= 71352) - : (c <= 71369 || (c >= 71424 && c <= 71450))))))))))))) - : (c <= 71467 || (c < 119973 - ? (c < 77824 - ? (c < 72760 - ? (c < 72016 - ? (c < 71945 - ? (c < 71680 - ? (c < 71488 - ? (c >= 71472 && c <= 71481) - : c <= 71494) - : (c <= 71738 || (c < 71935 - ? (c >= 71840 && c <= 71913) - : c <= 71942))) - : (c <= 71945 || (c < 71960 - ? (c < 71957 - ? (c >= 71948 && c <= 71955) - : c <= 71958) - : (c <= 71989 || (c < 71995 - ? (c >= 71991 && c <= 71992) - : c <= 72003))))) - : (c <= 72025 || (c < 72263 - ? (c < 72154 - ? (c < 72106 - ? (c >= 72096 && c <= 72103) - : c <= 72151) - : (c <= 72161 || (c < 72192 - ? (c >= 72163 && c <= 72164) - : c <= 72254))) - : (c <= 72263 || (c < 72368 - ? (c < 72349 - ? (c >= 72272 && c <= 72345) - : c <= 72349) - : (c <= 72440 || (c < 72714 - ? (c >= 72704 && c <= 72712) - : c <= 72758))))))) - : (c <= 72768 || (c < 73056 - ? (c < 72968 - ? (c < 72850 - ? (c < 72818 - ? (c >= 72784 && c <= 72793) - : c <= 72847) - : (c <= 72871 || (c < 72960 - ? (c >= 72873 && c <= 72886) - : c <= 72966))) - : (c <= 72969 || (c < 73020 - ? (c < 73018 - ? (c >= 72971 && c <= 73014) - : c <= 73018) - : (c <= 73021 || (c < 73040 - ? (c >= 73023 && c <= 73031) - : c <= 73049))))) - : (c <= 73061 || (c < 73440 - ? (c < 73104 - ? (c < 73066 - ? (c >= 73063 && c <= 73064) - : c <= 73102) - : (c <= 73105 || (c < 73120 - ? (c >= 73107 && c <= 73112) - : c <= 73129))) - : (c <= 73462 || (c < 74752 - ? (c < 73728 - ? c == 73648 - : c <= 74649) - : (c <= 74862 || (c < 77712 - ? (c >= 74880 && c <= 75075) - : c <= 77808))))))))) - : (c <= 78894 || (c < 110576 - ? (c < 93027 - ? (c < 92864 - ? (c < 92736 - ? (c < 92160 - ? (c >= 82944 && c <= 83526) - : c <= 92728) - : (c <= 92766 || (c < 92784 - ? (c >= 92768 && c <= 92777) - : c <= 92862))) - : (c <= 92873 || (c < 92928 - ? (c < 92912 - ? (c >= 92880 && c <= 92909) - : c <= 92916) - : (c <= 92982 || (c < 93008 - ? (c >= 92992 && c <= 92995) - : c <= 93017))))) - : (c <= 93047 || (c < 94176 - ? (c < 93952 - ? (c < 93760 - ? (c >= 93053 && c <= 93071) - : c <= 93823) - : (c <= 94026 || (c < 94095 - ? (c >= 94031 && c <= 94087) - : c <= 94111))) - : (c <= 94177 || (c < 94208 - ? (c < 94192 - ? (c >= 94179 && c <= 94180) - : c <= 94193) - : (c <= 100343 || (c < 101632 - ? (c >= 100352 && c <= 101589) - : c <= 101640))))))) - : (c <= 110579 || (c < 118528 - ? (c < 110960 - ? (c < 110592 - ? (c < 110589 - ? (c >= 110581 && c <= 110587) - : c <= 110590) - : (c <= 110882 || (c < 110948 - ? (c >= 110928 && c <= 110930) - : c <= 110951))) - : (c <= 111355 || (c < 113792 - ? (c < 113776 - ? (c >= 113664 && c <= 113770) - : c <= 113788) - : (c <= 113800 || (c < 113821 - ? (c >= 113808 && c <= 113817) - : c <= 113822))))) - : (c <= 118573 || (c < 119210 - ? (c < 119149 - ? (c < 119141 - ? (c >= 118576 && c <= 118598) - : c <= 119145) - : (c <= 119154 || (c < 119173 - ? (c >= 119163 && c <= 119170) - : c <= 119179))) - : (c <= 119213 || (c < 119894 - ? (c < 119808 - ? (c >= 119362 && c <= 119364) - : c <= 119892) - : (c <= 119964 || (c < 119970 - ? (c >= 119966 && c <= 119967) - : c <= 119970))))))))))) - : (c <= 119974 || (c < 124912 - ? (c < 120746 - ? (c < 120134 - ? (c < 120071 - ? (c < 119995 - ? (c < 119982 - ? (c >= 119977 && c <= 119980) - : c <= 119993) - : (c <= 119995 || (c < 120005 - ? (c >= 119997 && c <= 120003) - : c <= 120069))) - : (c <= 120074 || (c < 120094 - ? (c < 120086 - ? (c >= 120077 && c <= 120084) - : c <= 120092) - : (c <= 120121 || (c < 120128 - ? (c >= 120123 && c <= 120126) - : c <= 120132))))) - : (c <= 120134 || (c < 120572 - ? (c < 120488 - ? (c < 120146 - ? (c >= 120138 && c <= 120144) - : c <= 120485) - : (c <= 120512 || (c < 120540 - ? (c >= 120514 && c <= 120538) - : c <= 120570))) - : (c <= 120596 || (c < 120656 - ? (c < 120630 - ? (c >= 120598 && c <= 120628) - : c <= 120654) - : (c <= 120686 || (c < 120714 - ? (c >= 120688 && c <= 120712) - : c <= 120744))))))) - : (c <= 120770 || (c < 122907 - ? (c < 121476 - ? (c < 121344 - ? (c < 120782 - ? (c >= 120772 && c <= 120779) - : c <= 120831) - : (c <= 121398 || (c < 121461 - ? (c >= 121403 && c <= 121452) - : c <= 121461))) - : (c <= 121476 || (c < 122624 - ? (c < 121505 - ? (c >= 121499 && c <= 121503) - : c <= 121519) - : (c <= 122654 || (c < 122888 - ? (c >= 122880 && c <= 122886) - : c <= 122904))))) - : (c <= 122913 || (c < 123214 - ? (c < 123136 - ? (c < 122918 - ? (c >= 122915 && c <= 122916) - : c <= 122922) - : (c <= 123180 || (c < 123200 - ? (c >= 123184 && c <= 123197) - : c <= 123209))) - : (c <= 123214 || (c < 124896 - ? (c < 123584 - ? (c >= 123536 && c <= 123566) - : c <= 123641) - : (c <= 124902 || (c < 124909 - ? (c >= 124904 && c <= 124907) - : c <= 124910))))))))) - : (c <= 124926 || (c < 126557 - ? (c < 126521 - ? (c < 126469 - ? (c < 125184 - ? (c < 125136 - ? (c >= 124928 && c <= 125124) - : c <= 125142) - : (c <= 125259 || (c < 126464 - ? (c >= 125264 && c <= 125273) - : c <= 126467))) - : (c <= 126495 || (c < 126503 - ? (c < 126500 - ? (c >= 126497 && c <= 126498) - : c <= 126500) - : (c <= 126503 || (c < 126516 - ? (c >= 126505 && c <= 126514) - : c <= 126519))))) - : (c <= 126521 || (c < 126541 - ? (c < 126535 - ? (c < 126530 - ? c == 126523 - : c <= 126530) - : (c <= 126535 || (c < 126539 - ? c == 126537 - : c <= 126539))) - : (c <= 126543 || (c < 126551 - ? (c < 126548 - ? (c >= 126545 && c <= 126546) - : c <= 126548) - : (c <= 126551 || (c < 126555 - ? c == 126553 - : c <= 126555))))))) - : (c <= 126557 || (c < 126629 - ? (c < 126580 - ? (c < 126564 - ? (c < 126561 - ? c == 126559 - : c <= 126562) - : (c <= 126564 || (c < 126572 - ? (c >= 126567 && c <= 126570) - : c <= 126578))) - : (c <= 126583 || (c < 126592 - ? (c < 126590 - ? (c >= 126585 && c <= 126588) - : c <= 126590) - : (c <= 126601 || (c < 126625 - ? (c >= 126603 && c <= 126619) - : c <= 126627))))) - : (c <= 126633 || (c < 178208 - ? (c < 131072 - ? (c < 130032 - ? (c >= 126635 && c <= 126651) - : c <= 130041) - : (c <= 173791 || (c < 177984 - ? (c >= 173824 && c <= 177976) - : c <= 178205))) - : (c <= 183969 || (c < 196608 - ? (c < 194560 - ? (c >= 183984 && c <= 191456) - : c <= 195101) - : (c <= 201546 || (c >= 917760 && c <= 917999))))))))))))))))); -} +const TSCharacterRange sym_identifier_character_set_2[] = { + {'0', '9'}, {'A', 'Z'}, {'_', '_'}, {'a', 'z'}, {0xaa, 0xaa}, {0xb5, 0xb5}, {0xb7, 0xb7}, {0xba, 0xba}, + {0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x300, 0x374}, + {0x376, 0x377}, {0x37b, 0x37d}, {0x37f, 0x37f}, {0x386, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481}, + {0x483, 0x487}, {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x591, 0x5bd}, {0x5bf, 0x5bf}, {0x5c1, 0x5c2}, + {0x5c4, 0x5c5}, {0x5c7, 0x5c7}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2}, {0x610, 0x61a}, {0x620, 0x669}, {0x66e, 0x6d3}, {0x6d5, 0x6dc}, + {0x6df, 0x6e8}, {0x6ea, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x74a}, {0x74d, 0x7b1}, {0x7c0, 0x7f5}, {0x7fa, 0x7fa}, {0x7fd, 0x7fd}, + {0x800, 0x82d}, {0x840, 0x85b}, {0x860, 0x86a}, {0x870, 0x887}, {0x889, 0x88e}, {0x897, 0x8e1}, {0x8e3, 0x963}, {0x966, 0x96f}, + {0x971, 0x983}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8}, {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, {0x9bc, 0x9c4}, + {0x9c7, 0x9c8}, {0x9cb, 0x9ce}, {0x9d7, 0x9d7}, {0x9dc, 0x9dd}, {0x9df, 0x9e3}, {0x9e6, 0x9f1}, {0x9fc, 0x9fc}, {0x9fe, 0x9fe}, + {0xa01, 0xa03}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, {0xa13, 0xa28}, {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39}, + {0xa3c, 0xa3c}, {0xa3e, 0xa42}, {0xa47, 0xa48}, {0xa4b, 0xa4d}, {0xa51, 0xa51}, {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa66, 0xa75}, + {0xa81, 0xa83}, {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabc, 0xac5}, + {0xac7, 0xac9}, {0xacb, 0xacd}, {0xad0, 0xad0}, {0xae0, 0xae3}, {0xae6, 0xaef}, {0xaf9, 0xaff}, {0xb01, 0xb03}, {0xb05, 0xb0c}, + {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33}, {0xb35, 0xb39}, {0xb3c, 0xb44}, {0xb47, 0xb48}, {0xb4b, 0xb4d}, + {0xb55, 0xb57}, {0xb5c, 0xb5d}, {0xb5f, 0xb63}, {0xb66, 0xb6f}, {0xb71, 0xb71}, {0xb82, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90}, + {0xb92, 0xb95}, {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb9}, {0xbbe, 0xbc2}, + {0xbc6, 0xbc8}, {0xbca, 0xbcd}, {0xbd0, 0xbd0}, {0xbd7, 0xbd7}, {0xbe6, 0xbef}, {0xc00, 0xc0c}, {0xc0e, 0xc10}, {0xc12, 0xc28}, + {0xc2a, 0xc39}, {0xc3c, 0xc44}, {0xc46, 0xc48}, {0xc4a, 0xc4d}, {0xc55, 0xc56}, {0xc58, 0xc5a}, {0xc5d, 0xc5d}, {0xc60, 0xc63}, + {0xc66, 0xc6f}, {0xc80, 0xc83}, {0xc85, 0xc8c}, {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbc, 0xcc4}, + {0xcc6, 0xcc8}, {0xcca, 0xccd}, {0xcd5, 0xcd6}, {0xcdd, 0xcde}, {0xce0, 0xce3}, {0xce6, 0xcef}, {0xcf1, 0xcf3}, {0xd00, 0xd0c}, + {0xd0e, 0xd10}, {0xd12, 0xd44}, {0xd46, 0xd48}, {0xd4a, 0xd4e}, {0xd54, 0xd57}, {0xd5f, 0xd63}, {0xd66, 0xd6f}, {0xd7a, 0xd7f}, + {0xd81, 0xd83}, {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xdca, 0xdca}, {0xdcf, 0xdd4}, + {0xdd6, 0xdd6}, {0xdd8, 0xddf}, {0xde6, 0xdef}, {0xdf2, 0xdf3}, {0xe01, 0xe3a}, {0xe40, 0xe4e}, {0xe50, 0xe59}, {0xe81, 0xe82}, + {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3}, {0xea5, 0xea5}, {0xea7, 0xebd}, {0xec0, 0xec4}, {0xec6, 0xec6}, {0xec8, 0xece}, + {0xed0, 0xed9}, {0xedc, 0xedf}, {0xf00, 0xf00}, {0xf18, 0xf19}, {0xf20, 0xf29}, {0xf35, 0xf35}, {0xf37, 0xf37}, {0xf39, 0xf39}, + {0xf3e, 0xf47}, {0xf49, 0xf6c}, {0xf71, 0xf84}, {0xf86, 0xf97}, {0xf99, 0xfbc}, {0xfc6, 0xfc6}, {0x1000, 0x1049}, {0x1050, 0x109d}, + {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa}, {0x10fc, 0x1248}, {0x124a, 0x124d}, {0x1250, 0x1256}, {0x1258, 0x1258}, + {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0}, {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, {0x12c2, 0x12c5}, + {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a}, {0x135d, 0x135f}, {0x1369, 0x1371}, {0x1380, 0x138f}, {0x13a0, 0x13f5}, + {0x13f8, 0x13fd}, {0x1401, 0x166c}, {0x166f, 0x167f}, {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x16ee, 0x16f8}, {0x1700, 0x1715}, {0x171f, 0x1734}, + {0x1740, 0x1753}, {0x1760, 0x176c}, {0x176e, 0x1770}, {0x1772, 0x1773}, {0x1780, 0x17d3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dd}, {0x17e0, 0x17e9}, + {0x180b, 0x180d}, {0x180f, 0x1819}, {0x1820, 0x1878}, {0x1880, 0x18aa}, {0x18b0, 0x18f5}, {0x1900, 0x191e}, {0x1920, 0x192b}, {0x1930, 0x193b}, + {0x1946, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab}, {0x19b0, 0x19c9}, {0x19d0, 0x19da}, {0x1a00, 0x1a1b}, {0x1a20, 0x1a5e}, {0x1a60, 0x1a7c}, + {0x1a7f, 0x1a89}, {0x1a90, 0x1a99}, {0x1aa7, 0x1aa7}, {0x1ab0, 0x1abd}, {0x1abf, 0x1ace}, {0x1b00, 0x1b4c}, {0x1b50, 0x1b59}, {0x1b6b, 0x1b73}, + {0x1b80, 0x1bf3}, {0x1c00, 0x1c37}, {0x1c40, 0x1c49}, {0x1c4d, 0x1c7d}, {0x1c80, 0x1c8a}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf}, {0x1cd0, 0x1cd2}, + {0x1cd4, 0x1cfa}, {0x1d00, 0x1f15}, {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57}, {0x1f59, 0x1f59}, {0x1f5b, 0x1f5b}, + {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fcc}, {0x1fd0, 0x1fd3}, + {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x200c, 0x200d}, {0x203f, 0x2040}, {0x2054, 0x2054}, {0x2071, 0x2071}, + {0x207f, 0x207f}, {0x2090, 0x209c}, {0x20d0, 0x20dc}, {0x20e1, 0x20e1}, {0x20e5, 0x20f0}, {0x2102, 0x2102}, {0x2107, 0x2107}, {0x210a, 0x2113}, + {0x2115, 0x2115}, {0x2118, 0x211d}, {0x2124, 0x2124}, {0x2126, 0x2126}, {0x2128, 0x2128}, {0x212a, 0x2139}, {0x213c, 0x213f}, {0x2145, 0x2149}, + {0x214e, 0x214e}, {0x2160, 0x2188}, {0x2c00, 0x2ce4}, {0x2ceb, 0x2cf3}, {0x2d00, 0x2d25}, {0x2d27, 0x2d27}, {0x2d2d, 0x2d2d}, {0x2d30, 0x2d67}, + {0x2d6f, 0x2d6f}, {0x2d7f, 0x2d96}, {0x2da0, 0x2da6}, {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, {0x2db8, 0x2dbe}, {0x2dc0, 0x2dc6}, {0x2dc8, 0x2dce}, + {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde}, {0x2de0, 0x2dff}, {0x3005, 0x3007}, {0x3021, 0x302f}, {0x3031, 0x3035}, {0x3038, 0x303c}, {0x3041, 0x3096}, + {0x3099, 0x309a}, {0x309d, 0x309f}, {0x30a1, 0x30ff}, {0x3105, 0x312f}, {0x3131, 0x318e}, {0x31a0, 0x31bf}, {0x31f0, 0x31ff}, {0x3400, 0x4dbf}, + {0x4e00, 0xa48c}, {0xa4d0, 0xa4fd}, {0xa500, 0xa60c}, {0xa610, 0xa62b}, {0xa640, 0xa66f}, {0xa674, 0xa67d}, {0xa67f, 0xa6f1}, {0xa717, 0xa71f}, + {0xa722, 0xa788}, {0xa78b, 0xa7cd}, {0xa7d0, 0xa7d1}, {0xa7d3, 0xa7d3}, {0xa7d5, 0xa7dc}, {0xa7f2, 0xa827}, {0xa82c, 0xa82c}, {0xa840, 0xa873}, + {0xa880, 0xa8c5}, {0xa8d0, 0xa8d9}, {0xa8e0, 0xa8f7}, {0xa8fb, 0xa8fb}, {0xa8fd, 0xa92d}, {0xa930, 0xa953}, {0xa960, 0xa97c}, {0xa980, 0xa9c0}, + {0xa9cf, 0xa9d9}, {0xa9e0, 0xa9fe}, {0xaa00, 0xaa36}, {0xaa40, 0xaa4d}, {0xaa50, 0xaa59}, {0xaa60, 0xaa76}, {0xaa7a, 0xaac2}, {0xaadb, 0xaadd}, + {0xaae0, 0xaaef}, {0xaaf2, 0xaaf6}, {0xab01, 0xab06}, {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, {0xab28, 0xab2e}, {0xab30, 0xab5a}, + {0xab5c, 0xab69}, {0xab70, 0xabea}, {0xabec, 0xabed}, {0xabf0, 0xabf9}, {0xac00, 0xd7a3}, {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb}, {0xf900, 0xfa6d}, + {0xfa70, 0xfad9}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e}, {0xfb40, 0xfb41}, + {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfc5d}, {0xfc64, 0xfd3d}, {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdf9}, {0xfe00, 0xfe0f}, + {0xfe20, 0xfe2f}, {0xfe33, 0xfe34}, {0xfe4d, 0xfe4f}, {0xfe71, 0xfe71}, {0xfe73, 0xfe73}, {0xfe77, 0xfe77}, {0xfe79, 0xfe79}, {0xfe7b, 0xfe7b}, + {0xfe7d, 0xfe7d}, {0xfe7f, 0xfefc}, {0xff10, 0xff19}, {0xff21, 0xff3a}, {0xff3f, 0xff3f}, {0xff41, 0xff5a}, {0xff65, 0xffbe}, {0xffc2, 0xffc7}, + {0xffca, 0xffcf}, {0xffd2, 0xffd7}, {0xffda, 0xffdc}, {0x10000, 0x1000b}, {0x1000d, 0x10026}, {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d}, + {0x10050, 0x1005d}, {0x10080, 0x100fa}, {0x10140, 0x10174}, {0x101fd, 0x101fd}, {0x10280, 0x1029c}, {0x102a0, 0x102d0}, {0x102e0, 0x102e0}, {0x10300, 0x1031f}, + {0x1032d, 0x1034a}, {0x10350, 0x1037a}, {0x10380, 0x1039d}, {0x103a0, 0x103c3}, {0x103c8, 0x103cf}, {0x103d1, 0x103d5}, {0x10400, 0x1049d}, {0x104a0, 0x104a9}, + {0x104b0, 0x104d3}, {0x104d8, 0x104fb}, {0x10500, 0x10527}, {0x10530, 0x10563}, {0x10570, 0x1057a}, {0x1057c, 0x1058a}, {0x1058c, 0x10592}, {0x10594, 0x10595}, + {0x10597, 0x105a1}, {0x105a3, 0x105b1}, {0x105b3, 0x105b9}, {0x105bb, 0x105bc}, {0x105c0, 0x105f3}, {0x10600, 0x10736}, {0x10740, 0x10755}, {0x10760, 0x10767}, + {0x10780, 0x10785}, {0x10787, 0x107b0}, {0x107b2, 0x107ba}, {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835}, {0x10837, 0x10838}, {0x1083c, 0x1083c}, + {0x1083f, 0x10855}, {0x10860, 0x10876}, {0x10880, 0x1089e}, {0x108e0, 0x108f2}, {0x108f4, 0x108f5}, {0x10900, 0x10915}, {0x10920, 0x10939}, {0x10980, 0x109b7}, + {0x109be, 0x109bf}, {0x10a00, 0x10a03}, {0x10a05, 0x10a06}, {0x10a0c, 0x10a13}, {0x10a15, 0x10a17}, {0x10a19, 0x10a35}, {0x10a38, 0x10a3a}, {0x10a3f, 0x10a3f}, + {0x10a60, 0x10a7c}, {0x10a80, 0x10a9c}, {0x10ac0, 0x10ac7}, {0x10ac9, 0x10ae6}, {0x10b00, 0x10b35}, {0x10b40, 0x10b55}, {0x10b60, 0x10b72}, {0x10b80, 0x10b91}, + {0x10c00, 0x10c48}, {0x10c80, 0x10cb2}, {0x10cc0, 0x10cf2}, {0x10d00, 0x10d27}, {0x10d30, 0x10d39}, {0x10d40, 0x10d65}, {0x10d69, 0x10d6d}, {0x10d6f, 0x10d85}, + {0x10e80, 0x10ea9}, {0x10eab, 0x10eac}, {0x10eb0, 0x10eb1}, {0x10ec2, 0x10ec4}, {0x10efc, 0x10f1c}, {0x10f27, 0x10f27}, {0x10f30, 0x10f50}, {0x10f70, 0x10f85}, + {0x10fb0, 0x10fc4}, {0x10fe0, 0x10ff6}, {0x11000, 0x11046}, {0x11066, 0x11075}, {0x1107f, 0x110ba}, {0x110c2, 0x110c2}, {0x110d0, 0x110e8}, {0x110f0, 0x110f9}, + {0x11100, 0x11134}, {0x11136, 0x1113f}, {0x11144, 0x11147}, {0x11150, 0x11173}, {0x11176, 0x11176}, {0x11180, 0x111c4}, {0x111c9, 0x111cc}, {0x111ce, 0x111da}, + {0x111dc, 0x111dc}, {0x11200, 0x11211}, {0x11213, 0x11237}, {0x1123e, 0x11241}, {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128a, 0x1128d}, {0x1128f, 0x1129d}, + {0x1129f, 0x112a8}, {0x112b0, 0x112ea}, {0x112f0, 0x112f9}, {0x11300, 0x11303}, {0x11305, 0x1130c}, {0x1130f, 0x11310}, {0x11313, 0x11328}, {0x1132a, 0x11330}, + {0x11332, 0x11333}, {0x11335, 0x11339}, {0x1133b, 0x11344}, {0x11347, 0x11348}, {0x1134b, 0x1134d}, {0x11350, 0x11350}, {0x11357, 0x11357}, {0x1135d, 0x11363}, + {0x11366, 0x1136c}, {0x11370, 0x11374}, {0x11380, 0x11389}, {0x1138b, 0x1138b}, {0x1138e, 0x1138e}, {0x11390, 0x113b5}, {0x113b7, 0x113c0}, {0x113c2, 0x113c2}, + {0x113c5, 0x113c5}, {0x113c7, 0x113ca}, {0x113cc, 0x113d3}, {0x113e1, 0x113e2}, {0x11400, 0x1144a}, {0x11450, 0x11459}, {0x1145e, 0x11461}, {0x11480, 0x114c5}, + {0x114c7, 0x114c7}, {0x114d0, 0x114d9}, {0x11580, 0x115b5}, {0x115b8, 0x115c0}, {0x115d8, 0x115dd}, {0x11600, 0x11640}, {0x11644, 0x11644}, {0x11650, 0x11659}, + {0x11680, 0x116b8}, {0x116c0, 0x116c9}, {0x116d0, 0x116e3}, {0x11700, 0x1171a}, {0x1171d, 0x1172b}, {0x11730, 0x11739}, {0x11740, 0x11746}, {0x11800, 0x1183a}, + {0x118a0, 0x118e9}, {0x118ff, 0x11906}, {0x11909, 0x11909}, {0x1190c, 0x11913}, {0x11915, 0x11916}, {0x11918, 0x11935}, {0x11937, 0x11938}, {0x1193b, 0x11943}, + {0x11950, 0x11959}, {0x119a0, 0x119a7}, {0x119aa, 0x119d7}, {0x119da, 0x119e1}, {0x119e3, 0x119e4}, {0x11a00, 0x11a3e}, {0x11a47, 0x11a47}, {0x11a50, 0x11a99}, + {0x11a9d, 0x11a9d}, {0x11ab0, 0x11af8}, {0x11bc0, 0x11be0}, {0x11bf0, 0x11bf9}, {0x11c00, 0x11c08}, {0x11c0a, 0x11c36}, {0x11c38, 0x11c40}, {0x11c50, 0x11c59}, + {0x11c72, 0x11c8f}, {0x11c92, 0x11ca7}, {0x11ca9, 0x11cb6}, {0x11d00, 0x11d06}, {0x11d08, 0x11d09}, {0x11d0b, 0x11d36}, {0x11d3a, 0x11d3a}, {0x11d3c, 0x11d3d}, + {0x11d3f, 0x11d47}, {0x11d50, 0x11d59}, {0x11d60, 0x11d65}, {0x11d67, 0x11d68}, {0x11d6a, 0x11d8e}, {0x11d90, 0x11d91}, {0x11d93, 0x11d98}, {0x11da0, 0x11da9}, + {0x11ee0, 0x11ef6}, {0x11f00, 0x11f10}, {0x11f12, 0x11f3a}, {0x11f3e, 0x11f42}, {0x11f50, 0x11f5a}, {0x11fb0, 0x11fb0}, {0x12000, 0x12399}, {0x12400, 0x1246e}, + {0x12480, 0x12543}, {0x12f90, 0x12ff0}, {0x13000, 0x1342f}, {0x13440, 0x13455}, {0x13460, 0x143fa}, {0x14400, 0x14646}, {0x16100, 0x16139}, {0x16800, 0x16a38}, + {0x16a40, 0x16a5e}, {0x16a60, 0x16a69}, {0x16a70, 0x16abe}, {0x16ac0, 0x16ac9}, {0x16ad0, 0x16aed}, {0x16af0, 0x16af4}, {0x16b00, 0x16b36}, {0x16b40, 0x16b43}, + {0x16b50, 0x16b59}, {0x16b63, 0x16b77}, {0x16b7d, 0x16b8f}, {0x16d40, 0x16d6c}, {0x16d70, 0x16d79}, {0x16e40, 0x16e7f}, {0x16f00, 0x16f4a}, {0x16f4f, 0x16f87}, + {0x16f8f, 0x16f9f}, {0x16fe0, 0x16fe1}, {0x16fe3, 0x16fe4}, {0x16ff0, 0x16ff1}, {0x17000, 0x187f7}, {0x18800, 0x18cd5}, {0x18cff, 0x18d08}, {0x1aff0, 0x1aff3}, + {0x1aff5, 0x1affb}, {0x1affd, 0x1affe}, {0x1b000, 0x1b122}, {0x1b132, 0x1b132}, {0x1b150, 0x1b152}, {0x1b155, 0x1b155}, {0x1b164, 0x1b167}, {0x1b170, 0x1b2fb}, + {0x1bc00, 0x1bc6a}, {0x1bc70, 0x1bc7c}, {0x1bc80, 0x1bc88}, {0x1bc90, 0x1bc99}, {0x1bc9d, 0x1bc9e}, {0x1ccf0, 0x1ccf9}, {0x1cf00, 0x1cf2d}, {0x1cf30, 0x1cf46}, + {0x1d165, 0x1d169}, {0x1d16d, 0x1d172}, {0x1d17b, 0x1d182}, {0x1d185, 0x1d18b}, {0x1d1aa, 0x1d1ad}, {0x1d242, 0x1d244}, {0x1d400, 0x1d454}, {0x1d456, 0x1d49c}, + {0x1d49e, 0x1d49f}, {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6}, {0x1d4a9, 0x1d4ac}, {0x1d4ae, 0x1d4b9}, {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3}, {0x1d4c5, 0x1d505}, + {0x1d507, 0x1d50a}, {0x1d50d, 0x1d514}, {0x1d516, 0x1d51c}, {0x1d51e, 0x1d539}, {0x1d53b, 0x1d53e}, {0x1d540, 0x1d544}, {0x1d546, 0x1d546}, {0x1d54a, 0x1d550}, + {0x1d552, 0x1d6a5}, {0x1d6a8, 0x1d6c0}, {0x1d6c2, 0x1d6da}, {0x1d6dc, 0x1d6fa}, {0x1d6fc, 0x1d714}, {0x1d716, 0x1d734}, {0x1d736, 0x1d74e}, {0x1d750, 0x1d76e}, + {0x1d770, 0x1d788}, {0x1d78a, 0x1d7a8}, {0x1d7aa, 0x1d7c2}, {0x1d7c4, 0x1d7cb}, {0x1d7ce, 0x1d7ff}, {0x1da00, 0x1da36}, {0x1da3b, 0x1da6c}, {0x1da75, 0x1da75}, + {0x1da84, 0x1da84}, {0x1da9b, 0x1da9f}, {0x1daa1, 0x1daaf}, {0x1df00, 0x1df1e}, {0x1df25, 0x1df2a}, {0x1e000, 0x1e006}, {0x1e008, 0x1e018}, {0x1e01b, 0x1e021}, + {0x1e023, 0x1e024}, {0x1e026, 0x1e02a}, {0x1e030, 0x1e06d}, {0x1e08f, 0x1e08f}, {0x1e100, 0x1e12c}, {0x1e130, 0x1e13d}, {0x1e140, 0x1e149}, {0x1e14e, 0x1e14e}, + {0x1e290, 0x1e2ae}, {0x1e2c0, 0x1e2f9}, {0x1e4d0, 0x1e4f9}, {0x1e5d0, 0x1e5fa}, {0x1e7e0, 0x1e7e6}, {0x1e7e8, 0x1e7eb}, {0x1e7ed, 0x1e7ee}, {0x1e7f0, 0x1e7fe}, + {0x1e800, 0x1e8c4}, {0x1e8d0, 0x1e8d6}, {0x1e900, 0x1e94b}, {0x1e950, 0x1e959}, {0x1ee00, 0x1ee03}, {0x1ee05, 0x1ee1f}, {0x1ee21, 0x1ee22}, {0x1ee24, 0x1ee24}, + {0x1ee27, 0x1ee27}, {0x1ee29, 0x1ee32}, {0x1ee34, 0x1ee37}, {0x1ee39, 0x1ee39}, {0x1ee3b, 0x1ee3b}, {0x1ee42, 0x1ee42}, {0x1ee47, 0x1ee47}, {0x1ee49, 0x1ee49}, + {0x1ee4b, 0x1ee4b}, {0x1ee4d, 0x1ee4f}, {0x1ee51, 0x1ee52}, {0x1ee54, 0x1ee54}, {0x1ee57, 0x1ee57}, {0x1ee59, 0x1ee59}, {0x1ee5b, 0x1ee5b}, {0x1ee5d, 0x1ee5d}, + {0x1ee5f, 0x1ee5f}, {0x1ee61, 0x1ee62}, {0x1ee64, 0x1ee64}, {0x1ee67, 0x1ee6a}, {0x1ee6c, 0x1ee72}, {0x1ee74, 0x1ee77}, {0x1ee79, 0x1ee7c}, {0x1ee7e, 0x1ee7e}, + {0x1ee80, 0x1ee89}, {0x1ee8b, 0x1ee9b}, {0x1eea1, 0x1eea3}, {0x1eea5, 0x1eea9}, {0x1eeab, 0x1eebb}, {0x1fbf0, 0x1fbf9}, {0x20000, 0x2a6df}, {0x2a700, 0x2b739}, + {0x2b740, 0x2b81d}, {0x2b820, 0x2cea1}, {0x2ceb0, 0x2ebe0}, {0x2ebf0, 0x2ee5d}, {0x2f800, 0x2fa1d}, {0x30000, 0x3134a}, {0x31350, 0x323af}, {0xe0100, 0xe01ef}, +}; static bool ts_lex(TSLexer *lexer, TSStateId state) { START_LEXER(); @@ -3614,44 +972,46 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { switch (state) { case 0: if (eof) ADVANCE(40); - if (lookahead == '"') ADVANCE(99); - if (lookahead == '(') ADVANCE(61); - if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(114); - if (lookahead == ',') ADVANCE(59); - if (lookahead == '-') ADVANCE(92); - if (lookahead == '/') ADVANCE(55); - if (lookahead == ':') ADVANCE(104); - if (lookahead == '=') ADVANCE(56); - if (lookahead == '@') ADVANCE(109); - if (lookahead == '[') ADVANCE(111); - if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(112); - if (lookahead == '`') ADVANCE(37); - if (lookahead == 'a') ADVANCE(76); - if (lookahead == 'd') ADVANCE(66); - if (lookahead == 'f') ADVANCE(63); - if (lookahead == 's') ADVANCE(71); - if (lookahead == 't') ADVANCE(78); - if (lookahead == 'u') ADVANCE(77); - if (lookahead == '{') ADVANCE(58); - if (lookahead == '}') ADVANCE(60); + ADVANCE_MAP( + '"', 99, + '(', 61, + ')', 62, + '+', 114, + ',', 59, + '-', 92, + '/', 55, + ':', 104, + '=', 56, + '@', 109, + '[', 111, + '\\', 12, + ']', 112, + '`', 37, + 'a', 76, + 'd', 66, + 'f', 63, + 's', 71, + 't', 78, + 'u', 77, + '{', 58, + '}', 60, + ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(38) + lookahead == ' ') SKIP(38); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_1, 685, lookahead)) ADVANCE(87); END_STATE(); case 1: - if (lookahead == '\n') SKIP(2) + if (lookahead == '\n') SKIP(2); if (lookahead == '"') ADVANCE(99); if (lookahead == '/') ADVANCE(96); - if (lookahead == '\\') ADVANCE(11); + if (lookahead == '\\') ADVANCE(12); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(97); if (lookahead != 0) ADVANCE(98); END_STATE(); case 2: - if (lookahead == '\n') SKIP(2) + if (lookahead == '\n') SKIP(2); if (lookahead == '/') ADVANCE(96); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(97); @@ -3660,142 +1020,148 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\') ADVANCE(98); END_STATE(); case 3: - if (lookahead == '"') ADVANCE(95); - if (lookahead == '(') ADVANCE(61); - if (lookahead == ')') ADVANCE(62); - if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(37); - if (lookahead == 'a') ADVANCE(21); - if (lookahead == 'd') ADVANCE(15); - if (lookahead == 'f') ADVANCE(13); - if (lookahead == 't') ADVANCE(22); - if (lookahead == '}') ADVANCE(60); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(3) + if (lookahead == '\r') ADVANCE(49); + if (lookahead == '\\') ADVANCE(45); + if (lookahead != 0) ADVANCE(48); END_STATE(); case 4: - if (lookahead == '"') ADVANCE(95); - if (lookahead == '(') ADVANCE(61); - if (lookahead == '+') ADVANCE(10); - if (lookahead == '-') ADVANCE(92); - if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(111); - if (lookahead == '`') ADVANCE(37); - if (lookahead == 'f') ADVANCE(63); - if (lookahead == 's') ADVANCE(71); - if (lookahead == 't') ADVANCE(78); - if (lookahead == 'u') ADVANCE(77); - if (lookahead == '{') ADVANCE(58); + ADVANCE_MAP( + '"', 95, + '(', 61, + ')', 62, + '/', 7, + '`', 37, + 'a', 22, + 'd', 16, + 'f', 14, + 't', 23, + '}', 60, + ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(4) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); + lookahead == ' ') SKIP(4); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(95); - if (lookahead == '-') ADVANCE(92); - if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(111); - if (lookahead == ']') ADVANCE(112); - if (lookahead == '`') ADVANCE(37); - if (lookahead == 'f') ADVANCE(63); - if (lookahead == 's') ADVANCE(71); - if (lookahead == 't') ADVANCE(78); - if (lookahead == '{') ADVANCE(58); + ADVANCE_MAP( + '"', 95, + '(', 61, + '+', 11, + '-', 92, + '/', 7, + '=', 56, + '[', 111, + '`', 37, + 'f', 63, + 's', 71, + 't', 78, + 'u', 77, + '{', 58, + ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(5) + lookahead == ' ') SKIP(5); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_1, 685, lookahead)) ADVANCE(87); END_STATE(); case 6: + ADVANCE_MAP( + '"', 95, + '-', 92, + '/', 7, + '[', 111, + ']', 112, + '`', 37, + 'f', 63, + 's', 71, + 't', 78, + '{', 58, + ); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(6); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); + if (set_contains(sym_identifier_character_set_1, 685, lookahead)) ADVANCE(87); + END_STATE(); + case 7: if (lookahead == '*') ADVANCE(50); if (lookahead == '/') ADVANCE(41); END_STATE(); - case 7: - if (lookahead == '*') ADVANCE(54); - if (lookahead == '/') ADVANCE(9); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(7); - if (lookahead != 0) ADVANCE(8); - END_STATE(); case 8: if (lookahead == '*') ADVANCE(54); - if (lookahead != 0) ADVANCE(8); + if (lookahead == '/') ADVANCE(10); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(8); + if (lookahead != 0) ADVANCE(9); END_STATE(); case 9: - if (lookahead == '*') ADVANCE(51); - if (lookahead == '/') ADVANCE(42); - if (lookahead != 0) ADVANCE(8); + if (lookahead == '*') ADVANCE(54); + if (lookahead != 0) ADVANCE(9); END_STATE(); case 10: - if (lookahead == '=') ADVANCE(57); + if (lookahead == '*') ADVANCE(51); + if (lookahead == '/') ADVANCE(42); + if (lookahead != 0) ADVANCE(9); END_STATE(); case 11: - if (lookahead == 'U') ADVANCE(35); - if (lookahead == 'u') ADVANCE(31); - if (lookahead == 'x') ADVANCE(29); + if (lookahead == '=') ADVANCE(57); + END_STATE(); + case 12: + if (lookahead == 'U') ADVANCE(36); + if (lookahead == 'u') ADVANCE(32); + if (lookahead == 'x') ADVANCE(30); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(102); if (lookahead != 0) ADVANCE(100); END_STATE(); - case 12: - if (lookahead == '`') ADVANCE(94); - if (lookahead != 0) ADVANCE(12); - END_STATE(); case 13: - if (lookahead == 'a') ADVANCE(19); + if (lookahead == '`') ADVANCE(94); + if (lookahead != 0) ADVANCE(13); END_STATE(); case 14: - if (lookahead == 'a') ADVANCE(26); + if (lookahead == 'a') ADVANCE(20); END_STATE(); case 15: - if (lookahead == 'e') ADVANCE(18); + if (lookahead == 'a') ADVANCE(27); END_STATE(); case 16: - if (lookahead == 'e') ADVANCE(88); + if (lookahead == 'e') ADVANCE(19); END_STATE(); case 17: - if (lookahead == 'e') ADVANCE(90); + if (lookahead == 'e') ADVANCE(88); END_STATE(); case 18: - if (lookahead == 'f') ADVANCE(14); + if (lookahead == 'e') ADVANCE(90); END_STATE(); case 19: - if (lookahead == 'l') ADVANCE(23); + if (lookahead == 'f') ADVANCE(15); END_STATE(); case 20: if (lookahead == 'l') ADVANCE(24); END_STATE(); case 21: - if (lookahead == 'n') ADVANCE(27); + if (lookahead == 'l') ADVANCE(25); END_STATE(); case 22: - if (lookahead == 'r') ADVANCE(25); + if (lookahead == 'n') ADVANCE(28); END_STATE(); case 23: - if (lookahead == 's') ADVANCE(17); + if (lookahead == 'r') ADVANCE(26); END_STATE(); case 24: - if (lookahead == 't') ADVANCE(107); + if (lookahead == 's') ADVANCE(18); END_STATE(); case 25: - if (lookahead == 'u') ADVANCE(16); + if (lookahead == 't') ADVANCE(107); END_STATE(); case 26: - if (lookahead == 'u') ADVANCE(20); + if (lookahead == 'u') ADVANCE(17); END_STATE(); case 27: - if (lookahead == 'y') ADVANCE(105); + if (lookahead == 'u') ADVANCE(21); END_STATE(); case 28: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); + if (lookahead == 'y') ADVANCE(105); END_STATE(); case 29: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(28); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); END_STATE(); case 30: if (('0' <= lookahead && lookahead <= '9') || @@ -3828,59 +1194,61 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ('a' <= lookahead && lookahead <= 'f')) ADVANCE(34); END_STATE(); case 36: - if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(47); - if (lookahead == '\r') ADVANCE(49); - if (lookahead == '\\') ADVANCE(48); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(35); END_STATE(); case 37: if (lookahead != 0 && - lookahead != '`') ADVANCE(12); + lookahead != '`') ADVANCE(13); END_STATE(); case 38: if (eof) ADVANCE(40); - if (lookahead == '"') ADVANCE(95); - if (lookahead == '(') ADVANCE(61); - if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(114); - if (lookahead == ',') ADVANCE(59); - if (lookahead == '-') ADVANCE(92); - if (lookahead == '/') ADVANCE(55); - if (lookahead == ':') ADVANCE(104); - if (lookahead == '=') ADVANCE(56); - if (lookahead == '@') ADVANCE(109); - if (lookahead == '[') ADVANCE(111); - if (lookahead == ']') ADVANCE(112); - if (lookahead == '`') ADVANCE(37); - if (lookahead == 'a') ADVANCE(76); - if (lookahead == 'd') ADVANCE(66); - if (lookahead == 'f') ADVANCE(63); - if (lookahead == 's') ADVANCE(71); - if (lookahead == 't') ADVANCE(78); - if (lookahead == 'u') ADVANCE(77); - if (lookahead == '{') ADVANCE(58); - if (lookahead == '}') ADVANCE(60); + ADVANCE_MAP( + '"', 95, + '(', 61, + ')', 62, + '+', 114, + ',', 59, + '-', 92, + '/', 55, + ':', 104, + '=', 56, + '@', 109, + '[', 111, + ']', 112, + '`', 37, + 'a', 76, + 'd', 66, + 'f', 63, + 's', 71, + 't', 78, + 'u', 77, + '{', 58, + '}', 60, + ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(38) + lookahead == ' ') SKIP(38); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_1, 685, lookahead)) ADVANCE(87); END_STATE(); case 39: if (eof) ADVANCE(40); - if (lookahead == '"') ADVANCE(95); - if (lookahead == '(') ADVANCE(61); - if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(113); - if (lookahead == ',') ADVANCE(59); - if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(104); - if (lookahead == ']') ADVANCE(112); - if (lookahead == '`') ADVANCE(37); - if (lookahead == '}') ADVANCE(60); + ADVANCE_MAP( + '"', 95, + '(', 61, + ')', 62, + '+', 113, + ',', 59, + '/', 7, + ':', 104, + ']', 112, + '`', 37, + '}', 60, + ); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(39) - if (sym_identifier_character_set_1(lookahead)) ADVANCE(87); + lookahead == ' ') SKIP(39); + if (set_contains(sym_identifier_character_set_1, 685, lookahead)) ADVANCE(87); END_STATE(); case 40: ACCEPT_TOKEN(ts_builtin_sym_end); @@ -3891,13 +1259,13 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 42: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); if (lookahead == '*') ADVANCE(54); - if (lookahead != 0) ADVANCE(8); + if (lookahead != 0) ADVANCE(9); END_STATE(); case 43: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '\\') ADVANCE(36); + if (lookahead == '\\') ADVANCE(3); if (lookahead != 0 && - lookahead != '\n') ADVANCE(47); + lookahead != '\n') ADVANCE(48); END_STATE(); case 44: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); @@ -3908,41 +1276,38 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 45: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '*') ADVANCE(52); - if (lookahead == '/') ADVANCE(43); - if (lookahead == '\\') ADVANCE(36); - if (lookahead != 0 && - lookahead != '\n') ADVANCE(47); + if (lookahead == '\r') ADVANCE(49); + if (lookahead == '\\') ADVANCE(45); + if (lookahead != 0) ADVANCE(48); END_STATE(); case 46: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '/') ADVANCE(45); - if (lookahead == '\\') ADVANCE(36); - if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(46); + if (lookahead == '*') ADVANCE(52); + if (lookahead == '/') ADVANCE(43); + if (lookahead == '\\') ADVANCE(3); if (lookahead != 0 && - lookahead != '\n') ADVANCE(47); + lookahead != '\n') ADVANCE(48); END_STATE(); case 47: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '\\') ADVANCE(36); + if (lookahead == '/') ADVANCE(46); + if (lookahead == '\\') ADVANCE(3); + if (lookahead == '\t' || + (0x0b <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(47); if (lookahead != 0 && - lookahead != '\n') ADVANCE(47); + (lookahead < '\t' || '\r' < lookahead)) ADVANCE(48); END_STATE(); case 48: ACCEPT_TOKEN(aux_sym_comment_token1); + if (lookahead == '\\') ADVANCE(3); if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(47); - if (lookahead == '\r') ADVANCE(49); - if (lookahead == '\\') ADVANCE(48); + lookahead != '\n') ADVANCE(48); END_STATE(); case 49: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead != 0 && - lookahead != '\\') ADVANCE(47); - if (lookahead == '\\') ADVANCE(36); + if (lookahead == '\\') ADVANCE(3); + if (lookahead != 0) ADVANCE(48); END_STATE(); case 50: ACCEPT_TOKEN(anon_sym_SLASH_STAR); @@ -3951,13 +1316,13 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ACCEPT_TOKEN(anon_sym_SLASH_STAR); if (lookahead == '*') ADVANCE(54); if (lookahead != 0 && - lookahead != '/') ADVANCE(8); + lookahead != '/') ADVANCE(9); END_STATE(); case 52: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '\\') ADVANCE(36); + if (lookahead == '\\') ADVANCE(3); if (lookahead != 0 && - lookahead != '\n') ADVANCE(47); + lookahead != '\n') ADVANCE(48); END_STATE(); case 53: ACCEPT_TOKEN(anon_sym_SLASH_STAR); @@ -3970,7 +1335,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ACCEPT_TOKEN(aux_sym_comment_token2); if (lookahead == '*') ADVANCE(54); if (lookahead != 0 && - lookahead != '/') ADVANCE(8); + lookahead != '/') ADVANCE(9); END_STATE(); case 55: ACCEPT_TOKEN(anon_sym_SLASH); @@ -4001,140 +1366,140 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 63: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'a') ADVANCE(75); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 64: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'a') ADVANCE(84); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 65: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'c') ADVANCE(82); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 66: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(72); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 67: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(65); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 68: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(89); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 69: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(81); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 70: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(91); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 71: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'e') ADVANCE(73); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 72: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'f') ADVANCE(64); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 73: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(67); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 74: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(83); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 75: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'l') ADVANCE(80); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 76: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'n') ADVANCE(86); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 77: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'n') ADVANCE(79); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 78: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'r') ADVANCE(85); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 79: ACCEPT_TOKEN(sym_identifier); if (lookahead == 's') ADVANCE(69); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 80: ACCEPT_TOKEN(sym_identifier); if (lookahead == 's') ADVANCE(70); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 81: ACCEPT_TOKEN(sym_identifier); if (lookahead == 't') ADVANCE(110); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 82: ACCEPT_TOKEN(sym_identifier); if (lookahead == 't') ADVANCE(103); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 83: ACCEPT_TOKEN(sym_identifier); if (lookahead == 't') ADVANCE(108); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 84: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'u') ADVANCE(74); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 85: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'u') ADVANCE(68); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 86: ACCEPT_TOKEN(sym_identifier); if (lookahead == 'y') ADVANCE(106); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 87: ACCEPT_TOKEN(sym_identifier); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 88: ACCEPT_TOKEN(anon_sym_true); END_STATE(); case 89: ACCEPT_TOKEN(anon_sym_true); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 90: ACCEPT_TOKEN(anon_sym_false); END_STATE(); case 91: ACCEPT_TOKEN(anon_sym_false); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 92: ACCEPT_TOKEN(anon_sym_DASH); @@ -4162,10 +1527,10 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); if (lookahead == '/') ADVANCE(96); if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || + (0x0b <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(97); if (lookahead != 0 && - lookahead != '\n' && + (lookahead < '\t' || '\r' < lookahead) && lookahead != '"' && lookahead != '\\') ADVANCE(98); END_STATE(); @@ -4192,7 +1557,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 103: ACCEPT_TOKEN(anon_sym_select); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 104: ACCEPT_TOKEN(anon_sym_COLON); @@ -4202,21 +1567,21 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 106: ACCEPT_TOKEN(anon_sym_any); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 107: ACCEPT_TOKEN(anon_sym_default); END_STATE(); case 108: ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 109: ACCEPT_TOKEN(anon_sym_AT); END_STATE(); case 110: ACCEPT_TOKEN(anon_sym_unset); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); + if (set_contains(sym_identifier_character_set_2, 800, lookahead)) ADVANCE(87); END_STATE(); case 111: ACCEPT_TOKEN(anon_sym_LBRACK); @@ -4236,26 +1601,26 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { } } -static const TSLexMode ts_lex_modes[STATE_COUNT] = { +static const TSLexerMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 39}, - [2] = {.lex_state = 4}, - [3] = {.lex_state = 5}, - [4] = {.lex_state = 5}, - [5] = {.lex_state = 5}, - [6] = {.lex_state = 5}, - [7] = {.lex_state = 5}, - [8] = {.lex_state = 5}, - [9] = {.lex_state = 5}, - [10] = {.lex_state = 5}, - [11] = {.lex_state = 3}, - [12] = {.lex_state = 3}, - [13] = {.lex_state = 3}, - [14] = {.lex_state = 3}, - [15] = {.lex_state = 3}, - [16] = {.lex_state = 3}, - [17] = {.lex_state = 3}, - [18] = {.lex_state = 3}, + [2] = {.lex_state = 5}, + [3] = {.lex_state = 6}, + [4] = {.lex_state = 6}, + [5] = {.lex_state = 6}, + [6] = {.lex_state = 6}, + [7] = {.lex_state = 6}, + [8] = {.lex_state = 6}, + [9] = {.lex_state = 6}, + [10] = {.lex_state = 6}, + [11] = {.lex_state = 4}, + [12] = {.lex_state = 4}, + [13] = {.lex_state = 4}, + [14] = {.lex_state = 4}, + [15] = {.lex_state = 4}, + [16] = {.lex_state = 4}, + [17] = {.lex_state = 4}, + [18] = {.lex_state = 4}, [19] = {.lex_state = 39}, [20] = {.lex_state = 39}, [21] = {.lex_state = 39}, @@ -4279,39 +1644,39 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [39] = {.lex_state = 39}, [40] = {.lex_state = 39}, [41] = {.lex_state = 1}, - [42] = {.lex_state = 39}, + [42] = {.lex_state = 5}, [43] = {.lex_state = 39}, - [44] = {.lex_state = 4}, + [44] = {.lex_state = 1}, [45] = {.lex_state = 39}, [46] = {.lex_state = 0}, - [47] = {.lex_state = 1}, + [47] = {.lex_state = 39}, [48] = {.lex_state = 1}, [49] = {.lex_state = 0}, - [50] = {.lex_state = 0}, + [50] = {.lex_state = 39}, [51] = {.lex_state = 0}, [52] = {.lex_state = 0}, [53] = {.lex_state = 39}, - [54] = {.lex_state = 0}, + [54] = {.lex_state = 39}, [55] = {.lex_state = 39}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 0}, - [58] = {.lex_state = 0}, + [57] = {.lex_state = 39}, + [58] = {.lex_state = 39}, [59] = {.lex_state = 0}, - [60] = {.lex_state = 0}, - [61] = {.lex_state = 39}, - [62] = {.lex_state = 1}, + [60] = {.lex_state = 39}, + [61] = {.lex_state = 0}, + [62] = {.lex_state = 39}, [63] = {.lex_state = 0}, - [64] = {.lex_state = 39}, - [65] = {.lex_state = 39}, - [66] = {.lex_state = 0}, - [67] = {.lex_state = 39}, - [68] = {.lex_state = 39}, + [64] = {.lex_state = 0}, + [65] = {.lex_state = 0}, + [66] = {.lex_state = 39}, + [67] = {.lex_state = 0}, + [68] = {.lex_state = 0}, [69] = {.lex_state = 0}, [70] = {.lex_state = 39}, [71] = {.lex_state = 39}, - [72] = {.lex_state = 39}, - [73] = {.lex_state = 0}, - [74] = {.lex_state = 39}, + [72] = {.lex_state = 0}, + [73] = {.lex_state = 39}, + [74] = {.lex_state = 0}, [75] = {.lex_state = 0}, [76] = {.lex_state = 0}, [77] = {.lex_state = 39}, @@ -4319,45 +1684,45 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [79] = {.lex_state = 0}, [80] = {.lex_state = 0}, [81] = {.lex_state = 39}, - [82] = {.lex_state = 39}, + [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, [84] = {.lex_state = 0}, - [85] = {.lex_state = 0}, - [86] = {.lex_state = 39}, - [87] = {.lex_state = 39}, - [88] = {.lex_state = 0}, - [89] = {.lex_state = 0}, + [85] = {.lex_state = 39}, + [86] = {.lex_state = 0}, + [87] = {.lex_state = 0}, + [88] = {.lex_state = 39}, + [89] = {.lex_state = 1}, [90] = {.lex_state = 39}, [91] = {.lex_state = 0}, - [92] = {.lex_state = 0}, + [92] = {.lex_state = 39}, [93] = {.lex_state = 39}, - [94] = {.lex_state = 39}, + [94] = {.lex_state = 0}, [95] = {.lex_state = 39}, [96] = {.lex_state = 0}, - [97] = {.lex_state = 39}, + [97] = {.lex_state = 0}, [98] = {.lex_state = 39}, - [99] = {.lex_state = 39}, - [100] = {.lex_state = 0}, - [101] = {.lex_state = 0}, - [102] = {.lex_state = 0}, + [99] = {.lex_state = 0}, + [100] = {.lex_state = 39}, + [101] = {.lex_state = 39}, + [102] = {.lex_state = 39}, [103] = {.lex_state = 0}, [104] = {.lex_state = 39}, - [105] = {.lex_state = 0}, + [105] = {.lex_state = 39}, [106] = {.lex_state = 39}, [107] = {.lex_state = 0}, [108] = {.lex_state = 39}, - [109] = {.lex_state = 0}, - [110] = {.lex_state = 39}, - [111] = {.lex_state = 0}, - [112] = {.lex_state = 39}, + [109] = {.lex_state = 39}, + [110] = {.lex_state = 0}, + [111] = {.lex_state = 39}, + [112] = {.lex_state = 0}, [113] = {.lex_state = 39}, - [114] = {.lex_state = 39}, - [115] = {.lex_state = 39}, + [114] = {.lex_state = 0}, + [115] = {.lex_state = 0}, [116] = {.lex_state = 39}, - [117] = {.lex_state = 0}, + [117] = {.lex_state = 39}, [118] = {.lex_state = 39}, - [119] = {.lex_state = 39}, - [120] = {.lex_state = 0}, + [119] = {.lex_state = 0}, + [120] = {.lex_state = 47}, [121] = {.lex_state = 0}, [122] = {.lex_state = 0}, [123] = {.lex_state = 39}, @@ -4367,8 +1732,8 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [127] = {.lex_state = 0}, [128] = {.lex_state = 0}, [129] = {.lex_state = 0}, - [130] = {.lex_state = 7}, - [131] = {.lex_state = 0}, + [130] = {.lex_state = 0}, + [131] = {.lex_state = 8}, [132] = {.lex_state = 0}, [133] = {.lex_state = 0}, [134] = {.lex_state = 0}, @@ -4377,17 +1742,17 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [137] = {.lex_state = 0}, [138] = {.lex_state = 0}, [139] = {.lex_state = 0}, - [140] = {.lex_state = 46}, + [140] = {.lex_state = 0}, [141] = {.lex_state = 0}, [142] = {.lex_state = 0}, [143] = {.lex_state = 0}, [144] = {.lex_state = 0}, - [145] = {(TSStateId)(-1)}, - [146] = {(TSStateId)(-1)}, + [145] = {(TSStateId)(-1),}, + [146] = {(TSStateId)(-1),}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { - [0] = { + [STATE(0)] = { [sym_comment] = STATE(0), [ts_builtin_sym_end] = ACTIONS(1), [anon_sym_SLASH_SLASH] = ACTIONS(3), @@ -4419,15 +1784,15 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, - [1] = { - [sym_source_file] = STATE(121), - [sym__definition] = STATE(94), + [STATE(1)] = { + [sym_source_file] = STATE(130), + [sym__definition] = STATE(106), [sym_comment] = STATE(1), - [sym_assignment] = STATE(99), - [sym_module] = STATE(99), - [sym__old_module] = STATE(108), - [sym__new_module] = STATE(110), - [aux_sym_source_file_repeat1] = STATE(24), + [sym_assignment] = STATE(108), + [sym_module] = STATE(108), + [sym__old_module] = STATE(104), + [sym__new_module] = STATE(109), + [aux_sym_source_file_repeat1] = STATE(19), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4461,16 +1826,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(72), 1, + STATE(85), 1, sym__expr, - STATE(102), 1, + STATE(114), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4503,14 +1868,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(82), 1, + STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4543,14 +1908,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(82), 1, + STATE(47), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4583,14 +1948,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(43), 1, + STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4621,14 +1986,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(33), 1, + STATE(29), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4659,14 +2024,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(82), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4697,14 +2062,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(71), 1, + STATE(54), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4735,14 +2100,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(53), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4773,14 +2138,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(81), 1, + STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(38), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4807,18 +2172,18 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(11), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(111), 1, + STATE(110), 1, sym_select_case, - STATE(122), 1, - sym__select_pattern, - STATE(126), 1, + STATE(137), 1, sym_select_pattern, + STATE(138), 1, + sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4841,18 +2206,18 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, STATE(12), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(111), 1, + STATE(76), 1, sym_select_case, - STATE(122), 1, - sym__select_pattern, - STATE(126), 1, + STATE(137), 1, sym_select_pattern, + STATE(138), 1, + sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4875,18 +2240,18 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, STATE(13), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(60), 1, + STATE(110), 1, sym_select_case, - STATE(122), 1, - sym__select_pattern, - STATE(126), 1, + STATE(137), 1, sym_select_pattern, + STATE(138), 1, + sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4907,18 +2272,18 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(14), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(111), 1, + STATE(110), 1, sym_select_case, - STATE(122), 1, - sym__select_pattern, - STATE(126), 1, + STATE(137), 1, sym_select_pattern, + STATE(138), 1, + sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4939,14 +2304,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(15), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(100), 1, + STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4967,14 +2332,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(16), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(100), 1, + STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -4993,14 +2358,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(17), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(100), 1, + STATE(79), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, @@ -5019,34 +2384,40 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(18), 1, sym_comment, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(51), 3, + STATE(75), 3, sym_boolean_literal, sym__string_literal, sym_pattern_binding, - [839] = 4, + [839] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(9), 1, + sym_identifier, + ACTIONS(55), 1, + ts_builtin_sym_end, STATE(19), 1, sym_comment, - ACTIONS(55), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [859] = 4, + STATE(22), 1, + aux_sym_source_file_repeat1, + STATE(104), 1, + sym__old_module, + STATE(106), 1, + sym__definition, + STATE(109), 1, + sym__new_module, + STATE(108), 2, + sym_assignment, + sym_module, + [871] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5062,7 +2433,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [879] = 4, + [891] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5078,7 +2449,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [899] = 9, + [911] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5087,19 +2458,19 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, ACTIONS(63), 1, sym_identifier, - STATE(94), 1, - sym__definition, - STATE(108), 1, + STATE(104), 1, sym__old_module, - STATE(110), 1, + STATE(106), 1, + sym__definition, + STATE(109), 1, sym__new_module, STATE(22), 2, sym_comment, aux_sym_source_file_repeat1, - STATE(99), 2, + STATE(108), 2, sym_assignment, sym_module, - [929] = 4, + [941] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5115,28 +2486,22 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [949] = 10, + [961] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(68), 1, - ts_builtin_sym_end, - STATE(22), 1, - aux_sym_source_file_repeat1, STATE(24), 1, sym_comment, - STATE(94), 1, - sym__definition, - STATE(108), 1, - sym__old_module, - STATE(110), 1, - sym__new_module, - STATE(99), 2, - sym_assignment, - sym_module, + ACTIONS(68), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, [981] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5373,72 +2738,41 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(100), 1, anon_sym_RPAREN, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(89), 1, + STATE(68), 1, sym__string_literal, - [1291] = 7, + [1291] = 6, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, anon_sym_SLASH_STAR, ACTIONS(106), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(108), 1, + ACTIONS(109), 1, anon_sym_DQUOTE2, - ACTIONS(110), 1, + ACTIONS(111), 1, sym_escape_sequence, - STATE(41), 1, + STATE(41), 2, sym_comment, - STATE(48), 1, aux_sym_interpreted_string_literal_repeat1, - [1313] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(112), 1, - anon_sym_LPAREN, - ACTIONS(114), 1, - sym_identifier, - STATE(42), 1, - sym_comment, - STATE(135), 1, - sym_select_value, - STATE(137), 1, - sym_condition, - [1335] = 7, + [1311] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(116), 1, - anon_sym_COMMA, - ACTIONS(118), 1, - anon_sym_RBRACK, - ACTIONS(120), 1, - anon_sym_PLUS, - STATE(43), 1, - sym_comment, - STATE(63), 1, - aux_sym_list_expression_repeat1, - [1357] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(124), 1, anon_sym_LBRACE, - ACTIONS(126), 1, + ACTIONS(118), 1, anon_sym_LPAREN, - STATE(44), 1, + STATE(42), 1, sym_comment, - ACTIONS(122), 2, + ACTIONS(114), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1377] = 7, + [1331] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5447,51 +2781,82 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + STATE(24), 1, sym_interpreted_string_literal, - STATE(45), 1, + STATE(43), 1, sym_comment, - STATE(91), 1, + STATE(119), 1, sym__string_literal, - [1399] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(130), 1, - anon_sym_AT, - STATE(46), 1, - sym_comment, - ACTIONS(128), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1417] = 6, + [1353] = 7, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(120), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(135), 1, + ACTIONS(122), 1, anon_sym_DQUOTE2, - ACTIONS(137), 1, + ACTIONS(124), 1, sym_escape_sequence, - STATE(47), 2, - sym_comment, + STATE(41), 1, aux_sym_interpreted_string_literal_repeat1, + STATE(44), 1, + sym_comment, + [1375] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(126), 1, + anon_sym_LPAREN, + ACTIONS(128), 1, + sym_identifier, + STATE(45), 1, + sym_comment, + STATE(121), 1, + sym_condition, + STATE(124), 1, + sym_select_value, + [1397] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(132), 1, + anon_sym_AT, + STATE(46), 1, + sym_comment, + ACTIONS(130), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1415] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(134), 1, + anon_sym_COMMA, + ACTIONS(136), 1, + anon_sym_RBRACK, + ACTIONS(138), 1, + anon_sym_PLUS, + STATE(47), 1, + sym_comment, + STATE(52), 1, + aux_sym_list_expression_repeat1, [1437] = 7, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, anon_sym_SLASH_STAR, - ACTIONS(106), 1, + ACTIONS(120), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(110), 1, + ACTIONS(124), 1, sym_escape_sequence, ACTIONS(140), 1, anon_sym_DQUOTE2, - STATE(47), 1, + STATE(44), 1, aux_sym_interpreted_string_literal_repeat1, STATE(48), 1, sym_comment, @@ -5503,545 +2868,545 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(142), 1, anon_sym_COMMA, ACTIONS(144), 1, - anon_sym_RBRACE, + anon_sym_RPAREN, STATE(49), 1, sym_comment, - STATE(54), 1, - aux_sym__old_module_repeat1, - [1478] = 5, + STATE(67), 1, + aux_sym_select_value_repeat1, + [1478] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(146), 1, - anon_sym_COMMA, - ACTIONS(149), 1, anon_sym_RBRACE, - STATE(50), 2, + ACTIONS(148), 1, + sym_identifier, + STATE(50), 1, sym_comment, - aux_sym__old_module_repeat1, - [1495] = 4, + STATE(91), 1, + sym__colon_property, + [1497] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(150), 1, + anon_sym_COMMA, + ACTIONS(152), 1, + anon_sym_RBRACE, STATE(51), 1, sym_comment, - ACTIONS(128), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1510] = 6, + STATE(56), 1, + aux_sym__old_module_repeat1, + [1516] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(154), 1, anon_sym_COMMA, - ACTIONS(153), 1, - anon_sym_RPAREN, + ACTIONS(156), 1, + anon_sym_RBRACK, STATE(52), 1, sym_comment, - STATE(75), 1, - aux_sym__new_module_repeat1, - [1529] = 6, + STATE(64), 1, + aux_sym_list_expression_repeat1, + [1535] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, - anon_sym_RBRACE, - ACTIONS(157), 1, - sym_identifier, + ACTIONS(138), 1, + anon_sym_PLUS, STATE(53), 1, sym_comment, - STATE(105), 1, - sym__colon_property, - [1548] = 6, + ACTIONS(158), 2, + ts_builtin_sym_end, + sym_identifier, + [1552] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, - anon_sym_COMMA, - ACTIONS(161), 1, - anon_sym_RBRACE, - STATE(50), 1, - aux_sym__old_module_repeat1, + ACTIONS(138), 1, + anon_sym_PLUS, STATE(54), 1, sym_comment, - [1567] = 6, + ACTIONS(160), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1569] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(163), 1, - anon_sym_RPAREN, - ACTIONS(165), 1, + ACTIONS(148), 1, sym_identifier, + ACTIONS(162), 1, + anon_sym_RBRACE, STATE(55), 1, sym_comment, - STATE(73), 1, - sym__equal_property, - [1586] = 6, + STATE(91), 1, + sym__colon_property, + [1588] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(53), 1, - anon_sym_RPAREN, + ACTIONS(164), 1, + anon_sym_COMMA, ACTIONS(167), 1, - anon_sym_COMMA, - STATE(56), 1, + anon_sym_RBRACE, + STATE(56), 2, sym_comment, - STATE(83), 1, - aux_sym_select_pattern_repeat1, - [1605] = 6, + aux_sym__old_module_repeat1, + [1605] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(169), 1, - anon_sym_COMMA, - ACTIONS(171), 1, - anon_sym_RBRACE, - STATE(50), 1, - aux_sym__old_module_repeat1, + ACTIONS(138), 1, + anon_sym_PLUS, STATE(57), 1, sym_comment, - [1624] = 4, + ACTIONS(169), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1622] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(171), 1, + anon_sym_RPAREN, + ACTIONS(173), 1, + sym_identifier, STATE(58), 1, sym_comment, - ACTIONS(173), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1639] = 6, + STATE(97), 1, + sym__equal_property, + [1641] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(175), 1, anon_sym_COMMA, - ACTIONS(177), 1, + ACTIONS(178), 1, anon_sym_RPAREN, - STATE(59), 1, + STATE(59), 2, sym_comment, - STATE(76), 1, - aux_sym_condition_repeat1, + aux_sym__new_module_repeat1, [1658] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(179), 1, - anon_sym_COMMA, - ACTIONS(181), 1, + ACTIONS(148), 1, + sym_identifier, + ACTIONS(180), 1, anon_sym_RBRACE, STATE(60), 1, sym_comment, - STATE(84), 1, - aux_sym_select_cases_repeat1, + STATE(91), 1, + sym__colon_property, [1677] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, - ACTIONS(183), 1, + ACTIONS(182), 1, + anon_sym_COMMA, + ACTIONS(184), 1, anon_sym_RBRACE, STATE(61), 1, sym_comment, - STATE(105), 1, - sym__colon_property, + STATE(86), 1, + aux_sym__old_module_repeat1, [1696] = 5, - ACTIONS(102), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(104), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(185), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(138), 1, + anon_sym_PLUS, STATE(62), 1, sym_comment, - ACTIONS(187), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, + ACTIONS(186), 2, + anon_sym_COMMA, + anon_sym_RBRACK, [1713] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(188), 1, anon_sym_COMMA, - ACTIONS(191), 1, - anon_sym_RBRACK, + ACTIONS(190), 1, + anon_sym_RPAREN, STATE(63), 1, sym_comment, - STATE(85), 1, - aux_sym_list_expression_repeat1, - [1732] = 6, + STATE(69), 1, + aux_sym__new_module_repeat1, + [1732] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, - ACTIONS(193), 1, - anon_sym_RBRACE, - STATE(64), 1, - sym_comment, - STATE(78), 1, - sym__colon_property, - [1751] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(120), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(195), 2, + ACTIONS(192), 1, anon_sym_COMMA, - anon_sym_RBRACE, - [1768] = 5, + ACTIONS(195), 1, + anon_sym_RBRACK, + STATE(64), 2, + sym_comment, + aux_sym_list_expression_repeat1, + [1749] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(197), 1, anon_sym_COMMA, - ACTIONS(200), 1, - anon_sym_RPAREN, - STATE(66), 2, + ACTIONS(199), 1, + anon_sym_RBRACE, + STATE(51), 1, + aux_sym__old_module_repeat1, + STATE(65), 1, sym_comment, - aux_sym_select_value_repeat1, - [1785] = 6, + [1768] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(114), 1, + ACTIONS(128), 1, sym_identifier, - ACTIONS(202), 1, + ACTIONS(201), 1, anon_sym_RPAREN, + STATE(66), 1, + sym_comment, + STATE(96), 1, + sym_condition, + [1787] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(201), 1, + anon_sym_RPAREN, + ACTIONS(203), 1, + anon_sym_COMMA, STATE(67), 1, sym_comment, - STATE(103), 1, - sym_condition, - [1804] = 6, + STATE(72), 1, + aux_sym_select_value_repeat1, + [1806] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, - ACTIONS(204), 1, - anon_sym_RBRACE, + ACTIONS(205), 1, + anon_sym_COMMA, + ACTIONS(207), 1, + anon_sym_RPAREN, STATE(68), 1, sym_comment, - STATE(105), 1, - sym__colon_property, - [1823] = 5, + STATE(74), 1, + aux_sym_condition_repeat1, + [1825] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(206), 1, - anon_sym_COMMA, ACTIONS(209), 1, - anon_sym_RBRACE, - STATE(69), 2, - sym_comment, - aux_sym_select_cases_repeat1, - [1840] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(165), 1, - sym_identifier, + anon_sym_COMMA, ACTIONS(211), 1, anon_sym_RPAREN, + STATE(59), 1, + aux_sym__new_module_repeat1, + STATE(69), 1, + sym_comment, + [1844] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(148), 1, + sym_identifier, + ACTIONS(213), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym__colon_property, STATE(70), 1, sym_comment, - STATE(101), 1, - sym__equal_property, - [1859] = 5, + [1863] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(120), 1, - anon_sym_PLUS, + ACTIONS(128), 1, + sym_identifier, + ACTIONS(215), 1, + anon_sym_RPAREN, STATE(71), 1, sym_comment, - ACTIONS(213), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1876] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(120), 1, - anon_sym_PLUS, - STATE(72), 1, - sym_comment, - ACTIONS(215), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1893] = 6, + STATE(96), 1, + sym_condition, + [1882] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(217), 1, anon_sym_COMMA, - ACTIONS(219), 1, + ACTIONS(220), 1, anon_sym_RPAREN, - STATE(52), 1, - aux_sym__new_module_repeat1, - STATE(73), 1, + STATE(72), 2, sym_comment, - [1912] = 6, + aux_sym_select_value_repeat1, + [1899] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, + ACTIONS(173), 1, sym_identifier, - ACTIONS(221), 1, + ACTIONS(222), 1, + anon_sym_RPAREN, + STATE(63), 1, + sym__equal_property, + STATE(73), 1, + sym_comment, + [1918] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(205), 1, + anon_sym_COMMA, + ACTIONS(224), 1, anon_sym_RPAREN, STATE(74), 1, sym_comment, - STATE(101), 1, - sym__equal_property, - [1931] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(223), 1, - anon_sym_COMMA, - ACTIONS(226), 1, - anon_sym_RPAREN, - STATE(75), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1948] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(228), 1, - anon_sym_COMMA, - ACTIONS(231), 1, - anon_sym_RPAREN, - STATE(76), 2, - sym_comment, + STATE(78), 1, aux_sym_condition_repeat1, - [1965] = 6, + [1937] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, - ACTIONS(233), 1, + STATE(75), 1, + sym_comment, + ACTIONS(130), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1952] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(226), 1, + anon_sym_COMMA, + ACTIONS(228), 1, anon_sym_RBRACE, + STATE(76), 1, + sym_comment, + STATE(80), 1, + aux_sym_select_cases_repeat1, + [1971] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(148), 1, + sym_identifier, + ACTIONS(230), 1, + anon_sym_RBRACE, + STATE(65), 1, + sym__colon_property, STATE(77), 1, sym_comment, - STATE(105), 1, - sym__colon_property, - [1984] = 6, + [1990] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(232), 1, + anon_sym_COMMA, ACTIONS(235), 1, - anon_sym_COMMA, - ACTIONS(237), 1, - anon_sym_RBRACE, - STATE(57), 1, - aux_sym__old_module_repeat1, - STATE(78), 1, + anon_sym_RPAREN, + STATE(78), 2, sym_comment, - [2003] = 6, + aux_sym_condition_repeat1, + [2007] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(239), 1, + ACTIONS(237), 1, anon_sym_COMMA, - ACTIONS(241), 1, + ACTIONS(239), 1, anon_sym_RPAREN, STATE(79), 1, sym_comment, - STATE(88), 1, - aux_sym_select_value_repeat1, - [2022] = 6, + STATE(82), 1, + aux_sym_select_pattern_repeat1, + [2026] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(243), 1, + ACTIONS(49), 1, + anon_sym_RBRACE, + ACTIONS(241), 1, anon_sym_COMMA, - ACTIONS(245), 1, - anon_sym_RPAREN, - STATE(56), 1, - aux_sym_select_pattern_repeat1, STATE(80), 1, sym_comment, - [2041] = 5, + STATE(84), 1, + aux_sym_select_cases_repeat1, + [2045] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(120), 1, - anon_sym_PLUS, + ACTIONS(148), 1, + sym_identifier, + ACTIONS(243), 1, + anon_sym_RBRACE, STATE(81), 1, sym_comment, - ACTIONS(247), 2, - ts_builtin_sym_end, - sym_identifier, - [2058] = 5, + STATE(91), 1, + sym__colon_property, + [2064] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(120), 1, - anon_sym_PLUS, + ACTIONS(51), 1, + anon_sym_RPAREN, + ACTIONS(245), 1, + anon_sym_COMMA, STATE(82), 1, sym_comment, - ACTIONS(249), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [2075] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(251), 1, - anon_sym_COMMA, - ACTIONS(254), 1, - anon_sym_RPAREN, - STATE(83), 2, - sym_comment, + STATE(87), 1, aux_sym_select_pattern_repeat1, - [2092] = 6, + [2083] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(47), 1, + STATE(83), 1, + sym_comment, + ACTIONS(247), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [2098] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(249), 1, + anon_sym_COMMA, + ACTIONS(252), 1, anon_sym_RBRACE, + STATE(84), 2, + sym_comment, + aux_sym_select_cases_repeat1, + [2115] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(138), 1, + anon_sym_PLUS, + STATE(85), 1, + sym_comment, + ACTIONS(254), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2132] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, ACTIONS(256), 1, anon_sym_COMMA, - STATE(69), 1, - aux_sym_select_cases_repeat1, - STATE(84), 1, - sym_comment, - [2111] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, ACTIONS(258), 1, - anon_sym_COMMA, - ACTIONS(261), 1, - anon_sym_RBRACK, - STATE(85), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [2128] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, - ACTIONS(263), 1, anon_sym_RBRACE, - STATE(49), 1, - sym__colon_property, + STATE(56), 1, + aux_sym__old_module_repeat1, STATE(86), 1, sym_comment, - [2147] = 6, + [2151] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(114), 1, + ACTIONS(260), 1, + anon_sym_COMMA, + ACTIONS(263), 1, + anon_sym_RPAREN, + STATE(87), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [2168] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(173), 1, sym_identifier, ACTIONS(265), 1, anon_sym_RPAREN, - STATE(87), 1, - sym_comment, - STATE(103), 1, - sym_condition, - [2166] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(265), 1, - anon_sym_RPAREN, - ACTIONS(267), 1, - anon_sym_COMMA, - STATE(66), 1, - aux_sym_select_value_repeat1, STATE(88), 1, sym_comment, - [2185] = 6, - ACTIONS(3), 1, + STATE(97), 1, + sym__equal_property, + [2187] = 5, + ACTIONS(102), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(104), 1, anon_sym_SLASH_STAR, - ACTIONS(175), 1, - anon_sym_COMMA, - ACTIONS(269), 1, - anon_sym_RPAREN, - STATE(59), 1, - aux_sym_condition_repeat1, + ACTIONS(267), 1, + aux_sym_interpreted_string_literal_token1, STATE(89), 1, sym_comment, - [2204] = 4, + ACTIONS(269), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [2204] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(128), 1, + sym_identifier, + STATE(49), 1, + sym_condition, STATE(90), 1, sym_comment, - ACTIONS(271), 2, - ts_builtin_sym_end, - sym_identifier, - [2218] = 4, + [2220] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(231), 2, + ACTIONS(271), 2, anon_sym_COMMA, - anon_sym_RPAREN, - [2232] = 5, + anon_sym_RBRACE, + [2234] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, - anon_sym_LBRACE, STATE(92), 1, sym_comment, - STATE(141), 1, - sym_select_cases, + ACTIONS(273), 2, + ts_builtin_sym_end, + sym_identifier, [2248] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6060,8 +3425,8 @@ static const uint16_t ts_small_parse_table[] = { STATE(94), 1, sym_comment, ACTIONS(277), 2, - ts_builtin_sym_end, - sym_identifier, + anon_sym_COMMA, + anon_sym_RPAREN, [2276] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6079,21 +3444,20 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(281), 2, + ACTIONS(220), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2304] = 5, + [2304] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - sym_identifier, STATE(97), 1, sym_comment, - STATE(105), 1, - sym__colon_property, - [2320] = 4, + ACTIONS(281), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2318] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6103,7 +3467,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(283), 2, ts_builtin_sym_end, sym_identifier, - [2334] = 4, + [2332] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6111,49 +3475,51 @@ static const uint16_t ts_small_parse_table[] = { STATE(99), 1, sym_comment, ACTIONS(285), 2, - ts_builtin_sym_end, - sym_identifier, - [2348] = 4, + anon_sym_COMMA, + anon_sym_RPAREN, + [2346] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(254), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2362] = 4, + ACTIONS(287), 2, + ts_builtin_sym_end, + sym_identifier, + [2360] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(128), 1, + sym_identifier, + STATE(96), 1, + sym_condition, STATE(101), 1, sym_comment, - ACTIONS(287), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2376] = 4, + [2376] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(173), 1, + sym_identifier, + STATE(97), 1, + sym__equal_property, STATE(102), 1, sym_comment, - ACTIONS(289), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2390] = 4, + [2392] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(103), 1, sym_comment, - ACTIONS(200), 2, + ACTIONS(289), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2404] = 4, + [2406] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6163,7 +3529,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2418] = 4, + [2420] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6171,9 +3537,9 @@ static const uint16_t ts_small_parse_table[] = { STATE(105), 1, sym_comment, ACTIONS(293), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2432] = 4, + ts_builtin_sym_end, + sym_identifier, + [2434] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6183,17 +3549,18 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(295), 2, ts_builtin_sym_end, sym_identifier, - [2446] = 4, + [2448] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(297), 1, + anon_sym_LBRACE, STATE(107), 1, sym_comment, - ACTIONS(297), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2460] = 4, + STATE(122), 1, + sym_select_cases, + [2464] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6203,78 +3570,77 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(299), 2, ts_builtin_sym_end, sym_identifier, - [2474] = 4, + [2478] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(109), 1, sym_comment, - ACTIONS(215), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2488] = 4, + ACTIONS(291), 2, + ts_builtin_sym_end, + sym_identifier, + [2492] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(299), 2, - ts_builtin_sym_end, - sym_identifier, - [2502] = 4, + ACTIONS(252), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2506] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(209), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2516] = 5, + ACTIONS(301), 2, + ts_builtin_sym_end, + sym_identifier, + [2520] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(114), 1, - sym_identifier, - STATE(79), 1, - sym_condition, STATE(112), 1, sym_comment, - [2532] = 4, + ACTIONS(254), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2534] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(113), 1, sym_comment, - ACTIONS(301), 2, + ACTIONS(303), 2, ts_builtin_sym_end, sym_identifier, - [2546] = 4, + [2548] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(114), 1, sym_comment, - ACTIONS(303), 2, - ts_builtin_sym_end, - sym_identifier, - [2560] = 4, + ACTIONS(305), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2562] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(115), 1, sym_comment, - ACTIONS(305), 2, - ts_builtin_sym_end, - sym_identifier, - [2574] = 4, + ACTIONS(263), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2576] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6284,45 +3650,44 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(307), 2, ts_builtin_sym_end, sym_identifier, - [2588] = 4, + [2590] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(148), 1, + sym_identifier, + STATE(91), 1, + sym__colon_property, STATE(117), 1, sym_comment, - ACTIONS(309), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2602] = 5, + [2606] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(114), 1, - sym_identifier, - STATE(103), 1, - sym_condition, STATE(118), 1, sym_comment, - [2618] = 5, + ACTIONS(309), 2, + ts_builtin_sym_end, + sym_identifier, + [2620] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, - sym_identifier, - STATE(101), 1, - sym__equal_property, STATE(119), 1, sym_comment, + ACTIONS(235), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2634] = 4, - ACTIONS(3), 1, + ACTIONS(102), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(104), 1, anon_sym_SLASH_STAR, ACTIONS(311), 1, - anon_sym_RPAREN, + aux_sym_comment_token1, STATE(120), 1, sym_comment, [2647] = 4, @@ -6331,7 +3696,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(313), 1, - ts_builtin_sym_end, + anon_sym_COMMA, STATE(121), 1, sym_comment, [2660] = 4, @@ -6340,7 +3705,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(315), 1, - anon_sym_COLON, + anon_sym_RPAREN, STATE(122), 1, sym_comment, [2673] = 4, @@ -6358,7 +3723,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(319), 1, - anon_sym_COLON, + anon_sym_COMMA, STATE(124), 1, sym_comment, [2699] = 4, @@ -6376,7 +3741,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(323), 1, - anon_sym_COLON, + anon_sym_LPAREN, STATE(126), 1, sym_comment, [2725] = 4, @@ -6385,7 +3750,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(325), 1, - anon_sym_LPAREN, + anon_sym_RPAREN, STATE(127), 1, sym_comment, [2738] = 4, @@ -6394,7 +3759,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(327), 1, - aux_sym_integer_literal_token1, + anon_sym_EQ, STATE(128), 1, sym_comment, [2751] = 4, @@ -6407,21 +3772,21 @@ static const uint16_t ts_small_parse_table[] = { STATE(129), 1, sym_comment, [2764] = 4, - ACTIONS(102), 1, - anon_sym_SLASH_SLASH, - ACTIONS(104), 1, - anon_sym_SLASH_STAR, - ACTIONS(331), 1, - aux_sym_comment_token2, - STATE(130), 1, - sym_comment, - [2777] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(331), 1, + ts_builtin_sym_end, + STATE(130), 1, + sym_comment, + [2777] = 4, + ACTIONS(102), 1, + anon_sym_SLASH_SLASH, + ACTIONS(104), 1, + anon_sym_SLASH_STAR, ACTIONS(333), 1, - anon_sym_COLON, + aux_sym_comment_token2, STATE(131), 1, sym_comment, [2790] = 4, @@ -6430,7 +3795,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(335), 1, - anon_sym_EQ, + anon_sym_RPAREN, STATE(132), 1, sym_comment, [2803] = 4, @@ -6439,7 +3804,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(337), 1, - anon_sym_COMMA, + anon_sym_COLON, STATE(133), 1, sym_comment, [2816] = 4, @@ -6448,7 +3813,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(339), 1, - anon_sym_SLASH, + anon_sym_COMMA, STATE(134), 1, sym_comment, [2829] = 4, @@ -6457,7 +3822,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(341), 1, - anon_sym_COMMA, + anon_sym_SLASH, STATE(135), 1, sym_comment, [2842] = 4, @@ -6466,7 +3831,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(343), 1, - anon_sym_RPAREN, + anon_sym_COLON, STATE(136), 1, sym_comment, [2855] = 4, @@ -6475,7 +3840,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(345), 1, - anon_sym_COMMA, + anon_sym_COLON, STATE(137), 1, sym_comment, [2868] = 4, @@ -6484,7 +3849,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(347), 1, - anon_sym_COMMA, + anon_sym_COLON, STATE(138), 1, sym_comment, [2881] = 4, @@ -6497,12 +3862,12 @@ static const uint16_t ts_small_parse_table[] = { STATE(139), 1, sym_comment, [2894] = 4, - ACTIONS(102), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(104), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(351), 1, - aux_sym_comment_token1, + anon_sym_COMMA, STATE(140), 1, sym_comment, [2907] = 4, @@ -6511,7 +3876,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(353), 1, - anon_sym_RPAREN, + anon_sym_COMMA, STATE(141), 1, sym_comment, [2920] = 4, @@ -6520,7 +3885,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(355), 1, - anon_sym_COMMA, + anon_sym_RPAREN, STATE(142), 1, sym_comment, [2933] = 4, @@ -6529,7 +3894,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(357), 1, - anon_sym_RPAREN, + aux_sym_integer_literal_token1, STATE(143), 1, sym_comment, [2946] = 4, @@ -6568,11 +3933,11 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(17)] = 765, [SMALL_STATE(18)] = 802, [SMALL_STATE(19)] = 839, - [SMALL_STATE(20)] = 859, - [SMALL_STATE(21)] = 879, - [SMALL_STATE(22)] = 899, - [SMALL_STATE(23)] = 929, - [SMALL_STATE(24)] = 949, + [SMALL_STATE(20)] = 871, + [SMALL_STATE(21)] = 891, + [SMALL_STATE(22)] = 911, + [SMALL_STATE(23)] = 941, + [SMALL_STATE(24)] = 961, [SMALL_STATE(25)] = 981, [SMALL_STATE(26)] = 1000, [SMALL_STATE(27)] = 1019, @@ -6590,84 +3955,84 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(39)] = 1247, [SMALL_STATE(40)] = 1266, [SMALL_STATE(41)] = 1291, - [SMALL_STATE(42)] = 1313, - [SMALL_STATE(43)] = 1335, - [SMALL_STATE(44)] = 1357, - [SMALL_STATE(45)] = 1377, - [SMALL_STATE(46)] = 1399, - [SMALL_STATE(47)] = 1417, + [SMALL_STATE(42)] = 1311, + [SMALL_STATE(43)] = 1331, + [SMALL_STATE(44)] = 1353, + [SMALL_STATE(45)] = 1375, + [SMALL_STATE(46)] = 1397, + [SMALL_STATE(47)] = 1415, [SMALL_STATE(48)] = 1437, [SMALL_STATE(49)] = 1459, [SMALL_STATE(50)] = 1478, - [SMALL_STATE(51)] = 1495, - [SMALL_STATE(52)] = 1510, - [SMALL_STATE(53)] = 1529, - [SMALL_STATE(54)] = 1548, - [SMALL_STATE(55)] = 1567, - [SMALL_STATE(56)] = 1586, + [SMALL_STATE(51)] = 1497, + [SMALL_STATE(52)] = 1516, + [SMALL_STATE(53)] = 1535, + [SMALL_STATE(54)] = 1552, + [SMALL_STATE(55)] = 1569, + [SMALL_STATE(56)] = 1588, [SMALL_STATE(57)] = 1605, - [SMALL_STATE(58)] = 1624, - [SMALL_STATE(59)] = 1639, + [SMALL_STATE(58)] = 1622, + [SMALL_STATE(59)] = 1641, [SMALL_STATE(60)] = 1658, [SMALL_STATE(61)] = 1677, [SMALL_STATE(62)] = 1696, [SMALL_STATE(63)] = 1713, [SMALL_STATE(64)] = 1732, - [SMALL_STATE(65)] = 1751, + [SMALL_STATE(65)] = 1749, [SMALL_STATE(66)] = 1768, - [SMALL_STATE(67)] = 1785, - [SMALL_STATE(68)] = 1804, - [SMALL_STATE(69)] = 1823, - [SMALL_STATE(70)] = 1840, - [SMALL_STATE(71)] = 1859, - [SMALL_STATE(72)] = 1876, - [SMALL_STATE(73)] = 1893, - [SMALL_STATE(74)] = 1912, - [SMALL_STATE(75)] = 1931, - [SMALL_STATE(76)] = 1948, - [SMALL_STATE(77)] = 1965, - [SMALL_STATE(78)] = 1984, - [SMALL_STATE(79)] = 2003, - [SMALL_STATE(80)] = 2022, - [SMALL_STATE(81)] = 2041, - [SMALL_STATE(82)] = 2058, - [SMALL_STATE(83)] = 2075, - [SMALL_STATE(84)] = 2092, - [SMALL_STATE(85)] = 2111, - [SMALL_STATE(86)] = 2128, - [SMALL_STATE(87)] = 2147, - [SMALL_STATE(88)] = 2166, - [SMALL_STATE(89)] = 2185, + [SMALL_STATE(67)] = 1787, + [SMALL_STATE(68)] = 1806, + [SMALL_STATE(69)] = 1825, + [SMALL_STATE(70)] = 1844, + [SMALL_STATE(71)] = 1863, + [SMALL_STATE(72)] = 1882, + [SMALL_STATE(73)] = 1899, + [SMALL_STATE(74)] = 1918, + [SMALL_STATE(75)] = 1937, + [SMALL_STATE(76)] = 1952, + [SMALL_STATE(77)] = 1971, + [SMALL_STATE(78)] = 1990, + [SMALL_STATE(79)] = 2007, + [SMALL_STATE(80)] = 2026, + [SMALL_STATE(81)] = 2045, + [SMALL_STATE(82)] = 2064, + [SMALL_STATE(83)] = 2083, + [SMALL_STATE(84)] = 2098, + [SMALL_STATE(85)] = 2115, + [SMALL_STATE(86)] = 2132, + [SMALL_STATE(87)] = 2151, + [SMALL_STATE(88)] = 2168, + [SMALL_STATE(89)] = 2187, [SMALL_STATE(90)] = 2204, - [SMALL_STATE(91)] = 2218, - [SMALL_STATE(92)] = 2232, + [SMALL_STATE(91)] = 2220, + [SMALL_STATE(92)] = 2234, [SMALL_STATE(93)] = 2248, [SMALL_STATE(94)] = 2262, [SMALL_STATE(95)] = 2276, [SMALL_STATE(96)] = 2290, [SMALL_STATE(97)] = 2304, - [SMALL_STATE(98)] = 2320, - [SMALL_STATE(99)] = 2334, - [SMALL_STATE(100)] = 2348, - [SMALL_STATE(101)] = 2362, + [SMALL_STATE(98)] = 2318, + [SMALL_STATE(99)] = 2332, + [SMALL_STATE(100)] = 2346, + [SMALL_STATE(101)] = 2360, [SMALL_STATE(102)] = 2376, - [SMALL_STATE(103)] = 2390, - [SMALL_STATE(104)] = 2404, - [SMALL_STATE(105)] = 2418, - [SMALL_STATE(106)] = 2432, - [SMALL_STATE(107)] = 2446, - [SMALL_STATE(108)] = 2460, - [SMALL_STATE(109)] = 2474, - [SMALL_STATE(110)] = 2488, - [SMALL_STATE(111)] = 2502, - [SMALL_STATE(112)] = 2516, - [SMALL_STATE(113)] = 2532, - [SMALL_STATE(114)] = 2546, - [SMALL_STATE(115)] = 2560, - [SMALL_STATE(116)] = 2574, - [SMALL_STATE(117)] = 2588, - [SMALL_STATE(118)] = 2602, - [SMALL_STATE(119)] = 2618, + [SMALL_STATE(103)] = 2392, + [SMALL_STATE(104)] = 2406, + [SMALL_STATE(105)] = 2420, + [SMALL_STATE(106)] = 2434, + [SMALL_STATE(107)] = 2448, + [SMALL_STATE(108)] = 2464, + [SMALL_STATE(109)] = 2478, + [SMALL_STATE(110)] = 2492, + [SMALL_STATE(111)] = 2506, + [SMALL_STATE(112)] = 2520, + [SMALL_STATE(113)] = 2534, + [SMALL_STATE(114)] = 2548, + [SMALL_STATE(115)] = 2562, + [SMALL_STATE(116)] = 2576, + [SMALL_STATE(117)] = 2590, + [SMALL_STATE(118)] = 2606, + [SMALL_STATE(119)] = 2620, [SMALL_STATE(120)] = 2634, [SMALL_STATE(121)] = 2647, [SMALL_STATE(122)] = 2660, @@ -6700,182 +4065,182 @@ static const uint32_t ts_small_parse_table_map[] = { static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), + [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(126), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), - [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [63] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(44), - [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), - [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), - [106] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144), - [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [128] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), - [132] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(62), - [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [137] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(62), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [146] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(97), - [149] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, .production_id = 17), - [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [185] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), - [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [197] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(118), - [200] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [206] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(14), - [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [223] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(119), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(45), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), - [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), - [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [251] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [258] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), - [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138), - [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), - [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4), - [313] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [327] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [331] = {.entry = {.count = 1, .reusable = false}}, SHIFT(134), - [333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), - [339] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), - [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), - [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [351] = {.entry = {.count = 1, .reusable = false}}, SHIFT(145), - [353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), - [357] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5), + [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), + [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), + [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3, 0, 0), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1, 0, 0), + [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), + [63] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(42), + [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2, 0, 0), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1, 0, 0), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1, 0, 0), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 5), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, 0, 5), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, 0, 6), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, 0, 7), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 6), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 11), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2, 0, 0), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 12), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2, 0, 0), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, 0, 11), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6, 0, 0), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, 0, 12), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1, 0, 0), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2, 0, 0), + [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(120), + [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(131), + [106] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2, 0, 0), SHIFT_REPEAT(89), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2, 0, 0), + [111] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2, 0, 0), SHIFT_REPEAT(89), + [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [120] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144), + [130] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1, 0, 0), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), + [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, 0, 2), + [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, 0, 8), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), + [164] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, 0, 10), SHIFT_REPEAT(117), + [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, 0, 10), + [169] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, 0, 8), + [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [175] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, 0, 10), SHIFT_REPEAT(102), + [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, 0, 10), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [186] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 6), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [192] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 13), SHIFT_REPEAT(10), + [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 13), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), + [217] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, 0, 0), SHIFT_REPEAT(101), + [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, 0, 0), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [230] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [232] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), SHIFT_REPEAT(43), + [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), + [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, 0, 17), + [249] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2, 0, 0), SHIFT_REPEAT(14), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2, 0, 0), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1, 0, 0), + [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [260] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2, 0, 0), SHIFT_REPEAT(18), + [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2, 0, 0), + [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), + [267] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1, 0, 0), + [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1, 0, 0), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, 0, 5), + [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, 0, 4), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, 0, 9), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, 0, 14), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, 0, 4), + [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, 0, 5), + [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, 0, 9), + [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, 0, 15), + [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, 0, 3), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, 0, 16), + [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, 0, 1), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, 0, 3), + [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 0), + [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1, 0, 0), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, 0, 4), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, 0, 4), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, 0, 18), + [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, 0, 9), + [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, 0, 9), + [311] = {.entry = {.count = 1, .reusable = false}}, SHIFT(145), + [313] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1, 0, 0), + [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3, 0, 0), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2, 0, 0), + [327] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3, 0, 0), + [331] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [333] = {.entry = {.count = 1, .reusable = false}}, SHIFT(135), + [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4, 0, 0), + [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5, 0, 0), + [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, 0, 0), + [341] = {.entry = {.count = 1, .reusable = false}}, SHIFT(146), + [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1, 0, 0), + [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4, 0, 0), + [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, 0, 0), + [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, 0, 0), + [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5, 0, 0), + [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2, 0, 0), + [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3, 0, 0), }; #ifdef __cplusplus @@ -6889,9 +4254,9 @@ extern "C" { #define TS_PUBLIC __attribute__((visibility("default"))) #endif -TS_PUBLIC const TSLanguage *tree_sitter_bp() { +TS_PUBLIC const TSLanguage *tree_sitter_bp(void) { static const TSLanguage language = { - .version = LANGUAGE_VERSION, + .abi_version = LANGUAGE_VERSION, .symbol_count = SYMBOL_COUNT, .alias_count = ALIAS_COUNT, .token_count = TOKEN_COUNT, @@ -6899,6 +4264,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_bp() { .state_count = STATE_COUNT, .large_state_count = LARGE_STATE_COUNT, .production_id_count = PRODUCTION_ID_COUNT, + .supertype_count = SUPERTYPE_COUNT, .field_count = FIELD_COUNT, .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, .parse_table = &ts_parse_table[0][0], @@ -6913,9 +4279,16 @@ TS_PUBLIC const TSLanguage *tree_sitter_bp() { .public_symbol_map = ts_symbol_map, .alias_map = ts_non_terminal_alias_map, .alias_sequences = &ts_alias_sequences[0][0], - .lex_modes = ts_lex_modes, + .lex_modes = (const void*)ts_lex_modes, .lex_fn = ts_lex, .primary_state_ids = ts_primary_state_ids, + .name = "bp", + .max_reserved_word_set_size = 0, + .metadata = { + .major_version = 0, + .minor_version = 5, + .patch_version = 0, + }, }; return &language; } diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h index 1f4466d..1abdd12 100644 --- a/src/tree_sitter/alloc.h +++ b/src/tree_sitter/alloc.h @@ -12,10 +12,10 @@ extern "C" { // Allow clients to override allocation functions #ifdef TREE_SITTER_REUSE_ALLOCATOR -extern void *(*ts_current_malloc)(size_t); -extern void *(*ts_current_calloc)(size_t, size_t); -extern void *(*ts_current_realloc)(void *, size_t); -extern void (*ts_current_free)(void *); +extern void *(*ts_current_malloc)(size_t size); +extern void *(*ts_current_calloc)(size_t count, size_t size); +extern void *(*ts_current_realloc)(void *ptr, size_t size); +extern void (*ts_current_free)(void *ptr); #ifndef ts_malloc #define ts_malloc ts_current_malloc diff --git a/src/tree_sitter/array.h b/src/tree_sitter/array.h index 15a3b23..a17a574 100644 --- a/src/tree_sitter/array.h +++ b/src/tree_sitter/array.h @@ -14,6 +14,7 @@ extern "C" { #include #ifdef _MSC_VER +#pragma warning(push) #pragma warning(disable : 4101) #elif defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push @@ -278,7 +279,7 @@ static inline void _array__splice(Array *self, size_t element_size, #define _compare_int(a, b) ((int)*(a) - (int)(b)) #ifdef _MSC_VER -#pragma warning(default : 4101) +#pragma warning(pop) #elif defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pop #endif diff --git a/src/tree_sitter/parser.h b/src/tree_sitter/parser.h index 17b4fde..cdbe64c 100644 --- a/src/tree_sitter/parser.h +++ b/src/tree_sitter/parser.h @@ -18,6 +18,12 @@ typedef uint16_t TSStateId; typedef uint16_t TSSymbol; typedef uint16_t TSFieldId; typedef struct TSLanguage TSLanguage; +typedef struct TSLanguageMetadata TSLanguageMetadata; +typedef struct TSLanguageMetadata { + uint8_t major_version; + uint8_t minor_version; + uint8_t patch_version; +} TSLanguageMetadata; #endif typedef struct { @@ -26,10 +32,11 @@ typedef struct { bool inherited; } TSFieldMapEntry; +// Used to index the field and supertype maps. typedef struct { uint16_t index; uint16_t length; -} TSFieldMapSlice; +} TSMapSlice; typedef struct { bool visible; @@ -47,6 +54,7 @@ struct TSLexer { uint32_t (*get_column)(TSLexer *); bool (*is_at_included_range_start)(const TSLexer *); bool (*eof)(const TSLexer *); + void (*log)(const TSLexer *, const char *, ...); }; typedef enum { @@ -78,6 +86,12 @@ typedef struct { uint16_t external_lex_state; } TSLexMode; +typedef struct { + uint16_t lex_state; + uint16_t external_lex_state; + uint16_t reserved_word_set_id; +} TSLexerMode; + typedef union { TSParseAction action; struct { @@ -86,8 +100,13 @@ typedef union { } entry; } TSParseActionEntry; +typedef struct { + int32_t start; + int32_t end; +} TSCharacterRange; + struct TSLanguage { - uint32_t version; + uint32_t abi_version; uint32_t symbol_count; uint32_t alias_count; uint32_t token_count; @@ -103,13 +122,13 @@ struct TSLanguage { const TSParseActionEntry *parse_actions; const char * const *symbol_names; const char * const *field_names; - const TSFieldMapSlice *field_map_slices; + const TSMapSlice *field_map_slices; const TSFieldMapEntry *field_map_entries; const TSSymbolMetadata *symbol_metadata; const TSSymbol *public_symbol_map; const uint16_t *alias_map; const TSSymbol *alias_sequences; - const TSLexMode *lex_modes; + const TSLexerMode *lex_modes; bool (*lex_fn)(TSLexer *, TSStateId); bool (*keyword_lex_fn)(TSLexer *, TSStateId); TSSymbol keyword_capture_token; @@ -123,8 +142,34 @@ struct TSLanguage { void (*deserialize)(void *, const char *, unsigned); } external_scanner; const TSStateId *primary_state_ids; + const char *name; + const TSSymbol *reserved_words; + uint16_t max_reserved_word_set_size; + uint32_t supertype_count; + const TSSymbol *supertype_symbols; + const TSMapSlice *supertype_map_slices; + const TSSymbol *supertype_map_entries; + TSLanguageMetadata metadata; }; +static inline bool set_contains(const TSCharacterRange *ranges, uint32_t len, int32_t lookahead) { + uint32_t index = 0; + uint32_t size = len - index; + while (size > 1) { + uint32_t half_size = size / 2; + uint32_t mid_index = index + half_size; + const TSCharacterRange *range = &ranges[mid_index]; + if (lookahead >= range->start && lookahead <= range->end) { + return true; + } else if (lookahead > range->end) { + index = mid_index; + } + size -= half_size; + } + const TSCharacterRange *range = &ranges[index]; + return (lookahead >= range->start && lookahead <= range->end); +} + /* * Lexer Macros */ @@ -154,6 +199,17 @@ struct TSLanguage { goto next_state; \ } +#define ADVANCE_MAP(...) \ + { \ + static const uint16_t map[] = { __VA_ARGS__ }; \ + for (uint32_t i = 0; i < sizeof(map) / sizeof(map[0]); i += 2) { \ + if (map[i] == lookahead) { \ + state = map[i + 1]; \ + goto next_state; \ + } \ + } \ + } + #define SKIP(state_value) \ { \ skip = true; \ @@ -203,14 +259,15 @@ struct TSLanguage { } \ }} -#define REDUCE(symbol_val, child_count_val, ...) \ - {{ \ - .reduce = { \ - .type = TSParseActionTypeReduce, \ - .symbol = symbol_val, \ - .child_count = child_count_val, \ - __VA_ARGS__ \ - }, \ +#define REDUCE(symbol_name, children, precedence, prod_id) \ + {{ \ + .reduce = { \ + .type = TSParseActionTypeReduce, \ + .symbol = symbol_name, \ + .child_count = children, \ + .dynamic_precedence = precedence, \ + .production_id = prod_id \ + }, \ }} #define RECOVER() \ diff --git a/tree-sitter.json b/tree-sitter.json new file mode 100644 index 0000000..f839aa3 --- /dev/null +++ b/tree-sitter.json @@ -0,0 +1,30 @@ +{ + "grammars": [ + { + "name": "bp", + "camelcase": "Bp", + "scope": "source.bp", + "path": ".", + "file-types": [ + "bp" + ], + "injection-regex": "^bp$" + } + ], + "metadata": { + "version": "0.5.0", + "license": "MIT", + "description": "Blueprint grammar for tree-sitter", + "links": { + "repository": "https://github.com/tree-sitter/tree-sitter-bp" + } + }, + "bindings": { + "c": true, + "go": true, + "node": true, + "python": true, + "rust": true, + "swift": true + } +} From f9dbeed40acbc86783168d53036e69c2134aca65 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 23 Dec 2024 23:33:38 -0500 Subject: [PATCH 34/39] Handle 'tree-sitter.json' in 'bump-version' --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e2d0879..c5f4080 100644 --- a/flake.nix +++ b/flake.nix @@ -75,10 +75,14 @@ ${pkgs.jq}/bin/jq ".version = \"''${NEW_VERSION}\"" package.json > package.json.tmp mv package.json.tmp package.json + ${pkgs.jq}/bin/jq ".metadata.version = \"''${NEW_VERSION}\"" tree-sitter.json > tree-sitter.json.tmp + mv tree-sitter.json.tmp tree-sitter.json ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" Cargo.toml ${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" pyproject.toml - git add Cargo.toml package.json pyproject.toml + make + + git add Cargo.toml package.json pyproject.toml tree-sitter.json src/parser.c echo "Release ''${NEW_VERSION}" | git commit -eF - git tag -a "v''${NEW_VERSION}" -m "Release ''${NEW_VERSION}" ''; From bb0d5d6a406e81b61bf587d3839d75d326ce7128 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 12 Mar 2025 21:24:44 +0000 Subject: [PATCH 35/39] Release 0.6.0 --- Cargo.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- src/parser.c | 2 +- tree-sitter.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1784cdf..7c93331 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tree-sitter-bp" description = "Blueprint grammar for the tree-sitter parsing library" -version = "0.5.0" +version = "0.6.0" keywords = ["incremental", "parsing", "android", "blueprint"] categories = ["parsing", "text-editors"] repository = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" diff --git a/package.json b/package.json index 15d1092..466969a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-bp", - "version": "0.5.0", + "version": "0.6.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", "types": "bindings/node", diff --git a/pyproject.toml b/pyproject.toml index ca572a2..f697f68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "tree-sitter-bp" description = "Bp grammar for tree-sitter" -version = "0.5.0" +version = "0.6.0" keywords = ["incremental", "parsing", "tree-sitter", "bp"] classifiers = [ "Intended Audience :: Developers", diff --git a/src/parser.c b/src/parser.c index 18a1669..929363d 100644 --- a/src/parser.c +++ b/src/parser.c @@ -4286,7 +4286,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_bp(void) { .max_reserved_word_set_size = 0, .metadata = { .major_version = 0, - .minor_version = 5, + .minor_version = 6, .patch_version = 0, }, }; diff --git a/tree-sitter.json b/tree-sitter.json index f839aa3..1269580 100644 --- a/tree-sitter.json +++ b/tree-sitter.json @@ -12,7 +12,7 @@ } ], "metadata": { - "version": "0.5.0", + "version": "0.6.0", "license": "MIT", "description": "Blueprint grammar for tree-sitter", "links": { From 4c2a1d00126a9672f6ddd855850a913f3fae32c9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 12 Mar 2025 21:33:34 +0000 Subject: [PATCH 36/39] Test negative integer literal --- test/corpus/literals.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/corpus/literals.txt b/test/corpus/literals.txt index b1c3fba..82fafae 100644 --- a/test/corpus/literals.txt +++ b/test/corpus/literals.txt @@ -20,6 +20,35 @@ foo = 42 -------------------------------------------------------------------------------- +(source_file + (assignment + (identifier) + (operator) + (integer_literal))) + +================================================================================ +Integer literal (negative) +================================================================================ + +foo = -42 + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (integer_literal))) + + +================================================================================ +Integer literal (negative space) +================================================================================ + +foo = - 42 + +-------------------------------------------------------------------------------- + (source_file (assignment (identifier) From 2b7323eaf0d115d5697c623b4348ffc2bf43c91b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 24 Mar 2025 12:07:55 +0000 Subject: [PATCH 37/39] Test non-recursive comments --- test/corpus/comments.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/corpus/comments.txt b/test/corpus/comments.txt index a816b3c..cad3a8c 100644 --- a/test/corpus/comments.txt +++ b/test/corpus/comments.txt @@ -116,6 +116,19 @@ Block comment is not recursive (source_file (comment)) +================================================================================ +Block comment is not recursive (error) +================================================================================ + +/* /* */ */ + +-------------------------------------------------------------------------------- + +(source_file + (comment) + (ERROR + (UNEXPECTED '*'))) + ================================================================================ Unterminated comment ================================================================================ From e6473f64aee782373a99f01917dc518e174546f3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 2 Apr 2025 10:14:21 +0000 Subject: [PATCH 38/39] Add integer select pattern --- grammar.js | 1 + src/grammar.json | 4 + src/node-types.json | 4 + src/parser.c | 790 ++++++++++++++++++++++------------------- test/corpus/select.txt | 40 +++ 5 files changed, 466 insertions(+), 373 deletions(-) diff --git a/grammar.js b/grammar.js index 1a9c8e9..a147f5e 100644 --- a/grammar.js +++ b/grammar.js @@ -163,6 +163,7 @@ module.exports = grammar({ _select_pattern: ($) => choice( $._string_literal, $.boolean_literal, + $.integer_literal, alias("any", $.any), $.pattern_binding, alias("default", $.default), diff --git a/src/grammar.json b/src/grammar.json index e11517b..74d5c51 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -757,6 +757,10 @@ "type": "SYMBOL", "name": "boolean_literal" }, + { + "type": "SYMBOL", + "name": "integer_literal" + }, { "type": "ALIAS", "content": { diff --git a/src/node-types.json b/src/node-types.json index 3cf0c60..2fe5cf6 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -531,6 +531,10 @@ "type": "default", "named": true }, + { + "type": "integer_literal", + "named": true + }, { "type": "interpreted_string_literal", "named": true diff --git a/src/parser.c b/src/parser.c index 929363d..166f6aa 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1029,6 +1029,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { '"', 95, '(', 61, ')', 62, + '-', 92, '/', 7, '`', 37, 'a', 22, @@ -1039,6 +1040,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { ); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(4); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); END_STATE(); case 5: ADVANCE_MAP( @@ -1826,7 +1828,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(85), 1, sym__expr, @@ -1835,7 +1837,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -1868,14 +1870,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -1908,14 +1910,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(47), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -1948,14 +1950,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -1986,14 +1988,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, - STATE(29), 1, + STATE(31), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -2024,14 +2026,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -2062,14 +2064,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(54), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -2100,14 +2102,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(53), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -2138,14 +2140,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(27), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -2153,11 +2155,15 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 15, + [492] = 17, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2172,7 +2178,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(11), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(110), 1, sym_select_case, @@ -2183,15 +2189,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [541] = 15, + [548] = 17, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2206,7 +2217,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, STATE(12), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(76), 1, sym_select_case, @@ -2217,15 +2228,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [590] = 15, + [604] = 17, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2240,7 +2256,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, STATE(13), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(110), 1, sym_select_case, @@ -2251,15 +2267,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [639] = 14, + [660] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2272,7 +2293,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(14), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(110), 1, sym_select_case, @@ -2283,15 +2304,20 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [685] = 12, + [713] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2304,22 +2330,27 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(15), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [725] = 12, + [760] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2332,22 +2363,27 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(16), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [765] = 11, + [807] = 13, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2358,22 +2394,27 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(17), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(79), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [802] = 11, + [851] = 13, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, ACTIONS(21), 1, sym_raw_string_literal, ACTIONS(23), 1, @@ -2384,18 +2425,19 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, STATE(18), 1, sym_comment, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(115), 1, sym__select_pattern, ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(75), 3, + STATE(75), 4, sym_boolean_literal, + sym_integer_literal, sym__string_literal, sym_pattern_binding, - [839] = 10, + [895] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2406,7 +2448,7 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, STATE(19), 1, sym_comment, - STATE(22), 1, + STATE(24), 1, aux_sym_source_file_repeat1, STATE(104), 1, sym__old_module, @@ -2417,7 +2459,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(108), 2, sym_assignment, sym_module, - [871] = 4, + [927] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2433,7 +2475,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [891] = 4, + [947] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2449,14 +2491,46 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [911] = 9, + [967] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(61), 1, + STATE(22), 1, + sym_comment, + ACTIONS(61), 8, ts_builtin_sym_end, - ACTIONS(63), 1, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [987] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(23), 1, + sym_comment, + ACTIONS(63), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [1007] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(65), 1, + ts_builtin_sym_end, + ACTIONS(67), 1, sym_identifier, STATE(104), 1, sym__old_module, @@ -2464,75 +2538,45 @@ static const uint16_t ts_small_parse_table[] = { sym__definition, STATE(109), 1, sym__new_module, - STATE(22), 2, + STATE(24), 2, sym_comment, aux_sym_source_file_repeat1, STATE(108), 2, sym_assignment, sym_module, - [941] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(23), 1, - sym_comment, - ACTIONS(66), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [961] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(24), 1, - sym_comment, - ACTIONS(68), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [981] = 4, + [1037] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(70), 7, + ACTIONS(70), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [1000] = 4, + [1057] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(72), 7, + ACTIONS(72), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, anon_sym_RPAREN, sym_identifier, + anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [1019] = 4, + [1077] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2547,7 +2591,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1038] = 4, + [1096] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2562,7 +2606,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1057] = 4, + [1115] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2577,7 +2621,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1076] = 4, + [1134] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2592,7 +2636,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1095] = 4, + [1153] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2607,7 +2651,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1114] = 4, + [1172] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2622,7 +2666,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1133] = 4, + [1191] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2637,7 +2681,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1152] = 4, + [1210] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2652,7 +2696,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1171] = 4, + [1229] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2667,7 +2711,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1190] = 4, + [1248] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2682,7 +2726,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1209] = 4, + [1267] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2697,7 +2741,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1228] = 4, + [1286] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2712,7 +2756,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1247] = 4, + [1305] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2727,7 +2771,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1266] = 8, + [1324] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2738,13 +2782,13 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(100), 1, anon_sym_RPAREN, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(40), 1, sym_comment, STATE(68), 1, sym__string_literal, - [1291] = 6, + [1349] = 6, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -2758,7 +2802,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(41), 2, sym_comment, aux_sym_interpreted_string_literal_repeat1, - [1311] = 6, + [1369] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2772,7 +2816,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(114), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1331] = 7, + [1389] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2781,13 +2825,13 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(24), 1, + STATE(26), 1, sym_interpreted_string_literal, STATE(43), 1, sym_comment, STATE(119), 1, sym__string_literal, - [1353] = 7, + [1411] = 7, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -2802,7 +2846,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_interpreted_string_literal_repeat1, STATE(44), 1, sym_comment, - [1375] = 7, + [1433] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2817,7 +2861,7 @@ static const uint16_t ts_small_parse_table[] = { sym_condition, STATE(124), 1, sym_select_value, - [1397] = 5, + [1455] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2830,7 +2874,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, anon_sym_RPAREN, anon_sym_COLON, - [1415] = 7, + [1473] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2845,7 +2889,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(52), 1, aux_sym_list_expression_repeat1, - [1437] = 7, + [1495] = 7, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -2860,7 +2904,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_interpreted_string_literal_repeat1, STATE(48), 1, sym_comment, - [1459] = 6, + [1517] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2873,7 +2917,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(67), 1, aux_sym_select_value_repeat1, - [1478] = 6, + [1536] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2886,7 +2930,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(91), 1, sym__colon_property, - [1497] = 6, + [1555] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2899,7 +2943,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(56), 1, aux_sym__old_module_repeat1, - [1516] = 6, + [1574] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2912,7 +2956,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(64), 1, aux_sym_list_expression_repeat1, - [1535] = 5, + [1593] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2924,7 +2968,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(158), 2, ts_builtin_sym_end, sym_identifier, - [1552] = 5, + [1610] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2936,7 +2980,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(160), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1569] = 6, + [1627] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2949,7 +2993,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(91), 1, sym__colon_property, - [1588] = 5, + [1646] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2961,7 +3005,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(56), 2, sym_comment, aux_sym__old_module_repeat1, - [1605] = 5, + [1663] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2973,7 +3017,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(169), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1622] = 6, + [1680] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2986,7 +3030,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(97), 1, sym__equal_property, - [1641] = 5, + [1699] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -2998,7 +3042,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(59), 2, sym_comment, aux_sym__new_module_repeat1, - [1658] = 6, + [1716] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3011,7 +3055,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(91), 1, sym__colon_property, - [1677] = 6, + [1735] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3024,7 +3068,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(86), 1, aux_sym__old_module_repeat1, - [1696] = 5, + [1754] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3036,7 +3080,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(186), 2, anon_sym_COMMA, anon_sym_RBRACK, - [1713] = 6, + [1771] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3049,7 +3093,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(69), 1, aux_sym__new_module_repeat1, - [1732] = 5, + [1790] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3061,7 +3105,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(64), 2, sym_comment, aux_sym_list_expression_repeat1, - [1749] = 6, + [1807] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3074,7 +3118,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym__old_module_repeat1, STATE(65), 1, sym_comment, - [1768] = 6, + [1826] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3087,7 +3131,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(96), 1, sym_condition, - [1787] = 6, + [1845] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3100,7 +3144,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(72), 1, aux_sym_select_value_repeat1, - [1806] = 6, + [1864] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3113,7 +3157,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(74), 1, aux_sym_condition_repeat1, - [1825] = 6, + [1883] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3126,7 +3170,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym__new_module_repeat1, STATE(69), 1, sym_comment, - [1844] = 6, + [1902] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3139,7 +3183,7 @@ static const uint16_t ts_small_parse_table[] = { sym__colon_property, STATE(70), 1, sym_comment, - [1863] = 6, + [1921] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3152,7 +3196,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(96), 1, sym_condition, - [1882] = 5, + [1940] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3164,7 +3208,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(72), 2, sym_comment, aux_sym_select_value_repeat1, - [1899] = 6, + [1957] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3177,7 +3221,7 @@ static const uint16_t ts_small_parse_table[] = { sym__equal_property, STATE(73), 1, sym_comment, - [1918] = 6, + [1976] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3190,7 +3234,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(78), 1, aux_sym_condition_repeat1, - [1937] = 4, + [1995] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3201,7 +3245,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, anon_sym_RPAREN, anon_sym_COLON, - [1952] = 6, + [2010] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3214,7 +3258,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(80), 1, aux_sym_select_cases_repeat1, - [1971] = 6, + [2029] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3227,7 +3271,7 @@ static const uint16_t ts_small_parse_table[] = { sym__colon_property, STATE(77), 1, sym_comment, - [1990] = 5, + [2048] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3239,7 +3283,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(78), 2, sym_comment, aux_sym_condition_repeat1, - [2007] = 6, + [2065] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3252,7 +3296,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(82), 1, aux_sym_select_pattern_repeat1, - [2026] = 6, + [2084] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3265,7 +3309,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(84), 1, aux_sym_select_cases_repeat1, - [2045] = 6, + [2103] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3278,7 +3322,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(91), 1, sym__colon_property, - [2064] = 6, + [2122] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3291,7 +3335,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(87), 1, aux_sym_select_pattern_repeat1, - [2083] = 4, + [2141] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3302,7 +3346,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, anon_sym_RPAREN, anon_sym_COLON, - [2098] = 5, + [2156] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3314,7 +3358,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(84), 2, sym_comment, aux_sym_select_cases_repeat1, - [2115] = 5, + [2173] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3326,7 +3370,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(254), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2132] = 6, + [2190] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3339,7 +3383,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym__old_module_repeat1, STATE(86), 1, sym_comment, - [2151] = 5, + [2209] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3351,7 +3395,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(87), 2, sym_comment, aux_sym_select_pattern_repeat1, - [2168] = 6, + [2226] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3364,7 +3408,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(97), 1, sym__equal_property, - [2187] = 5, + [2245] = 5, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -3376,7 +3420,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(269), 2, anon_sym_DQUOTE2, sym_escape_sequence, - [2204] = 5, + [2262] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3387,7 +3431,7 @@ static const uint16_t ts_small_parse_table[] = { sym_condition, STATE(90), 1, sym_comment, - [2220] = 4, + [2278] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3397,7 +3441,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(271), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2234] = 4, + [2292] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3407,7 +3451,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(273), 2, ts_builtin_sym_end, sym_identifier, - [2248] = 4, + [2306] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3417,7 +3461,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, - [2262] = 4, + [2320] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3427,7 +3471,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(277), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2276] = 4, + [2334] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3437,7 +3481,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, - [2290] = 4, + [2348] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3447,7 +3491,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(220), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2304] = 4, + [2362] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3457,7 +3501,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(281), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2318] = 4, + [2376] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3467,7 +3511,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(283), 2, ts_builtin_sym_end, sym_identifier, - [2332] = 4, + [2390] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3477,7 +3521,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(285), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2346] = 4, + [2404] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3487,7 +3531,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(287), 2, ts_builtin_sym_end, sym_identifier, - [2360] = 5, + [2418] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3498,7 +3542,7 @@ static const uint16_t ts_small_parse_table[] = { sym_condition, STATE(101), 1, sym_comment, - [2376] = 5, + [2434] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3509,7 +3553,7 @@ static const uint16_t ts_small_parse_table[] = { sym__equal_property, STATE(102), 1, sym_comment, - [2392] = 4, + [2450] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3519,7 +3563,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(289), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2406] = 4, + [2464] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3529,7 +3573,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2420] = 4, + [2478] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3539,7 +3583,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(293), 2, ts_builtin_sym_end, sym_identifier, - [2434] = 4, + [2492] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3549,7 +3593,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(295), 2, ts_builtin_sym_end, sym_identifier, - [2448] = 5, + [2506] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3560,7 +3604,7 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(122), 1, sym_select_cases, - [2464] = 4, + [2522] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3570,7 +3614,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(299), 2, ts_builtin_sym_end, sym_identifier, - [2478] = 4, + [2536] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3580,7 +3624,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2492] = 4, + [2550] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3590,7 +3634,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(252), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2506] = 4, + [2564] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3600,7 +3644,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(301), 2, ts_builtin_sym_end, sym_identifier, - [2520] = 4, + [2578] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3610,7 +3654,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(254), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2534] = 4, + [2592] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3620,7 +3664,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(303), 2, ts_builtin_sym_end, sym_identifier, - [2548] = 4, + [2606] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3630,7 +3674,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(305), 2, anon_sym_COMMA, anon_sym_RBRACE, - [2562] = 4, + [2620] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3640,7 +3684,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(263), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2576] = 4, + [2634] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3650,7 +3694,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(307), 2, ts_builtin_sym_end, sym_identifier, - [2590] = 5, + [2648] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3661,7 +3705,7 @@ static const uint16_t ts_small_parse_table[] = { sym__colon_property, STATE(117), 1, sym_comment, - [2606] = 4, + [2664] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3671,7 +3715,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(309), 2, ts_builtin_sym_end, sym_identifier, - [2620] = 4, + [2678] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3681,7 +3725,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(235), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2634] = 4, + [2692] = 4, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -3690,7 +3734,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_comment_token1, STATE(120), 1, sym_comment, - [2647] = 4, + [2705] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3699,7 +3743,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(121), 1, sym_comment, - [2660] = 4, + [2718] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3708,7 +3752,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(122), 1, sym_comment, - [2673] = 4, + [2731] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3717,7 +3761,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, STATE(123), 1, sym_comment, - [2686] = 4, + [2744] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3726,7 +3770,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(124), 1, sym_comment, - [2699] = 4, + [2757] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3735,7 +3779,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(125), 1, sym_comment, - [2712] = 4, + [2770] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3744,7 +3788,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(126), 1, sym_comment, - [2725] = 4, + [2783] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3753,7 +3797,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(127), 1, sym_comment, - [2738] = 4, + [2796] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3762,7 +3806,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_EQ, STATE(128), 1, sym_comment, - [2751] = 4, + [2809] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3771,7 +3815,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(129), 1, sym_comment, - [2764] = 4, + [2822] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3780,7 +3824,7 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, STATE(130), 1, sym_comment, - [2777] = 4, + [2835] = 4, ACTIONS(102), 1, anon_sym_SLASH_SLASH, ACTIONS(104), 1, @@ -3789,7 +3833,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_comment_token2, STATE(131), 1, sym_comment, - [2790] = 4, + [2848] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3798,7 +3842,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(132), 1, sym_comment, - [2803] = 4, + [2861] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3807,7 +3851,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(133), 1, sym_comment, - [2816] = 4, + [2874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3816,7 +3860,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(134), 1, sym_comment, - [2829] = 4, + [2887] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3825,7 +3869,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH, STATE(135), 1, sym_comment, - [2842] = 4, + [2900] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3834,7 +3878,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(136), 1, sym_comment, - [2855] = 4, + [2913] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3843,7 +3887,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(137), 1, sym_comment, - [2868] = 4, + [2926] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3852,7 +3896,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(138), 1, sym_comment, - [2881] = 4, + [2939] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3861,7 +3905,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(139), 1, sym_comment, - [2894] = 4, + [2952] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3870,7 +3914,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(140), 1, sym_comment, - [2907] = 4, + [2965] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3879,7 +3923,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(141), 1, sym_comment, - [2920] = 4, + [2978] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3888,7 +3932,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(142), 1, sym_comment, - [2933] = 4, + [2991] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3897,7 +3941,7 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_integer_literal_token1, STATE(143), 1, sym_comment, - [2946] = 4, + [3004] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -3906,10 +3950,10 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(144), 1, sym_comment, - [2959] = 1, + [3017] = 1, ACTIONS(361), 1, ts_builtin_sym_end, - [2963] = 1, + [3021] = 1, ACTIONS(363), 1, ts_builtin_sym_end, }; @@ -3925,141 +3969,141 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 541, - [SMALL_STATE(13)] = 590, - [SMALL_STATE(14)] = 639, - [SMALL_STATE(15)] = 685, - [SMALL_STATE(16)] = 725, - [SMALL_STATE(17)] = 765, - [SMALL_STATE(18)] = 802, - [SMALL_STATE(19)] = 839, - [SMALL_STATE(20)] = 871, - [SMALL_STATE(21)] = 891, - [SMALL_STATE(22)] = 911, - [SMALL_STATE(23)] = 941, - [SMALL_STATE(24)] = 961, - [SMALL_STATE(25)] = 981, - [SMALL_STATE(26)] = 1000, - [SMALL_STATE(27)] = 1019, - [SMALL_STATE(28)] = 1038, - [SMALL_STATE(29)] = 1057, - [SMALL_STATE(30)] = 1076, - [SMALL_STATE(31)] = 1095, - [SMALL_STATE(32)] = 1114, - [SMALL_STATE(33)] = 1133, - [SMALL_STATE(34)] = 1152, - [SMALL_STATE(35)] = 1171, - [SMALL_STATE(36)] = 1190, - [SMALL_STATE(37)] = 1209, - [SMALL_STATE(38)] = 1228, - [SMALL_STATE(39)] = 1247, - [SMALL_STATE(40)] = 1266, - [SMALL_STATE(41)] = 1291, - [SMALL_STATE(42)] = 1311, - [SMALL_STATE(43)] = 1331, - [SMALL_STATE(44)] = 1353, - [SMALL_STATE(45)] = 1375, - [SMALL_STATE(46)] = 1397, - [SMALL_STATE(47)] = 1415, - [SMALL_STATE(48)] = 1437, - [SMALL_STATE(49)] = 1459, - [SMALL_STATE(50)] = 1478, - [SMALL_STATE(51)] = 1497, - [SMALL_STATE(52)] = 1516, - [SMALL_STATE(53)] = 1535, - [SMALL_STATE(54)] = 1552, - [SMALL_STATE(55)] = 1569, - [SMALL_STATE(56)] = 1588, - [SMALL_STATE(57)] = 1605, - [SMALL_STATE(58)] = 1622, - [SMALL_STATE(59)] = 1641, - [SMALL_STATE(60)] = 1658, - [SMALL_STATE(61)] = 1677, - [SMALL_STATE(62)] = 1696, - [SMALL_STATE(63)] = 1713, - [SMALL_STATE(64)] = 1732, - [SMALL_STATE(65)] = 1749, - [SMALL_STATE(66)] = 1768, - [SMALL_STATE(67)] = 1787, - [SMALL_STATE(68)] = 1806, - [SMALL_STATE(69)] = 1825, - [SMALL_STATE(70)] = 1844, - [SMALL_STATE(71)] = 1863, - [SMALL_STATE(72)] = 1882, - [SMALL_STATE(73)] = 1899, - [SMALL_STATE(74)] = 1918, - [SMALL_STATE(75)] = 1937, - [SMALL_STATE(76)] = 1952, - [SMALL_STATE(77)] = 1971, - [SMALL_STATE(78)] = 1990, - [SMALL_STATE(79)] = 2007, - [SMALL_STATE(80)] = 2026, - [SMALL_STATE(81)] = 2045, - [SMALL_STATE(82)] = 2064, - [SMALL_STATE(83)] = 2083, - [SMALL_STATE(84)] = 2098, - [SMALL_STATE(85)] = 2115, - [SMALL_STATE(86)] = 2132, - [SMALL_STATE(87)] = 2151, - [SMALL_STATE(88)] = 2168, - [SMALL_STATE(89)] = 2187, - [SMALL_STATE(90)] = 2204, - [SMALL_STATE(91)] = 2220, - [SMALL_STATE(92)] = 2234, - [SMALL_STATE(93)] = 2248, - [SMALL_STATE(94)] = 2262, - [SMALL_STATE(95)] = 2276, - [SMALL_STATE(96)] = 2290, - [SMALL_STATE(97)] = 2304, - [SMALL_STATE(98)] = 2318, - [SMALL_STATE(99)] = 2332, - [SMALL_STATE(100)] = 2346, - [SMALL_STATE(101)] = 2360, - [SMALL_STATE(102)] = 2376, - [SMALL_STATE(103)] = 2392, - [SMALL_STATE(104)] = 2406, - [SMALL_STATE(105)] = 2420, - [SMALL_STATE(106)] = 2434, - [SMALL_STATE(107)] = 2448, - [SMALL_STATE(108)] = 2464, - [SMALL_STATE(109)] = 2478, - [SMALL_STATE(110)] = 2492, - [SMALL_STATE(111)] = 2506, - [SMALL_STATE(112)] = 2520, - [SMALL_STATE(113)] = 2534, - [SMALL_STATE(114)] = 2548, - [SMALL_STATE(115)] = 2562, - [SMALL_STATE(116)] = 2576, - [SMALL_STATE(117)] = 2590, - [SMALL_STATE(118)] = 2606, - [SMALL_STATE(119)] = 2620, - [SMALL_STATE(120)] = 2634, - [SMALL_STATE(121)] = 2647, - [SMALL_STATE(122)] = 2660, - [SMALL_STATE(123)] = 2673, - [SMALL_STATE(124)] = 2686, - [SMALL_STATE(125)] = 2699, - [SMALL_STATE(126)] = 2712, - [SMALL_STATE(127)] = 2725, - [SMALL_STATE(128)] = 2738, - [SMALL_STATE(129)] = 2751, - [SMALL_STATE(130)] = 2764, - [SMALL_STATE(131)] = 2777, - [SMALL_STATE(132)] = 2790, - [SMALL_STATE(133)] = 2803, - [SMALL_STATE(134)] = 2816, - [SMALL_STATE(135)] = 2829, - [SMALL_STATE(136)] = 2842, - [SMALL_STATE(137)] = 2855, - [SMALL_STATE(138)] = 2868, - [SMALL_STATE(139)] = 2881, - [SMALL_STATE(140)] = 2894, - [SMALL_STATE(141)] = 2907, - [SMALL_STATE(142)] = 2920, - [SMALL_STATE(143)] = 2933, - [SMALL_STATE(144)] = 2946, - [SMALL_STATE(145)] = 2959, - [SMALL_STATE(146)] = 2963, + [SMALL_STATE(12)] = 548, + [SMALL_STATE(13)] = 604, + [SMALL_STATE(14)] = 660, + [SMALL_STATE(15)] = 713, + [SMALL_STATE(16)] = 760, + [SMALL_STATE(17)] = 807, + [SMALL_STATE(18)] = 851, + [SMALL_STATE(19)] = 895, + [SMALL_STATE(20)] = 927, + [SMALL_STATE(21)] = 947, + [SMALL_STATE(22)] = 967, + [SMALL_STATE(23)] = 987, + [SMALL_STATE(24)] = 1007, + [SMALL_STATE(25)] = 1037, + [SMALL_STATE(26)] = 1057, + [SMALL_STATE(27)] = 1077, + [SMALL_STATE(28)] = 1096, + [SMALL_STATE(29)] = 1115, + [SMALL_STATE(30)] = 1134, + [SMALL_STATE(31)] = 1153, + [SMALL_STATE(32)] = 1172, + [SMALL_STATE(33)] = 1191, + [SMALL_STATE(34)] = 1210, + [SMALL_STATE(35)] = 1229, + [SMALL_STATE(36)] = 1248, + [SMALL_STATE(37)] = 1267, + [SMALL_STATE(38)] = 1286, + [SMALL_STATE(39)] = 1305, + [SMALL_STATE(40)] = 1324, + [SMALL_STATE(41)] = 1349, + [SMALL_STATE(42)] = 1369, + [SMALL_STATE(43)] = 1389, + [SMALL_STATE(44)] = 1411, + [SMALL_STATE(45)] = 1433, + [SMALL_STATE(46)] = 1455, + [SMALL_STATE(47)] = 1473, + [SMALL_STATE(48)] = 1495, + [SMALL_STATE(49)] = 1517, + [SMALL_STATE(50)] = 1536, + [SMALL_STATE(51)] = 1555, + [SMALL_STATE(52)] = 1574, + [SMALL_STATE(53)] = 1593, + [SMALL_STATE(54)] = 1610, + [SMALL_STATE(55)] = 1627, + [SMALL_STATE(56)] = 1646, + [SMALL_STATE(57)] = 1663, + [SMALL_STATE(58)] = 1680, + [SMALL_STATE(59)] = 1699, + [SMALL_STATE(60)] = 1716, + [SMALL_STATE(61)] = 1735, + [SMALL_STATE(62)] = 1754, + [SMALL_STATE(63)] = 1771, + [SMALL_STATE(64)] = 1790, + [SMALL_STATE(65)] = 1807, + [SMALL_STATE(66)] = 1826, + [SMALL_STATE(67)] = 1845, + [SMALL_STATE(68)] = 1864, + [SMALL_STATE(69)] = 1883, + [SMALL_STATE(70)] = 1902, + [SMALL_STATE(71)] = 1921, + [SMALL_STATE(72)] = 1940, + [SMALL_STATE(73)] = 1957, + [SMALL_STATE(74)] = 1976, + [SMALL_STATE(75)] = 1995, + [SMALL_STATE(76)] = 2010, + [SMALL_STATE(77)] = 2029, + [SMALL_STATE(78)] = 2048, + [SMALL_STATE(79)] = 2065, + [SMALL_STATE(80)] = 2084, + [SMALL_STATE(81)] = 2103, + [SMALL_STATE(82)] = 2122, + [SMALL_STATE(83)] = 2141, + [SMALL_STATE(84)] = 2156, + [SMALL_STATE(85)] = 2173, + [SMALL_STATE(86)] = 2190, + [SMALL_STATE(87)] = 2209, + [SMALL_STATE(88)] = 2226, + [SMALL_STATE(89)] = 2245, + [SMALL_STATE(90)] = 2262, + [SMALL_STATE(91)] = 2278, + [SMALL_STATE(92)] = 2292, + [SMALL_STATE(93)] = 2306, + [SMALL_STATE(94)] = 2320, + [SMALL_STATE(95)] = 2334, + [SMALL_STATE(96)] = 2348, + [SMALL_STATE(97)] = 2362, + [SMALL_STATE(98)] = 2376, + [SMALL_STATE(99)] = 2390, + [SMALL_STATE(100)] = 2404, + [SMALL_STATE(101)] = 2418, + [SMALL_STATE(102)] = 2434, + [SMALL_STATE(103)] = 2450, + [SMALL_STATE(104)] = 2464, + [SMALL_STATE(105)] = 2478, + [SMALL_STATE(106)] = 2492, + [SMALL_STATE(107)] = 2506, + [SMALL_STATE(108)] = 2522, + [SMALL_STATE(109)] = 2536, + [SMALL_STATE(110)] = 2550, + [SMALL_STATE(111)] = 2564, + [SMALL_STATE(112)] = 2578, + [SMALL_STATE(113)] = 2592, + [SMALL_STATE(114)] = 2606, + [SMALL_STATE(115)] = 2620, + [SMALL_STATE(116)] = 2634, + [SMALL_STATE(117)] = 2648, + [SMALL_STATE(118)] = 2664, + [SMALL_STATE(119)] = 2678, + [SMALL_STATE(120)] = 2692, + [SMALL_STATE(121)] = 2705, + [SMALL_STATE(122)] = 2718, + [SMALL_STATE(123)] = 2731, + [SMALL_STATE(124)] = 2744, + [SMALL_STATE(125)] = 2757, + [SMALL_STATE(126)] = 2770, + [SMALL_STATE(127)] = 2783, + [SMALL_STATE(128)] = 2796, + [SMALL_STATE(129)] = 2809, + [SMALL_STATE(130)] = 2822, + [SMALL_STATE(131)] = 2835, + [SMALL_STATE(132)] = 2848, + [SMALL_STATE(133)] = 2861, + [SMALL_STATE(134)] = 2874, + [SMALL_STATE(135)] = 2887, + [SMALL_STATE(136)] = 2900, + [SMALL_STATE(137)] = 2913, + [SMALL_STATE(138)] = 2926, + [SMALL_STATE(139)] = 2939, + [SMALL_STATE(140)] = 2952, + [SMALL_STATE(141)] = 2965, + [SMALL_STATE(142)] = 2978, + [SMALL_STATE(143)] = 2991, + [SMALL_STATE(144)] = 3004, + [SMALL_STATE(145)] = 3017, + [SMALL_STATE(146)] = 3021, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -4070,16 +4114,16 @@ static const TSParseActionEntry ts_parse_actions[] = { [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(27), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(126), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), @@ -4094,24 +4138,24 @@ static const TSParseActionEntry ts_parse_actions[] = { [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0), [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3, 0, 0), [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1, 0, 0), - [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), - [63] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(42), - [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2, 0, 0), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1, 0, 0), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1, 0, 0), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 5), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, 0, 5), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, 0, 6), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, 0, 7), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 6), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 11), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2, 0, 0), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 12), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2, 0, 0), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, 0, 11), + [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1, 0, 0), + [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2, 0, 0), + [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), + [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(42), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2, 0, 0), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1, 0, 0), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1, 0, 0), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 5), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, 0, 5), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, 0, 6), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, 0, 7), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 6), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, 0, 11), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2, 0, 0), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, 0, 12), [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6, 0, 0), [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, 0, 12), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1, 0, 0), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, 0, 11), [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2, 0, 0), [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(120), @@ -4130,17 +4174,17 @@ static const TSParseActionEntry ts_parse_actions[] = { [130] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1, 0, 0), [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, 0, 2), [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, 0, 8), [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), @@ -4151,7 +4195,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), [175] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, 0, 10), SHIFT_REPEAT(102), [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, 0, 10), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), [186] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 6), @@ -4160,7 +4204,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [192] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 13), SHIFT_REPEAT(10), [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, 0, 13), [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), @@ -4175,7 +4219,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [230] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [230] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), [232] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), SHIFT_REPEAT(43), [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2, 0, 0), [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), @@ -4237,7 +4281,7 @@ static const TSParseActionEntry ts_parse_actions[] = { [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, 0, 0), [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, 0, 0), [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5, 0, 0), - [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2, 0, 0), [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3, 0, 0), diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 7fb9f3d..c06c76e 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -409,6 +409,46 @@ foo = select(some_boolean("IS_TRUE"), { (boolean_literal)) (interpreted_string_literal)))))) +================================================================================ +Select (integer typed) +================================================================================ + +foo = select(some_integer("VALUE"), { + 0: "0", + -1: "-1", + 1: "1", + default: "default", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (condition + (identifier) + (interpreted_string_literal))) + (select_cases + (select_case + (select_pattern + (integer_literal)) + (interpreted_string_literal)) + (select_case + (select_pattern + (integer_literal)) + (interpreted_string_literal)) + (select_case + (select_pattern + (integer_literal)) + (interpreted_string_literal)) + (select_case + (select_pattern + (default)) + (interpreted_string_literal)))))) + ================================================================================ Select as an identifier ================================================================================ From ee641d15390183d7535777947ce0f2f1fbcee69f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 2 Apr 2025 10:16:51 +0000 Subject: [PATCH 39/39] Release 0.7.0 --- Cargo.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- src/parser.c | 2 +- tree-sitter.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7c93331..623cefb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tree-sitter-bp" description = "Blueprint grammar for the tree-sitter parsing library" -version = "0.6.0" +version = "0.7.0" keywords = ["incremental", "parsing", "android", "blueprint"] categories = ["parsing", "text-editors"] repository = "https://git.belanyi.fr/ambroisie/tree-sitter-bp" diff --git a/package.json b/package.json index 466969a..33a61e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-bp", - "version": "0.6.0", + "version": "0.7.0", "description": "Blueprint grammar for tree-sitter", "main": "bindings/node", "types": "bindings/node", diff --git a/pyproject.toml b/pyproject.toml index f697f68..096194f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "tree-sitter-bp" description = "Bp grammar for tree-sitter" -version = "0.6.0" +version = "0.7.0" keywords = ["incremental", "parsing", "tree-sitter", "bp"] classifiers = [ "Intended Audience :: Developers", diff --git a/src/parser.c b/src/parser.c index 166f6aa..67847a6 100644 --- a/src/parser.c +++ b/src/parser.c @@ -4330,7 +4330,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_bp(void) { .max_reserved_word_set_size = 0, .metadata = { .major_version = 0, - .minor_version = 6, + .minor_version = 7, .patch_version = 0, }, }; diff --git a/tree-sitter.json b/tree-sitter.json index 1269580..bacee82 100644 --- a/tree-sitter.json +++ b/tree-sitter.json @@ -12,7 +12,7 @@ } ], "metadata": { - "version": "0.6.0", + "version": "0.7.0", "license": "MIT", "description": "Blueprint grammar for tree-sitter", "links": {