From b3606fc219ed54c4da56cd97c3065c42b3cdb336 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 20 Dec 2024 09:16:19 -0800 Subject: [PATCH] Use tree-sitter-xml from crates.io --- CHANGELOG.md | 2 +- Cargo.lock | 11 + Cargo.toml | 1 + build.rs | 5 - manual/src/languages_supported.md | 2 +- src/parse/tree_sitter_parser.rs | 12 +- vendored_parsers/highlights/xml.scm | 1 - vendored_parsers/tree-sitter-xml-src/common | 1 - .../tree-sitter-xml-src/tree-sitter-xml | 1 - .../tree-sitter-xml/.editorconfig | 16 - .../tree-sitter-xml/.gitattributes | 5 - .../tree-sitter-xml/.github/FUNDING.yml | 2 - .../tree-sitter-xml/.github/workflows/ci.yml | 22 - vendored_parsers/tree-sitter-xml/.gitignore | 8 - vendored_parsers/tree-sitter-xml/Cargo.toml | 30 - vendored_parsers/tree-sitter-xml/LICENSE | 19 - vendored_parsers/tree-sitter-xml/README.md | 5 - vendored_parsers/tree-sitter-xml/binding.gyp | 22 - .../tree-sitter-xml/bindings/node/binding.cc | 37 - .../tree-sitter-xml/bindings/node/dtd.js | 1 - .../tree-sitter-xml/bindings/node/index.js | 20 - .../tree-sitter-xml/bindings/node/xml.js | 1 - .../tree-sitter-xml/bindings/rust/build.rs | 26 - .../tree-sitter-xml/bindings/rust/lib.rs | 67 - .../tree-sitter-xml/common/index.js | 68 - .../tree-sitter-xml/common/scanner.h | 142 - .../tree-sitter-xml/jsconfig.json | 13 - vendored_parsers/tree-sitter-xml/package.json | 61 - .../tree-sitter-dtd/grammar.js | 348 - .../tree-sitter-dtd/package.json | 3 - .../tree-sitter-dtd/queries/highlights.scm | 122 - .../tree-sitter-dtd/src/grammar.json | 1890 ---- .../tree-sitter-dtd/src/node-types.json | 784 -- .../tree-sitter-dtd/src/parser.c | 5910 ------------ .../tree-sitter-dtd/src/scanner.c | 20 - .../tree-sitter-dtd/src/tree_sitter/parser.h | 224 - .../tree-sitter-dtd/test/corpus/examples.txt | 68 - .../tree-sitter-dtd/test/corpus/standard.txt | 214 - .../tree-sitter-xml/grammar.js | 166 - .../tree-sitter-xml/package.json | 3 - .../tree-sitter-xml/queries/highlights.scm | 171 - .../tree-sitter-xml/src/grammar.json | 2648 ------ .../tree-sitter-xml/src/node-types.json | 1114 --- .../tree-sitter-xml/src/parser.c | 8033 ----------------- .../tree-sitter-xml/src/scanner.c | 81 - .../tree-sitter-xml/src/tree_sitter/parser.h | 224 - .../tree-sitter-xml/test/corpus/errors.txt | 104 - .../tree-sitter-xml/test/corpus/examples.txt | 180 - .../tree-sitter-xml/test/corpus/extra.txt | 119 - .../tree-sitter-xml/test/corpus/standard.txt | 117 - 50 files changed, 19 insertions(+), 23125 deletions(-) delete mode 120000 vendored_parsers/highlights/xml.scm delete mode 120000 vendored_parsers/tree-sitter-xml-src/common delete mode 120000 vendored_parsers/tree-sitter-xml-src/tree-sitter-xml delete mode 100644 vendored_parsers/tree-sitter-xml/.editorconfig delete mode 100644 vendored_parsers/tree-sitter-xml/.gitattributes delete mode 100644 vendored_parsers/tree-sitter-xml/.github/FUNDING.yml delete mode 100644 vendored_parsers/tree-sitter-xml/.github/workflows/ci.yml delete mode 100644 vendored_parsers/tree-sitter-xml/.gitignore delete mode 100644 vendored_parsers/tree-sitter-xml/Cargo.toml delete mode 100644 vendored_parsers/tree-sitter-xml/LICENSE delete mode 100644 vendored_parsers/tree-sitter-xml/README.md delete mode 100644 vendored_parsers/tree-sitter-xml/binding.gyp delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/node/binding.cc delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/node/dtd.js delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/node/index.js delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/node/xml.js delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/rust/build.rs delete mode 100644 vendored_parsers/tree-sitter-xml/bindings/rust/lib.rs delete mode 100644 vendored_parsers/tree-sitter-xml/common/index.js delete mode 100644 vendored_parsers/tree-sitter-xml/common/scanner.h delete mode 100644 vendored_parsers/tree-sitter-xml/jsconfig.json delete mode 100644 vendored_parsers/tree-sitter-xml/package.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/grammar.js delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/package.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/queries/highlights.scm delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/grammar.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/node-types.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/parser.c delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/scanner.c delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/tree_sitter/parser.h delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/examples.txt delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/standard.txt delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/grammar.js delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/package.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/queries/highlights.scm delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/grammar.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/node-types.json delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/parser.c delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/scanner.c delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/tree_sitter/parser.h delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/errors.txt delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/examples.txt delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/extra.txt delete mode 100644 vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/standard.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 5658a4895e..1d84f22a6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ Improved language detection when one argument is a named pipe. Updated to the latest tree-sitter parser for Bash, C, C++, C#, CSS, Go, Haskell, HTML, Java, JavaScript, JSON, Julia, Lua, Objective-C, -OCaml, PHP, Python, Ruby, Scala, TOML and TypeScript. +OCaml, PHP, Python, Ruby, Scala, TOML, TypeScript and XML. ### Syntax Highlighting diff --git a/Cargo.lock b/Cargo.lock index f01b507795..ce5827f604 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,6 +271,7 @@ dependencies = [ "tree-sitter-scala", "tree-sitter-toml-ng", "tree-sitter-typescript", + "tree-sitter-xml", "tree_magic_mini", "typed-arena", "unicode-width", @@ -1238,6 +1239,16 @@ dependencies = [ "tree-sitter-language", ] +[[package]] +name = "tree-sitter-xml" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e670041f591d994f54d597ddcd8f4ebc930e282c4c76a42268743b71f0c8b6b3" +dependencies = [ + "cc", + "tree-sitter-language", +] + [[package]] name = "tree_magic_mini" version = "3.1.5" diff --git a/Cargo.toml b/Cargo.toml index b04dda29c4..cc93006511 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -99,6 +99,7 @@ tree-sitter-html = "0.23.2" tree-sitter-css = "0.23.1" tree-sitter-toml-ng = "0.7.0" tree-sitter-lua = "0.2.0" +tree-sitter-xml = "0.7.0" [dev-dependencies] # assert_cmd 2.0.10 requires predicates 3. diff --git a/build.rs b/build.rs index 99538b8d8d..5c5b4f61af 100644 --- a/build.rs +++ b/build.rs @@ -247,11 +247,6 @@ fn main() { src_dir: "vendored_parsers/tree-sitter-vhdl-src", extra_files: vec![], }, - TreeSitterParser { - name: "tree-sitter-xml", - src_dir: "vendored_parsers/tree-sitter-xml-src/tree-sitter-xml/src", - extra_files: vec!["scanner.c"], - }, TreeSitterParser { name: "tree-sitter-yaml", src_dir: "vendored_parsers/tree-sitter-yaml-src", diff --git a/manual/src/languages_supported.md b/manual/src/languages_supported.md index a214251b73..d57df4b3e1 100644 --- a/manual/src/languages_supported.md +++ b/manual/src/languages_supported.md @@ -70,6 +70,6 @@ with `difft --list-languages`. | Newick | [delehef/tree-sitter-newick](https://github.com/delehef/tree-sitter-newick) | | SCSS | [serenadeai/tree-sitter-scss](https://github.com/serenadeai/tree-sitter-scss) | | TOML | [tree-sitter-grammars/tree-sitter-toml](https://github.com/tree-sitter-grammars/tree-sitter-toml) | -| XML | [ObserverOfTime/tree-sitter-xml](https://github.com/ObserverOfTime/tree-sitter-xml) | +| XML | [tree-sitter-grammars/tree-sitter-xml](https://github.com/tree-sitter-grammars/tree-sitter-xml) | | YAML | [ikatyang/tree-sitter-yaml](https://github.com/ikatyang/tree-sitter-yaml) | diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index fb210692df..16695308d6 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -97,7 +97,6 @@ extern "C" { fn tree_sitter_sql() -> ts::Language; fn tree_sitter_swift() -> ts::Language; fn tree_sitter_vhdl() -> ts::Language; - fn tree_sitter_xml() -> ts::Language; fn tree_sitter_yaml() -> ts::Language; fn tree_sitter_zig() -> ts::Language; } @@ -1080,7 +1079,9 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig { } } Xml => { - let language = unsafe { tree_sitter_xml() }; + let language_fn = tree_sitter_xml::LANGUAGE_XML; + let language = tree_sitter::Language::new(language_fn); + TreeSitterConfig { language: language.clone(), // XMLDecl is the header, but the parser @@ -1088,11 +1089,8 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig { // e.g. string subexpressions, so flatten. atom_nodes: vec!["AttValue", "XMLDecl"].into_iter().collect(), delimiter_tokens: (vec![("<", ">")]), - highlight_query: ts::Query::new( - &language, - include_str!("../../vendored_parsers/highlights/xml.scm"), - ) - .unwrap(), + highlight_query: ts::Query::new(&language, tree_sitter_xml::XML_HIGHLIGHT_QUERY) + .unwrap(), sub_languages: vec![], } } diff --git a/vendored_parsers/highlights/xml.scm b/vendored_parsers/highlights/xml.scm deleted file mode 120000 index 5f1604ceda..0000000000 --- a/vendored_parsers/highlights/xml.scm +++ /dev/null @@ -1 +0,0 @@ -../tree-sitter-xml/tree-sitter-xml/queries/highlights.scm \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-xml-src/common b/vendored_parsers/tree-sitter-xml-src/common deleted file mode 120000 index 2964306162..0000000000 --- a/vendored_parsers/tree-sitter-xml-src/common +++ /dev/null @@ -1 +0,0 @@ -../tree-sitter-xml/common \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-xml-src/tree-sitter-xml b/vendored_parsers/tree-sitter-xml-src/tree-sitter-xml deleted file mode 120000 index 0ba74ccd8b..0000000000 --- a/vendored_parsers/tree-sitter-xml-src/tree-sitter-xml +++ /dev/null @@ -1 +0,0 @@ -../tree-sitter-xml/tree-sitter-xml \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-xml/.editorconfig b/vendored_parsers/tree-sitter-xml/.editorconfig deleted file mode 100644 index dc84f89c64..0000000000 --- a/vendored_parsers/tree-sitter-xml/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true -max_line_length = 120 - -[*.js] -quote_type = single - -[*.{c,h,cc,rs}] -indent_size = 4 diff --git a/vendored_parsers/tree-sitter-xml/.gitattributes b/vendored_parsers/tree-sitter-xml/.gitattributes deleted file mode 100644 index 7c66740fc1..0000000000 --- a/vendored_parsers/tree-sitter-xml/.gitattributes +++ /dev/null @@ -1,5 +0,0 @@ -* text=auto - -**/src/*.json linguist-generated -**/src/parser.c linguist-generated -**/src/tree_sitter/parser.h linguist-generated diff --git a/vendored_parsers/tree-sitter-xml/.github/FUNDING.yml b/vendored_parsers/tree-sitter-xml/.github/FUNDING.yml deleted file mode 100644 index 812f0903dc..0000000000 --- a/vendored_parsers/tree-sitter-xml/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: ObserverOfTime -liberapay: ObserverOfTime diff --git a/vendored_parsers/tree-sitter-xml/.github/workflows/ci.yml b/vendored_parsers/tree-sitter-xml/.github/workflows/ci.yml deleted file mode 100644 index db409de58b..0000000000 --- a/vendored_parsers/tree-sitter-xml/.github/workflows/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test grammars - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - name: Checkout repository - - uses: actions/setup-node@v3 - name: Set up NodeJS - with: - node-version: 16 - - run: npm install - name: Install dependencies - - run: npm test - name: Run tests diff --git a/vendored_parsers/tree-sitter-xml/.gitignore b/vendored_parsers/tree-sitter-xml/.gitignore deleted file mode 100644 index 4ffedfdf0f..0000000000 --- a/vendored_parsers/tree-sitter-xml/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -node_modules/ -package-lock.json -yarn.lock -Cargo.lock - -build/ -target/ -*.wasm diff --git a/vendored_parsers/tree-sitter-xml/Cargo.toml b/vendored_parsers/tree-sitter-xml/Cargo.toml deleted file mode 100644 index ab7777bd01..0000000000 --- a/vendored_parsers/tree-sitter-xml/Cargo.toml +++ /dev/null @@ -1,30 +0,0 @@ -[package] -name = "tree-sitter-xml" -description = "XML grammar for tree-sitter" -version = "0.2.0" -license = "MIT" -readme = "README.md" -keywords = ["incremental", "parsing", "dtd", "xml"] -categories = ["parsing", "text-editors"] -repository = "https://github.com/ObserverOfTime/tree-sitter-xml" -edition = "2021" - -build = "bindings/rust/build.rs" -include = [ - "bindings/rust/*", - "tree-sitter-dtd/grammar.js", - "tree-sitter-dtd/src/*", - "tree-sitter-dtd/queries/*", - "tree-sitter-xml/grammar.js", - "tree-sitter-xml/src/*", - "tree-sitter-xml/queries/*", -] - -[lib] -path = "bindings/rust/lib.rs" - -[dependencies] -tree-sitter = "~0.20.10" - -[build-dependencies] -cc = "1.0" diff --git a/vendored_parsers/tree-sitter-xml/LICENSE b/vendored_parsers/tree-sitter-xml/LICENSE deleted file mode 100644 index 7094a20529..0000000000 --- a/vendored_parsers/tree-sitter-xml/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2023 ObserverOfTime - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendored_parsers/tree-sitter-xml/README.md b/vendored_parsers/tree-sitter-xml/README.md deleted file mode 100644 index 8ccb5242fd..0000000000 --- a/vendored_parsers/tree-sitter-xml/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# tree-sitter-xml - -A tree-sitter parser for XML & DTD files. - -Based on the [XML](https://www.w3.org/TR/xml/) standard. diff --git a/vendored_parsers/tree-sitter-xml/binding.gyp b/vendored_parsers/tree-sitter-xml/binding.gyp deleted file mode 100644 index 1cd5f41b46..0000000000 --- a/vendored_parsers/tree-sitter-xml/binding.gyp +++ /dev/null @@ -1,22 +0,0 @@ -{ - "targets": [ - { - "target_name": "tree_sitter_xml_binding", - "include_dirs": [ - " -#include "nan.h" - -using namespace v8; - -extern "C" TSLanguage * tree_sitter_xml(); -extern "C" TSLanguage * tree_sitter_dtd(); - -namespace { - -NAN_METHOD(New) {} - -void Init(Local exports, Local module) { - Local xml_tpl = Nan::New(New); - xml_tpl->SetClassName(Nan::New("Language").ToLocalChecked()); - xml_tpl->InstanceTemplate()->SetInternalFieldCount(1); - Local xml_constructor = Nan::GetFunction(xml_tpl).ToLocalChecked(); - Local xml_instance = xml_constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(xml_instance, 0, tree_sitter_xml()); - Nan::Set(xml_instance, Nan::New("name").ToLocalChecked(), Nan::New("xml").ToLocalChecked()); - - Local dtd_tpl = Nan::New(New); - dtd_tpl->SetClassName(Nan::New("Language").ToLocalChecked()); - dtd_tpl->InstanceTemplate()->SetInternalFieldCount(1); - Local dtd_constructor = Nan::GetFunction(dtd_tpl).ToLocalChecked(); - Local dtd_instance = dtd_constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(dtd_instance, 0, tree_sitter_dtd()); - Nan::Set(dtd_instance, Nan::New("name").ToLocalChecked(), Nan::New("dtd").ToLocalChecked()); - - Nan::Set(exports, Nan::New("xml").ToLocalChecked(), xml_instance); - Nan::Set(exports, Nan::New("dtd").ToLocalChecked(), dtd_instance); -} - -NODE_MODULE(tree_sitter_xml_binding, Init) - -} // namespace diff --git a/vendored_parsers/tree-sitter-xml/bindings/node/dtd.js b/vendored_parsers/tree-sitter-xml/bindings/node/dtd.js deleted file mode 100644 index b4ddcb1211..0000000000 --- a/vendored_parsers/tree-sitter-xml/bindings/node/dtd.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./index').dtd; diff --git a/vendored_parsers/tree-sitter-xml/bindings/node/index.js b/vendored_parsers/tree-sitter-xml/bindings/node/index.js deleted file mode 100644 index adc36cc968..0000000000 --- a/vendored_parsers/tree-sitter-xml/bindings/node/index.js +++ /dev/null @@ -1,20 +0,0 @@ -try { - module.exports = require('../../build/Release/tree_sitter_xml_binding'); -} catch (error1) { - if (error1.code !== 'MODULE_NOT_FOUND') { - throw error1; - } - try { - module.exports = require('../../build/Debug/tree_sitter_xml_binding'); - } catch (error2) { - if (error2.code !== 'MODULE_NOT_FOUND') { - throw error2; - } - throw error1 - } -} - -try { - module.exports.xml.nodeTypeInfo = require('../../tree-sitter-xml/src/node-types.json'); - module.exports.dtd.nodeTypeInfo = require('../../tree-sitter-dtd/src/node-types.json'); -} catch (_) { } diff --git a/vendored_parsers/tree-sitter-xml/bindings/node/xml.js b/vendored_parsers/tree-sitter-xml/bindings/node/xml.js deleted file mode 100644 index 74e2706fbb..0000000000 --- a/vendored_parsers/tree-sitter-xml/bindings/node/xml.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./index').xml; diff --git a/vendored_parsers/tree-sitter-xml/bindings/rust/build.rs b/vendored_parsers/tree-sitter-xml/bindings/rust/build.rs deleted file mode 100644 index a34e1d9612..0000000000 --- a/vendored_parsers/tree-sitter-xml/bindings/rust/build.rs +++ /dev/null @@ -1,26 +0,0 @@ -fn main() { - let root_dir = std::path::Path::new("."); - let xml_dir = root_dir.join("tree-sitter-xml").join("src"); - let dtd_dir = root_dir.join("tree-sitter-dtd").join("src"); - let common_dir = root_dir.join("common"); - - let mut config = cc::Build::new(); - config.include(&xml_dir); - config - .flag_if_supported("-Wno-unused-parameter") - .flag_if_supported("-Wno-unused-but-set-variable"); - - for path in &[ - xml_dir.join("parser.c"), - xml_dir.join("scanner.c"), - dtd_dir.join("parser.c"), - dtd_dir.join("scanner.c"), - ] { - config.file(path); - println!("cargo:rerun-if-changed={}", path.to_str().unwrap()); - } - - println!("cargo:rerun-if-changed={}", common_dir.join("scanner.h").to_str().unwrap()); - - config.compile("parser-scanner"); -} diff --git a/vendored_parsers/tree-sitter-xml/bindings/rust/lib.rs b/vendored_parsers/tree-sitter-xml/bindings/rust/lib.rs deleted file mode 100644 index 947be54a7d..0000000000 --- a/vendored_parsers/tree-sitter-xml/bindings/rust/lib.rs +++ /dev/null @@ -1,67 +0,0 @@ -//! This crate provides XML and DTD grammars for the [tree-sitter][] parsing library. -//! -//! Typically, you will use the [language_xml][language func] function to add this grammar to a -//! tree-sitter [Parser][], and then use the parser to parse some code: -//! -//! ``` -//! use tree_sitter::Parser; -//! -//! let code = r#" -//! -//! -//! Tove -//! Jani -//! Reminder -//! Don't forget me this weekend! -//! -//! "#; -//! let mut parser = Parser::new(); -//! parser -//! .set_language(tree_sitter_xml::language_xml()) -//! .expect("Error loading XML grammar"); -//! let parsed = parser.parse(code, None).unwrap(); -//! let root = parsed.root_node(); -//! assert!(!root.has_error()); -//! ``` -//! -//! [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html -//! [language func]: fn.language_xml.html -//! [Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html -//! [tree-sitter]: https://tree-sitter.github.io/ - -use tree_sitter::Language; - -extern "C" { - fn tree_sitter_dtd() -> Language; - fn tree_sitter_xml() -> Language; -} - -/// Returns the tree-sitter [Language][] for DTD. -/// -/// [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html -pub fn language_dtd() -> Language { - unsafe { tree_sitter_dtd() } -} - -/// Returns the tree-sitter [Language][] for XML. -/// -/// [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html -pub fn language_xml() -> Language { - unsafe { tree_sitter_xml() } -} - -/// The syntax highlighting queries for XML. -pub const XML_HIGHLIGHT_QUERY: &str = include_str!("../../tree-sitter-xml/queries/highlights.scm"); - -/// The syntax highlighting queries for DTD. -pub const DTD_HIGHLIGHT_QUERY: &str = include_str!("../../tree-sitter-dtd/queries/highlights.scm"); - -/// The content of the [`node-types.json`][] file for XML. -/// -/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types -pub const XML_NODE_TYPES: &str = include_str!("../../tree-sitter-xml/src/node-types.json"); - -/// The content of the [`node-types.json`][] file for DTD. -/// -/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types -pub const DTD_NODE_TYPES: &str = include_str!("../../tree-sitter-dtd/src/node-types.json"); diff --git a/vendored_parsers/tree-sitter-xml/common/index.js b/vendored_parsers/tree-sitter-xml/common/index.js deleted file mode 100644 index 03d288532f..0000000000 --- a/vendored_parsers/tree-sitter-xml/common/index.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file Reusable constructs - * @author ObserverOfTime - * @license MIT - */ - -/** - * @param {"'" | ''} q - * @see {@link https://www.w3.org/TR/xml/#NT-PubidChar} - */ -module.exports.pubid_char = (q) => - new RegExp(`[ \\r\\na-zA-Z0-9\\-${q}()+,./:=?;!*#@$_%]*`); - -/** - * @param {GrammarSymbols} $ - * @param {'"' | "'"} q - */ -module.exports.att_value = ($, q) => - seq( - q, - field( - 'content', - repeat(choice( - new RegExp(`[^<&${q}]`), - $._Reference - )) - ), - q - ); - -/** - * @param {GrammarSymbols} $ - * @param {'"' | "'"} q - */ -module.exports.entity_value = ($, q) => - seq( - q, - field( - 'content', - repeat(choice( - new RegExp(`[^<%&${q}]`), - $.PEReference, - $._Reference - )) - ), - q - ); - - -/** @param {RuleOrLiteral[]} choices */ -module.exports.str = (...choices) => - choice( - seq("'", ...choices, "'"), - seq('"', ...choices, '"') - ); - -/** - * @param {GrammarSymbols} $ - * @param {RuleOrLiteral[]} choices - */ -module.exports.ref = ($, ...choices) => - choice(...choices, $.PEReference); - -/** @param {RuleOrLiteral[]} rules */ -module.exports.rseq = (...rules) => repeat(seq(...rules)); - -/** @param {RuleOrLiteral[]} rules */ -module.exports.rseq1 = (...rules) => repeat1(seq(...rules)); diff --git a/vendored_parsers/tree-sitter-xml/common/scanner.h b/vendored_parsers/tree-sitter-xml/common/scanner.h deleted file mode 100644 index 4048371be5..0000000000 --- a/vendored_parsers/tree-sitter-xml/common/scanner.h +++ /dev/null @@ -1,142 +0,0 @@ -#pragma once - -#include -#include - -enum TokenType { - PI_TARGET, - PI_CONTENT, - COMMENT, - CHAR_DATA, - CDATA, - XML_MODEL, - XML_STYLESHEET, -}; - -/// Advance the lexer if the next token doesn't match the given character -#define advance_if_not(lexer, chr) \ - if ((lexer)->lookahead != (chr)) return false; advance((lexer)) - -/// Advance the lexer to the next token -static inline void advance(TSLexer *lexer) { lexer->advance(lexer, false); } - -/// Check if the character is valid in PITarget -/// @private -static inline bool is_valid_pi_char(int32_t chr) { - return isalnum(chr) || chr == '_' || chr == ':' || chr == '.' || chr == '-' || chr == L'·'; -} - -/// Check if the lexer matches the given word -/// @private -static inline bool check_word(TSLexer *lexer, const char *const word) { - for (int j = 0; word[j] != '\0'; ++j) { - advance_if_not(lexer, word[j]); - } - return true; -} - -/// Scan for the target of a PI node -static bool scan_pi_target(TSLexer *lexer, const bool *valid_symbols) { - bool advanced_once = false, found_x_first = false; - - if (isalpha(lexer->lookahead) || lexer->lookahead == '_') { - if (lexer->lookahead == 'x' || lexer->lookahead == 'X') { - found_x_first = true; - lexer->mark_end(lexer); - } - advanced_once = true; - advance(lexer); - } - - if (advanced_once) { - while (is_valid_pi_char(lexer->lookahead)) { - if (found_x_first && - (lexer->lookahead == 'm' || lexer->lookahead == 'M')) { - advance(lexer); - if (lexer->lookahead == 'l' || lexer->lookahead == 'L') { - advance(lexer); - if (is_valid_pi_char(lexer->lookahead)) { - found_x_first = false; - bool last_char_hyphen = lexer->lookahead == '-'; - advance(lexer); - if (last_char_hyphen) { - if (valid_symbols[XML_MODEL] && check_word(lexer, "model")) return false; - if (valid_symbols[XML_STYLESHEET] && check_word(lexer, "stylesheet")) return false; - } - } else { - return false; - } - } - } - - found_x_first = false; - advance(lexer); - } - - lexer->mark_end(lexer); - lexer->result_symbol = PI_TARGET; - return true; - } - - return false; -} - -/// Scan for the content of a PI node -static bool scan_pi_content(TSLexer *lexer) { - while (!lexer->eof(lexer) && lexer->lookahead != '\n' && lexer->lookahead != '?') advance(lexer); - - if (lexer->lookahead != '?') return false; - lexer->mark_end(lexer); - advance(lexer); - - if (lexer->lookahead == '>') { - advance(lexer); - while (lexer->lookahead == ' ') advance(lexer); - advance_if_not(lexer, '\n'); - lexer->result_symbol = PI_CONTENT; - return true; - } - - return false; -} - -/// Scan for a Comment node -static bool scan_comment(TSLexer *lexer) { - advance_if_not(lexer, '<'); - advance_if_not(lexer, '!'); - advance_if_not(lexer, '-'); - advance_if_not(lexer, '-'); - - while (!lexer->eof(lexer)) { - if (lexer->lookahead == '-') { - advance(lexer); - if (lexer->lookahead == '-') { - advance(lexer); - break; - } - } else { - advance(lexer); - } - } - - if (lexer->lookahead == '>') { - advance(lexer); - lexer->mark_end(lexer); - lexer->result_symbol = COMMENT; - return true; - } - - return false; -} - -/// Define the boilerplate functions of the scanner -#define SCANNER_BOILERPLATE(name) \ - void *tree_sitter_##name##_external_scanner_create() { return NULL; } \ - \ - void tree_sitter_##name##_external_scanner_destroy(void *payload) {} \ - \ - void tree_sitter_##name##_external_scanner_reset(void *payload) {} \ - \ - unsigned tree_sitter_##name##_external_scanner_serialize(void *payload, char *buffer) { return 0; } \ - \ - void tree_sitter_##name##_external_scanner_deserialize(void *payload, const char *buffer, unsigned length) {} diff --git a/vendored_parsers/tree-sitter-xml/jsconfig.json b/vendored_parsers/tree-sitter-xml/jsconfig.json deleted file mode 100644 index f03ba1514d..0000000000 --- a/vendored_parsers/tree-sitter-xml/jsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "files": [ - "common/index.js", - "tree-sitter-xml/grammar.js", - "tree-sitter-dtd/grammar.js" - ], - "exclude": ["node_modules"], - "compilerOptions": { - "checkJs": true, - "module": "Node16", - "types": ["tree-sitter-cli/dsl"] - } -} diff --git a/vendored_parsers/tree-sitter-xml/package.json b/vendored_parsers/tree-sitter-xml/package.json deleted file mode 100644 index 6bd52d0cdd..0000000000 --- a/vendored_parsers/tree-sitter-xml/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "tree-sitter-xml", - "version": "0.2.0", - "license": "MIT", - "description": "XML & DTD grammars for tree-sitter", - "repository": "ObserverOfTime/tree-sitter-xml", - "author": { - "name": "ObserverOfTime", - "email": "chronobserver@disroot.org", - "url": "https://observeroftime.github.io/" - }, - "keywords": [ - "tree-sitter", - "parser", - "lexer", - "xml", - "dtd" - ], - "main": "./bindings/node", - "dependencies": { - "nan": "^2.17.0" - }, - "devDependencies": { - "tree-sitter-cli": "^0.20.8" - }, - "scripts": { - "build": "npm run build-dtd && npm run build-xml", - "build-dtd": "cd tree-sitter-dtd && tree-sitter generate --no-bindings", - "build-xml": "cd tree-sitter-xml && tree-sitter generate --no-bindings", - "parse": "tree-sitter parse", - "test-load": "node -e \"console.log(require('./tree-sitter-dtd').name, require('./tree-sitter-xml').name)\"", - "test": "npm run test-dtd && npm run test-xml && npm run test-load", - "test-dtd": "cd tree-sitter-dtd && tree-sitter test", - "test-xml": "cd tree-sitter-xml && tree-sitter test", - "playground-xml": "cd tree-sitter-xml && tree-sitter build-wasm && tree-sitter playground", - "playground-dtd": "cd tree-sitter-dtd && tree-sitter build-wasm && tree-sitter playground" - }, - "tree-sitter": [ - { - "scope": "source.xml", - "file-types": [ - "xml", - "svg", - "xsd", - "xslt" - ], - "injection-regex": "^(xml|svg|xsd|xslt)$", - "highlights": "tree-sitter-xml/queries/highlights.scm", - "path": "tree-sitter-xml" - }, - { - "scope": "source.dtd", - "file-types": [ - "dtd" - ], - "injection-regex": "^dtd$", - "highlights": "tree-sitter-dtd/queries/highlights.scm", - "path": "tree-sitter-dtd" - } - ] -} diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/grammar.js b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/grammar.js deleted file mode 100644 index 4cba06375b..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/grammar.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * @file Tree-sitter grammar definition for DTD - * @author ObserverOfTime - * @license MIT - * @see {@link https://www.w3.org/TR/xml/|XML standard} - */ - -const c = require('../common'); - -const O = optional; - -module.exports = grammar({ - name: 'dtd', - - externals: $ => [ - $.PITarget, - $._pi_content, - $.Comment, - ], - - extras: _ => [], - - supertypes: $ => [ - $._markupdecl, - $._AttType, - $._EnumeratedType, - $._EntityDecl, - $._Reference, - ], - - word: $ => $.Name, - - rules: { - // AKA: extSubset - document: $ => seq( - O($.XMLDecl), - repeat1($._extSubsetDecl) - ), - - _extSubsetDecl: $ => choice( - $._markupdecl, - $.conditionalSect, - $._DeclSep - ), - - conditionalSect: $ => seq( - '' - ), - - _markupdecl: $ => choice( - $.elementdecl, - $.AttlistDecl, - $._EntityDecl, - $.NotationDecl, - $.PI, - $.Comment - ), - - _DeclSep: $ => choice($.PEReference, $._S), - - elementdecl: $ => seq( - '' - ), - - contentspec: $ => choice( - 'EMPTY', - 'ANY', - $.Mixed, - $.children, - $.PEReference - ), - - Mixed: $ => choice( - seq( - '(', - O($._S), - c.ref($, '#PCDATA'), - c.rseq( - O($._S), - '|', - O($._S), - c.ref($, $.Name), - O($._S), - ), - ')', - '*' - ), - seq( - '(', - O($._S), - c.ref($, '#PCDATA'), - O($._S), - ')' - ) - ), - - children: $ => seq( - $._choice, - O(choice('?', '*', '+')) - ), - - _cp: $ => prec.right(seq( - c.ref($, $.Name, $._choice), - O(choice('?', '*', '+')) - )), - - _choice: $ => seq( - '(', - O($._S), - $._cp, - c.rseq( - O($._S), - choice('|', ','), - O($._S), - $._cp - ), - ')' - ), - - AttlistDecl: $ => seq( - '' - ), - - AttDef: $ => prec.right(seq( - $._S, - c.ref($, $.Name), - $._S, - $._AttType, - O(seq($._S, $.DefaultDecl)) - )), - - _AttType: $ => choice( - $.StringType, - $.TokenizedType, - $._EnumeratedType, - $.PEReference - ), - - StringType: _ => 'CDATA', - - TokenizedType: _ => token(choice( - 'ID', - 'IDREF', - 'IDREFS', - 'ENTITY', - 'ENTITIES', - 'NMTOKEN', - 'NMTOKENS', - )), - - _EnumeratedType: $ => choice( - $.NotationType, - $.Enumeration - ), - - NotationType: $ => seq( - 'NOTATION', - $._S, - '(', - O($._S), - c.ref($, $.Name), - c.rseq( - O($._S), - '|', - O($._S) - ), - c.ref($, $.Name), - O($._S), - ')' - ), - - Enumeration: $ => seq( - '(', - O($._S), - $.Nmtoken, - c.rseq( - O($._S), - '|', - O($._S), - $.Nmtoken - ), - O($._S), - ')' - ), - - DefaultDecl: $ => choice( - '#REQUIRED', - '#IMPLIED', - seq( - O(seq('#FIXED', $._S)), - $.AttValue - ) - ), - - _EntityDecl: $ => choice( - $.GEDecl, - $.PEDecl - ), - - GEDecl: $ => seq( - '' - ), - - PEDecl: $ => seq( - '' - ), - - EntityValue: $ => choice( - c.entity_value($, '"'), - c.entity_value($, "'") - ), - - NDataDecl: $ => seq($._S, 'NDATA', $._S, c.ref($, $.Name)), - - NotationDecl: $ => seq( - '' - ), - - PEReference: $ => seq('%', $.Name, ';'), - - _S: _ => /[ \t\r\n]+/, - - Name: _ => /[a-zA-Z_][a-zA-Z0-9_:.·-]*/, - - Nmtoken: _ => /[a-zA-Z0-9_:.·-]+/, - - _Reference: $ => choice($.EntityRef, $.CharRef), - - EntityRef: $ => seq('&', $.Name, ';'), - - CharRef: _ => choice( - seq('&#', /[0-9]+/, ';'), - seq('&#x', /[0-9a-fA-F]+/, ';') - ), - - AttValue: $ => choice( - c.att_value($, '"'), - c.att_value($, "'") - ), - - ExternalID: $ => choice( - seq('SYSTEM', $._S, $.SystemLiteral), - seq('PUBLIC', $._S, $.PubidLiteral, $._S, $.SystemLiteral) - ), - - PublicID: $ => prec.right( - seq(c.ref($, 'PUBLIC'), $._S, $.PubidLiteral) - ), - - SystemLiteral: $ => choice( - seq('"', alias(/[^"]*/, $.URI), '"'), - seq("'", alias(/[^']*/, $.URI), "'") - ), - - PubidLiteral: _ => choice( - seq('"', c.pubid_char("'"), '"'), - seq("'", c.pubid_char(''), "'") - ), - - // AKA: TextDecl - XMLDecl: $ => seq( - '' - ), - - _VersionInfo: $ => seq( - $._S, - 'version', - $._Eq, - c.str($.VersionNum) - ), - - VersionNum: _ => /1\.[0-9]+/, - - _EncodingDecl: $ => seq( - $._S, - 'encoding', - $._Eq, - c.str($.EncName) - ), - - EncName: _ => /[A-Za-z][A-Za-z0-9._\-]*/, - - PI: $ => seq( - '' - ), - - _Eq: $ => seq(O($._S), '=', O($._S)) - } -}); diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/package.json b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/package.json deleted file mode 100644 index bfedc15df8..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "../bindings/node/dtd" -} diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/queries/highlights.scm b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/queries/highlights.scm deleted file mode 100644 index 5a1976e371..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/queries/highlights.scm +++ /dev/null @@ -1,122 +0,0 @@ -;; XML declaration - -(XMLDecl "xml" @keyword) - -(XMLDecl [ "version" "encoding" ] @property) - -(XMLDecl (EncName) @string.special) - -(XMLDecl (VersionNum) @number) - -;; Processing instructions - -(PI) @embedded - -(PI (PITarget) @keyword) - -;; Element declaration - -(elementdecl - "ELEMENT" @keyword - (Name) @tag) - -(contentspec - (_ (Name) @property)) - -"#PCDATA" @type.builtin - -[ "EMPTY" "ANY" ] @string.special.symbol - -[ "*" "?" "+" ] @operator - -;; Entity declaration - -(GEDecl - "ENTITY" @keyword - (Name) @constant) - -(GEDecl (EntityValue) @string) - -(NDataDecl - "NDATA" @keyword - (Name) @label) - -;; Parsed entity declaration - -(PEDecl - "ENTITY" @keyword - "%" @operator - (Name) @constant) - -(PEDecl (EntityValue) @string) - -;; Notation declaration - -(NotationDecl - "NOTATION" @keyword - (Name) @constant) - -(NotationDecl - (ExternalID - (SystemLiteral (URI) @string.special))) - -;; Attlist declaration - -(AttlistDecl - "ATTLIST" @keyword - (Name) @tag) - -(AttDef (Name) @property) - -(AttDef (Enumeration (Nmtoken) @string)) - -[ - (StringType) - (TokenizedType) -] @type.builtin - -(NotationType "NOTATION" @type.builtin) - -[ - "#REQUIRED" - "#IMPLIED" - "#FIXED" -] @attribute - -;; Entities - -(EntityRef) @constant - -((EntityRef) @constant.builtin - (#any-of? @constant.builtin - "&" "<" ">" """ "'")) - -(CharRef) @constant - -(PEReference) @constant - -;; External references - -[ "PUBLIC" "SYSTEM" ] @keyword - -(PubidLiteral) @string.special - -(SystemLiteral (URI) @markup.link) - -;; Delimiters & punctuation - -[ "" "" "]]>" ] @punctuation.delimiter - -[ "(" ")" "[" ] @punctuation.bracket - -[ "\"" "'" ] @punctuation.delimiter - -[ "," "|" "=" ] @operator - -;; Misc - -[ "INCLUDE" "IGNORE" ] @keyword - -(Comment) @comment - -(ERROR) @error diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/grammar.json b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/grammar.json deleted file mode 100644 index edee5604f7..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/grammar.json +++ /dev/null @@ -1,1890 +0,0 @@ -{ - "name": "dtd", - "word": "Name", - "rules": { - "document": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "XMLDecl" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "REPEAT1", - "content": { - "type": "SYMBOL", - "name": "_extSubsetDecl" - } - } - ] - }, - "_extSubsetDecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_markupdecl" - }, - { - "type": "SYMBOL", - "name": "conditionalSect" - }, - { - "type": "SYMBOL", - "name": "_DeclSep" - } - ] - }, - "conditionalSect": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_markupdecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "elementdecl" - }, - { - "type": "SYMBOL", - "name": "AttlistDecl" - }, - { - "type": "SYMBOL", - "name": "_EntityDecl" - }, - { - "type": "SYMBOL", - "name": "NotationDecl" - }, - { - "type": "SYMBOL", - "name": "PI" - }, - { - "type": "SYMBOL", - "name": "Comment" - } - ] - }, - "_DeclSep": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_S" - } - ] - }, - "elementdecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "contentspec": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "EMPTY" - }, - { - "type": "STRING", - "value": "ANY" - }, - { - "type": "SYMBOL", - "name": "Mixed" - }, - { - "type": "SYMBOL", - "name": "children" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - "Mixed": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#PCDATA" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - { - "type": "STRING", - "value": ")" - }, - { - "type": "STRING", - "value": "*" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#PCDATA" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - } - ] - }, - "children": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_choice" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "?" - }, - { - "type": "STRING", - "value": "*" - }, - { - "type": "STRING", - "value": "+" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - }, - "_cp": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "_choice" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "?" - }, - { - "type": "STRING", - "value": "*" - }, - { - "type": "STRING", - "value": "+" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - "_choice": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "_cp" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "|" - }, - { - "type": "STRING", - "value": "," - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "_cp" - } - ] - } - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "AttlistDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "AttDef": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "_AttType" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "DefaultDecl" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - "_AttType": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "StringType" - }, - { - "type": "SYMBOL", - "name": "TokenizedType" - }, - { - "type": "SYMBOL", - "name": "_EnumeratedType" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - "StringType": { - "type": "STRING", - "value": "CDATA" - }, - "TokenizedType": { - "type": "TOKEN", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "ID" - }, - { - "type": "STRING", - "value": "IDREF" - }, - { - "type": "STRING", - "value": "IDREFS" - }, - { - "type": "STRING", - "value": "ENTITY" - }, - { - "type": "STRING", - "value": "ENTITIES" - }, - { - "type": "STRING", - "value": "NMTOKEN" - }, - { - "type": "STRING", - "value": "NMTOKENS" - } - ] - } - }, - "_EnumeratedType": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "NotationType" - }, - { - "type": "SYMBOL", - "name": "Enumeration" - } - ] - }, - "NotationType": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "NOTATION" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "Enumeration": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "Nmtoken" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "Nmtoken" - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "DefaultDecl": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#REQUIRED" - }, - { - "type": "STRING", - "value": "#IMPLIED" - }, - { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "#FIXED" - }, - { - "type": "SYMBOL", - "name": "_S" - } - ] - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "AttValue" - } - ] - } - ] - }, - "_EntityDecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "GEDecl" - }, - { - "type": "SYMBOL", - "name": "PEDecl" - } - ] - }, - "GEDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "PEDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "EntityValue": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<%&\"]" - }, - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<%&']" - }, - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "NDataDecl": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "NDATA" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - } - ] - }, - "NotationDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "PEReference": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "%" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - "_S": { - "type": "PATTERN", - "value": "[ \\t\\r\\n]+" - }, - "Name": { - "type": "PATTERN", - "value": "[a-zA-Z_][a-zA-Z0-9_:.·-]*" - }, - "Nmtoken": { - "type": "PATTERN", - "value": "[a-zA-Z0-9_:.·-]+" - }, - "_Reference": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "EntityRef" - }, - { - "type": "SYMBOL", - "name": "CharRef" - } - ] - }, - "EntityRef": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - "CharRef": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&#" - }, - { - "type": "PATTERN", - "value": "[0-9]+" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&#x" - }, - { - "type": "PATTERN", - "value": "[0-9a-fA-F]+" - }, - { - "type": "STRING", - "value": ";" - } - ] - } - ] - }, - "AttValue": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&\"]" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&']" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "ExternalID": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "SYSTEM" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "SystemLiteral" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "PUBLIC" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "PubidLiteral" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "SystemLiteral" - } - ] - } - ] - }, - "PublicID": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "PUBLIC" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "PubidLiteral" - } - ] - } - }, - "SystemLiteral": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "ALIAS", - "content": { - "type": "PATTERN", - "value": "[^\"]*" - }, - "named": true, - "value": "URI" - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "ALIAS", - "content": { - "type": "PATTERN", - "value": "[^']*" - }, - "named": true, - "value": "URI" - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "PubidLiteral": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "PATTERN", - "value": "[ \\r\\na-zA-Z0-9\\-'()+,./:=?;!*#@$_%]*" - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "PATTERN", - "value": "[ \\r\\na-zA-Z0-9\\-()+,./:=?;!*#@$_%]*" - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "XMLDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_VersionInfo": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "version" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "SYMBOL", - "name": "VersionNum" - }, - { - "type": "STRING", - "value": "'" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "SYMBOL", - "name": "VersionNum" - }, - { - "type": "STRING", - "value": "\"" - } - ] - } - ] - } - ] - }, - "VersionNum": { - "type": "PATTERN", - "value": "1\\.[0-9]+" - }, - "_EncodingDecl": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "encoding" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "SYMBOL", - "name": "EncName" - }, - { - "type": "STRING", - "value": "'" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "SYMBOL", - "name": "EncName" - }, - { - "type": "STRING", - "value": "\"" - } - ] - } - ] - } - ] - }, - "EncName": { - "type": "PATTERN", - "value": "[A-Za-z][A-Za-z0-9._\\-]*" - }, - "PI": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_Eq": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "=" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - "extras": [], - "conflicts": [], - "precedences": [], - "externals": [ - { - "type": "SYMBOL", - "name": "PITarget" - }, - { - "type": "SYMBOL", - "name": "_pi_content" - }, - { - "type": "SYMBOL", - "name": "Comment" - } - ], - "inline": [], - "supertypes": [ - "_markupdecl", - "_AttType", - "_EnumeratedType", - "_EntityDecl", - "_Reference" - ] -} - diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/node-types.json b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/node-types.json deleted file mode 100644 index 1e6b36a720..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/node-types.json +++ /dev/null @@ -1,784 +0,0 @@ -[ - { - "type": "_AttType", - "named": true, - "subtypes": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "StringType", - "named": true - }, - { - "type": "TokenizedType", - "named": true - }, - { - "type": "_EnumeratedType", - "named": true - } - ] - }, - { - "type": "_EntityDecl", - "named": true, - "subtypes": [ - { - "type": "GEDecl", - "named": true - }, - { - "type": "PEDecl", - "named": true - } - ] - }, - { - "type": "_EnumeratedType", - "named": true, - "subtypes": [ - { - "type": "Enumeration", - "named": true - }, - { - "type": "NotationType", - "named": true - } - ] - }, - { - "type": "_Reference", - "named": true, - "subtypes": [ - { - "type": "CharRef", - "named": true - }, - { - "type": "EntityRef", - "named": true - } - ] - }, - { - "type": "_markupdecl", - "named": true, - "subtypes": [ - { - "type": "AttlistDecl", - "named": true - }, - { - "type": "Comment", - "named": true - }, - { - "type": "NotationDecl", - "named": true - }, - { - "type": "PI", - "named": true - }, - { - "type": "_EntityDecl", - "named": true - }, - { - "type": "elementdecl", - "named": true - } - ] - }, - { - "type": "AttDef", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "DefaultDecl", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "_AttType", - "named": true - } - ] - } - }, - { - "type": "AttValue", - "named": true, - "fields": { - "content": { - "multiple": true, - "required": false, - "types": [ - { - "type": "_Reference", - "named": true - } - ] - } - } - }, - { - "type": "AttlistDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "AttDef", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "CharRef", - "named": true, - "fields": {} - }, - { - "type": "DefaultDecl", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": false, - "types": [ - { - "type": "AttValue", - "named": true - } - ] - } - }, - { - "type": "EntityRef", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "EntityValue", - "named": true, - "fields": { - "content": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "_Reference", - "named": true - } - ] - } - } - }, - { - "type": "Enumeration", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Nmtoken", - "named": true - } - ] - } - }, - { - "type": "ExternalID", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "PubidLiteral", - "named": true - }, - { - "type": "SystemLiteral", - "named": true - } - ] - } - }, - { - "type": "GEDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EntityValue", - "named": true - }, - { - "type": "ExternalID", - "named": true - }, - { - "type": "NDataDecl", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "Mixed", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "NDataDecl", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "NotationDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "ExternalID", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "PublicID", - "named": true - } - ] - } - }, - { - "type": "NotationType", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "PEDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EntityValue", - "named": true - }, - { - "type": "ExternalID", - "named": true - }, - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "PEReference", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "PI", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "PITarget", - "named": true - } - ] - } - }, - { - "type": "PubidLiteral", - "named": true, - "fields": {} - }, - { - "type": "PublicID", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "PubidLiteral", - "named": true - } - ] - } - }, - { - "type": "SystemLiteral", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "URI", - "named": true - } - ] - } - }, - { - "type": "XMLDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EncName", - "named": true - }, - { - "type": "VersionNum", - "named": true - } - ] - } - }, - { - "type": "children", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "conditionalSect", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "_markupdecl", - "named": true - }, - { - "type": "conditionalSect", - "named": true - } - ] - } - }, - { - "type": "contentspec", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": false, - "types": [ - { - "type": "Mixed", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "children", - "named": true - } - ] - } - }, - { - "type": "document", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "XMLDecl", - "named": true - }, - { - "type": "_markupdecl", - "named": true - }, - { - "type": "conditionalSect", - "named": true - } - ] - } - }, - { - "type": "elementdecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "contentspec", - "named": true - } - ] - } - }, - { - "type": "\"", - "named": false - }, - { - "type": "#FIXED", - "named": false - }, - { - "type": "#IMPLIED", - "named": false - }, - { - "type": "#PCDATA", - "named": false - }, - { - "type": "#REQUIRED", - "named": false - }, - { - "type": "%", - "named": false - }, - { - "type": "&", - "named": false - }, - { - "type": "&#", - "named": false - }, - { - "type": "&#x", - "named": false - }, - { - "type": "'", - "named": false - }, - { - "type": "(", - "named": false - }, - { - "type": ")", - "named": false - }, - { - "type": "*", - "named": false - }, - { - "type": "+", - "named": false - }, - { - "type": ",", - "named": false - }, - { - "type": ";", - "named": false - }, - { - "type": "", - "named": false - }, - { - "type": "?", - "named": false - }, - { - "type": "?>", - "named": false - }, - { - "type": "ANY", - "named": false - }, - { - "type": "ATTLIST", - "named": false - }, - { - "type": "Comment", - "named": true - }, - { - "type": "ELEMENT", - "named": false - }, - { - "type": "EMPTY", - "named": false - }, - { - "type": "ENTITY", - "named": false - }, - { - "type": "EncName", - "named": true - }, - { - "type": "IGNORE", - "named": false - }, - { - "type": "INCLUDE", - "named": false - }, - { - "type": "NDATA", - "named": false - }, - { - "type": "NOTATION", - "named": false - }, - { - "type": "Name", - "named": true - }, - { - "type": "Nmtoken", - "named": true - }, - { - "type": "PITarget", - "named": true - }, - { - "type": "PUBLIC", - "named": false - }, - { - "type": "SYSTEM", - "named": false - }, - { - "type": "StringType", - "named": true - }, - { - "type": "TokenizedType", - "named": true - }, - { - "type": "URI", - "named": true - }, - { - "type": "VersionNum", - "named": true - }, - { - "type": "[", - "named": false - }, - { - "type": "]]>", - "named": false - }, - { - "type": "encoding", - "named": false - }, - { - "type": "version", - "named": false - }, - { - "type": "xml", - "named": false - }, - { - "type": "|", - "named": false - } -] \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/parser.c b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/parser.c deleted file mode 100644 index 674936634c..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/parser.c +++ /dev/null @@ -1,5910 +0,0 @@ -#include - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -#define LANGUAGE_VERSION 14 -#define STATE_COUNT 305 -#define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 109 -#define ALIAS_COUNT 0 -#define TOKEN_COUNT 61 -#define EXTERNAL_TOKEN_COUNT 3 -#define FIELD_COUNT 1 -#define MAX_ALIAS_SEQUENCE_LENGTH 10 -#define PRODUCTION_ID_COUNT 2 - -enum { - sym_Name = 1, - anon_sym_LT_BANG_LBRACK = 2, - anon_sym_IGNORE = 3, - anon_sym_INCLUDE = 4, - anon_sym_LBRACK = 5, - anon_sym_RBRACK_RBRACK_GT = 6, - anon_sym_LT_BANG = 7, - anon_sym_ELEMENT = 8, - anon_sym_GT = 9, - anon_sym_EMPTY = 10, - anon_sym_ANY = 11, - anon_sym_LPAREN = 12, - anon_sym_POUNDPCDATA = 13, - anon_sym_PIPE = 14, - anon_sym_RPAREN = 15, - anon_sym_STAR = 16, - anon_sym_QMARK = 17, - anon_sym_PLUS = 18, - anon_sym_COMMA = 19, - anon_sym_ATTLIST = 20, - sym_StringType = 21, - sym_TokenizedType = 22, - anon_sym_NOTATION = 23, - anon_sym_POUNDREQUIRED = 24, - anon_sym_POUNDIMPLIED = 25, - anon_sym_POUNDFIXED = 26, - anon_sym_ENTITY = 27, - anon_sym_PERCENT = 28, - anon_sym_DQUOTE = 29, - aux_sym_EntityValue_token1 = 30, - anon_sym_SQUOTE = 31, - aux_sym_EntityValue_token2 = 32, - anon_sym_NDATA = 33, - anon_sym_SEMI = 34, - sym__S = 35, - sym_Nmtoken = 36, - anon_sym_AMP = 37, - anon_sym_AMP_POUND = 38, - aux_sym_CharRef_token1 = 39, - anon_sym_AMP_POUNDx = 40, - aux_sym_CharRef_token2 = 41, - aux_sym_AttValue_token1 = 42, - aux_sym_AttValue_token2 = 43, - anon_sym_SYSTEM = 44, - anon_sym_PUBLIC = 45, - aux_sym_SystemLiteral_token1 = 46, - aux_sym_SystemLiteral_token2 = 47, - aux_sym_PubidLiteral_token1 = 48, - aux_sym_PubidLiteral_token2 = 49, - anon_sym_LT_QMARK = 50, - anon_sym_xml = 51, - anon_sym_QMARK_GT = 52, - anon_sym_version = 53, - sym_VersionNum = 54, - anon_sym_encoding = 55, - sym_EncName = 56, - anon_sym_EQ = 57, - sym_PITarget = 58, - sym__pi_content = 59, - sym_Comment = 60, - sym_document = 61, - sym__extSubsetDecl = 62, - sym_conditionalSect = 63, - sym__markupdecl = 64, - sym__DeclSep = 65, - sym_elementdecl = 66, - sym_contentspec = 67, - sym_Mixed = 68, - sym_children = 69, - sym__cp = 70, - sym__choice = 71, - sym_AttlistDecl = 72, - sym_AttDef = 73, - sym__AttType = 74, - sym__EnumeratedType = 75, - sym_NotationType = 76, - sym_Enumeration = 77, - sym_DefaultDecl = 78, - sym__EntityDecl = 79, - sym_GEDecl = 80, - sym_PEDecl = 81, - sym_EntityValue = 82, - sym_NDataDecl = 83, - sym_NotationDecl = 84, - sym_PEReference = 85, - sym__Reference = 86, - sym_EntityRef = 87, - sym_CharRef = 88, - sym_AttValue = 89, - sym_ExternalID = 90, - sym_PublicID = 91, - sym_SystemLiteral = 92, - sym_PubidLiteral = 93, - sym_XMLDecl = 94, - sym__VersionInfo = 95, - sym__EncodingDecl = 96, - sym_PI = 97, - sym__Eq = 98, - aux_sym_document_repeat1 = 99, - aux_sym_Mixed_repeat1 = 100, - aux_sym__choice_repeat1 = 101, - aux_sym_AttlistDecl_repeat1 = 102, - aux_sym_NotationType_repeat1 = 103, - aux_sym_Enumeration_repeat1 = 104, - aux_sym_EntityValue_repeat1 = 105, - aux_sym_EntityValue_repeat2 = 106, - aux_sym_AttValue_repeat1 = 107, - aux_sym_AttValue_repeat2 = 108, -}; - -static const char * const ts_symbol_names[] = { - [ts_builtin_sym_end] = "end", - [sym_Name] = "Name", - [anon_sym_LT_BANG_LBRACK] = "", - [anon_sym_LT_BANG] = "", - [anon_sym_EMPTY] = "EMPTY", - [anon_sym_ANY] = "ANY", - [anon_sym_LPAREN] = "(", - [anon_sym_POUNDPCDATA] = "#PCDATA", - [anon_sym_PIPE] = "|", - [anon_sym_RPAREN] = ")", - [anon_sym_STAR] = "*", - [anon_sym_QMARK] = "\?", - [anon_sym_PLUS] = "+", - [anon_sym_COMMA] = ",", - [anon_sym_ATTLIST] = "ATTLIST", - [sym_StringType] = "StringType", - [sym_TokenizedType] = "TokenizedType", - [anon_sym_NOTATION] = "NOTATION", - [anon_sym_POUNDREQUIRED] = "#REQUIRED", - [anon_sym_POUNDIMPLIED] = "#IMPLIED", - [anon_sym_POUNDFIXED] = "#FIXED", - [anon_sym_ENTITY] = "ENTITY", - [anon_sym_PERCENT] = "%", - [anon_sym_DQUOTE] = "\"", - [aux_sym_EntityValue_token1] = "EntityValue_token1", - [anon_sym_SQUOTE] = "'", - [aux_sym_EntityValue_token2] = "EntityValue_token2", - [anon_sym_NDATA] = "NDATA", - [anon_sym_SEMI] = ";", - [sym__S] = "_S", - [sym_Nmtoken] = "Nmtoken", - [anon_sym_AMP] = "&", - [anon_sym_AMP_POUND] = "&#", - [aux_sym_CharRef_token1] = "CharRef_token1", - [anon_sym_AMP_POUNDx] = "&#x", - [aux_sym_CharRef_token2] = "CharRef_token2", - [aux_sym_AttValue_token1] = "AttValue_token1", - [aux_sym_AttValue_token2] = "AttValue_token2", - [anon_sym_SYSTEM] = "SYSTEM", - [anon_sym_PUBLIC] = "PUBLIC", - [aux_sym_SystemLiteral_token1] = "URI", - [aux_sym_SystemLiteral_token2] = "URI", - [aux_sym_PubidLiteral_token1] = "PubidLiteral_token1", - [aux_sym_PubidLiteral_token2] = "PubidLiteral_token2", - [anon_sym_LT_QMARK] = "<\?", - [anon_sym_xml] = "xml", - [anon_sym_QMARK_GT] = "\?>", - [anon_sym_version] = "version", - [sym_VersionNum] = "VersionNum", - [anon_sym_encoding] = "encoding", - [sym_EncName] = "EncName", - [anon_sym_EQ] = "=", - [sym_PITarget] = "PITarget", - [sym__pi_content] = "_pi_content", - [sym_Comment] = "Comment", - [sym_document] = "document", - [sym__extSubsetDecl] = "_extSubsetDecl", - [sym_conditionalSect] = "conditionalSect", - [sym__markupdecl] = "_markupdecl", - [sym__DeclSep] = "_DeclSep", - [sym_elementdecl] = "elementdecl", - [sym_contentspec] = "contentspec", - [sym_Mixed] = "Mixed", - [sym_children] = "children", - [sym__cp] = "_cp", - [sym__choice] = "_choice", - [sym_AttlistDecl] = "AttlistDecl", - [sym_AttDef] = "AttDef", - [sym__AttType] = "_AttType", - [sym__EnumeratedType] = "_EnumeratedType", - [sym_NotationType] = "NotationType", - [sym_Enumeration] = "Enumeration", - [sym_DefaultDecl] = "DefaultDecl", - [sym__EntityDecl] = "_EntityDecl", - [sym_GEDecl] = "GEDecl", - [sym_PEDecl] = "PEDecl", - [sym_EntityValue] = "EntityValue", - [sym_NDataDecl] = "NDataDecl", - [sym_NotationDecl] = "NotationDecl", - [sym_PEReference] = "PEReference", - [sym__Reference] = "_Reference", - [sym_EntityRef] = "EntityRef", - [sym_CharRef] = "CharRef", - [sym_AttValue] = "AttValue", - [sym_ExternalID] = "ExternalID", - [sym_PublicID] = "PublicID", - [sym_SystemLiteral] = "SystemLiteral", - [sym_PubidLiteral] = "PubidLiteral", - [sym_XMLDecl] = "XMLDecl", - [sym__VersionInfo] = "_VersionInfo", - [sym__EncodingDecl] = "_EncodingDecl", - [sym_PI] = "PI", - [sym__Eq] = "_Eq", - [aux_sym_document_repeat1] = "document_repeat1", - [aux_sym_Mixed_repeat1] = "Mixed_repeat1", - [aux_sym__choice_repeat1] = "_choice_repeat1", - [aux_sym_AttlistDecl_repeat1] = "AttlistDecl_repeat1", - [aux_sym_NotationType_repeat1] = "NotationType_repeat1", - [aux_sym_Enumeration_repeat1] = "Enumeration_repeat1", - [aux_sym_EntityValue_repeat1] = "EntityValue_repeat1", - [aux_sym_EntityValue_repeat2] = "EntityValue_repeat2", - [aux_sym_AttValue_repeat1] = "AttValue_repeat1", - [aux_sym_AttValue_repeat2] = "AttValue_repeat2", -}; - -static const TSSymbol ts_symbol_map[] = { - [ts_builtin_sym_end] = ts_builtin_sym_end, - [sym_Name] = sym_Name, - [anon_sym_LT_BANG_LBRACK] = anon_sym_LT_BANG_LBRACK, - [anon_sym_IGNORE] = anon_sym_IGNORE, - [anon_sym_INCLUDE] = anon_sym_INCLUDE, - [anon_sym_LBRACK] = anon_sym_LBRACK, - [anon_sym_RBRACK_RBRACK_GT] = anon_sym_RBRACK_RBRACK_GT, - [anon_sym_LT_BANG] = anon_sym_LT_BANG, - [anon_sym_ELEMENT] = anon_sym_ELEMENT, - [anon_sym_GT] = anon_sym_GT, - [anon_sym_EMPTY] = anon_sym_EMPTY, - [anon_sym_ANY] = anon_sym_ANY, - [anon_sym_LPAREN] = anon_sym_LPAREN, - [anon_sym_POUNDPCDATA] = anon_sym_POUNDPCDATA, - [anon_sym_PIPE] = anon_sym_PIPE, - [anon_sym_RPAREN] = anon_sym_RPAREN, - [anon_sym_STAR] = anon_sym_STAR, - [anon_sym_QMARK] = anon_sym_QMARK, - [anon_sym_PLUS] = anon_sym_PLUS, - [anon_sym_COMMA] = anon_sym_COMMA, - [anon_sym_ATTLIST] = anon_sym_ATTLIST, - [sym_StringType] = sym_StringType, - [sym_TokenizedType] = sym_TokenizedType, - [anon_sym_NOTATION] = anon_sym_NOTATION, - [anon_sym_POUNDREQUIRED] = anon_sym_POUNDREQUIRED, - [anon_sym_POUNDIMPLIED] = anon_sym_POUNDIMPLIED, - [anon_sym_POUNDFIXED] = anon_sym_POUNDFIXED, - [anon_sym_ENTITY] = anon_sym_ENTITY, - [anon_sym_PERCENT] = anon_sym_PERCENT, - [anon_sym_DQUOTE] = anon_sym_DQUOTE, - [aux_sym_EntityValue_token1] = aux_sym_EntityValue_token1, - [anon_sym_SQUOTE] = anon_sym_SQUOTE, - [aux_sym_EntityValue_token2] = aux_sym_EntityValue_token2, - [anon_sym_NDATA] = anon_sym_NDATA, - [anon_sym_SEMI] = anon_sym_SEMI, - [sym__S] = sym__S, - [sym_Nmtoken] = sym_Nmtoken, - [anon_sym_AMP] = anon_sym_AMP, - [anon_sym_AMP_POUND] = anon_sym_AMP_POUND, - [aux_sym_CharRef_token1] = aux_sym_CharRef_token1, - [anon_sym_AMP_POUNDx] = anon_sym_AMP_POUNDx, - [aux_sym_CharRef_token2] = aux_sym_CharRef_token2, - [aux_sym_AttValue_token1] = aux_sym_AttValue_token1, - [aux_sym_AttValue_token2] = aux_sym_AttValue_token2, - [anon_sym_SYSTEM] = anon_sym_SYSTEM, - [anon_sym_PUBLIC] = anon_sym_PUBLIC, - [aux_sym_SystemLiteral_token1] = aux_sym_SystemLiteral_token1, - [aux_sym_SystemLiteral_token2] = aux_sym_SystemLiteral_token1, - [aux_sym_PubidLiteral_token1] = aux_sym_PubidLiteral_token1, - [aux_sym_PubidLiteral_token2] = aux_sym_PubidLiteral_token2, - [anon_sym_LT_QMARK] = anon_sym_LT_QMARK, - [anon_sym_xml] = anon_sym_xml, - [anon_sym_QMARK_GT] = anon_sym_QMARK_GT, - [anon_sym_version] = anon_sym_version, - [sym_VersionNum] = sym_VersionNum, - [anon_sym_encoding] = anon_sym_encoding, - [sym_EncName] = sym_EncName, - [anon_sym_EQ] = anon_sym_EQ, - [sym_PITarget] = sym_PITarget, - [sym__pi_content] = sym__pi_content, - [sym_Comment] = sym_Comment, - [sym_document] = sym_document, - [sym__extSubsetDecl] = sym__extSubsetDecl, - [sym_conditionalSect] = sym_conditionalSect, - [sym__markupdecl] = sym__markupdecl, - [sym__DeclSep] = sym__DeclSep, - [sym_elementdecl] = sym_elementdecl, - [sym_contentspec] = sym_contentspec, - [sym_Mixed] = sym_Mixed, - [sym_children] = sym_children, - [sym__cp] = sym__cp, - [sym__choice] = sym__choice, - [sym_AttlistDecl] = sym_AttlistDecl, - [sym_AttDef] = sym_AttDef, - [sym__AttType] = sym__AttType, - [sym__EnumeratedType] = sym__EnumeratedType, - [sym_NotationType] = sym_NotationType, - [sym_Enumeration] = sym_Enumeration, - [sym_DefaultDecl] = sym_DefaultDecl, - [sym__EntityDecl] = sym__EntityDecl, - [sym_GEDecl] = sym_GEDecl, - [sym_PEDecl] = sym_PEDecl, - [sym_EntityValue] = sym_EntityValue, - [sym_NDataDecl] = sym_NDataDecl, - [sym_NotationDecl] = sym_NotationDecl, - [sym_PEReference] = sym_PEReference, - [sym__Reference] = sym__Reference, - [sym_EntityRef] = sym_EntityRef, - [sym_CharRef] = sym_CharRef, - [sym_AttValue] = sym_AttValue, - [sym_ExternalID] = sym_ExternalID, - [sym_PublicID] = sym_PublicID, - [sym_SystemLiteral] = sym_SystemLiteral, - [sym_PubidLiteral] = sym_PubidLiteral, - [sym_XMLDecl] = sym_XMLDecl, - [sym__VersionInfo] = sym__VersionInfo, - [sym__EncodingDecl] = sym__EncodingDecl, - [sym_PI] = sym_PI, - [sym__Eq] = sym__Eq, - [aux_sym_document_repeat1] = aux_sym_document_repeat1, - [aux_sym_Mixed_repeat1] = aux_sym_Mixed_repeat1, - [aux_sym__choice_repeat1] = aux_sym__choice_repeat1, - [aux_sym_AttlistDecl_repeat1] = aux_sym_AttlistDecl_repeat1, - [aux_sym_NotationType_repeat1] = aux_sym_NotationType_repeat1, - [aux_sym_Enumeration_repeat1] = aux_sym_Enumeration_repeat1, - [aux_sym_EntityValue_repeat1] = aux_sym_EntityValue_repeat1, - [aux_sym_EntityValue_repeat2] = aux_sym_EntityValue_repeat2, - [aux_sym_AttValue_repeat1] = aux_sym_AttValue_repeat1, - [aux_sym_AttValue_repeat2] = aux_sym_AttValue_repeat2, -}; - -static const TSSymbolMetadata ts_symbol_metadata[] = { - [ts_builtin_sym_end] = { - .visible = false, - .named = true, - }, - [sym_Name] = { - .visible = true, - .named = true, - }, - [anon_sym_LT_BANG_LBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_IGNORE] = { - .visible = true, - .named = false, - }, - [anon_sym_INCLUDE] = { - .visible = true, - .named = false, - }, - [anon_sym_LBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACK_RBRACK_GT] = { - .visible = true, - .named = false, - }, - [anon_sym_LT_BANG] = { - .visible = true, - .named = false, - }, - [anon_sym_ELEMENT] = { - .visible = true, - .named = false, - }, - [anon_sym_GT] = { - .visible = true, - .named = false, - }, - [anon_sym_EMPTY] = { - .visible = true, - .named = false, - }, - [anon_sym_ANY] = { - .visible = true, - .named = false, - }, - [anon_sym_LPAREN] = { - .visible = true, - .named = false, - }, - [anon_sym_POUNDPCDATA] = { - .visible = true, - .named = false, - }, - [anon_sym_PIPE] = { - .visible = true, - .named = false, - }, - [anon_sym_RPAREN] = { - .visible = true, - .named = false, - }, - [anon_sym_STAR] = { - .visible = true, - .named = false, - }, - [anon_sym_QMARK] = { - .visible = true, - .named = false, - }, - [anon_sym_PLUS] = { - .visible = true, - .named = false, - }, - [anon_sym_COMMA] = { - .visible = true, - .named = false, - }, - [anon_sym_ATTLIST] = { - .visible = true, - .named = false, - }, - [sym_StringType] = { - .visible = true, - .named = true, - }, - [sym_TokenizedType] = { - .visible = true, - .named = true, - }, - [anon_sym_NOTATION] = { - .visible = true, - .named = false, - }, - [anon_sym_POUNDREQUIRED] = { - .visible = true, - .named = false, - }, - [anon_sym_POUNDIMPLIED] = { - .visible = true, - .named = false, - }, - [anon_sym_POUNDFIXED] = { - .visible = true, - .named = false, - }, - [anon_sym_ENTITY] = { - .visible = true, - .named = false, - }, - [anon_sym_PERCENT] = { - .visible = true, - .named = false, - }, - [anon_sym_DQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym_EntityValue_token1] = { - .visible = false, - .named = false, - }, - [anon_sym_SQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym_EntityValue_token2] = { - .visible = false, - .named = false, - }, - [anon_sym_NDATA] = { - .visible = true, - .named = false, - }, - [anon_sym_SEMI] = { - .visible = true, - .named = false, - }, - [sym__S] = { - .visible = false, - .named = true, - }, - [sym_Nmtoken] = { - .visible = true, - .named = true, - }, - [anon_sym_AMP] = { - .visible = true, - .named = false, - }, - [anon_sym_AMP_POUND] = { - .visible = true, - .named = false, - }, - [aux_sym_CharRef_token1] = { - .visible = false, - .named = false, - }, - [anon_sym_AMP_POUNDx] = { - .visible = true, - .named = false, - }, - [aux_sym_CharRef_token2] = { - .visible = false, - .named = false, - }, - [aux_sym_AttValue_token1] = { - .visible = false, - .named = false, - }, - [aux_sym_AttValue_token2] = { - .visible = false, - .named = false, - }, - [anon_sym_SYSTEM] = { - .visible = true, - .named = false, - }, - [anon_sym_PUBLIC] = { - .visible = true, - .named = false, - }, - [aux_sym_SystemLiteral_token1] = { - .visible = true, - .named = true, - }, - [aux_sym_SystemLiteral_token2] = { - .visible = true, - .named = true, - }, - [aux_sym_PubidLiteral_token1] = { - .visible = false, - .named = false, - }, - [aux_sym_PubidLiteral_token2] = { - .visible = false, - .named = false, - }, - [anon_sym_LT_QMARK] = { - .visible = true, - .named = false, - }, - [anon_sym_xml] = { - .visible = true, - .named = false, - }, - [anon_sym_QMARK_GT] = { - .visible = true, - .named = false, - }, - [anon_sym_version] = { - .visible = true, - .named = false, - }, - [sym_VersionNum] = { - .visible = true, - .named = true, - }, - [anon_sym_encoding] = { - .visible = true, - .named = false, - }, - [sym_EncName] = { - .visible = true, - .named = true, - }, - [anon_sym_EQ] = { - .visible = true, - .named = false, - }, - [sym_PITarget] = { - .visible = true, - .named = true, - }, - [sym__pi_content] = { - .visible = false, - .named = true, - }, - [sym_Comment] = { - .visible = true, - .named = true, - }, - [sym_document] = { - .visible = true, - .named = true, - }, - [sym__extSubsetDecl] = { - .visible = false, - .named = true, - }, - [sym_conditionalSect] = { - .visible = true, - .named = true, - }, - [sym__markupdecl] = { - .visible = false, - .named = true, - .supertype = true, - }, - [sym__DeclSep] = { - .visible = false, - .named = true, - }, - [sym_elementdecl] = { - .visible = true, - .named = true, - }, - [sym_contentspec] = { - .visible = true, - .named = true, - }, - [sym_Mixed] = { - .visible = true, - .named = true, - }, - [sym_children] = { - .visible = true, - .named = true, - }, - [sym__cp] = { - .visible = false, - .named = true, - }, - [sym__choice] = { - .visible = false, - .named = true, - }, - [sym_AttlistDecl] = { - .visible = true, - .named = true, - }, - [sym_AttDef] = { - .visible = true, - .named = true, - }, - [sym__AttType] = { - .visible = false, - .named = true, - .supertype = true, - }, - [sym__EnumeratedType] = { - .visible = false, - .named = true, - .supertype = true, - }, - [sym_NotationType] = { - .visible = true, - .named = true, - }, - [sym_Enumeration] = { - .visible = true, - .named = true, - }, - [sym_DefaultDecl] = { - .visible = true, - .named = true, - }, - [sym__EntityDecl] = { - .visible = false, - .named = true, - .supertype = true, - }, - [sym_GEDecl] = { - .visible = true, - .named = true, - }, - [sym_PEDecl] = { - .visible = true, - .named = true, - }, - [sym_EntityValue] = { - .visible = true, - .named = true, - }, - [sym_NDataDecl] = { - .visible = true, - .named = true, - }, - [sym_NotationDecl] = { - .visible = true, - .named = true, - }, - [sym_PEReference] = { - .visible = true, - .named = true, - }, - [sym__Reference] = { - .visible = false, - .named = true, - .supertype = true, - }, - [sym_EntityRef] = { - .visible = true, - .named = true, - }, - [sym_CharRef] = { - .visible = true, - .named = true, - }, - [sym_AttValue] = { - .visible = true, - .named = true, - }, - [sym_ExternalID] = { - .visible = true, - .named = true, - }, - [sym_PublicID] = { - .visible = true, - .named = true, - }, - [sym_SystemLiteral] = { - .visible = true, - .named = true, - }, - [sym_PubidLiteral] = { - .visible = true, - .named = true, - }, - [sym_XMLDecl] = { - .visible = true, - .named = true, - }, - [sym__VersionInfo] = { - .visible = false, - .named = true, - }, - [sym__EncodingDecl] = { - .visible = false, - .named = true, - }, - [sym_PI] = { - .visible = true, - .named = true, - }, - [sym__Eq] = { - .visible = false, - .named = true, - }, - [aux_sym_document_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_Mixed_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym__choice_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_AttlistDecl_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_NotationType_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_Enumeration_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_EntityValue_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_EntityValue_repeat2] = { - .visible = false, - .named = false, - }, - [aux_sym_AttValue_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_AttValue_repeat2] = { - .visible = false, - .named = false, - }, -}; - -enum { - field_content = 1, -}; - -static const char * const ts_field_names[] = { - [0] = NULL, - [field_content] = "content", -}; - -static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { - [1] = {.index = 0, .length = 1}, -}; - -static const TSFieldMapEntry ts_field_map_entries[] = { - [0] = - {field_content, 1}, -}; - -static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { - [0] = {0}, -}; - -static const uint16_t ts_non_terminal_alias_map[] = { - 0, -}; - -static const TSStateId ts_primary_state_ids[STATE_COUNT] = { - [0] = 0, - [1] = 1, - [2] = 2, - [3] = 3, - [4] = 4, - [5] = 5, - [6] = 6, - [7] = 7, - [8] = 8, - [9] = 9, - [10] = 10, - [11] = 11, - [12] = 12, - [13] = 13, - [14] = 14, - [15] = 15, - [16] = 16, - [17] = 17, - [18] = 18, - [19] = 19, - [20] = 20, - [21] = 21, - [22] = 22, - [23] = 23, - [24] = 24, - [25] = 25, - [26] = 26, - [27] = 27, - [28] = 28, - [29] = 29, - [30] = 30, - [31] = 31, - [32] = 32, - [33] = 33, - [34] = 16, - [35] = 35, - [36] = 36, - [37] = 37, - [38] = 38, - [39] = 39, - [40] = 40, - [41] = 41, - [42] = 42, - [43] = 43, - [44] = 44, - [45] = 45, - [46] = 46, - [47] = 47, - [48] = 48, - [49] = 49, - [50] = 50, - [51] = 51, - [52] = 52, - [53] = 53, - [54] = 54, - [55] = 55, - [56] = 56, - [57] = 57, - [58] = 58, - [59] = 59, - [60] = 60, - [61] = 16, - [62] = 16, - [63] = 63, - [64] = 64, - [65] = 65, - [66] = 66, - [67] = 67, - [68] = 68, - [69] = 69, - [70] = 70, - [71] = 71, - [72] = 72, - [73] = 73, - [74] = 74, - [75] = 69, - [76] = 74, - [77] = 65, - [78] = 78, - [79] = 79, - [80] = 80, - [81] = 69, - [82] = 65, - [83] = 74, - [84] = 65, - [85] = 85, - [86] = 86, - [87] = 87, - [88] = 69, - [89] = 89, - [90] = 90, - [91] = 74, - [92] = 92, - [93] = 93, - [94] = 94, - [95] = 95, - [96] = 96, - [97] = 97, - [98] = 98, - [99] = 99, - [100] = 100, - [101] = 101, - [102] = 102, - [103] = 103, - [104] = 104, - [105] = 105, - [106] = 106, - [107] = 107, - [108] = 108, - [109] = 109, - [110] = 110, - [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, - [140] = 140, - [141] = 141, - [142] = 142, - [143] = 143, - [144] = 144, - [145] = 145, - [146] = 146, - [147] = 147, - [148] = 148, - [149] = 149, - [150] = 150, - [151] = 151, - [152] = 152, - [153] = 153, - [154] = 154, - [155] = 155, - [156] = 156, - [157] = 157, - [158] = 158, - [159] = 159, - [160] = 160, - [161] = 161, - [162] = 162, - [163] = 163, - [164] = 164, - [165] = 165, - [166] = 166, - [167] = 167, - [168] = 168, - [169] = 169, - [170] = 170, - [171] = 171, - [172] = 172, - [173] = 173, - [174] = 174, - [175] = 175, - [176] = 176, - [177] = 177, - [178] = 178, - [179] = 179, - [180] = 180, - [181] = 181, - [182] = 182, - [183] = 183, - [184] = 184, - [185] = 185, - [186] = 186, - [187] = 187, - [188] = 188, - [189] = 189, - [190] = 190, - [191] = 191, - [192] = 192, - [193] = 193, - [194] = 194, - [195] = 195, - [196] = 196, - [197] = 197, - [198] = 198, - [199] = 199, - [200] = 200, - [201] = 201, - [202] = 202, - [203] = 203, - [204] = 204, - [205] = 205, - [206] = 206, - [207] = 207, - [208] = 208, - [209] = 209, - [210] = 210, - [211] = 211, - [212] = 212, - [213] = 213, - [214] = 214, - [215] = 215, - [216] = 216, - [217] = 217, - [218] = 218, - [219] = 219, - [220] = 220, - [221] = 221, - [222] = 222, - [223] = 223, - [224] = 224, - [225] = 225, - [226] = 226, - [227] = 227, - [228] = 228, - [229] = 229, - [230] = 230, - [231] = 231, - [232] = 232, - [233] = 233, - [234] = 234, - [235] = 235, - [236] = 236, - [237] = 237, - [238] = 238, - [239] = 239, - [240] = 240, - [241] = 241, - [242] = 242, - [243] = 243, - [244] = 244, - [245] = 245, - [246] = 246, - [247] = 247, - [248] = 248, - [249] = 249, - [250] = 250, - [251] = 251, - [252] = 252, - [253] = 253, - [254] = 254, - [255] = 255, - [256] = 256, - [257] = 257, - [258] = 258, - [259] = 259, - [260] = 260, - [261] = 261, - [262] = 262, - [263] = 263, - [264] = 264, - [265] = 265, - [266] = 266, - [267] = 267, - [268] = 268, - [269] = 269, - [270] = 270, - [271] = 271, - [272] = 272, - [273] = 273, - [274] = 274, - [275] = 275, - [276] = 276, - [277] = 277, - [278] = 278, - [279] = 279, - [280] = 280, - [281] = 281, - [282] = 282, - [283] = 283, - [284] = 276, - [285] = 238, - [286] = 220, - [287] = 276, - [288] = 238, - [289] = 220, - [290] = 276, - [291] = 238, - [292] = 220, - [293] = 255, - [294] = 224, - [295] = 228, - [296] = 229, - [297] = 255, - [298] = 224, - [299] = 228, - [300] = 229, - [301] = 255, - [302] = 224, - [303] = 228, - [304] = 229, -}; - -static inline bool aux_sym_PubidLiteral_token1_character_set_1(int32_t c) { - return (c < '\'' - ? (c < ' ' - ? (c < '\r' - ? c == '\n' - : c <= '\r') - : (c <= '!' || (c >= '#' && c <= '%'))) - : (c <= ';' || (c < '_' - ? (c < '?' - ? c == '=' - : c <= 'Z') - : (c <= '_' || (c >= 'a' && c <= 'z'))))); -} - -static inline bool aux_sym_PubidLiteral_token2_character_set_1(int32_t c) { - return (c < '(' - ? (c < ' ' - ? (c < '\r' - ? c == '\n' - : c <= '\r') - : (c <= '!' || (c >= '#' && c <= '%'))) - : (c <= ';' || (c < '_' - ? (c < '?' - ? c == '=' - : c <= 'Z') - : (c <= '_' || (c >= 'a' && c <= 'z'))))); -} - -static bool ts_lex(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (eof) ADVANCE(40); - if (lookahead == '"') ADVANCE(64); - if (lookahead == '#') ADVANCE(68); - if (lookahead == '%') ADVANCE(63); - if (lookahead == '&') ADVANCE(118); - if (lookahead == '\'') ADVANCE(78); - if (lookahead == '(') ADVANCE(46); - if (lookahead == ')') ADVANCE(49); - if (lookahead == '*') ADVANCE(50); - if (lookahead == '+') ADVANCE(52); - if (lookahead == ',') ADVANCE(53); - if (lookahead == '1') ADVANCE(66); - if (lookahead == ';') ADVANCE(80); - if (lookahead == '<') ADVANCE(1); - if (lookahead == '=') ADVANCE(133); - if (lookahead == '>') ADVANCE(45); - if (lookahead == '?') ADVANCE(51); - if (lookahead == 'E') ADVANCE(70); - if (lookahead == 'I') ADVANCE(67); - if (lookahead == 'N') ADVANCE(69); - if (lookahead == '[') ADVANCE(42); - if (lookahead == ']') ADVANCE(71); - if (lookahead == '_') ADVANCE(77); - if (lookahead == '|') ADVANCE(48); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(74); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - lookahead == 183) ADVANCE(76); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(75); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(72); - if (('G' <= lookahead && lookahead <= 'Z') || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(73); - if (lookahead != 0) ADVANCE(65); - END_STATE(); - case 1: - if (lookahead == '!') ADVANCE(44); - if (lookahead == '?') ADVANCE(129); - END_STATE(); - case 2: - if (lookahead == '"') ADVANCE(64); - if (lookahead == '%') ADVANCE(63); - if (lookahead == '&') ADVANCE(118); - if (lookahead != 0 && - lookahead != '<') ADVANCE(65); - END_STATE(); - case 3: - if (lookahead == '"') ADVANCE(64); - if (lookahead == '&') ADVANCE(118); - if (lookahead != 0 && - lookahead != '<') ADVANCE(123); - END_STATE(); - case 4: - if (lookahead == '%') ADVANCE(63); - if (lookahead == '&') ADVANCE(118); - if (lookahead == '\'') ADVANCE(78); - if (lookahead != 0 && - lookahead != '<') ADVANCE(79); - END_STATE(); - case 5: - if (lookahead == '%') ADVANCE(63); - if (lookahead == '(') ADVANCE(46); - if (lookahead == '?') ADVANCE(9); - if (lookahead == 'E') ADVANCE(99); - if (lookahead == 'I') ADVANCE(82); - if (lookahead == 'N') ADVANCE(97); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(81); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(120); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(113); - END_STATE(); - case 6: - if (lookahead == '&') ADVANCE(118); - if (lookahead == '\'') ADVANCE(78); - if (lookahead != 0 && - lookahead != '<') ADVANCE(124); - END_STATE(); - case 7: - if (lookahead == '.') ADVANCE(36); - END_STATE(); - case 8: - if (lookahead == '>') ADVANCE(43); - END_STATE(); - case 9: - if (lookahead == '>') ADVANCE(130); - END_STATE(); - case 10: - if (lookahead == '?') ADVANCE(9); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(113); - END_STATE(); - case 11: - if (lookahead == 'A') ADVANCE(31); - END_STATE(); - case 12: - if (lookahead == 'A') ADVANCE(47); - END_STATE(); - case 13: - if (lookahead == 'C') ADVANCE(14); - END_STATE(); - case 14: - if (lookahead == 'D') ADVANCE(11); - END_STATE(); - case 15: - if (lookahead == 'D') ADVANCE(62); - END_STATE(); - case 16: - if (lookahead == 'D') ADVANCE(61); - END_STATE(); - case 17: - if (lookahead == 'D') ADVANCE(60); - END_STATE(); - case 18: - if (lookahead == 'E') ADVANCE(29); - END_STATE(); - case 19: - if (lookahead == 'E') ADVANCE(15); - END_STATE(); - case 20: - if (lookahead == 'E') ADVANCE(16); - END_STATE(); - case 21: - if (lookahead == 'E') ADVANCE(17); - END_STATE(); - case 22: - if (lookahead == 'F') ADVANCE(23); - if (lookahead == 'I') ADVANCE(27); - if (lookahead == 'P') ADVANCE(13); - if (lookahead == 'R') ADVANCE(18); - END_STATE(); - case 23: - if (lookahead == 'I') ADVANCE(33); - END_STATE(); - case 24: - if (lookahead == 'I') ADVANCE(30); - END_STATE(); - case 25: - if (lookahead == 'I') ADVANCE(20); - END_STATE(); - case 26: - if (lookahead == 'L') ADVANCE(25); - END_STATE(); - case 27: - if (lookahead == 'M') ADVANCE(28); - END_STATE(); - case 28: - if (lookahead == 'P') ADVANCE(26); - END_STATE(); - case 29: - if (lookahead == 'Q') ADVANCE(32); - END_STATE(); - case 30: - if (lookahead == 'R') ADVANCE(21); - END_STATE(); - case 31: - if (lookahead == 'T') ADVANCE(12); - END_STATE(); - case 32: - if (lookahead == 'U') ADVANCE(24); - END_STATE(); - case 33: - if (lookahead == 'X') ADVANCE(19); - END_STATE(); - case 34: - if (lookahead == ']') ADVANCE(8); - END_STATE(); - case 35: - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(81); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 36: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(131); - END_STATE(); - case 37: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(122); - END_STATE(); - case 38: - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(132); - END_STATE(); - case 39: - if (eof) ADVANCE(40); - if (lookahead == '"') ADVANCE(64); - if (lookahead == '#') ADVANCE(22); - if (lookahead == '%') ADVANCE(63); - if (lookahead == '\'') ADVANCE(78); - if (lookahead == '(') ADVANCE(46); - if (lookahead == ')') ADVANCE(49); - if (lookahead == '*') ADVANCE(50); - if (lookahead == '+') ADVANCE(52); - if (lookahead == ',') ADVANCE(53); - if (lookahead == '1') ADVANCE(7); - if (lookahead == ';') ADVANCE(80); - if (lookahead == '<') ADVANCE(1); - if (lookahead == '=') ADVANCE(133); - if (lookahead == '>') ADVANCE(45); - if (lookahead == '?') ADVANCE(51); - if (lookahead == '[') ADVANCE(42); - if (lookahead == ']') ADVANCE(34); - if (lookahead == '|') ADVANCE(48); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(81); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(113); - END_STATE(); - case 40: - ACCEPT_TOKEN(ts_builtin_sym_end); - END_STATE(); - case 41: - ACCEPT_TOKEN(anon_sym_LT_BANG_LBRACK); - END_STATE(); - case 42: - ACCEPT_TOKEN(anon_sym_LBRACK); - END_STATE(); - case 43: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK_GT); - END_STATE(); - case 44: - ACCEPT_TOKEN(anon_sym_LT_BANG); - if (lookahead == '[') ADVANCE(41); - END_STATE(); - case 45: - ACCEPT_TOKEN(anon_sym_GT); - END_STATE(); - case 46: - ACCEPT_TOKEN(anon_sym_LPAREN); - END_STATE(); - case 47: - ACCEPT_TOKEN(anon_sym_POUNDPCDATA); - END_STATE(); - case 48: - ACCEPT_TOKEN(anon_sym_PIPE); - END_STATE(); - case 49: - ACCEPT_TOKEN(anon_sym_RPAREN); - END_STATE(); - case 50: - ACCEPT_TOKEN(anon_sym_STAR); - END_STATE(); - case 51: - ACCEPT_TOKEN(anon_sym_QMARK); - END_STATE(); - case 52: - ACCEPT_TOKEN(anon_sym_PLUS); - END_STATE(); - case 53: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 54: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'R') ADVANCE(83); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 55: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'R') ADVANCE(86); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 56: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'S') ADVANCE(58); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 57: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'S') ADVANCE(59); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 58: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 59: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 60: - ACCEPT_TOKEN(anon_sym_POUNDREQUIRED); - END_STATE(); - case 61: - ACCEPT_TOKEN(anon_sym_POUNDIMPLIED); - END_STATE(); - case 62: - ACCEPT_TOKEN(anon_sym_POUNDFIXED); - END_STATE(); - case 63: - ACCEPT_TOKEN(anon_sym_PERCENT); - END_STATE(); - case 64: - ACCEPT_TOKEN(anon_sym_DQUOTE); - END_STATE(); - case 65: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - END_STATE(); - case 66: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '.') ADVANCE(114); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(116); - if (lookahead == '-' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 67: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'D') ADVANCE(54); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 68: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'F') ADVANCE(23); - if (lookahead == 'I') ADVANCE(27); - if (lookahead == 'P') ADVANCE(13); - if (lookahead == 'R') ADVANCE(18); - END_STATE(); - case 69: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'M') ADVANCE(106); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 70: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'N') ADVANCE(105); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(111); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 71: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == ']') ADVANCE(8); - END_STATE(); - case 72: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(111); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 73: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 74: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(81); - END_STATE(); - case 75: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 76: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 77: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 78: - ACCEPT_TOKEN(anon_sym_SQUOTE); - END_STATE(); - case 79: - ACCEPT_TOKEN(aux_sym_EntityValue_token2); - END_STATE(); - case 80: - ACCEPT_TOKEN(anon_sym_SEMI); - END_STATE(); - case 81: - ACCEPT_TOKEN(sym__S); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(81); - END_STATE(); - case 82: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'D') ADVANCE(55); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 83: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(89); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 84: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(98); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 85: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(103); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 86: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(90); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(104); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 88: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(100); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 89: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'F') ADVANCE(56); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 90: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'F') ADVANCE(57); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 91: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(107); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 92: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(85); - if (lookahead == 'Y') ADVANCE(58); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 93: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(110); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 94: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(87); - if (lookahead == 'Y') ADVANCE(59); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 95: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'K') ADVANCE(84); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 96: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'K') ADVANCE(88); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 97: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'M') ADVANCE(109); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 98: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(56); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 99: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(108); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 100: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(57); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 101: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'O') ADVANCE(95); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 102: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'O') ADVANCE(96); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 103: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'S') ADVANCE(58); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 104: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'S') ADVANCE(59); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 105: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(91); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 106: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(101); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 107: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(92); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 108: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(93); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 109: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(102); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 110: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(94); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 111: - ACCEPT_TOKEN(sym_Name); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(111); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 112: - ACCEPT_TOKEN(sym_Name); - if (lookahead == ':' || - lookahead == 183) ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(112); - END_STATE(); - case 113: - ACCEPT_TOKEN(sym_Name); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(113); - END_STATE(); - case 114: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(114); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 115: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(115); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 116: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 117: - ACCEPT_TOKEN(sym_Nmtoken); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(117); - END_STATE(); - case 118: - ACCEPT_TOKEN(anon_sym_AMP); - if (lookahead == '#') ADVANCE(119); - END_STATE(); - case 119: - ACCEPT_TOKEN(anon_sym_AMP_POUND); - if (lookahead == 'x') ADVANCE(121); - END_STATE(); - case 120: - ACCEPT_TOKEN(aux_sym_CharRef_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(120); - END_STATE(); - case 121: - ACCEPT_TOKEN(anon_sym_AMP_POUNDx); - END_STATE(); - case 122: - ACCEPT_TOKEN(aux_sym_CharRef_token2); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(122); - END_STATE(); - case 123: - ACCEPT_TOKEN(aux_sym_AttValue_token1); - END_STATE(); - case 124: - ACCEPT_TOKEN(aux_sym_AttValue_token2); - END_STATE(); - case 125: - ACCEPT_TOKEN(aux_sym_SystemLiteral_token1); - if (lookahead != 0 && - lookahead != '"') ADVANCE(125); - END_STATE(); - case 126: - ACCEPT_TOKEN(aux_sym_SystemLiteral_token2); - if (lookahead != 0 && - lookahead != '\'') ADVANCE(126); - END_STATE(); - case 127: - ACCEPT_TOKEN(aux_sym_PubidLiteral_token1); - if (aux_sym_PubidLiteral_token1_character_set_1(lookahead)) ADVANCE(127); - END_STATE(); - case 128: - ACCEPT_TOKEN(aux_sym_PubidLiteral_token2); - if (aux_sym_PubidLiteral_token2_character_set_1(lookahead)) ADVANCE(128); - END_STATE(); - case 129: - ACCEPT_TOKEN(anon_sym_LT_QMARK); - END_STATE(); - case 130: - ACCEPT_TOKEN(anon_sym_QMARK_GT); - END_STATE(); - case 131: - ACCEPT_TOKEN(sym_VersionNum); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(131); - END_STATE(); - case 132: - ACCEPT_TOKEN(sym_EncName); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(132); - END_STATE(); - case 133: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - default: - return false; - } -} - -static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (lookahead == 'A') ADVANCE(1); - if (lookahead == 'C') ADVANCE(2); - if (lookahead == 'E') ADVANCE(3); - if (lookahead == 'I') ADVANCE(4); - if (lookahead == 'N') ADVANCE(5); - if (lookahead == 'P') ADVANCE(6); - if (lookahead == 'S') ADVANCE(7); - if (lookahead == 'e') ADVANCE(8); - if (lookahead == 'v') ADVANCE(9); - if (lookahead == 'x') ADVANCE(10); - END_STATE(); - case 1: - if (lookahead == 'N') ADVANCE(11); - if (lookahead == 'T') ADVANCE(12); - END_STATE(); - case 2: - if (lookahead == 'D') ADVANCE(13); - END_STATE(); - case 3: - if (lookahead == 'L') ADVANCE(14); - if (lookahead == 'M') ADVANCE(15); - if (lookahead == 'N') ADVANCE(16); - END_STATE(); - case 4: - if (lookahead == 'G') ADVANCE(17); - if (lookahead == 'N') ADVANCE(18); - END_STATE(); - case 5: - if (lookahead == 'D') ADVANCE(19); - if (lookahead == 'O') ADVANCE(20); - END_STATE(); - case 6: - if (lookahead == 'U') ADVANCE(21); - END_STATE(); - case 7: - if (lookahead == 'Y') ADVANCE(22); - END_STATE(); - case 8: - if (lookahead == 'n') ADVANCE(23); - END_STATE(); - case 9: - if (lookahead == 'e') ADVANCE(24); - END_STATE(); - case 10: - if (lookahead == 'm') ADVANCE(25); - END_STATE(); - case 11: - if (lookahead == 'Y') ADVANCE(26); - END_STATE(); - case 12: - if (lookahead == 'T') ADVANCE(27); - END_STATE(); - case 13: - if (lookahead == 'A') ADVANCE(28); - END_STATE(); - case 14: - if (lookahead == 'E') ADVANCE(29); - END_STATE(); - case 15: - if (lookahead == 'P') ADVANCE(30); - END_STATE(); - case 16: - if (lookahead == 'T') ADVANCE(31); - END_STATE(); - case 17: - if (lookahead == 'N') ADVANCE(32); - END_STATE(); - case 18: - if (lookahead == 'C') ADVANCE(33); - END_STATE(); - case 19: - if (lookahead == 'A') ADVANCE(34); - END_STATE(); - case 20: - if (lookahead == 'T') ADVANCE(35); - END_STATE(); - case 21: - if (lookahead == 'B') ADVANCE(36); - END_STATE(); - case 22: - if (lookahead == 'S') ADVANCE(37); - END_STATE(); - case 23: - if (lookahead == 'c') ADVANCE(38); - END_STATE(); - case 24: - if (lookahead == 'r') ADVANCE(39); - END_STATE(); - case 25: - if (lookahead == 'l') ADVANCE(40); - END_STATE(); - case 26: - ACCEPT_TOKEN(anon_sym_ANY); - END_STATE(); - case 27: - if (lookahead == 'L') ADVANCE(41); - END_STATE(); - case 28: - if (lookahead == 'T') ADVANCE(42); - END_STATE(); - case 29: - if (lookahead == 'M') ADVANCE(43); - END_STATE(); - case 30: - if (lookahead == 'T') ADVANCE(44); - END_STATE(); - case 31: - if (lookahead == 'I') ADVANCE(45); - END_STATE(); - case 32: - if (lookahead == 'O') ADVANCE(46); - END_STATE(); - case 33: - if (lookahead == 'L') ADVANCE(47); - END_STATE(); - case 34: - if (lookahead == 'T') ADVANCE(48); - END_STATE(); - case 35: - if (lookahead == 'A') ADVANCE(49); - END_STATE(); - case 36: - if (lookahead == 'L') ADVANCE(50); - END_STATE(); - case 37: - if (lookahead == 'T') ADVANCE(51); - END_STATE(); - case 38: - if (lookahead == 'o') ADVANCE(52); - END_STATE(); - case 39: - if (lookahead == 's') ADVANCE(53); - END_STATE(); - case 40: - ACCEPT_TOKEN(anon_sym_xml); - END_STATE(); - case 41: - if (lookahead == 'I') ADVANCE(54); - END_STATE(); - case 42: - if (lookahead == 'A') ADVANCE(55); - END_STATE(); - case 43: - if (lookahead == 'E') ADVANCE(56); - END_STATE(); - case 44: - if (lookahead == 'Y') ADVANCE(57); - END_STATE(); - case 45: - if (lookahead == 'T') ADVANCE(58); - END_STATE(); - case 46: - if (lookahead == 'R') ADVANCE(59); - END_STATE(); - case 47: - if (lookahead == 'U') ADVANCE(60); - END_STATE(); - case 48: - if (lookahead == 'A') ADVANCE(61); - END_STATE(); - case 49: - if (lookahead == 'T') ADVANCE(62); - END_STATE(); - case 50: - if (lookahead == 'I') ADVANCE(63); - END_STATE(); - case 51: - if (lookahead == 'E') ADVANCE(64); - END_STATE(); - case 52: - if (lookahead == 'd') ADVANCE(65); - END_STATE(); - case 53: - if (lookahead == 'i') ADVANCE(66); - END_STATE(); - case 54: - if (lookahead == 'S') ADVANCE(67); - END_STATE(); - case 55: - ACCEPT_TOKEN(sym_StringType); - END_STATE(); - case 56: - if (lookahead == 'N') ADVANCE(68); - END_STATE(); - case 57: - ACCEPT_TOKEN(anon_sym_EMPTY); - END_STATE(); - case 58: - if (lookahead == 'Y') ADVANCE(69); - END_STATE(); - case 59: - if (lookahead == 'E') ADVANCE(70); - END_STATE(); - case 60: - if (lookahead == 'D') ADVANCE(71); - END_STATE(); - case 61: - ACCEPT_TOKEN(anon_sym_NDATA); - END_STATE(); - case 62: - if (lookahead == 'I') ADVANCE(72); - END_STATE(); - case 63: - if (lookahead == 'C') ADVANCE(73); - END_STATE(); - case 64: - if (lookahead == 'M') ADVANCE(74); - END_STATE(); - case 65: - if (lookahead == 'i') ADVANCE(75); - END_STATE(); - case 66: - if (lookahead == 'o') ADVANCE(76); - END_STATE(); - case 67: - if (lookahead == 'T') ADVANCE(77); - END_STATE(); - case 68: - if (lookahead == 'T') ADVANCE(78); - END_STATE(); - case 69: - ACCEPT_TOKEN(anon_sym_ENTITY); - END_STATE(); - case 70: - ACCEPT_TOKEN(anon_sym_IGNORE); - END_STATE(); - case 71: - if (lookahead == 'E') ADVANCE(79); - END_STATE(); - case 72: - if (lookahead == 'O') ADVANCE(80); - END_STATE(); - case 73: - ACCEPT_TOKEN(anon_sym_PUBLIC); - END_STATE(); - case 74: - ACCEPT_TOKEN(anon_sym_SYSTEM); - END_STATE(); - case 75: - if (lookahead == 'n') ADVANCE(81); - END_STATE(); - case 76: - if (lookahead == 'n') ADVANCE(82); - END_STATE(); - case 77: - ACCEPT_TOKEN(anon_sym_ATTLIST); - END_STATE(); - case 78: - ACCEPT_TOKEN(anon_sym_ELEMENT); - END_STATE(); - case 79: - ACCEPT_TOKEN(anon_sym_INCLUDE); - END_STATE(); - case 80: - if (lookahead == 'N') ADVANCE(83); - END_STATE(); - case 81: - if (lookahead == 'g') ADVANCE(84); - END_STATE(); - case 82: - ACCEPT_TOKEN(anon_sym_version); - END_STATE(); - case 83: - ACCEPT_TOKEN(anon_sym_NOTATION); - END_STATE(); - case 84: - ACCEPT_TOKEN(anon_sym_encoding); - END_STATE(); - default: - return false; - } -} - -static const TSLexMode ts_lex_modes[STATE_COUNT] = { - [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 39, .external_lex_state = 2}, - [2] = {.lex_state = 39, .external_lex_state = 2}, - [3] = {.lex_state = 39, .external_lex_state = 2}, - [4] = {.lex_state = 39, .external_lex_state = 2}, - [5] = {.lex_state = 39, .external_lex_state = 2}, - [6] = {.lex_state = 39, .external_lex_state = 2}, - [7] = {.lex_state = 39, .external_lex_state = 2}, - [8] = {.lex_state = 39, .external_lex_state = 2}, - [9] = {.lex_state = 39, .external_lex_state = 2}, - [10] = {.lex_state = 39, .external_lex_state = 2}, - [11] = {.lex_state = 39, .external_lex_state = 2}, - [12] = {.lex_state = 2}, - [13] = {.lex_state = 4}, - [14] = {.lex_state = 4}, - [15] = {.lex_state = 2}, - [16] = {.lex_state = 39}, - [17] = {.lex_state = 2}, - [18] = {.lex_state = 4}, - [19] = {.lex_state = 5}, - [20] = {.lex_state = 3}, - [21] = {.lex_state = 6}, - [22] = {.lex_state = 39}, - [23] = {.lex_state = 6}, - [24] = {.lex_state = 6}, - [25] = {.lex_state = 3}, - [26] = {.lex_state = 3}, - [27] = {.lex_state = 39}, - [28] = {.lex_state = 39, .external_lex_state = 2}, - [29] = {.lex_state = 39, .external_lex_state = 2}, - [30] = {.lex_state = 39}, - [31] = {.lex_state = 39, .external_lex_state = 2}, - [32] = {.lex_state = 39}, - [33] = {.lex_state = 39, .external_lex_state = 2}, - [34] = {.lex_state = 39, .external_lex_state = 2}, - [35] = {.lex_state = 39, .external_lex_state = 2}, - [36] = {.lex_state = 39, .external_lex_state = 2}, - [37] = {.lex_state = 39, .external_lex_state = 2}, - [38] = {.lex_state = 39}, - [39] = {.lex_state = 39, .external_lex_state = 2}, - [40] = {.lex_state = 39, .external_lex_state = 2}, - [41] = {.lex_state = 39, .external_lex_state = 2}, - [42] = {.lex_state = 39}, - [43] = {.lex_state = 39, .external_lex_state = 2}, - [44] = {.lex_state = 39, .external_lex_state = 2}, - [45] = {.lex_state = 39, .external_lex_state = 2}, - [46] = {.lex_state = 39, .external_lex_state = 2}, - [47] = {.lex_state = 39, .external_lex_state = 2}, - [48] = {.lex_state = 39, .external_lex_state = 2}, - [49] = {.lex_state = 39, .external_lex_state = 2}, - [50] = {.lex_state = 39, .external_lex_state = 2}, - [51] = {.lex_state = 39}, - [52] = {.lex_state = 39, .external_lex_state = 2}, - [53] = {.lex_state = 39, .external_lex_state = 2}, - [54] = {.lex_state = 39}, - [55] = {.lex_state = 39}, - [56] = {.lex_state = 39}, - [57] = {.lex_state = 39}, - [58] = {.lex_state = 39}, - [59] = {.lex_state = 39}, - [60] = {.lex_state = 39}, - [61] = {.lex_state = 4}, - [62] = {.lex_state = 2}, - [63] = {.lex_state = 39, .external_lex_state = 2}, - [64] = {.lex_state = 39}, - [65] = {.lex_state = 4}, - [66] = {.lex_state = 39}, - [67] = {.lex_state = 39}, - [68] = {.lex_state = 39}, - [69] = {.lex_state = 2}, - [70] = {.lex_state = 39}, - [71] = {.lex_state = 39}, - [72] = {.lex_state = 39}, - [73] = {.lex_state = 39, .external_lex_state = 2}, - [74] = {.lex_state = 2}, - [75] = {.lex_state = 4}, - [76] = {.lex_state = 4}, - [77] = {.lex_state = 2}, - [78] = {.lex_state = 39}, - [79] = {.lex_state = 39}, - [80] = {.lex_state = 39, .external_lex_state = 2}, - [81] = {.lex_state = 6}, - [82] = {.lex_state = 6}, - [83] = {.lex_state = 6}, - [84] = {.lex_state = 3}, - [85] = {.lex_state = 39}, - [86] = {.lex_state = 39}, - [87] = {.lex_state = 39}, - [88] = {.lex_state = 3}, - [89] = {.lex_state = 39}, - [90] = {.lex_state = 39}, - [91] = {.lex_state = 3}, - [92] = {.lex_state = 39}, - [93] = {.lex_state = 39}, - [94] = {.lex_state = 39}, - [95] = {.lex_state = 39}, - [96] = {.lex_state = 39}, - [97] = {.lex_state = 39}, - [98] = {.lex_state = 39}, - [99] = {.lex_state = 39}, - [100] = {.lex_state = 39}, - [101] = {.lex_state = 39}, - [102] = {.lex_state = 39}, - [103] = {.lex_state = 39}, - [104] = {.lex_state = 39}, - [105] = {.lex_state = 39}, - [106] = {.lex_state = 39}, - [107] = {.lex_state = 39}, - [108] = {.lex_state = 39}, - [109] = {.lex_state = 39}, - [110] = {.lex_state = 39}, - [111] = {.lex_state = 39}, - [112] = {.lex_state = 39}, - [113] = {.lex_state = 39}, - [114] = {.lex_state = 39}, - [115] = {.lex_state = 39}, - [116] = {.lex_state = 39}, - [117] = {.lex_state = 39}, - [118] = {.lex_state = 39}, - [119] = {.lex_state = 39}, - [120] = {.lex_state = 39}, - [121] = {.lex_state = 39}, - [122] = {.lex_state = 39}, - [123] = {.lex_state = 39}, - [124] = {.lex_state = 39}, - [125] = {.lex_state = 39}, - [126] = {.lex_state = 39}, - [127] = {.lex_state = 39}, - [128] = {.lex_state = 39}, - [129] = {.lex_state = 39}, - [130] = {.lex_state = 39}, - [131] = {.lex_state = 39}, - [132] = {.lex_state = 39}, - [133] = {.lex_state = 39}, - [134] = {.lex_state = 39}, - [135] = {.lex_state = 39}, - [136] = {.lex_state = 39}, - [137] = {.lex_state = 39}, - [138] = {.lex_state = 39}, - [139] = {.lex_state = 5}, - [140] = {.lex_state = 39}, - [141] = {.lex_state = 39}, - [142] = {.lex_state = 39}, - [143] = {.lex_state = 39}, - [144] = {.lex_state = 39}, - [145] = {.lex_state = 39}, - [146] = {.lex_state = 39}, - [147] = {.lex_state = 39}, - [148] = {.lex_state = 39}, - [149] = {.lex_state = 39}, - [150] = {.lex_state = 39}, - [151] = {.lex_state = 39}, - [152] = {.lex_state = 39}, - [153] = {.lex_state = 39}, - [154] = {.lex_state = 39}, - [155] = {.lex_state = 39}, - [156] = {.lex_state = 39}, - [157] = {.lex_state = 39, .external_lex_state = 3}, - [158] = {.lex_state = 39}, - [159] = {.lex_state = 39}, - [160] = {.lex_state = 39}, - [161] = {.lex_state = 39}, - [162] = {.lex_state = 39}, - [163] = {.lex_state = 5}, - [164] = {.lex_state = 39}, - [165] = {.lex_state = 5}, - [166] = {.lex_state = 39}, - [167] = {.lex_state = 39}, - [168] = {.lex_state = 39}, - [169] = {.lex_state = 39}, - [170] = {.lex_state = 39}, - [171] = {.lex_state = 39}, - [172] = {.lex_state = 39}, - [173] = {.lex_state = 39}, - [174] = {.lex_state = 39}, - [175] = {.lex_state = 39}, - [176] = {.lex_state = 39}, - [177] = {.lex_state = 39}, - [178] = {.lex_state = 39}, - [179] = {.lex_state = 39}, - [180] = {.lex_state = 39}, - [181] = {.lex_state = 39}, - [182] = {.lex_state = 35}, - [183] = {.lex_state = 39}, - [184] = {.lex_state = 39}, - [185] = {.lex_state = 39}, - [186] = {.lex_state = 39}, - [187] = {.lex_state = 10}, - [188] = {.lex_state = 5}, - [189] = {.lex_state = 39}, - [190] = {.lex_state = 39}, - [191] = {.lex_state = 39}, - [192] = {.lex_state = 39}, - [193] = {.lex_state = 39}, - [194] = {.lex_state = 39}, - [195] = {.lex_state = 35}, - [196] = {.lex_state = 39}, - [197] = {.lex_state = 39}, - [198] = {.lex_state = 39}, - [199] = {.lex_state = 5}, - [200] = {.lex_state = 39}, - [201] = {.lex_state = 39}, - [202] = {.lex_state = 39}, - [203] = {.lex_state = 39}, - [204] = {.lex_state = 39}, - [205] = {.lex_state = 39}, - [206] = {.lex_state = 39}, - [207] = {.lex_state = 39}, - [208] = {.lex_state = 39}, - [209] = {.lex_state = 35}, - [210] = {.lex_state = 39}, - [211] = {.lex_state = 39}, - [212] = {.lex_state = 39}, - [213] = {.lex_state = 39}, - [214] = {.lex_state = 39}, - [215] = {.lex_state = 39}, - [216] = {.lex_state = 39}, - [217] = {.lex_state = 39}, - [218] = {.lex_state = 39}, - [219] = {.lex_state = 39}, - [220] = {.lex_state = 39}, - [221] = {.lex_state = 39}, - [222] = {.lex_state = 39}, - [223] = {.lex_state = 39}, - [224] = {.lex_state = 39}, - [225] = {.lex_state = 39}, - [226] = {.lex_state = 39}, - [227] = {.lex_state = 39}, - [228] = {.lex_state = 5}, - [229] = {.lex_state = 37}, - [230] = {.lex_state = 39}, - [231] = {.lex_state = 35}, - [232] = {.lex_state = 39}, - [233] = {.lex_state = 39}, - [234] = {.lex_state = 39}, - [235] = {.lex_state = 39}, - [236] = {.lex_state = 39}, - [237] = {.lex_state = 39}, - [238] = {.lex_state = 39}, - [239] = {.lex_state = 5}, - [240] = {.lex_state = 38}, - [241] = {.lex_state = 39}, - [242] = {.lex_state = 39}, - [243] = {.lex_state = 39}, - [244] = {.lex_state = 39}, - [245] = {.lex_state = 35}, - [246] = {.lex_state = 39}, - [247] = {.lex_state = 39}, - [248] = {.lex_state = 39}, - [249] = {.lex_state = 39}, - [250] = {.lex_state = 38}, - [251] = {.lex_state = 5}, - [252] = {.lex_state = 39}, - [253] = {.lex_state = 35}, - [254] = {.lex_state = 39}, - [255] = {.lex_state = 39}, - [256] = {.lex_state = 39}, - [257] = {.lex_state = 39}, - [258] = {.lex_state = 125}, - [259] = {.lex_state = 39}, - [260] = {.lex_state = 39}, - [261] = {.lex_state = 39}, - [262] = {.lex_state = 126}, - [263] = {.lex_state = 39}, - [264] = {.lex_state = 0, .external_lex_state = 4}, - [265] = {.lex_state = 39}, - [266] = {.lex_state = 39}, - [267] = {.lex_state = 39}, - [268] = {.lex_state = 127}, - [269] = {.lex_state = 128}, - [270] = {.lex_state = 39}, - [271] = {.lex_state = 39}, - [272] = {.lex_state = 39}, - [273] = {.lex_state = 0, .external_lex_state = 3}, - [274] = {.lex_state = 39}, - [275] = {.lex_state = 39}, - [276] = {.lex_state = 39}, - [277] = {.lex_state = 39}, - [278] = {.lex_state = 39}, - [279] = {.lex_state = 39}, - [280] = {.lex_state = 39}, - [281] = {.lex_state = 39}, - [282] = {.lex_state = 0}, - [283] = {.lex_state = 39}, - [284] = {.lex_state = 39}, - [285] = {.lex_state = 39}, - [286] = {.lex_state = 39}, - [287] = {.lex_state = 39}, - [288] = {.lex_state = 39}, - [289] = {.lex_state = 39}, - [290] = {.lex_state = 39}, - [291] = {.lex_state = 39}, - [292] = {.lex_state = 39}, - [293] = {.lex_state = 39}, - [294] = {.lex_state = 39}, - [295] = {.lex_state = 5}, - [296] = {.lex_state = 37}, - [297] = {.lex_state = 39}, - [298] = {.lex_state = 39}, - [299] = {.lex_state = 5}, - [300] = {.lex_state = 37}, - [301] = {.lex_state = 39}, - [302] = {.lex_state = 39}, - [303] = {.lex_state = 5}, - [304] = {.lex_state = 37}, -}; - -enum { - ts_external_token_PITarget = 0, - ts_external_token__pi_content = 1, - ts_external_token_Comment = 2, -}; - -static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { - [ts_external_token_PITarget] = sym_PITarget, - [ts_external_token__pi_content] = sym__pi_content, - [ts_external_token_Comment] = sym_Comment, -}; - -static const bool ts_external_scanner_states[5][EXTERNAL_TOKEN_COUNT] = { - [1] = { - [ts_external_token_PITarget] = true, - [ts_external_token__pi_content] = true, - [ts_external_token_Comment] = true, - }, - [2] = { - [ts_external_token_Comment] = true, - }, - [3] = { - [ts_external_token_PITarget] = true, - }, - [4] = { - [ts_external_token__pi_content] = true, - }, -}; - -static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { - [0] = { - [ts_builtin_sym_end] = ACTIONS(1), - [sym_Name] = ACTIONS(1), - [anon_sym_LT_BANG_LBRACK] = ACTIONS(1), - [anon_sym_IGNORE] = ACTIONS(1), - [anon_sym_INCLUDE] = ACTIONS(1), - [anon_sym_LBRACK] = ACTIONS(1), - [anon_sym_RBRACK_RBRACK_GT] = ACTIONS(1), - [anon_sym_LT_BANG] = ACTIONS(1), - [anon_sym_ELEMENT] = ACTIONS(1), - [anon_sym_GT] = ACTIONS(1), - [anon_sym_EMPTY] = ACTIONS(1), - [anon_sym_ANY] = ACTIONS(1), - [anon_sym_LPAREN] = ACTIONS(1), - [anon_sym_POUNDPCDATA] = ACTIONS(1), - [anon_sym_PIPE] = ACTIONS(1), - [anon_sym_RPAREN] = ACTIONS(1), - [anon_sym_STAR] = ACTIONS(1), - [anon_sym_QMARK] = ACTIONS(1), - [anon_sym_PLUS] = ACTIONS(1), - [anon_sym_COMMA] = ACTIONS(1), - [anon_sym_ATTLIST] = ACTIONS(1), - [sym_StringType] = ACTIONS(1), - [sym_TokenizedType] = ACTIONS(1), - [anon_sym_NOTATION] = ACTIONS(1), - [anon_sym_POUNDREQUIRED] = ACTIONS(1), - [anon_sym_POUNDIMPLIED] = ACTIONS(1), - [anon_sym_POUNDFIXED] = ACTIONS(1), - [anon_sym_ENTITY] = ACTIONS(1), - [anon_sym_PERCENT] = ACTIONS(1), - [anon_sym_DQUOTE] = ACTIONS(1), - [aux_sym_EntityValue_token1] = ACTIONS(1), - [anon_sym_SQUOTE] = ACTIONS(1), - [aux_sym_EntityValue_token2] = ACTIONS(1), - [anon_sym_NDATA] = ACTIONS(1), - [anon_sym_SEMI] = ACTIONS(1), - [sym__S] = ACTIONS(1), - [sym_Nmtoken] = ACTIONS(1), - [anon_sym_AMP] = ACTIONS(1), - [anon_sym_AMP_POUND] = ACTIONS(1), - [aux_sym_CharRef_token1] = ACTIONS(1), - [anon_sym_AMP_POUNDx] = ACTIONS(1), - [aux_sym_CharRef_token2] = ACTIONS(1), - [aux_sym_AttValue_token1] = ACTIONS(1), - [aux_sym_AttValue_token2] = ACTIONS(1), - [anon_sym_SYSTEM] = ACTIONS(1), - [anon_sym_PUBLIC] = ACTIONS(1), - [anon_sym_LT_QMARK] = ACTIONS(1), - [anon_sym_xml] = ACTIONS(1), - [anon_sym_version] = ACTIONS(1), - [sym_VersionNum] = ACTIONS(1), - [anon_sym_encoding] = ACTIONS(1), - [sym_EncName] = ACTIONS(1), - [anon_sym_EQ] = ACTIONS(1), - [sym_PITarget] = ACTIONS(1), - [sym__pi_content] = ACTIONS(1), - [sym_Comment] = ACTIONS(1), - }, - [1] = { - [sym_document] = STATE(282), - [sym__extSubsetDecl] = STATE(9), - [sym_conditionalSect] = STATE(9), - [sym__markupdecl] = STATE(9), - [sym__DeclSep] = STATE(9), - [sym_elementdecl] = STATE(50), - [sym_AttlistDecl] = STATE(50), - [sym__EntityDecl] = STATE(50), - [sym_GEDecl] = STATE(47), - [sym_PEDecl] = STATE(47), - [sym_NotationDecl] = STATE(50), - [sym_PEReference] = STATE(9), - [sym_XMLDecl] = STATE(11), - [sym_PI] = STATE(50), - [aux_sym_document_repeat1] = STATE(9), - [anon_sym_LT_BANG_LBRACK] = ACTIONS(3), - [anon_sym_LT_BANG] = ACTIONS(5), - [anon_sym_PERCENT] = ACTIONS(7), - [sym__S] = ACTIONS(9), - [anon_sym_LT_QMARK] = ACTIONS(11), - [sym_Comment] = ACTIONS(13), - }, -}; - -static const uint16_t ts_small_parse_table[] = { - [0] = 10, - ACTIONS(17), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(20), 1, - anon_sym_LT_BANG, - ACTIONS(23), 1, - anon_sym_PERCENT, - ACTIONS(26), 1, - sym__S, - ACTIONS(29), 1, - anon_sym_LT_QMARK, - ACTIONS(32), 1, - sym_Comment, - ACTIONS(15), 2, - ts_builtin_sym_end, - anon_sym_RBRACK_RBRACK_GT, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [42] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(35), 1, - anon_sym_RBRACK_RBRACK_GT, - ACTIONS(37), 1, - sym__S, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [83] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(41), 1, - anon_sym_RBRACK_RBRACK_GT, - ACTIONS(43), 1, - sym__S, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(8), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [124] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(37), 1, - sym__S, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(41), 1, - anon_sym_RBRACK_RBRACK_GT, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [165] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(45), 1, - anon_sym_RBRACK_RBRACK_GT, - ACTIONS(47), 1, - sym__S, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(5), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [206] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(37), 1, - sym__S, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(49), 1, - ts_builtin_sym_end, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [247] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(37), 1, - sym__S, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(51), 1, - anon_sym_RBRACK_RBRACK_GT, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [288] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(37), 1, - sym__S, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(53), 1, - ts_builtin_sym_end, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(2), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [329] = 10, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(51), 1, - anon_sym_RBRACK_RBRACK_GT, - ACTIONS(55), 1, - sym__S, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(3), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [370] = 9, - ACTIONS(3), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(5), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_PERCENT, - ACTIONS(13), 1, - sym_Comment, - ACTIONS(39), 1, - anon_sym_LT_QMARK, - ACTIONS(57), 1, - sym__S, - STATE(47), 2, - sym_GEDecl, - sym_PEDecl, - STATE(50), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - STATE(7), 6, - sym__extSubsetDecl, - sym_conditionalSect, - sym__markupdecl, - sym__DeclSep, - sym_PEReference, - aux_sym_document_repeat1, - [408] = 8, - ACTIONS(59), 1, - anon_sym_PERCENT, - ACTIONS(61), 1, - anon_sym_DQUOTE, - ACTIONS(63), 1, - aux_sym_EntityValue_token1, - ACTIONS(65), 1, - anon_sym_AMP, - ACTIONS(67), 1, - anon_sym_AMP_POUND, - ACTIONS(69), 1, - anon_sym_AMP_POUNDx, - STATE(74), 2, - sym_EntityRef, - sym_CharRef, - STATE(15), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [436] = 8, - ACTIONS(71), 1, - anon_sym_PERCENT, - ACTIONS(73), 1, - anon_sym_SQUOTE, - ACTIONS(75), 1, - aux_sym_EntityValue_token2, - ACTIONS(77), 1, - anon_sym_AMP, - ACTIONS(79), 1, - anon_sym_AMP_POUND, - ACTIONS(81), 1, - anon_sym_AMP_POUNDx, - STATE(76), 2, - sym_EntityRef, - sym_CharRef, - STATE(14), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [464] = 8, - ACTIONS(83), 1, - anon_sym_PERCENT, - ACTIONS(86), 1, - anon_sym_SQUOTE, - ACTIONS(88), 1, - aux_sym_EntityValue_token2, - ACTIONS(91), 1, - anon_sym_AMP, - ACTIONS(94), 1, - anon_sym_AMP_POUND, - ACTIONS(97), 1, - anon_sym_AMP_POUNDx, - STATE(76), 2, - sym_EntityRef, - sym_CharRef, - STATE(14), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [492] = 8, - ACTIONS(59), 1, - anon_sym_PERCENT, - ACTIONS(65), 1, - anon_sym_AMP, - ACTIONS(67), 1, - anon_sym_AMP_POUND, - ACTIONS(69), 1, - anon_sym_AMP_POUNDx, - ACTIONS(73), 1, - anon_sym_DQUOTE, - ACTIONS(100), 1, - aux_sym_EntityValue_token1, - STATE(74), 2, - sym_EntityRef, - sym_CharRef, - STATE(17), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [520] = 1, - ACTIONS(102), 11, - anon_sym_LBRACK, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - anon_sym_PERCENT, - sym__S, - sym_Name, - [534] = 8, - ACTIONS(104), 1, - anon_sym_PERCENT, - ACTIONS(107), 1, - anon_sym_DQUOTE, - ACTIONS(109), 1, - aux_sym_EntityValue_token1, - ACTIONS(112), 1, - anon_sym_AMP, - ACTIONS(115), 1, - anon_sym_AMP_POUND, - ACTIONS(118), 1, - anon_sym_AMP_POUNDx, - STATE(74), 2, - sym_EntityRef, - sym_CharRef, - STATE(17), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [562] = 8, - ACTIONS(61), 1, - anon_sym_SQUOTE, - ACTIONS(71), 1, - anon_sym_PERCENT, - ACTIONS(77), 1, - anon_sym_AMP, - ACTIONS(79), 1, - anon_sym_AMP_POUND, - ACTIONS(81), 1, - anon_sym_AMP_POUNDx, - ACTIONS(121), 1, - aux_sym_EntityValue_token2, - STATE(76), 2, - sym_EntityRef, - sym_CharRef, - STATE(13), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [590] = 7, - ACTIONS(123), 1, - anon_sym_LPAREN, - ACTIONS(127), 1, - anon_sym_NOTATION, - ACTIONS(129), 1, - anon_sym_PERCENT, - STATE(179), 1, - sym__AttType, - ACTIONS(125), 2, - sym_StringType, - sym_TokenizedType, - STATE(178), 2, - sym_NotationType, - sym_Enumeration, - STATE(181), 2, - sym__EnumeratedType, - sym_PEReference, - [615] = 7, - ACTIONS(131), 1, - anon_sym_DQUOTE, - ACTIONS(133), 1, - anon_sym_AMP, - ACTIONS(135), 1, - anon_sym_AMP_POUND, - ACTIONS(137), 1, - anon_sym_AMP_POUNDx, - ACTIONS(139), 1, - aux_sym_AttValue_token1, - STATE(26), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(91), 2, - sym_EntityRef, - sym_CharRef, - [639] = 7, - ACTIONS(131), 1, - anon_sym_SQUOTE, - ACTIONS(141), 1, - anon_sym_AMP, - ACTIONS(143), 1, - anon_sym_AMP_POUND, - ACTIONS(145), 1, - anon_sym_AMP_POUNDx, - ACTIONS(147), 1, - aux_sym_AttValue_token2, - STATE(23), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(83), 2, - sym_EntityRef, - sym_CharRef, - [663] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(151), 1, - anon_sym_LPAREN, - STATE(87), 1, - sym__choice, - STATE(194), 1, - sym_contentspec, - ACTIONS(149), 2, - anon_sym_EMPTY, - anon_sym_ANY, - STATE(193), 3, - sym_Mixed, - sym_children, - sym_PEReference, - [685] = 7, - ACTIONS(153), 1, - anon_sym_SQUOTE, - ACTIONS(155), 1, - anon_sym_AMP, - ACTIONS(158), 1, - anon_sym_AMP_POUND, - ACTIONS(161), 1, - anon_sym_AMP_POUNDx, - ACTIONS(164), 1, - aux_sym_AttValue_token2, - STATE(23), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(83), 2, - sym_EntityRef, - sym_CharRef, - [709] = 7, - ACTIONS(141), 1, - anon_sym_AMP, - ACTIONS(143), 1, - anon_sym_AMP_POUND, - ACTIONS(145), 1, - anon_sym_AMP_POUNDx, - ACTIONS(167), 1, - anon_sym_SQUOTE, - ACTIONS(169), 1, - aux_sym_AttValue_token2, - STATE(21), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(83), 2, - sym_EntityRef, - sym_CharRef, - [733] = 7, - ACTIONS(133), 1, - anon_sym_AMP, - ACTIONS(135), 1, - anon_sym_AMP_POUND, - ACTIONS(137), 1, - anon_sym_AMP_POUNDx, - ACTIONS(167), 1, - anon_sym_DQUOTE, - ACTIONS(171), 1, - aux_sym_AttValue_token1, - STATE(20), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(91), 2, - sym_EntityRef, - sym_CharRef, - [757] = 7, - ACTIONS(173), 1, - anon_sym_DQUOTE, - ACTIONS(175), 1, - anon_sym_AMP, - ACTIONS(178), 1, - anon_sym_AMP_POUND, - ACTIONS(181), 1, - anon_sym_AMP_POUNDx, - ACTIONS(184), 1, - aux_sym_AttValue_token1, - STATE(26), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(91), 2, - sym_EntityRef, - sym_CharRef, - [781] = 8, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - ACTIONS(191), 1, - anon_sym_POUNDPCDATA, - ACTIONS(193), 1, - sym__S, - STATE(32), 1, - sym_PEReference, - STATE(59), 1, - sym__choice, - STATE(89), 1, - sym__cp, - [806] = 2, - ACTIONS(197), 1, - anon_sym_LT_BANG, - ACTIONS(195), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [819] = 2, - ACTIONS(201), 1, - anon_sym_LT_BANG, - ACTIONS(199), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [832] = 1, - ACTIONS(203), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [843] = 2, - ACTIONS(207), 1, - anon_sym_LT_BANG, - ACTIONS(205), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [856] = 6, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(211), 1, - anon_sym_RPAREN, - ACTIONS(215), 1, - anon_sym_COMMA, - ACTIONS(217), 1, - sym__S, - STATE(118), 1, - aux_sym_Mixed_repeat1, - ACTIONS(213), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [877] = 2, - ACTIONS(221), 1, - anon_sym_LT_BANG, - ACTIONS(219), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [890] = 2, - ACTIONS(223), 1, - anon_sym_LT_BANG, - ACTIONS(102), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [903] = 2, - ACTIONS(227), 1, - anon_sym_LT_BANG, - ACTIONS(225), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [916] = 2, - ACTIONS(231), 1, - anon_sym_LT_BANG, - ACTIONS(229), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [929] = 2, - ACTIONS(235), 1, - anon_sym_LT_BANG, - ACTIONS(233), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [942] = 1, - ACTIONS(237), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [953] = 2, - ACTIONS(241), 1, - anon_sym_LT_BANG, - ACTIONS(239), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [966] = 2, - ACTIONS(245), 1, - anon_sym_LT_BANG, - ACTIONS(243), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [979] = 2, - ACTIONS(249), 1, - anon_sym_LT_BANG, - ACTIONS(247), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [992] = 6, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(215), 1, - anon_sym_COMMA, - ACTIONS(251), 1, - anon_sym_RPAREN, - ACTIONS(253), 1, - sym__S, - STATE(105), 1, - aux_sym_Mixed_repeat1, - ACTIONS(213), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [1013] = 2, - ACTIONS(257), 1, - anon_sym_LT_BANG, - ACTIONS(255), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1026] = 2, - ACTIONS(261), 1, - anon_sym_LT_BANG, - ACTIONS(259), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1039] = 2, - ACTIONS(265), 1, - anon_sym_LT_BANG, - ACTIONS(263), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1052] = 2, - ACTIONS(269), 1, - anon_sym_LT_BANG, - ACTIONS(267), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1065] = 2, - ACTIONS(273), 1, - anon_sym_LT_BANG, - ACTIONS(271), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1078] = 2, - ACTIONS(277), 1, - anon_sym_LT_BANG, - ACTIONS(275), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1091] = 2, - ACTIONS(281), 1, - anon_sym_LT_BANG, - ACTIONS(279), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1104] = 2, - ACTIONS(285), 1, - anon_sym_LT_BANG, - ACTIONS(283), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1117] = 1, - ACTIONS(287), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [1128] = 2, - ACTIONS(291), 1, - anon_sym_LT_BANG, - ACTIONS(289), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1141] = 2, - ACTIONS(295), 1, - anon_sym_LT_BANG, - ACTIONS(293), 7, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG_LBRACK, - anon_sym_RBRACK_RBRACK_GT, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1154] = 6, - ACTIONS(299), 1, - anon_sym_POUNDFIXED, - ACTIONS(301), 1, - anon_sym_DQUOTE, - ACTIONS(303), 1, - anon_sym_SQUOTE, - STATE(214), 1, - sym_AttValue, - STATE(216), 1, - sym_DefaultDecl, - ACTIONS(297), 2, - anon_sym_POUNDREQUIRED, - anon_sym_POUNDIMPLIED, - [1174] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - ACTIONS(305), 1, - sym__S, - STATE(89), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1194] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - ACTIONS(307), 1, - sym__S, - STATE(106), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1214] = 7, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - ACTIONS(309), 1, - anon_sym_POUNDPCDATA, - STATE(42), 1, - sym_PEReference, - STATE(59), 1, - sym__choice, - STATE(86), 1, - sym__cp, - [1236] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - ACTIONS(311), 1, - sym__S, - STATE(109), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1256] = 2, - ACTIONS(213), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - ACTIONS(215), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1268] = 5, - ACTIONS(313), 1, - anon_sym_DQUOTE, - ACTIONS(315), 1, - anon_sym_SQUOTE, - ACTIONS(317), 1, - anon_sym_SYSTEM, - ACTIONS(319), 1, - anon_sym_PUBLIC, - STATE(160), 2, - sym_EntityValue, - sym_ExternalID, - [1285] = 2, - ACTIONS(223), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(102), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1296] = 2, - ACTIONS(223), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(102), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1307] = 2, - ACTIONS(323), 1, - anon_sym_LT_BANG, - ACTIONS(321), 5, - sym_Comment, - anon_sym_LT_BANG_LBRACK, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1318] = 5, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - STATE(98), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1335] = 2, - ACTIONS(327), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(325), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1346] = 6, - ACTIONS(313), 1, - anon_sym_DQUOTE, - ACTIONS(315), 1, - anon_sym_SQUOTE, - ACTIONS(317), 1, - anon_sym_SYSTEM, - ACTIONS(319), 1, - anon_sym_PUBLIC, - STATE(154), 1, - sym_ExternalID, - STATE(204), 1, - sym_EntityValue, - [1365] = 5, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - STATE(109), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1382] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(329), 1, - sym_Name, - ACTIONS(331), 1, - anon_sym_PIPE, - ACTIONS(333), 1, - sym__S, - STATE(71), 1, - aux_sym_NotationType_repeat1, - STATE(186), 1, - sym_PEReference, - [1401] = 2, - ACTIONS(337), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(335), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1412] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(331), 1, - anon_sym_PIPE, - ACTIONS(333), 1, - sym__S, - ACTIONS(339), 1, - sym_Name, - STATE(92), 1, - aux_sym_NotationType_repeat1, - STATE(171), 1, - sym_PEReference, - [1431] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(331), 1, - anon_sym_PIPE, - ACTIONS(333), 1, - sym__S, - ACTIONS(341), 1, - sym_Name, - STATE(92), 1, - aux_sym_NotationType_repeat1, - STATE(175), 1, - sym_PEReference, - [1450] = 5, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(317), 1, - anon_sym_SYSTEM, - ACTIONS(343), 1, - anon_sym_PUBLIC, - STATE(230), 1, - sym_PEReference, - STATE(201), 2, - sym_ExternalID, - sym_PublicID, - [1467] = 2, - ACTIONS(347), 1, - anon_sym_LT_BANG, - ACTIONS(345), 5, - sym_Comment, - anon_sym_LT_BANG_LBRACK, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1478] = 2, - ACTIONS(351), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(349), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1489] = 2, - ACTIONS(337), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(335), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1500] = 2, - ACTIONS(351), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(349), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1511] = 2, - ACTIONS(327), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(325), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1522] = 5, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(187), 1, - sym_Name, - ACTIONS(189), 1, - anon_sym_LPAREN, - STATE(86), 1, - sym__cp, - STATE(59), 2, - sym__choice, - sym_PEReference, - [1539] = 6, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(331), 1, - anon_sym_PIPE, - ACTIONS(333), 1, - sym__S, - ACTIONS(341), 1, - sym_Name, - STATE(70), 1, - aux_sym_NotationType_repeat1, - STATE(175), 1, - sym_PEReference, - [1558] = 2, - ACTIONS(355), 1, - anon_sym_LT_BANG, - ACTIONS(353), 5, - sym_Comment, - anon_sym_LT_BANG_LBRACK, - anon_sym_PERCENT, - sym__S, - anon_sym_LT_QMARK, - [1569] = 2, - ACTIONS(337), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(335), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [1579] = 2, - ACTIONS(327), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(325), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [1589] = 2, - ACTIONS(351), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(349), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [1599] = 2, - ACTIONS(327), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(325), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [1609] = 4, - ACTIONS(360), 1, - anon_sym_RPAREN, - ACTIONS(362), 1, - sym__S, - STATE(85), 1, - aux_sym__choice_repeat1, - ACTIONS(357), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [1623] = 4, - ACTIONS(367), 1, - anon_sym_RPAREN, - ACTIONS(369), 1, - sym__S, - STATE(94), 1, - aux_sym__choice_repeat1, - ACTIONS(365), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [1637] = 2, - ACTIONS(371), 2, - anon_sym_GT, - sym__S, - ACTIONS(373), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [1647] = 2, - ACTIONS(337), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(335), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [1657] = 4, - ACTIONS(369), 1, - sym__S, - ACTIONS(375), 1, - anon_sym_RPAREN, - STATE(90), 1, - aux_sym__choice_repeat1, - ACTIONS(365), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [1671] = 4, - ACTIONS(367), 1, - anon_sym_RPAREN, - ACTIONS(369), 1, - sym__S, - STATE(85), 1, - aux_sym__choice_repeat1, - ACTIONS(365), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [1685] = 2, - ACTIONS(351), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(349), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [1695] = 4, - ACTIONS(379), 1, - anon_sym_PIPE, - ACTIONS(382), 1, - sym__S, - STATE(92), 1, - aux_sym_NotationType_repeat1, - ACTIONS(377), 2, - anon_sym_PERCENT, - sym_Name, - [1709] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(387), 1, - sym__S, - STATE(161), 1, - sym_PEReference, - ACTIONS(385), 2, - anon_sym_IGNORE, - anon_sym_INCLUDE, - [1723] = 4, - ACTIONS(369), 1, - sym__S, - ACTIONS(389), 1, - anon_sym_RPAREN, - STATE(85), 1, - aux_sym__choice_repeat1, - ACTIONS(365), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [1737] = 4, - ACTIONS(391), 1, - anon_sym_PIPE, - ACTIONS(393), 1, - anon_sym_RPAREN, - ACTIONS(395), 1, - sym__S, - STATE(117), 1, - aux_sym_Enumeration_repeat1, - [1750] = 3, - ACTIONS(397), 1, - anon_sym_GT, - ACTIONS(399), 1, - sym__S, - STATE(115), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [1761] = 4, - ACTIONS(391), 1, - anon_sym_PIPE, - ACTIONS(401), 1, - anon_sym_RPAREN, - ACTIONS(403), 1, - sym__S, - STATE(117), 1, - aux_sym_Enumeration_repeat1, - [1774] = 1, - ACTIONS(405), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1781] = 4, - ACTIONS(391), 1, - anon_sym_PIPE, - ACTIONS(401), 1, - anon_sym_RPAREN, - ACTIONS(403), 1, - sym__S, - STATE(95), 1, - aux_sym_Enumeration_repeat1, - [1794] = 4, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(211), 1, - anon_sym_RPAREN, - ACTIONS(217), 1, - sym__S, - STATE(118), 1, - aux_sym_Mixed_repeat1, - [1807] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - STATE(169), 1, - sym_PEReference, - ACTIONS(407), 2, - anon_sym_IGNORE, - anon_sym_INCLUDE, - [1818] = 1, - ACTIONS(409), 4, - anon_sym_PIPE, - anon_sym_PERCENT, - sym__S, - sym_Name, - [1825] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(411), 1, - sym_Name, - ACTIONS(413), 1, - sym__S, - STATE(135), 1, - sym_PEReference, - [1838] = 4, - ACTIONS(415), 1, - anon_sym_PIPE, - ACTIONS(418), 1, - anon_sym_RPAREN, - ACTIONS(420), 1, - sym__S, - STATE(104), 1, - aux_sym_Mixed_repeat1, - [1851] = 4, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(423), 1, - anon_sym_RPAREN, - ACTIONS(425), 1, - sym__S, - STATE(104), 1, - aux_sym_Mixed_repeat1, - [1864] = 1, - ACTIONS(360), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1871] = 2, - ACTIONS(427), 1, - sym__S, - ACTIONS(377), 3, - anon_sym_PIPE, - anon_sym_PERCENT, - sym_Name, - [1880] = 1, - ACTIONS(377), 4, - anon_sym_PIPE, - anon_sym_PERCENT, - sym__S, - sym_Name, - [1887] = 1, - ACTIONS(430), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1894] = 4, - ACTIONS(432), 1, - anon_sym_ELEMENT, - ACTIONS(434), 1, - anon_sym_ATTLIST, - ACTIONS(436), 1, - anon_sym_NOTATION, - ACTIONS(438), 1, - anon_sym_ENTITY, - [1907] = 3, - ACTIONS(440), 1, - anon_sym_GT, - ACTIONS(442), 1, - sym__S, - STATE(96), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [1918] = 1, - ACTIONS(444), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1925] = 2, - ACTIONS(448), 1, - sym__S, - ACTIONS(446), 3, - anon_sym_PIPE, - anon_sym_PERCENT, - sym_Name, - [1934] = 4, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(251), 1, - anon_sym_RPAREN, - ACTIONS(253), 1, - sym__S, - STATE(105), 1, - aux_sym_Mixed_repeat1, - [1947] = 3, - ACTIONS(451), 1, - anon_sym_GT, - ACTIONS(453), 1, - sym__S, - STATE(115), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [1958] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(456), 1, - sym_Name, - ACTIONS(458), 1, - anon_sym_GT, - STATE(235), 1, - sym_PEReference, - [1971] = 4, - ACTIONS(460), 1, - anon_sym_PIPE, - ACTIONS(463), 1, - anon_sym_RPAREN, - ACTIONS(465), 1, - sym__S, - STATE(117), 1, - aux_sym_Enumeration_repeat1, - [1984] = 4, - ACTIONS(209), 1, - anon_sym_PIPE, - ACTIONS(425), 1, - sym__S, - ACTIONS(468), 1, - anon_sym_RPAREN, - STATE(104), 1, - aux_sym_Mixed_repeat1, - [1997] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(470), 1, - sym_Name, - ACTIONS(472), 1, - sym__S, - STATE(150), 1, - sym_PEReference, - [2010] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(397), 1, - anon_sym_GT, - ACTIONS(456), 1, - sym_Name, - STATE(235), 1, - sym_PEReference, - [2023] = 4, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(474), 1, - sym_Name, - ACTIONS(476), 1, - sym__S, - STATE(68), 1, - sym_PEReference, - [2036] = 4, - ACTIONS(391), 1, - anon_sym_PIPE, - ACTIONS(478), 1, - anon_sym_RPAREN, - ACTIONS(480), 1, - sym__S, - STATE(97), 1, - aux_sym_Enumeration_repeat1, - [2049] = 1, - ACTIONS(482), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2055] = 1, - ACTIONS(484), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2061] = 3, - ACTIONS(486), 1, - sym__S, - ACTIONS(488), 1, - anon_sym_EQ, - STATE(213), 1, - sym__Eq, - [2071] = 2, - ACTIONS(492), 1, - sym__S, - ACTIONS(490), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [2079] = 3, - ACTIONS(494), 1, - anon_sym_DQUOTE, - ACTIONS(496), 1, - anon_sym_SQUOTE, - STATE(212), 1, - sym_SystemLiteral, - [2089] = 1, - ACTIONS(498), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2095] = 3, - ACTIONS(301), 1, - anon_sym_DQUOTE, - ACTIONS(303), 1, - anon_sym_SQUOTE, - STATE(184), 1, - sym_AttValue, - [2105] = 2, - ACTIONS(502), 1, - anon_sym_STAR, - ACTIONS(500), 2, - anon_sym_GT, - sym__S, - [2113] = 1, - ACTIONS(504), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2119] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(506), 1, - sym_Name, - STATE(79), 1, - sym_PEReference, - [2129] = 3, - ACTIONS(508), 1, - anon_sym_DQUOTE, - ACTIONS(510), 1, - anon_sym_SQUOTE, - STATE(283), 1, - sym_PubidLiteral, - [2139] = 3, - ACTIONS(486), 1, - sym__S, - ACTIONS(488), 1, - anon_sym_EQ, - STATE(191), 1, - sym__Eq, - [2149] = 2, - ACTIONS(514), 1, - sym__S, - ACTIONS(512), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [2157] = 1, - ACTIONS(512), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2163] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(517), 1, - sym_Name, - STATE(141), 1, - sym_PEReference, - [2173] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(519), 1, - sym_Name, - STATE(205), 1, - sym_PEReference, - [2183] = 3, - ACTIONS(521), 1, - sym__S, - ACTIONS(523), 1, - anon_sym_QMARK_GT, - STATE(188), 1, - sym__EncodingDecl, - [2193] = 1, - ACTIONS(463), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [2199] = 2, - ACTIONS(525), 1, - sym__S, - ACTIONS(498), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [2207] = 3, - ACTIONS(508), 1, - anon_sym_DQUOTE, - ACTIONS(510), 1, - anon_sym_SQUOTE, - STATE(162), 1, - sym_PubidLiteral, - [2217] = 3, - ACTIONS(528), 1, - sym_Name, - ACTIONS(530), 1, - anon_sym_PERCENT, - STATE(254), 1, - sym_PEReference, - [2227] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(532), 1, - sym_Name, - STATE(257), 1, - sym_PEReference, - [2237] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(534), 1, - sym_Name, - STATE(111), 1, - sym_PEReference, - [2247] = 3, - ACTIONS(508), 1, - anon_sym_DQUOTE, - ACTIONS(510), 1, - anon_sym_SQUOTE, - STATE(168), 1, - sym_PubidLiteral, - [2257] = 2, - ACTIONS(538), 1, - anon_sym_STAR, - ACTIONS(536), 2, - anon_sym_GT, - sym__S, - [2265] = 3, - ACTIONS(494), 1, - anon_sym_DQUOTE, - ACTIONS(496), 1, - anon_sym_SQUOTE, - STATE(174), 1, - sym_SystemLiteral, - [2275] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(456), 1, - sym_Name, - STATE(235), 1, - sym_PEReference, - [2285] = 2, - ACTIONS(540), 1, - sym__S, - ACTIONS(418), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [2293] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(411), 1, - sym_Name, - STATE(135), 1, - sym_PEReference, - [2303] = 3, - ACTIONS(129), 1, - anon_sym_PERCENT, - ACTIONS(543), 1, - sym_Name, - STATE(259), 1, - sym_PEReference, - [2313] = 2, - ACTIONS(547), 1, - sym__S, - ACTIONS(545), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [2321] = 3, - ACTIONS(549), 1, - anon_sym_GT, - ACTIONS(551), 1, - sym__S, - STATE(197), 1, - sym_NDataDecl, - [2331] = 1, - ACTIONS(553), 2, - anon_sym_GT, - sym__S, - [2336] = 1, - ACTIONS(555), 2, - anon_sym_GT, - sym__S, - [2341] = 2, - ACTIONS(557), 1, - anon_sym_xml, - ACTIONS(559), 1, - sym_PITarget, - [2348] = 1, - ACTIONS(561), 2, - anon_sym_GT, - sym__S, - [2353] = 1, - ACTIONS(563), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2358] = 2, - ACTIONS(565), 1, - anon_sym_GT, - ACTIONS(567), 1, - sym__S, - [2365] = 2, - ACTIONS(569), 1, - anon_sym_LBRACK, - ACTIONS(571), 1, - sym__S, - [2372] = 1, - ACTIONS(573), 2, - anon_sym_GT, - sym__S, - [2377] = 2, - ACTIONS(575), 1, - sym__S, - ACTIONS(577), 1, - anon_sym_QMARK_GT, - [2384] = 2, - ACTIONS(579), 1, - sym__S, - STATE(139), 1, - sym__VersionInfo, - [2391] = 1, - ACTIONS(581), 2, - sym__S, - anon_sym_QMARK_GT, - [2396] = 1, - ACTIONS(583), 2, - anon_sym_GT, - sym__S, - [2401] = 1, - ACTIONS(585), 2, - anon_sym_GT, - sym__S, - [2406] = 2, - ACTIONS(573), 1, - anon_sym_GT, - ACTIONS(587), 1, - sym__S, - [2413] = 2, - ACTIONS(589), 1, - anon_sym_LBRACK, - ACTIONS(591), 1, - sym__S, - [2420] = 1, - ACTIONS(536), 2, - anon_sym_GT, - sym__S, - [2425] = 2, - ACTIONS(593), 1, - anon_sym_RPAREN, - ACTIONS(595), 1, - sym__S, - [2432] = 1, - ACTIONS(597), 2, - anon_sym_GT, - sym__S, - [2437] = 1, - ACTIONS(599), 2, - anon_sym_GT, - sym__S, - [2442] = 1, - ACTIONS(601), 2, - anon_sym_GT, - sym__S, - [2447] = 2, - ACTIONS(603), 1, - anon_sym_RPAREN, - ACTIONS(605), 1, - sym__S, - [2454] = 2, - ACTIONS(538), 1, - anon_sym_RPAREN, - ACTIONS(607), 1, - anon_sym_PIPE, - [2461] = 1, - ACTIONS(609), 2, - anon_sym_GT, - sym__S, - [2466] = 1, - ACTIONS(611), 2, - anon_sym_GT, - sym__S, - [2471] = 2, - ACTIONS(613), 1, - anon_sym_GT, - ACTIONS(615), 1, - sym__S, - [2478] = 2, - ACTIONS(617), 1, - sym_Name, - ACTIONS(619), 1, - sym__S, - [2485] = 1, - ACTIONS(621), 2, - anon_sym_GT, - sym__S, - [2490] = 2, - ACTIONS(623), 1, - sym__S, - ACTIONS(625), 1, - sym_Nmtoken, - [2497] = 1, - ACTIONS(627), 2, - anon_sym_GT, - sym__S, - [2502] = 1, - ACTIONS(629), 2, - anon_sym_GT, - sym__S, - [2507] = 2, - ACTIONS(502), 1, - anon_sym_RPAREN, - ACTIONS(607), 1, - anon_sym_PIPE, - [2514] = 2, - ACTIONS(631), 1, - anon_sym_RPAREN, - ACTIONS(633), 1, - sym__S, - [2521] = 2, - ACTIONS(635), 1, - anon_sym_QMARK_GT, - ACTIONS(637), 1, - anon_sym_encoding, - [2528] = 2, - ACTIONS(635), 1, - anon_sym_QMARK_GT, - ACTIONS(639), 1, - sym__S, - [2535] = 2, - ACTIONS(641), 1, - anon_sym_PIPE, - ACTIONS(643), 1, - anon_sym_RPAREN, - [2542] = 1, - ACTIONS(645), 2, - anon_sym_GT, - sym__S, - [2547] = 2, - ACTIONS(647), 1, - anon_sym_DQUOTE, - ACTIONS(649), 1, - anon_sym_SQUOTE, - [2554] = 1, - ACTIONS(651), 2, - anon_sym_GT, - sym__S, - [2559] = 1, - ACTIONS(653), 2, - anon_sym_GT, - sym__S, - [2564] = 2, - ACTIONS(655), 1, - anon_sym_GT, - ACTIONS(657), 1, - sym__S, - [2571] = 2, - ACTIONS(659), 1, - sym__S, - ACTIONS(661), 1, - sym_Nmtoken, - [2578] = 1, - ACTIONS(663), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [2583] = 2, - ACTIONS(665), 1, - anon_sym_GT, - ACTIONS(667), 1, - sym__S, - [2590] = 2, - ACTIONS(665), 1, - anon_sym_GT, - ACTIONS(669), 1, - anon_sym_NDATA, - [2597] = 1, - ACTIONS(671), 2, - sym__S, - anon_sym_QMARK_GT, - [2602] = 2, - ACTIONS(393), 1, - anon_sym_RPAREN, - ACTIONS(641), 1, - anon_sym_PIPE, - [2609] = 2, - ACTIONS(673), 1, - anon_sym_GT, - ACTIONS(675), 1, - sym__S, - [2616] = 1, - ACTIONS(677), 2, - anon_sym_GT, - sym__S, - [2621] = 1, - ACTIONS(679), 2, - anon_sym_GT, - sym__S, - [2626] = 2, - ACTIONS(549), 1, - anon_sym_GT, - ACTIONS(681), 1, - sym__S, - [2633] = 1, - ACTIONS(683), 2, - anon_sym_GT, - sym__S, - [2638] = 1, - ACTIONS(685), 2, - anon_sym_GT, - sym__S, - [2643] = 1, - ACTIONS(545), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [2648] = 1, - ACTIONS(687), 2, - anon_sym_GT, - sym__S, - [2653] = 2, - ACTIONS(689), 1, - sym__S, - ACTIONS(691), 1, - sym_Nmtoken, - [2660] = 1, - ACTIONS(693), 2, - anon_sym_GT, - sym__S, - [2665] = 2, - ACTIONS(401), 1, - anon_sym_RPAREN, - ACTIONS(641), 1, - anon_sym_PIPE, - [2672] = 1, - ACTIONS(695), 2, - anon_sym_GT, - sym__S, - [2677] = 2, - ACTIONS(697), 1, - anon_sym_DQUOTE, - ACTIONS(699), 1, - anon_sym_SQUOTE, - [2684] = 1, - ACTIONS(701), 2, - anon_sym_GT, - sym__S, - [2689] = 1, - ACTIONS(703), 2, - anon_sym_GT, - sym__S, - [2694] = 1, - ACTIONS(705), 2, - anon_sym_GT, - sym__S, - [2699] = 1, - ACTIONS(707), 1, - anon_sym_SQUOTE, - [2703] = 1, - ACTIONS(709), 1, - anon_sym_LBRACK, - [2707] = 1, - ACTIONS(711), 1, - sym_VersionNum, - [2711] = 1, - ACTIONS(713), 1, - anon_sym_SEMI, - [2715] = 1, - ACTIONS(715), 1, - sym__S, - [2719] = 1, - ACTIONS(717), 1, - anon_sym_GT, - [2723] = 1, - ACTIONS(719), 1, - anon_sym_GT, - [2727] = 1, - ACTIONS(721), 1, - sym_Name, - [2731] = 1, - ACTIONS(723), 1, - sym__S, - [2735] = 1, - ACTIONS(725), 1, - anon_sym_STAR, - [2739] = 1, - ACTIONS(727), 1, - sym__S, - [2743] = 1, - ACTIONS(729), 1, - aux_sym_CharRef_token1, - [2747] = 1, - ACTIONS(729), 1, - aux_sym_CharRef_token2, - [2751] = 1, - ACTIONS(731), 1, - sym__S, - [2755] = 1, - ACTIONS(661), 1, - sym_Nmtoken, - [2759] = 1, - ACTIONS(733), 1, - sym__S, - [2763] = 1, - ACTIONS(665), 1, - anon_sym_GT, - [2767] = 1, - ACTIONS(735), 1, - sym__S, - [2771] = 1, - ACTIONS(737), 1, - sym__S, - [2775] = 1, - ACTIONS(707), 1, - anon_sym_DQUOTE, - [2779] = 1, - ACTIONS(739), 1, - anon_sym_GT, - [2783] = 1, - ACTIONS(741), 1, - anon_sym_SEMI, - [2787] = 1, - ACTIONS(743), 1, - anon_sym_QMARK_GT, - [2791] = 1, - ACTIONS(745), 1, - sym_EncName, - [2795] = 1, - ACTIONS(747), 1, - anon_sym_EQ, - [2799] = 1, - ACTIONS(749), 1, - anon_sym_SQUOTE, - [2803] = 1, - ACTIONS(749), 1, - anon_sym_DQUOTE, - [2807] = 1, - ACTIONS(751), 1, - sym_Name, - [2811] = 1, - ACTIONS(753), 1, - sym_Nmtoken, - [2815] = 1, - ACTIONS(641), 1, - anon_sym_PIPE, - [2819] = 1, - ACTIONS(755), 1, - anon_sym_SQUOTE, - [2823] = 1, - ACTIONS(755), 1, - anon_sym_DQUOTE, - [2827] = 1, - ACTIONS(757), 1, - anon_sym_PIPE, - [2831] = 1, - ACTIONS(759), 1, - sym_EncName, - [2835] = 1, - ACTIONS(761), 1, - anon_sym_QMARK_GT, - [2839] = 1, - ACTIONS(763), 1, - anon_sym_LPAREN, - [2843] = 1, - ACTIONS(765), 1, - sym_Nmtoken, - [2847] = 1, - ACTIONS(767), 1, - sym__S, - [2851] = 1, - ACTIONS(769), 1, - sym_Name, - [2855] = 1, - ACTIONS(771), 1, - sym__S, - [2859] = 1, - ACTIONS(773), 1, - sym__S, - [2863] = 1, - ACTIONS(775), 1, - aux_sym_SystemLiteral_token1, - [2867] = 1, - ACTIONS(777), 1, - sym__S, - [2871] = 1, - ACTIONS(779), 1, - sym_VersionNum, - [2875] = 1, - ACTIONS(781), 1, - anon_sym_version, - [2879] = 1, - ACTIONS(783), 1, - aux_sym_SystemLiteral_token2, - [2883] = 1, - ACTIONS(603), 1, - anon_sym_RPAREN, - [2887] = 1, - ACTIONS(785), 1, - sym__pi_content, - [2891] = 1, - ACTIONS(607), 1, - anon_sym_PIPE, - [2895] = 1, - ACTIONS(593), 1, - anon_sym_RPAREN, - [2899] = 1, - ACTIONS(538), 1, - anon_sym_STAR, - [2903] = 1, - ACTIONS(787), 1, - aux_sym_PubidLiteral_token1, - [2907] = 1, - ACTIONS(789), 1, - aux_sym_PubidLiteral_token2, - [2911] = 1, - ACTIONS(791), 1, - anon_sym_RPAREN, - [2915] = 1, - ACTIONS(793), 1, - anon_sym_SQUOTE, - [2919] = 1, - ACTIONS(589), 1, - anon_sym_LBRACK, - [2923] = 1, - ACTIONS(559), 1, - sym_PITarget, - [2927] = 1, - ACTIONS(793), 1, - anon_sym_DQUOTE, - [2931] = 1, - ACTIONS(795), 1, - anon_sym_GT, - [2935] = 1, - ACTIONS(797), 1, - anon_sym_SEMI, - [2939] = 1, - ACTIONS(799), 1, - sym__S, - [2943] = 1, - ACTIONS(801), 1, - sym__S, - [2947] = 1, - ACTIONS(803), 1, - sym__S, - [2951] = 1, - ACTIONS(805), 1, - sym__S, - [2955] = 1, - ACTIONS(807), 1, - sym__S, - [2959] = 1, - ACTIONS(809), 1, - ts_builtin_sym_end, - [2963] = 1, - ACTIONS(587), 1, - sym__S, - [2967] = 1, - ACTIONS(811), 1, - anon_sym_SEMI, - [2971] = 1, - ACTIONS(813), 1, - anon_sym_SEMI, - [2975] = 1, - ACTIONS(815), 1, - anon_sym_SEMI, - [2979] = 1, - ACTIONS(817), 1, - anon_sym_SEMI, - [2983] = 1, - ACTIONS(819), 1, - anon_sym_SEMI, - [2987] = 1, - ACTIONS(821), 1, - anon_sym_SEMI, - [2991] = 1, - ACTIONS(823), 1, - anon_sym_SEMI, - [2995] = 1, - ACTIONS(825), 1, - anon_sym_SEMI, - [2999] = 1, - ACTIONS(827), 1, - anon_sym_SEMI, - [3003] = 1, - ACTIONS(617), 1, - sym_Name, - [3007] = 1, - ACTIONS(829), 1, - sym_Name, - [3011] = 1, - ACTIONS(831), 1, - aux_sym_CharRef_token1, - [3015] = 1, - ACTIONS(831), 1, - aux_sym_CharRef_token2, - [3019] = 1, - ACTIONS(833), 1, - sym_Name, - [3023] = 1, - ACTIONS(835), 1, - sym_Name, - [3027] = 1, - ACTIONS(837), 1, - aux_sym_CharRef_token1, - [3031] = 1, - ACTIONS(837), 1, - aux_sym_CharRef_token2, - [3035] = 1, - ACTIONS(839), 1, - sym_Name, - [3039] = 1, - ACTIONS(841), 1, - sym_Name, - [3043] = 1, - ACTIONS(843), 1, - aux_sym_CharRef_token1, - [3047] = 1, - ACTIONS(843), 1, - aux_sym_CharRef_token2, -}; - -static const uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(2)] = 0, - [SMALL_STATE(3)] = 42, - [SMALL_STATE(4)] = 83, - [SMALL_STATE(5)] = 124, - [SMALL_STATE(6)] = 165, - [SMALL_STATE(7)] = 206, - [SMALL_STATE(8)] = 247, - [SMALL_STATE(9)] = 288, - [SMALL_STATE(10)] = 329, - [SMALL_STATE(11)] = 370, - [SMALL_STATE(12)] = 408, - [SMALL_STATE(13)] = 436, - [SMALL_STATE(14)] = 464, - [SMALL_STATE(15)] = 492, - [SMALL_STATE(16)] = 520, - [SMALL_STATE(17)] = 534, - [SMALL_STATE(18)] = 562, - [SMALL_STATE(19)] = 590, - [SMALL_STATE(20)] = 615, - [SMALL_STATE(21)] = 639, - [SMALL_STATE(22)] = 663, - [SMALL_STATE(23)] = 685, - [SMALL_STATE(24)] = 709, - [SMALL_STATE(25)] = 733, - [SMALL_STATE(26)] = 757, - [SMALL_STATE(27)] = 781, - [SMALL_STATE(28)] = 806, - [SMALL_STATE(29)] = 819, - [SMALL_STATE(30)] = 832, - [SMALL_STATE(31)] = 843, - [SMALL_STATE(32)] = 856, - [SMALL_STATE(33)] = 877, - [SMALL_STATE(34)] = 890, - [SMALL_STATE(35)] = 903, - [SMALL_STATE(36)] = 916, - [SMALL_STATE(37)] = 929, - [SMALL_STATE(38)] = 942, - [SMALL_STATE(39)] = 953, - [SMALL_STATE(40)] = 966, - [SMALL_STATE(41)] = 979, - [SMALL_STATE(42)] = 992, - [SMALL_STATE(43)] = 1013, - [SMALL_STATE(44)] = 1026, - [SMALL_STATE(45)] = 1039, - [SMALL_STATE(46)] = 1052, - [SMALL_STATE(47)] = 1065, - [SMALL_STATE(48)] = 1078, - [SMALL_STATE(49)] = 1091, - [SMALL_STATE(50)] = 1104, - [SMALL_STATE(51)] = 1117, - [SMALL_STATE(52)] = 1128, - [SMALL_STATE(53)] = 1141, - [SMALL_STATE(54)] = 1154, - [SMALL_STATE(55)] = 1174, - [SMALL_STATE(56)] = 1194, - [SMALL_STATE(57)] = 1214, - [SMALL_STATE(58)] = 1236, - [SMALL_STATE(59)] = 1256, - [SMALL_STATE(60)] = 1268, - [SMALL_STATE(61)] = 1285, - [SMALL_STATE(62)] = 1296, - [SMALL_STATE(63)] = 1307, - [SMALL_STATE(64)] = 1318, - [SMALL_STATE(65)] = 1335, - [SMALL_STATE(66)] = 1346, - [SMALL_STATE(67)] = 1365, - [SMALL_STATE(68)] = 1382, - [SMALL_STATE(69)] = 1401, - [SMALL_STATE(70)] = 1412, - [SMALL_STATE(71)] = 1431, - [SMALL_STATE(72)] = 1450, - [SMALL_STATE(73)] = 1467, - [SMALL_STATE(74)] = 1478, - [SMALL_STATE(75)] = 1489, - [SMALL_STATE(76)] = 1500, - [SMALL_STATE(77)] = 1511, - [SMALL_STATE(78)] = 1522, - [SMALL_STATE(79)] = 1539, - [SMALL_STATE(80)] = 1558, - [SMALL_STATE(81)] = 1569, - [SMALL_STATE(82)] = 1579, - [SMALL_STATE(83)] = 1589, - [SMALL_STATE(84)] = 1599, - [SMALL_STATE(85)] = 1609, - [SMALL_STATE(86)] = 1623, - [SMALL_STATE(87)] = 1637, - [SMALL_STATE(88)] = 1647, - [SMALL_STATE(89)] = 1657, - [SMALL_STATE(90)] = 1671, - [SMALL_STATE(91)] = 1685, - [SMALL_STATE(92)] = 1695, - [SMALL_STATE(93)] = 1709, - [SMALL_STATE(94)] = 1723, - [SMALL_STATE(95)] = 1737, - [SMALL_STATE(96)] = 1750, - [SMALL_STATE(97)] = 1761, - [SMALL_STATE(98)] = 1774, - [SMALL_STATE(99)] = 1781, - [SMALL_STATE(100)] = 1794, - [SMALL_STATE(101)] = 1807, - [SMALL_STATE(102)] = 1818, - [SMALL_STATE(103)] = 1825, - [SMALL_STATE(104)] = 1838, - [SMALL_STATE(105)] = 1851, - [SMALL_STATE(106)] = 1864, - [SMALL_STATE(107)] = 1871, - [SMALL_STATE(108)] = 1880, - [SMALL_STATE(109)] = 1887, - [SMALL_STATE(110)] = 1894, - [SMALL_STATE(111)] = 1907, - [SMALL_STATE(112)] = 1918, - [SMALL_STATE(113)] = 1925, - [SMALL_STATE(114)] = 1934, - [SMALL_STATE(115)] = 1947, - [SMALL_STATE(116)] = 1958, - [SMALL_STATE(117)] = 1971, - [SMALL_STATE(118)] = 1984, - [SMALL_STATE(119)] = 1997, - [SMALL_STATE(120)] = 2010, - [SMALL_STATE(121)] = 2023, - [SMALL_STATE(122)] = 2036, - [SMALL_STATE(123)] = 2049, - [SMALL_STATE(124)] = 2055, - [SMALL_STATE(125)] = 2061, - [SMALL_STATE(126)] = 2071, - [SMALL_STATE(127)] = 2079, - [SMALL_STATE(128)] = 2089, - [SMALL_STATE(129)] = 2095, - [SMALL_STATE(130)] = 2105, - [SMALL_STATE(131)] = 2113, - [SMALL_STATE(132)] = 2119, - [SMALL_STATE(133)] = 2129, - [SMALL_STATE(134)] = 2139, - [SMALL_STATE(135)] = 2149, - [SMALL_STATE(136)] = 2157, - [SMALL_STATE(137)] = 2163, - [SMALL_STATE(138)] = 2173, - [SMALL_STATE(139)] = 2183, - [SMALL_STATE(140)] = 2193, - [SMALL_STATE(141)] = 2199, - [SMALL_STATE(142)] = 2207, - [SMALL_STATE(143)] = 2217, - [SMALL_STATE(144)] = 2227, - [SMALL_STATE(145)] = 2237, - [SMALL_STATE(146)] = 2247, - [SMALL_STATE(147)] = 2257, - [SMALL_STATE(148)] = 2265, - [SMALL_STATE(149)] = 2275, - [SMALL_STATE(150)] = 2285, - [SMALL_STATE(151)] = 2293, - [SMALL_STATE(152)] = 2303, - [SMALL_STATE(153)] = 2313, - [SMALL_STATE(154)] = 2321, - [SMALL_STATE(155)] = 2331, - [SMALL_STATE(156)] = 2336, - [SMALL_STATE(157)] = 2341, - [SMALL_STATE(158)] = 2348, - [SMALL_STATE(159)] = 2353, - [SMALL_STATE(160)] = 2358, - [SMALL_STATE(161)] = 2365, - [SMALL_STATE(162)] = 2372, - [SMALL_STATE(163)] = 2377, - [SMALL_STATE(164)] = 2384, - [SMALL_STATE(165)] = 2391, - [SMALL_STATE(166)] = 2396, - [SMALL_STATE(167)] = 2401, - [SMALL_STATE(168)] = 2406, - [SMALL_STATE(169)] = 2413, - [SMALL_STATE(170)] = 2420, - [SMALL_STATE(171)] = 2425, - [SMALL_STATE(172)] = 2432, - [SMALL_STATE(173)] = 2437, - [SMALL_STATE(174)] = 2442, - [SMALL_STATE(175)] = 2447, - [SMALL_STATE(176)] = 2454, - [SMALL_STATE(177)] = 2461, - [SMALL_STATE(178)] = 2466, - [SMALL_STATE(179)] = 2471, - [SMALL_STATE(180)] = 2478, - [SMALL_STATE(181)] = 2485, - [SMALL_STATE(182)] = 2490, - [SMALL_STATE(183)] = 2497, - [SMALL_STATE(184)] = 2502, - [SMALL_STATE(185)] = 2507, - [SMALL_STATE(186)] = 2514, - [SMALL_STATE(187)] = 2521, - [SMALL_STATE(188)] = 2528, - [SMALL_STATE(189)] = 2535, - [SMALL_STATE(190)] = 2542, - [SMALL_STATE(191)] = 2547, - [SMALL_STATE(192)] = 2554, - [SMALL_STATE(193)] = 2559, - [SMALL_STATE(194)] = 2564, - [SMALL_STATE(195)] = 2571, - [SMALL_STATE(196)] = 2578, - [SMALL_STATE(197)] = 2583, - [SMALL_STATE(198)] = 2590, - [SMALL_STATE(199)] = 2597, - [SMALL_STATE(200)] = 2602, - [SMALL_STATE(201)] = 2609, - [SMALL_STATE(202)] = 2616, - [SMALL_STATE(203)] = 2621, - [SMALL_STATE(204)] = 2626, - [SMALL_STATE(205)] = 2633, - [SMALL_STATE(206)] = 2638, - [SMALL_STATE(207)] = 2643, - [SMALL_STATE(208)] = 2648, - [SMALL_STATE(209)] = 2653, - [SMALL_STATE(210)] = 2660, - [SMALL_STATE(211)] = 2665, - [SMALL_STATE(212)] = 2672, - [SMALL_STATE(213)] = 2677, - [SMALL_STATE(214)] = 2684, - [SMALL_STATE(215)] = 2689, - [SMALL_STATE(216)] = 2694, - [SMALL_STATE(217)] = 2699, - [SMALL_STATE(218)] = 2703, - [SMALL_STATE(219)] = 2707, - [SMALL_STATE(220)] = 2711, - [SMALL_STATE(221)] = 2715, - [SMALL_STATE(222)] = 2719, - [SMALL_STATE(223)] = 2723, - [SMALL_STATE(224)] = 2727, - [SMALL_STATE(225)] = 2731, - [SMALL_STATE(226)] = 2735, - [SMALL_STATE(227)] = 2739, - [SMALL_STATE(228)] = 2743, - [SMALL_STATE(229)] = 2747, - [SMALL_STATE(230)] = 2751, - [SMALL_STATE(231)] = 2755, - [SMALL_STATE(232)] = 2759, - [SMALL_STATE(233)] = 2763, - [SMALL_STATE(234)] = 2767, - [SMALL_STATE(235)] = 2771, - [SMALL_STATE(236)] = 2775, - [SMALL_STATE(237)] = 2779, - [SMALL_STATE(238)] = 2783, - [SMALL_STATE(239)] = 2787, - [SMALL_STATE(240)] = 2791, - [SMALL_STATE(241)] = 2795, - [SMALL_STATE(242)] = 2799, - [SMALL_STATE(243)] = 2803, - [SMALL_STATE(244)] = 2807, - [SMALL_STATE(245)] = 2811, - [SMALL_STATE(246)] = 2815, - [SMALL_STATE(247)] = 2819, - [SMALL_STATE(248)] = 2823, - [SMALL_STATE(249)] = 2827, - [SMALL_STATE(250)] = 2831, - [SMALL_STATE(251)] = 2835, - [SMALL_STATE(252)] = 2839, - [SMALL_STATE(253)] = 2843, - [SMALL_STATE(254)] = 2847, - [SMALL_STATE(255)] = 2851, - [SMALL_STATE(256)] = 2855, - [SMALL_STATE(257)] = 2859, - [SMALL_STATE(258)] = 2863, - [SMALL_STATE(259)] = 2867, - [SMALL_STATE(260)] = 2871, - [SMALL_STATE(261)] = 2875, - [SMALL_STATE(262)] = 2879, - [SMALL_STATE(263)] = 2883, - [SMALL_STATE(264)] = 2887, - [SMALL_STATE(265)] = 2891, - [SMALL_STATE(266)] = 2895, - [SMALL_STATE(267)] = 2899, - [SMALL_STATE(268)] = 2903, - [SMALL_STATE(269)] = 2907, - [SMALL_STATE(270)] = 2911, - [SMALL_STATE(271)] = 2915, - [SMALL_STATE(272)] = 2919, - [SMALL_STATE(273)] = 2923, - [SMALL_STATE(274)] = 2927, - [SMALL_STATE(275)] = 2931, - [SMALL_STATE(276)] = 2935, - [SMALL_STATE(277)] = 2939, - [SMALL_STATE(278)] = 2943, - [SMALL_STATE(279)] = 2947, - [SMALL_STATE(280)] = 2951, - [SMALL_STATE(281)] = 2955, - [SMALL_STATE(282)] = 2959, - [SMALL_STATE(283)] = 2963, - [SMALL_STATE(284)] = 2967, - [SMALL_STATE(285)] = 2971, - [SMALL_STATE(286)] = 2975, - [SMALL_STATE(287)] = 2979, - [SMALL_STATE(288)] = 2983, - [SMALL_STATE(289)] = 2987, - [SMALL_STATE(290)] = 2991, - [SMALL_STATE(291)] = 2995, - [SMALL_STATE(292)] = 2999, - [SMALL_STATE(293)] = 3003, - [SMALL_STATE(294)] = 3007, - [SMALL_STATE(295)] = 3011, - [SMALL_STATE(296)] = 3015, - [SMALL_STATE(297)] = 3019, - [SMALL_STATE(298)] = 3023, - [SMALL_STATE(299)] = 3027, - [SMALL_STATE(300)] = 3031, - [SMALL_STATE(301)] = 3035, - [SMALL_STATE(302)] = 3039, - [SMALL_STATE(303)] = 3043, - [SMALL_STATE(304)] = 3047, -}; - -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(93), - [5] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), - [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(255), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(157), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [15] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), - [17] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(93), - [20] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(110), - [23] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(255), - [26] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(2), - [29] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(273), - [32] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(50), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(273), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [49] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1), - [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(297), - [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(206), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [65] = {.entry = {.count = 1, .reusable = false}}, SHIFT(224), - [67] = {.entry = {.count = 1, .reusable = false}}, SHIFT(228), - [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(229), - [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(301), - [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158), - [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [77] = {.entry = {.count = 1, .reusable = false}}, SHIFT(294), - [79] = {.entry = {.count = 1, .reusable = false}}, SHIFT(295), - [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(296), - [83] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(301), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), - [88] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(14), - [91] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(294), - [94] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(295), - [97] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(296), - [100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEReference, 3), - [104] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(297), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), - [109] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(17), - [112] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(224), - [115] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(228), - [118] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(229), - [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(182), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(181), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(256), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(293), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(183), - [133] = {.entry = {.count = 1, .reusable = false}}, SHIFT(298), - [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(299), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(300), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [141] = {.entry = {.count = 1, .reusable = false}}, SHIFT(302), - [143] = {.entry = {.count = 1, .reusable = false}}, SHIFT(303), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(304), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), - [155] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(302), - [158] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(303), - [161] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(304), - [164] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(23), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), - [175] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(298), - [178] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(299), - [181] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(300), - [184] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(26), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditionalSect, 7), - [197] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_conditionalSect, 7), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 7), - [201] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_AttlistDecl, 7), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 4), - [205] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_elementdecl, 7), - [207] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_elementdecl, 7), - [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cp, 1), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(185), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_elementdecl, 8), - [221] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_elementdecl, 8), - [223] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PEReference, 3), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PI, 5), - [227] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PI, 5), - [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PI, 3), - [231] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PI, 3), - [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 7), - [235] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_GEDecl, 7), - [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 3), - [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditionalSect, 4), - [241] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_conditionalSect, 4), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditionalSect, 6), - [245] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_conditionalSect, 6), - [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationDecl, 7), - [249] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_NotationDecl, 7), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(176), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEDecl, 9), - [257] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PEDecl, 9), - [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 9), - [261] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_GEDecl, 9), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationDecl, 8), - [265] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_NotationDecl, 8), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEDecl, 10), - [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PEDecl, 10), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EntityDecl, 1), - [273] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__EntityDecl, 1), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 8), - [277] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_GEDecl, 8), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_conditionalSect, 5), - [281] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_conditionalSect, 5), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__markupdecl, 1), - [285] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__markupdecl, 1), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 5), - [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 6), - [291] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_AttlistDecl, 6), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 5), - [295] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_AttlistDecl, 5), - [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(214), - [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(221), - [301] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), - [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(234), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(225), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 5), - [323] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 5), - [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_CharRef, 3), - [327] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_CharRef, 3), - [329] = {.entry = {.count = 1, .reusable = true}}, SHIFT(186), - [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(249), - [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityRef, 3), - [337] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_EntityRef, 3), - [339] = {.entry = {.count = 1, .reusable = true}}, SHIFT(171), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(175), - [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(232), - [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 6), - [347] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 6), - [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Reference, 1), - [351] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__Reference, 1), - [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 4), - [355] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 4), - [357] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), SHIFT_REPEAT(56), - [360] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), - [362] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), SHIFT_REPEAT(159), - [365] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [367] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [369] = {.entry = {.count = 1, .reusable = true}}, SHIFT(159), - [371] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_children, 1), - [373] = {.entry = {.count = 1, .reusable = true}}, SHIFT(208), - [375] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [377] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), - [379] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(113), - [382] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(249), - [385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161), - [387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [389] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [391] = {.entry = {.count = 1, .reusable = true}}, SHIFT(209), - [393] = {.entry = {.count = 1, .reusable = true}}, SHIFT(190), - [395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189), - [397] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), - [401] = {.entry = {.count = 1, .reusable = true}}, SHIFT(155), - [403] = {.entry = {.count = 1, .reusable = true}}, SHIFT(200), - [405] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 4), - [407] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169), - [409] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 3), - [411] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), - [413] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137), - [415] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(119), - [418] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), - [420] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(265), - [423] = {.entry = {.count = 1, .reusable = true}}, SHIFT(226), - [425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(265), - [427] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(102), - [430] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 3), - [432] = {.entry = {.count = 1, .reusable = true}}, SHIFT(280), - [434] = {.entry = {.count = 1, .reusable = true}}, SHIFT(279), - [436] = {.entry = {.count = 1, .reusable = true}}, SHIFT(278), - [438] = {.entry = {.count = 1, .reusable = true}}, SHIFT(277), - [440] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [444] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cp, 2), - [446] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 1), - [448] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 1), SHIFT_REPEAT(108), - [451] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttlistDecl_repeat1, 2), - [453] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttlistDecl_repeat1, 2), SHIFT_REPEAT(149), - [456] = {.entry = {.count = 1, .reusable = true}}, SHIFT(235), - [458] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [460] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), SHIFT_REPEAT(209), - [463] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), - [465] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), SHIFT_REPEAT(246), - [468] = {.entry = {.count = 1, .reusable = true}}, SHIFT(267), - [470] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150), - [472] = {.entry = {.count = 1, .reusable = true}}, SHIFT(151), - [474] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [476] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [478] = {.entry = {.count = 1, .reusable = true}}, SHIFT(210), - [480] = {.entry = {.count = 1, .reusable = true}}, SHIFT(211), - [482] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 5), - [484] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 4), - [486] = {.entry = {.count = 1, .reusable = true}}, SHIFT(241), - [488] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [490] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 1), - [492] = {.entry = {.count = 1, .reusable = true}}, SHIFT(207), - [494] = {.entry = {.count = 1, .reusable = true}}, SHIFT(258), - [496] = {.entry = {.count = 1, .reusable = true}}, SHIFT(262), - [498] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 4), - [500] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 3), - [502] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170), - [504] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 3), - [506] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [508] = {.entry = {.count = 1, .reusable = true}}, SHIFT(268), - [510] = {.entry = {.count = 1, .reusable = true}}, SHIFT(269), - [512] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 3), - [514] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 3), SHIFT_REPEAT(128), - [517] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), - [519] = {.entry = {.count = 1, .reusable = true}}, SHIFT(205), - [521] = {.entry = {.count = 1, .reusable = true}}, SHIFT(187), - [523] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [525] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 4), SHIFT_REPEAT(123), - [528] = {.entry = {.count = 1, .reusable = true}}, SHIFT(254), - [530] = {.entry = {.count = 1, .reusable = true}}, SHIFT(180), - [532] = {.entry = {.count = 1, .reusable = true}}, SHIFT(257), - [534] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [536] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 4), - [538] = {.entry = {.count = 1, .reusable = true}}, SHIFT(203), - [540] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(136), - [543] = {.entry = {.count = 1, .reusable = true}}, SHIFT(259), - [545] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 2), - [547] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196), - [549] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [551] = {.entry = {.count = 1, .reusable = true}}, SHIFT(198), - [553] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 4), - [555] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_SystemLiteral, 3), - [557] = {.entry = {.count = 1, .reusable = true}}, SHIFT(164), - [559] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163), - [561] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityValue, 3, .production_id = 1), - [563] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [565] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [567] = {.entry = {.count = 1, .reusable = true}}, SHIFT(237), - [569] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [571] = {.entry = {.count = 1, .reusable = true}}, SHIFT(272), - [573] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PublicID, 3), - [575] = {.entry = {.count = 1, .reusable = true}}, SHIFT(264), - [577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [579] = {.entry = {.count = 1, .reusable = true}}, SHIFT(261), - [581] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__VersionInfo, 6), - [583] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 9), - [585] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 8), - [587] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [589] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [591] = {.entry = {.count = 1, .reusable = true}}, SHIFT(218), - [593] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167), - [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(270), - [597] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 7), - [599] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 6), - [601] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ExternalID, 3), - [603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(172), - [605] = {.entry = {.count = 1, .reusable = true}}, SHIFT(266), - [607] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), - [609] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 6), - [611] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EnumeratedType, 1), - [613] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttDef, 4), - [615] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [617] = {.entry = {.count = 1, .reusable = true}}, SHIFT(284), - [619] = {.entry = {.count = 1, .reusable = true}}, SHIFT(244), - [621] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__AttType, 1), - [623] = {.entry = {.count = 1, .reusable = true}}, SHIFT(253), - [625] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), - [627] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttValue, 3, .production_id = 1), - [629] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_DefaultDecl, 3), - [631] = {.entry = {.count = 1, .reusable = true}}, SHIFT(173), - [633] = {.entry = {.count = 1, .reusable = true}}, SHIFT(263), - [635] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [637] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [639] = {.entry = {.count = 1, .reusable = true}}, SHIFT(239), - [641] = {.entry = {.count = 1, .reusable = true}}, SHIFT(195), - [643] = {.entry = {.count = 1, .reusable = true}}, SHIFT(177), - [645] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 5), - [647] = {.entry = {.count = 1, .reusable = true}}, SHIFT(219), - [649] = {.entry = {.count = 1, .reusable = true}}, SHIFT(260), - [651] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttValue, 2), - [653] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_contentspec, 1), - [655] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [657] = {.entry = {.count = 1, .reusable = true}}, SHIFT(222), - [659] = {.entry = {.count = 1, .reusable = true}}, SHIFT(245), - [661] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), - [663] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 3), - [665] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [667] = {.entry = {.count = 1, .reusable = true}}, SHIFT(275), - [669] = {.entry = {.count = 1, .reusable = true}}, SHIFT(281), - [671] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EncodingDecl, 6), - [673] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [675] = {.entry = {.count = 1, .reusable = true}}, SHIFT(223), - [677] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 6), - [679] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 5), - [681] = {.entry = {.count = 1, .reusable = true}}, SHIFT(233), - [683] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NDataDecl, 4), - [685] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityValue, 2), - [687] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_children, 2), - [689] = {.entry = {.count = 1, .reusable = true}}, SHIFT(231), - [691] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), - [693] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 3), - [695] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ExternalID, 5), - [697] = {.entry = {.count = 1, .reusable = true}}, SHIFT(240), - [699] = {.entry = {.count = 1, .reusable = true}}, SHIFT(250), - [701] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_DefaultDecl, 1), - [703] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PubidLiteral, 3), - [705] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttDef, 6), - [707] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165), - [709] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [711] = {.entry = {.count = 1, .reusable = true}}, SHIFT(236), - [713] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [715] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), - [717] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [719] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [721] = {.entry = {.count = 1, .reusable = true}}, SHIFT(238), - [723] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [725] = {.entry = {.count = 1, .reusable = true}}, SHIFT(202), - [727] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [729] = {.entry = {.count = 1, .reusable = true}}, SHIFT(220), - [731] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), - [733] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146), - [735] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148), - [737] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [739] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [741] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [743] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [745] = {.entry = {.count = 1, .reusable = true}}, SHIFT(274), - [747] = {.entry = {.count = 1, .reusable = true}}, SHIFT(153), - [749] = {.entry = {.count = 1, .reusable = true}}, SHIFT(215), - [751] = {.entry = {.count = 1, .reusable = true}}, SHIFT(227), - [753] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [755] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156), - [757] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [759] = {.entry = {.count = 1, .reusable = true}}, SHIFT(271), - [761] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [763] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [765] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [767] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [769] = {.entry = {.count = 1, .reusable = true}}, SHIFT(276), - [771] = {.entry = {.count = 1, .reusable = true}}, SHIFT(252), - [773] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [775] = {.entry = {.count = 1, .reusable = true}}, SHIFT(248), - [777] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [779] = {.entry = {.count = 1, .reusable = true}}, SHIFT(217), - [781] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [783] = {.entry = {.count = 1, .reusable = true}}, SHIFT(247), - [785] = {.entry = {.count = 1, .reusable = true}}, SHIFT(251), - [787] = {.entry = {.count = 1, .reusable = true}}, SHIFT(243), - [789] = {.entry = {.count = 1, .reusable = true}}, SHIFT(242), - [791] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166), - [793] = {.entry = {.count = 1, .reusable = true}}, SHIFT(199), - [795] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [797] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [799] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), - [801] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144), - [803] = {.entry = {.count = 1, .reusable = true}}, SHIFT(145), - [805] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152), - [807] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138), - [809] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [811] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [813] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [815] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [817] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [819] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [821] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [823] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [825] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [827] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [829] = {.entry = {.count = 1, .reusable = true}}, SHIFT(285), - [831] = {.entry = {.count = 1, .reusable = true}}, SHIFT(286), - [833] = {.entry = {.count = 1, .reusable = true}}, SHIFT(287), - [835] = {.entry = {.count = 1, .reusable = true}}, SHIFT(288), - [837] = {.entry = {.count = 1, .reusable = true}}, SHIFT(289), - [839] = {.entry = {.count = 1, .reusable = true}}, SHIFT(290), - [841] = {.entry = {.count = 1, .reusable = true}}, SHIFT(291), - [843] = {.entry = {.count = 1, .reusable = true}}, SHIFT(292), -}; - -#ifdef __cplusplus -extern "C" { -#endif -void *tree_sitter_dtd_external_scanner_create(void); -void tree_sitter_dtd_external_scanner_destroy(void *); -bool tree_sitter_dtd_external_scanner_scan(void *, TSLexer *, const bool *); -unsigned tree_sitter_dtd_external_scanner_serialize(void *, char *); -void tree_sitter_dtd_external_scanner_deserialize(void *, const char *, unsigned); - -#ifdef _WIN32 -#define extern __declspec(dllexport) -#endif - -extern const TSLanguage *tree_sitter_dtd(void) { - static const TSLanguage language = { - .version = LANGUAGE_VERSION, - .symbol_count = SYMBOL_COUNT, - .alias_count = ALIAS_COUNT, - .token_count = TOKEN_COUNT, - .external_token_count = EXTERNAL_TOKEN_COUNT, - .state_count = STATE_COUNT, - .large_state_count = LARGE_STATE_COUNT, - .production_id_count = PRODUCTION_ID_COUNT, - .field_count = FIELD_COUNT, - .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, - .parse_table = &ts_parse_table[0][0], - .small_parse_table = ts_small_parse_table, - .small_parse_table_map = ts_small_parse_table_map, - .parse_actions = ts_parse_actions, - .symbol_names = ts_symbol_names, - .field_names = ts_field_names, - .field_map_slices = ts_field_map_slices, - .field_map_entries = ts_field_map_entries, - .symbol_metadata = ts_symbol_metadata, - .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_fn = ts_lex, - .keyword_lex_fn = ts_lex_keywords, - .keyword_capture_token = sym_Name, - .external_scanner = { - &ts_external_scanner_states[0][0], - ts_external_scanner_symbol_map, - tree_sitter_dtd_external_scanner_create, - tree_sitter_dtd_external_scanner_destroy, - tree_sitter_dtd_external_scanner_scan, - tree_sitter_dtd_external_scanner_serialize, - tree_sitter_dtd_external_scanner_deserialize, - }, - .primary_state_ids = ts_primary_state_ids, - }; - return &language; -} -#ifdef __cplusplus -} -#endif diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/scanner.c b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/scanner.c deleted file mode 100644 index d78111567f..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/scanner.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "../../common/scanner.h" - -/// Check if the lexer is in error recovery mode -static inline bool in_error_recovery(const bool *valid_symbols) { - return valid_symbols[PI_TARGET] && valid_symbols[PI_CONTENT] && valid_symbols[COMMENT]; -} - -bool tree_sitter_dtd_external_scanner_scan(void *payload, TSLexer *lexer, const bool *valid_symbols) { - if (in_error_recovery(valid_symbols)) return false; - - if (valid_symbols[PI_TARGET]) return scan_pi_target(lexer, valid_symbols); - - if (valid_symbols[PI_CONTENT]) return scan_pi_content(lexer); - - if (valid_symbols[COMMENT]) return scan_comment(lexer); - - return false; -} - -SCANNER_BOILERPLATE(dtd) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/tree_sitter/parser.h b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/tree_sitter/parser.h deleted file mode 100644 index 2b14ac1046..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/src/tree_sitter/parser.h +++ /dev/null @@ -1,224 +0,0 @@ -#ifndef TREE_SITTER_PARSER_H_ -#define TREE_SITTER_PARSER_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -#define ts_builtin_sym_error ((TSSymbol)-1) -#define ts_builtin_sym_end 0 -#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024 - -typedef uint16_t TSStateId; - -#ifndef TREE_SITTER_API_H_ -typedef uint16_t TSSymbol; -typedef uint16_t TSFieldId; -typedef struct TSLanguage TSLanguage; -#endif - -typedef struct { - TSFieldId field_id; - uint8_t child_index; - bool inherited; -} TSFieldMapEntry; - -typedef struct { - uint16_t index; - uint16_t length; -} TSFieldMapSlice; - -typedef struct { - bool visible; - bool named; - bool supertype; -} TSSymbolMetadata; - -typedef struct TSLexer TSLexer; - -struct TSLexer { - int32_t lookahead; - TSSymbol result_symbol; - void (*advance)(TSLexer *, bool); - void (*mark_end)(TSLexer *); - uint32_t (*get_column)(TSLexer *); - bool (*is_at_included_range_start)(const TSLexer *); - bool (*eof)(const TSLexer *); -}; - -typedef enum { - TSParseActionTypeShift, - TSParseActionTypeReduce, - TSParseActionTypeAccept, - TSParseActionTypeRecover, -} TSParseActionType; - -typedef union { - struct { - uint8_t type; - TSStateId state; - bool extra; - bool repetition; - } shift; - struct { - uint8_t type; - uint8_t child_count; - TSSymbol symbol; - int16_t dynamic_precedence; - uint16_t production_id; - } reduce; - uint8_t type; -} TSParseAction; - -typedef struct { - uint16_t lex_state; - uint16_t external_lex_state; -} TSLexMode; - -typedef union { - TSParseAction action; - struct { - uint8_t count; - bool reusable; - } entry; -} TSParseActionEntry; - -struct TSLanguage { - uint32_t version; - uint32_t symbol_count; - uint32_t alias_count; - uint32_t token_count; - uint32_t external_token_count; - uint32_t state_count; - uint32_t large_state_count; - uint32_t production_id_count; - uint32_t field_count; - uint16_t max_alias_sequence_length; - const uint16_t *parse_table; - const uint16_t *small_parse_table; - const uint32_t *small_parse_table_map; - const TSParseActionEntry *parse_actions; - const char * const *symbol_names; - const char * const *field_names; - const TSFieldMapSlice *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; - bool (*lex_fn)(TSLexer *, TSStateId); - bool (*keyword_lex_fn)(TSLexer *, TSStateId); - TSSymbol keyword_capture_token; - struct { - const bool *states; - const TSSymbol *symbol_map; - void *(*create)(void); - void (*destroy)(void *); - bool (*scan)(void *, TSLexer *, const bool *symbol_whitelist); - unsigned (*serialize)(void *, char *); - void (*deserialize)(void *, const char *, unsigned); - } external_scanner; - const TSStateId *primary_state_ids; -}; - -/* - * Lexer Macros - */ - -#define START_LEXER() \ - bool result = false; \ - bool skip = false; \ - bool eof = false; \ - int32_t lookahead; \ - goto start; \ - next_state: \ - lexer->advance(lexer, skip); \ - start: \ - skip = false; \ - lookahead = lexer->lookahead; - -#define ADVANCE(state_value) \ - { \ - state = state_value; \ - goto next_state; \ - } - -#define SKIP(state_value) \ - { \ - skip = true; \ - state = state_value; \ - goto next_state; \ - } - -#define ACCEPT_TOKEN(symbol_value) \ - result = true; \ - lexer->result_symbol = symbol_value; \ - lexer->mark_end(lexer); - -#define END_STATE() return result; - -/* - * Parse Table Macros - */ - -#define SMALL_STATE(id) id - LARGE_STATE_COUNT - -#define STATE(id) id - -#define ACTIONS(id) id - -#define SHIFT(state_value) \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .state = state_value \ - } \ - }} - -#define SHIFT_REPEAT(state_value) \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .state = state_value, \ - .repetition = true \ - } \ - }} - -#define SHIFT_EXTRA() \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .extra = true \ - } \ - }} - -#define REDUCE(symbol_val, child_count_val, ...) \ - {{ \ - .reduce = { \ - .type = TSParseActionTypeReduce, \ - .symbol = symbol_val, \ - .child_count = child_count_val, \ - __VA_ARGS__ \ - }, \ - }} - -#define RECOVER() \ - {{ \ - .type = TSParseActionTypeRecover \ - }} - -#define ACCEPT_INPUT() \ - {{ \ - .type = TSParseActionTypeAccept \ - }} - -#ifdef __cplusplus -} -#endif - -#endif // TREE_SITTER_PARSER_H_ diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/examples.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/examples.txt deleted file mode 100644 index a96da89917..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/examples.txt +++ /dev/null @@ -1,68 +0,0 @@ -================================================================================ -BookStore.dtd -================================================================================ - - - - - - - - - - - - --------------------------------------------------------------------------------- - -(document - (elementdecl - (Name) - (contentspec - (children - (Name)))) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (AttlistDecl - (Name) - (AttDef - (Name) - (StringType) - (DefaultDecl))) - (AttlistDecl - (Name) - (AttDef - (Name) - (StringType))) - (AttlistDecl - (Name) - (AttDef - (Name) - (StringType)))) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/standard.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/standard.txt deleted file mode 100644 index b34837add5..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-dtd/test/corpus/standard.txt +++ /dev/null @@ -1,214 +0,0 @@ -================================================================================ -Element Declarations -================================================================================ - - - - - - - - - - - - - - --------------------------------------------------------------------------------- - -(document - (elementdecl - (Name) - (contentspec)) - (elementdecl - (Name) - (contentspec - (Mixed - (Name)))) - (elementdecl - (PEReference - (Name)) - (contentspec - (PEReference - (Name)))) - (elementdecl - (Name) - (contentspec)) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name) - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (Mixed - (PEReference - (Name)) - (PEReference - (Name))))) - (elementdecl - (Name) - (contentspec - (Mixed - (Name) - (Name) - (Name) - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (Mixed - (PEReference - (Name)) - (PEReference - (Name)) - (PEReference - (Name)) - (PEReference - (Name))))) - (elementdecl - (Name) - (contentspec - (Mixed)))) - -================================================================================ -Attribute-List Declarations -================================================================================ - - - - - --------------------------------------------------------------------------------- - -(document - (AttlistDecl - (Name) - (AttDef - (Name) - (TokenizedType) - (DefaultDecl)) - (AttDef - (Name) - (StringType) - (DefaultDecl))) - (AttlistDecl - (Name) - (AttDef - (Name) - (Enumeration - (Nmtoken) - (Nmtoken) - (Nmtoken)) - (DefaultDecl - (AttValue)))) - (AttlistDecl - (Name) - (AttDef - (Name) - (StringType) - (DefaultDecl - (AttValue))))) - -================================================================================ -Entity Declarations -================================================================================ - - - - - - - --------------------------------------------------------------------------------- - -(document - (GEDecl - (Name) - (EntityValue)) - (GEDecl - (Name) - (ExternalID - (SystemLiteral - (URI)))) - (GEDecl - (Name) - (ExternalID - (PubidLiteral) - (SystemLiteral - (URI)))) - (GEDecl - (Name) - (ExternalID - (SystemLiteral - (URI))) - (NDataDecl - (Name)))) - -================================================================================ -Conditional Sections -================================================================================ - - - - -]]> - -]]> - --------------------------------------------------------------------------------- - -(document - (PEDecl - (Name) - (EntityValue)) - (PEDecl - (Name) - (EntityValue)) - (conditionalSect - (PEReference - (Name)) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name) - (Name))))) - (conditionalSect - (PEReference - (Name)) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name)))))) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/grammar.js b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/grammar.js deleted file mode 100644 index 9d53c75061..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/grammar.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @file Tree-sitter grammar definition for XML - * @author ObserverOfTime - * @license MIT - * @see {@link https://www.w3.org/TR/xml/|XML standard} - * @see {@link https://www.w3.org/TR/xml-model/|XML model} - * @see {@link https://www.w3.org/TR/xml-stylesheet/|XML stylesheet} - */ -// @ts-nocheck - -const c = require('../common'); - -const DTD = require('../tree-sitter-dtd/grammar'); - -const O = optional; - -module.exports = grammar(DTD, { - name: 'xml', - - externals: ($, previous) => previous.concat([ - $.CharData, - $.CData, - 'xml-model', - 'xml-stylesheet', - ]), - - inline: $ => [ - $._extSubsetDecl, - $.conditionalSect, - ], - - rules: { - document: $ => prec(2, seq( - O($._S), - O($.prolog), - field('root', $.element), - repeat($._Misc), - )), - - prolog: $ => choice( - seq( - $.XMLDecl, - repeat($._Misc), - ), - seq( - O($.XMLDecl), - repeat($._Misc), - $.doctypedecl, - repeat($._Misc), - ), - repeat1($._Misc) - ), - - _Misc: $ => choice( - $.PI, - $.StyleSheetPI, - $.XmlModelPI, - $.Comment, - $._S - ), - - XMLDecl: $ => seq( - '' - ), - - _SDDecl: $ => seq( - $._S, - 'standalone', - $._Eq, - c.str(choice('yes', 'no')) - ), - - doctypedecl: $ => seq( - '' - ), - - _intSubset: $ => c.rseq1( - O($._S), - $._markupdecl, - $._DeclSep - ), - - element: $ => choice( - $.EmptyElemTag, - seq($.STag, O($.content), $.ETag) - ), - - EmptyElemTag: $ => seq( - '<', - $.Name, - c.rseq($._S, $.Attribute), - O($._S), - '/>' - ), - - Attribute: $ => seq($.Name, $._Eq, $.AttValue), - - STag: $ => seq( - '<', - $.Name, - c.rseq($._S, $.Attribute), - O($._S), - '>' - ), - - ETag: $ => seq(''), - - content: $ => repeat1( - choice( - $.CharData, - $.element, - $._Reference, - $.CDSect, - $.PI, - $.Comment - ) - ), - - CDSect: $ => prec.left( - seq($.CDStart, $.CData, ']]>') - ), - - CDStart: _ => seq(' seq( - '' - ), - - XmlModelPI: $ => seq( - '' - ), - - PseudoAtt: $ => seq($.Name, $._Eq, $.PseudoAttValue), - - PseudoAttValue: $ => choice( - c.att_value($, '"'), - c.att_value($, "'") - ) - } -}); diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/package.json b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/package.json deleted file mode 100644 index 903b9be012..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "../bindings/node/xml" -} diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/queries/highlights.scm b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/queries/highlights.scm deleted file mode 100644 index a99f775431..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/queries/highlights.scm +++ /dev/null @@ -1,171 +0,0 @@ -;; XML declaration - -(XMLDecl "xml" @keyword) - -(XMLDecl [ "version" "encoding" "standalone" ] @property) - -(XMLDecl (EncName) @string.special) - -(XMLDecl (VersionNum) @number) - -(XMLDecl [ "yes" "no" ] @boolean) - -;; Processing instructions - -(PI) @embedded - -(PI (PITarget) @keyword) - -;; Element declaration - -(elementdecl - "ELEMENT" @keyword - (Name) @tag) - -(contentspec - (_ (Name) @property)) - -"#PCDATA" @type.builtin - -[ "EMPTY" "ANY" ] @string.special.symbol - -[ "*" "?" "+" ] @operator - -;; Entity declaration - -(GEDecl - "ENTITY" @keyword - (Name) @constant) - -(GEDecl (EntityValue) @string) - -(NDataDecl - "NDATA" @keyword - (Name) @label) - -;; Parsed entity declaration - -(PEDecl - "ENTITY" @keyword - "%" @operator - (Name) @constant) - -(PEDecl (EntityValue) @string) - -;; Notation declaration - -(NotationDecl - "NOTATION" @keyword - (Name) @constant) - -(NotationDecl - (ExternalID - (SystemLiteral (URI) @string.special))) - -;; Attlist declaration - -(AttlistDecl - "ATTLIST" @keyword - (Name) @tag) - -(AttDef (Name) @property) - -(AttDef (Enumeration (Nmtoken) @string)) - -[ - (StringType) - (TokenizedType) -] @type.builtin - -(NotationType "NOTATION" @type.builtin) - -[ - "#REQUIRED" - "#IMPLIED" - "#FIXED" -] @attribute - -;; Entities - -(EntityRef) @constant - -((EntityRef) @constant.builtin - (#any-of? @constant.builtin - "&" "<" ">" """ "'")) - -(CharRef) @constant - -(PEReference) @constant - -;; External references - -[ "PUBLIC" "SYSTEM" ] @keyword - -(PubidLiteral) @string.special - -(SystemLiteral (URI) @markup.link) - -;; Processing instructions - -(XmlModelPI "xml-model" @keyword) - -(StyleSheetPI "xml-stylesheet" @keyword) - -(PseudoAtt (Name) @property) - -(PseudoAtt (PseudoAttValue) @string) - -;; Doctype declaration - -(doctypedecl "DOCTYPE" @keyword) - -(doctypedecl (Name) @type) - -;; Tags - -(STag (Name) @tag) - -(ETag (Name) @tag) - -(EmptyElemTag (Name) @tag) - -;; Attributes - -(Attribute (Name) @property) - -(Attribute (AttValue) @string) - -;; Text - -(CharData) @markup - -(CDSect - (CDStart) @markup.heading - (CData) @markup.raw - "]]>" @markup.heading) - -;; Delimiters & punctuation - -[ - "" - "" - "<" ">" - "" -] @punctuation.delimiter - -[ - "(" ")" - "[" "]" -] @punctuation.bracket - -[ "\"" "'" ] @punctuation.delimiter - -[ "," "|" "=" ] @operator - -;; Misc - -[ "INCLUDE" "IGNORE" ] @keyword - -(Comment) @comment - -(ERROR) @error diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/grammar.json b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/grammar.json deleted file mode 100644 index 0ed3442bfd..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/grammar.json +++ /dev/null @@ -1,2648 +0,0 @@ -{ - "name": "xml", - "word": "Name", - "rules": { - "document": { - "type": "PREC", - "value": 2, - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "prolog" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "FIELD", - "name": "root", - "content": { - "type": "SYMBOL", - "name": "element" - } - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "_Misc" - } - } - ] - } - }, - "_extSubsetDecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_markupdecl" - }, - { - "type": "SYMBOL", - "name": "conditionalSect" - }, - { - "type": "SYMBOL", - "name": "_DeclSep" - } - ] - }, - "conditionalSect": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_markupdecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "elementdecl" - }, - { - "type": "SYMBOL", - "name": "AttlistDecl" - }, - { - "type": "SYMBOL", - "name": "_EntityDecl" - }, - { - "type": "SYMBOL", - "name": "NotationDecl" - }, - { - "type": "SYMBOL", - "name": "PI" - }, - { - "type": "SYMBOL", - "name": "Comment" - } - ] - }, - "_DeclSep": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_S" - } - ] - }, - "elementdecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "contentspec": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "EMPTY" - }, - { - "type": "STRING", - "value": "ANY" - }, - { - "type": "SYMBOL", - "name": "Mixed" - }, - { - "type": "SYMBOL", - "name": "children" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - "Mixed": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#PCDATA" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - { - "type": "STRING", - "value": ")" - }, - { - "type": "STRING", - "value": "*" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#PCDATA" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - } - ] - }, - "children": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_choice" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "?" - }, - { - "type": "STRING", - "value": "*" - }, - { - "type": "STRING", - "value": "+" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - }, - "_cp": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "_choice" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "?" - }, - { - "type": "STRING", - "value": "*" - }, - { - "type": "STRING", - "value": "+" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - "_choice": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "_cp" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "|" - }, - { - "type": "STRING", - "value": "," - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "_cp" - } - ] - } - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "AttlistDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "AttDef": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "_AttType" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "DefaultDecl" - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - "_AttType": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "StringType" - }, - { - "type": "SYMBOL", - "name": "TokenizedType" - }, - { - "type": "SYMBOL", - "name": "_EnumeratedType" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - "StringType": { - "type": "STRING", - "value": "CDATA" - }, - "TokenizedType": { - "type": "TOKEN", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "ID" - }, - { - "type": "STRING", - "value": "IDREF" - }, - { - "type": "STRING", - "value": "IDREFS" - }, - { - "type": "STRING", - "value": "ENTITY" - }, - { - "type": "STRING", - "value": "ENTITIES" - }, - { - "type": "STRING", - "value": "NMTOKEN" - }, - { - "type": "STRING", - "value": "NMTOKENS" - } - ] - } - }, - "_EnumeratedType": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "NotationType" - }, - { - "type": "SYMBOL", - "name": "Enumeration" - } - ] - }, - "NotationType": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "NOTATION" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "Enumeration": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "(" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "Nmtoken" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "|" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "Nmtoken" - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ")" - } - ] - }, - "DefaultDecl": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "#REQUIRED" - }, - { - "type": "STRING", - "value": "#IMPLIED" - }, - { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "#FIXED" - }, - { - "type": "SYMBOL", - "name": "_S" - } - ] - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "AttValue" - } - ] - } - ] - }, - "_EntityDecl": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "GEDecl" - }, - { - "type": "SYMBOL", - "name": "PEDecl" - } - ] - }, - "GEDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "PEDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "EntityValue": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<%&\"]" - }, - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<%&']" - }, - { - "type": "SYMBOL", - "name": "PEReference" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "NDataDecl": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "NDATA" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - } - ] - }, - "NotationDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "PEReference": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "%" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - "_S": { - "type": "PATTERN", - "value": "[ \\t\\r\\n]+" - }, - "Name": { - "type": "PATTERN", - "value": "[a-zA-Z_][a-zA-Z0-9_:.·-]*" - }, - "Nmtoken": { - "type": "PATTERN", - "value": "[a-zA-Z0-9_:.·-]+" - }, - "_Reference": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "EntityRef" - }, - { - "type": "SYMBOL", - "name": "CharRef" - } - ] - }, - "EntityRef": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - "CharRef": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&#" - }, - { - "type": "PATTERN", - "value": "[0-9]+" - }, - { - "type": "STRING", - "value": ";" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "&#x" - }, - { - "type": "PATTERN", - "value": "[0-9a-fA-F]+" - }, - { - "type": "STRING", - "value": ";" - } - ] - } - ] - }, - "AttValue": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&\"]" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&']" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "ExternalID": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "SYSTEM" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "SystemLiteral" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "PUBLIC" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "PubidLiteral" - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "SystemLiteral" - } - ] - } - ] - }, - "PublicID": { - "type": "PREC_RIGHT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "PUBLIC" - }, - { - "type": "SYMBOL", - "name": "PEReference" - } - ] - }, - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "PubidLiteral" - } - ] - } - }, - "SystemLiteral": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "ALIAS", - "content": { - "type": "PATTERN", - "value": "[^\"]*" - }, - "named": true, - "value": "URI" - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "ALIAS", - "content": { - "type": "PATTERN", - "value": "[^']*" - }, - "named": true, - "value": "URI" - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "PubidLiteral": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "PATTERN", - "value": "[ \\r\\na-zA-Z0-9\\-'()+,./:=?;!*#@$_%]*" - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "PATTERN", - "value": "[ \\r\\na-zA-Z0-9\\-()+,./:=?;!*#@$_%]*" - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - }, - "XMLDecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_VersionInfo": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "version" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "SYMBOL", - "name": "VersionNum" - }, - { - "type": "STRING", - "value": "'" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "SYMBOL", - "name": "VersionNum" - }, - { - "type": "STRING", - "value": "\"" - } - ] - } - ] - } - ] - }, - "VersionNum": { - "type": "PATTERN", - "value": "1\\.[0-9]+" - }, - "_EncodingDecl": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "encoding" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "SYMBOL", - "name": "EncName" - }, - { - "type": "STRING", - "value": "'" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "SYMBOL", - "name": "EncName" - }, - { - "type": "STRING", - "value": "\"" - } - ] - } - ] - } - ] - }, - "EncName": { - "type": "PATTERN", - "value": "[A-Za-z][A-Za-z0-9._\\-]*" - }, - "PI": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_Eq": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "=" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - } - ] - }, - "prolog": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "XMLDecl" - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "_Misc" - } - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "XMLDecl" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "_Misc" - } - }, - { - "type": "SYMBOL", - "name": "doctypedecl" - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "_Misc" - } - } - ] - }, - { - "type": "REPEAT1", - "content": { - "type": "SYMBOL", - "name": "_Misc" - } - } - ] - }, - "_Misc": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "PI" - }, - { - "type": "SYMBOL", - "name": "StyleSheetPI" - }, - { - "type": "SYMBOL", - "name": "XmlModelPI" - }, - { - "type": "SYMBOL", - "name": "Comment" - }, - { - "type": "SYMBOL", - "name": "_S" - } - ] - }, - "_SDDecl": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "STRING", - "value": "standalone" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "yes" - }, - { - "type": "STRING", - "value": "no" - } - ] - }, - { - "type": "STRING", - "value": "'" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "yes" - }, - { - "type": "STRING", - "value": "no" - } - ] - }, - { - "type": "STRING", - "value": "\"" - } - ] - } - ] - } - ] - }, - "doctypedecl": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "_intSubset": { - "type": "REPEAT1", - "content": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "_markupdecl" - }, - { - "type": "SYMBOL", - "name": "_DeclSep" - } - ] - } - }, - "element": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "EmptyElemTag" - }, - { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "STag" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "content" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SYMBOL", - "name": "ETag" - } - ] - } - ] - }, - "EmptyElemTag": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "<" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "Attribute" - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "/>" - } - ] - }, - "Attribute": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "SYMBOL", - "name": "AttValue" - } - ] - }, - "STag": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "<" - }, - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "SYMBOL", - "name": "Attribute" - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_S" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": ">" - } - ] - }, - "ETag": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "content": { - "type": "REPEAT1", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "CharData" - }, - { - "type": "SYMBOL", - "name": "element" - }, - { - "type": "SYMBOL", - "name": "_Reference" - }, - { - "type": "SYMBOL", - "name": "CDSect" - }, - { - "type": "SYMBOL", - "name": "PI" - }, - { - "type": "SYMBOL", - "name": "Comment" - } - ] - } - }, - "CDSect": { - "type": "PREC_LEFT", - "value": 0, - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "CDStart" - }, - { - "type": "SYMBOL", - "name": "CData" - }, - { - "type": "STRING", - "value": "]]>" - } - ] - } - }, - "CDStart": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "XmlModelPI": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "" - } - ] - }, - "PseudoAtt": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "Name" - }, - { - "type": "SYMBOL", - "name": "_Eq" - }, - { - "type": "SYMBOL", - "name": "PseudoAttValue" - } - ] - }, - "PseudoAttValue": { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&\"]" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "\"" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "FIELD", - "name": "content", - "content": { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[^<&']" - }, - { - "type": "SYMBOL", - "name": "_Reference" - } - ] - } - } - }, - { - "type": "STRING", - "value": "'" - } - ] - } - ] - } - }, - "extras": [], - "conflicts": [], - "precedences": [], - "externals": [ - { - "type": "SYMBOL", - "name": "PITarget" - }, - { - "type": "SYMBOL", - "name": "_pi_content" - }, - { - "type": "SYMBOL", - "name": "Comment" - }, - { - "type": "SYMBOL", - "name": "CharData" - }, - { - "type": "SYMBOL", - "name": "CData" - }, - { - "type": "STRING", - "value": "xml-model" - }, - { - "type": "STRING", - "value": "xml-stylesheet" - } - ], - "inline": [ - "_extSubsetDecl", - "conditionalSect" - ], - "supertypes": [ - "_markupdecl", - "_AttType", - "_EnumeratedType", - "_EntityDecl", - "_Reference" - ] -} - diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/node-types.json b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/node-types.json deleted file mode 100644 index c7bfacf527..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/node-types.json +++ /dev/null @@ -1,1114 +0,0 @@ -[ - { - "type": "_AttType", - "named": true, - "subtypes": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "StringType", - "named": true - }, - { - "type": "TokenizedType", - "named": true - }, - { - "type": "_EnumeratedType", - "named": true - } - ] - }, - { - "type": "_EntityDecl", - "named": true, - "subtypes": [ - { - "type": "GEDecl", - "named": true - }, - { - "type": "PEDecl", - "named": true - } - ] - }, - { - "type": "_EnumeratedType", - "named": true, - "subtypes": [ - { - "type": "Enumeration", - "named": true - }, - { - "type": "NotationType", - "named": true - } - ] - }, - { - "type": "_Reference", - "named": true, - "subtypes": [ - { - "type": "CharRef", - "named": true - }, - { - "type": "EntityRef", - "named": true - } - ] - }, - { - "type": "_markupdecl", - "named": true, - "subtypes": [ - { - "type": "AttlistDecl", - "named": true - }, - { - "type": "Comment", - "named": true - }, - { - "type": "NotationDecl", - "named": true - }, - { - "type": "PI", - "named": true - }, - { - "type": "_EntityDecl", - "named": true - }, - { - "type": "elementdecl", - "named": true - } - ] - }, - { - "type": "AttDef", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "DefaultDecl", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "_AttType", - "named": true - } - ] - } - }, - { - "type": "AttValue", - "named": true, - "fields": { - "content": { - "multiple": true, - "required": false, - "types": [ - { - "type": "_Reference", - "named": true - } - ] - } - } - }, - { - "type": "AttlistDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "AttDef", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "Attribute", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "AttValue", - "named": true - }, - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "CDSect", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "CDStart", - "named": true - }, - { - "type": "CData", - "named": true - } - ] - } - }, - { - "type": "CDStart", - "named": true, - "fields": {} - }, - { - "type": "CharRef", - "named": true, - "fields": {} - }, - { - "type": "DefaultDecl", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": false, - "types": [ - { - "type": "AttValue", - "named": true - } - ] - } - }, - { - "type": "ETag", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "EmptyElemTag", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Attribute", - "named": true - }, - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "EntityRef", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "EntityValue", - "named": true, - "fields": { - "content": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "_Reference", - "named": true - } - ] - } - } - }, - { - "type": "Enumeration", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Nmtoken", - "named": true - } - ] - } - }, - { - "type": "ExternalID", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "PubidLiteral", - "named": true - }, - { - "type": "SystemLiteral", - "named": true - } - ] - } - }, - { - "type": "GEDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EntityValue", - "named": true - }, - { - "type": "ExternalID", - "named": true - }, - { - "type": "NDataDecl", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "Mixed", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "NDataDecl", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "NotationDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "ExternalID", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "PublicID", - "named": true - } - ] - } - }, - { - "type": "NotationType", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "PEDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EntityValue", - "named": true - }, - { - "type": "ExternalID", - "named": true - }, - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "PEReference", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "PI", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "PITarget", - "named": true - } - ] - } - }, - { - "type": "PseudoAtt", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PseudoAttValue", - "named": true - } - ] - } - }, - { - "type": "PseudoAttValue", - "named": true, - "fields": { - "content": { - "multiple": true, - "required": false, - "types": [ - { - "type": "_Reference", - "named": true - } - ] - } - } - }, - { - "type": "PubidLiteral", - "named": true, - "fields": {} - }, - { - "type": "PublicID", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "PEReference", - "named": true - }, - { - "type": "PubidLiteral", - "named": true - } - ] - } - }, - { - "type": "STag", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Attribute", - "named": true - }, - { - "type": "Name", - "named": true - } - ] - } - }, - { - "type": "StringType", - "named": true, - "fields": {} - }, - { - "type": "StyleSheetPI", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PseudoAtt", - "named": true - } - ] - } - }, - { - "type": "SystemLiteral", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "URI", - "named": true - } - ] - } - }, - { - "type": "XMLDecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "EncName", - "named": true - }, - { - "type": "VersionNum", - "named": true - } - ] - } - }, - { - "type": "XmlModelPI", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "PseudoAtt", - "named": true - } - ] - } - }, - { - "type": "children", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - } - ] - } - }, - { - "type": "content", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "CDSect", - "named": true - }, - { - "type": "CharData", - "named": true - }, - { - "type": "Comment", - "named": true - }, - { - "type": "PI", - "named": true - }, - { - "type": "_Reference", - "named": true - }, - { - "type": "element", - "named": true - } - ] - } - }, - { - "type": "contentspec", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": false, - "types": [ - { - "type": "Mixed", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "children", - "named": true - } - ] - } - }, - { - "type": "doctypedecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "ExternalID", - "named": true - }, - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "_markupdecl", - "named": true - } - ] - } - }, - { - "type": "document", - "named": true, - "fields": { - "root": { - "multiple": false, - "required": true, - "types": [ - { - "type": "element", - "named": true - } - ] - } - }, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "Comment", - "named": true - }, - { - "type": "PI", - "named": true - }, - { - "type": "StyleSheetPI", - "named": true - }, - { - "type": "XmlModelPI", - "named": true - }, - { - "type": "prolog", - "named": true - } - ] - } - }, - { - "type": "element", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "ETag", - "named": true - }, - { - "type": "EmptyElemTag", - "named": true - }, - { - "type": "STag", - "named": true - }, - { - "type": "content", - "named": true - } - ] - } - }, - { - "type": "elementdecl", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "Name", - "named": true - }, - { - "type": "PEReference", - "named": true - }, - { - "type": "contentspec", - "named": true - } - ] - } - }, - { - "type": "prolog", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "Comment", - "named": true - }, - { - "type": "PI", - "named": true - }, - { - "type": "StyleSheetPI", - "named": true - }, - { - "type": "XMLDecl", - "named": true - }, - { - "type": "XmlModelPI", - "named": true - }, - { - "type": "doctypedecl", - "named": true - } - ] - } - }, - { - "type": "\"", - "named": false - }, - { - "type": "#FIXED", - "named": false - }, - { - "type": "#IMPLIED", - "named": false - }, - { - "type": "#PCDATA", - "named": false - }, - { - "type": "#REQUIRED", - "named": false - }, - { - "type": "%", - "named": false - }, - { - "type": "&", - "named": false - }, - { - "type": "&#", - "named": false - }, - { - "type": "&#x", - "named": false - }, - { - "type": "'", - "named": false - }, - { - "type": "(", - "named": false - }, - { - "type": ")", - "named": false - }, - { - "type": "*", - "named": false - }, - { - "type": "+", - "named": false - }, - { - "type": ",", - "named": false - }, - { - "type": "/>", - "named": false - }, - { - "type": ";", - "named": false - }, - { - "type": "<", - "named": false - }, - { - "type": "", - "named": false - }, - { - "type": "?", - "named": false - }, - { - "type": "?>", - "named": false - }, - { - "type": "ANY", - "named": false - }, - { - "type": "ATTLIST", - "named": false - }, - { - "type": "CDATA", - "named": false - }, - { - "type": "CData", - "named": true - }, - { - "type": "CharData", - "named": true - }, - { - "type": "Comment", - "named": true - }, - { - "type": "DOCTYPE", - "named": false - }, - { - "type": "ELEMENT", - "named": false - }, - { - "type": "EMPTY", - "named": false - }, - { - "type": "ENTITY", - "named": false - }, - { - "type": "EncName", - "named": true - }, - { - "type": "IGNORE", - "named": false - }, - { - "type": "INCLUDE", - "named": false - }, - { - "type": "NDATA", - "named": false - }, - { - "type": "NOTATION", - "named": false - }, - { - "type": "Name", - "named": true - }, - { - "type": "Nmtoken", - "named": true - }, - { - "type": "PITarget", - "named": true - }, - { - "type": "PUBLIC", - "named": false - }, - { - "type": "SYSTEM", - "named": false - }, - { - "type": "TokenizedType", - "named": true - }, - { - "type": "URI", - "named": true - }, - { - "type": "VersionNum", - "named": true - }, - { - "type": "[", - "named": false - }, - { - "type": "]", - "named": false - }, - { - "type": "]]>", - "named": false - }, - { - "type": "encoding", - "named": false - }, - { - "type": "no", - "named": false - }, - { - "type": "standalone", - "named": false - }, - { - "type": "version", - "named": false - }, - { - "type": "xml", - "named": false - }, - { - "type": "xml-model", - "named": false - }, - { - "type": "xml-stylesheet", - "named": false - }, - { - "type": "yes", - "named": false - }, - { - "type": "|", - "named": false - } -] \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/parser.c b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/parser.c deleted file mode 100644 index 5f458e6d6e..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/parser.c +++ /dev/null @@ -1,8033 +0,0 @@ -#include - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -#define LANGUAGE_VERSION 14 -#define STATE_COUNT 453 -#define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 140 -#define ALIAS_COUNT 0 -#define TOKEN_COUNT 73 -#define EXTERNAL_TOKEN_COUNT 7 -#define FIELD_COUNT 2 -#define MAX_ALIAS_SEQUENCE_LENGTH 12 -#define PRODUCTION_ID_COUNT 5 - -enum { - sym_Name = 1, - anon_sym_LT_BANG_LBRACK = 2, - anon_sym_IGNORE = 3, - anon_sym_INCLUDE = 4, - anon_sym_LBRACK = 5, - anon_sym_RBRACK_RBRACK_GT = 6, - anon_sym_LT_BANG = 7, - anon_sym_ELEMENT = 8, - anon_sym_GT = 9, - anon_sym_EMPTY = 10, - anon_sym_ANY = 11, - anon_sym_LPAREN = 12, - anon_sym_POUNDPCDATA = 13, - anon_sym_PIPE = 14, - anon_sym_RPAREN = 15, - anon_sym_STAR = 16, - anon_sym_QMARK = 17, - anon_sym_PLUS = 18, - anon_sym_COMMA = 19, - anon_sym_ATTLIST = 20, - anon_sym_CDATA = 21, - sym_TokenizedType = 22, - anon_sym_NOTATION = 23, - anon_sym_POUNDREQUIRED = 24, - anon_sym_POUNDIMPLIED = 25, - anon_sym_POUNDFIXED = 26, - anon_sym_ENTITY = 27, - anon_sym_PERCENT = 28, - anon_sym_DQUOTE = 29, - aux_sym_EntityValue_token1 = 30, - anon_sym_SQUOTE = 31, - aux_sym_EntityValue_token2 = 32, - anon_sym_NDATA = 33, - anon_sym_SEMI = 34, - sym__S = 35, - sym_Nmtoken = 36, - anon_sym_AMP = 37, - anon_sym_AMP_POUND = 38, - aux_sym_CharRef_token1 = 39, - anon_sym_AMP_POUNDx = 40, - aux_sym_CharRef_token2 = 41, - aux_sym_AttValue_token1 = 42, - aux_sym_AttValue_token2 = 43, - anon_sym_SYSTEM = 44, - anon_sym_PUBLIC = 45, - aux_sym_SystemLiteral_token1 = 46, - aux_sym_SystemLiteral_token2 = 47, - aux_sym_PubidLiteral_token1 = 48, - aux_sym_PubidLiteral_token2 = 49, - anon_sym_LT_QMARK = 50, - anon_sym_xml = 51, - anon_sym_QMARK_GT = 52, - anon_sym_version = 53, - sym_VersionNum = 54, - anon_sym_encoding = 55, - sym_EncName = 56, - anon_sym_EQ = 57, - anon_sym_standalone = 58, - anon_sym_yes = 59, - anon_sym_no = 60, - anon_sym_DOCTYPE = 61, - anon_sym_RBRACK = 62, - anon_sym_LT = 63, - anon_sym_SLASH_GT = 64, - anon_sym_LT_SLASH = 65, - anon_sym_xml_DASHstylesheet = 66, - anon_sym_xml_DASHmodel = 67, - sym_PITarget = 68, - sym__pi_content = 69, - sym_Comment = 70, - sym_CharData = 71, - sym_CData = 72, - sym_document = 73, - sym__markupdecl = 74, - sym__DeclSep = 75, - sym_elementdecl = 76, - sym_contentspec = 77, - sym_Mixed = 78, - sym_children = 79, - sym__cp = 80, - sym__choice = 81, - sym_AttlistDecl = 82, - sym_AttDef = 83, - sym__AttType = 84, - sym_StringType = 85, - sym__EnumeratedType = 86, - sym_NotationType = 87, - sym_Enumeration = 88, - sym_DefaultDecl = 89, - sym__EntityDecl = 90, - sym_GEDecl = 91, - sym_PEDecl = 92, - sym_EntityValue = 93, - sym_NDataDecl = 94, - sym_NotationDecl = 95, - sym_PEReference = 96, - sym__Reference = 97, - sym_EntityRef = 98, - sym_CharRef = 99, - sym_AttValue = 100, - sym_ExternalID = 101, - sym_PublicID = 102, - sym_SystemLiteral = 103, - sym_PubidLiteral = 104, - sym_XMLDecl = 105, - sym__VersionInfo = 106, - sym__EncodingDecl = 107, - sym_PI = 108, - sym__Eq = 109, - sym_prolog = 110, - sym__Misc = 111, - sym__SDDecl = 112, - sym_doctypedecl = 113, - aux_sym__intSubset = 114, - sym_element = 115, - sym_EmptyElemTag = 116, - sym_Attribute = 117, - sym_STag = 118, - sym_ETag = 119, - sym_content = 120, - sym_CDSect = 121, - sym_CDStart = 122, - sym_StyleSheetPI = 123, - sym_XmlModelPI = 124, - sym_PseudoAtt = 125, - sym_PseudoAttValue = 126, - aux_sym_document_repeat1 = 127, - aux_sym_Mixed_repeat1 = 128, - aux_sym__choice_repeat1 = 129, - aux_sym_AttlistDecl_repeat1 = 130, - aux_sym_NotationType_repeat1 = 131, - aux_sym_Enumeration_repeat1 = 132, - aux_sym_EntityValue_repeat1 = 133, - aux_sym_EntityValue_repeat2 = 134, - aux_sym_AttValue_repeat1 = 135, - aux_sym_AttValue_repeat2 = 136, - aux_sym_EmptyElemTag_repeat1 = 137, - aux_sym_content_repeat1 = 138, - aux_sym_StyleSheetPI_repeat1 = 139, -}; - -static const char * const ts_symbol_names[] = { - [ts_builtin_sym_end] = "end", - [sym_Name] = "Name", - [anon_sym_LT_BANG_LBRACK] = "", - [anon_sym_LT_BANG] = "", - [anon_sym_EMPTY] = "EMPTY", - [anon_sym_ANY] = "ANY", - [anon_sym_LPAREN] = "(", - [anon_sym_POUNDPCDATA] = "#PCDATA", - [anon_sym_PIPE] = "|", - [anon_sym_RPAREN] = ")", - [anon_sym_STAR] = "*", - [anon_sym_QMARK] = "\?", - [anon_sym_PLUS] = "+", - [anon_sym_COMMA] = ",", - [anon_sym_ATTLIST] = "ATTLIST", - [anon_sym_CDATA] = "CDATA", - [sym_TokenizedType] = "TokenizedType", - [anon_sym_NOTATION] = "NOTATION", - [anon_sym_POUNDREQUIRED] = "#REQUIRED", - [anon_sym_POUNDIMPLIED] = "#IMPLIED", - [anon_sym_POUNDFIXED] = "#FIXED", - [anon_sym_ENTITY] = "ENTITY", - [anon_sym_PERCENT] = "%", - [anon_sym_DQUOTE] = "\"", - [aux_sym_EntityValue_token1] = "EntityValue_token1", - [anon_sym_SQUOTE] = "'", - [aux_sym_EntityValue_token2] = "EntityValue_token2", - [anon_sym_NDATA] = "NDATA", - [anon_sym_SEMI] = ";", - [sym__S] = "_S", - [sym_Nmtoken] = "Nmtoken", - [anon_sym_AMP] = "&", - [anon_sym_AMP_POUND] = "&#", - [aux_sym_CharRef_token1] = "CharRef_token1", - [anon_sym_AMP_POUNDx] = "&#x", - [aux_sym_CharRef_token2] = "CharRef_token2", - [aux_sym_AttValue_token1] = "AttValue_token1", - [aux_sym_AttValue_token2] = "AttValue_token2", - [anon_sym_SYSTEM] = "SYSTEM", - [anon_sym_PUBLIC] = "PUBLIC", - [aux_sym_SystemLiteral_token1] = "URI", - [aux_sym_SystemLiteral_token2] = "URI", - [aux_sym_PubidLiteral_token1] = "PubidLiteral_token1", - [aux_sym_PubidLiteral_token2] = "PubidLiteral_token2", - [anon_sym_LT_QMARK] = "<\?", - [anon_sym_xml] = "xml", - [anon_sym_QMARK_GT] = "\?>", - [anon_sym_version] = "version", - [sym_VersionNum] = "VersionNum", - [anon_sym_encoding] = "encoding", - [sym_EncName] = "EncName", - [anon_sym_EQ] = "=", - [anon_sym_standalone] = "standalone", - [anon_sym_yes] = "yes", - [anon_sym_no] = "no", - [anon_sym_DOCTYPE] = "DOCTYPE", - [anon_sym_RBRACK] = "]", - [anon_sym_LT] = "<", - [anon_sym_SLASH_GT] = "/>", - [anon_sym_LT_SLASH] = "= '#' && c <= '%'))) - : (c <= ';' || (c < '_' - ? (c < '?' - ? c == '=' - : c <= 'Z') - : (c <= '_' || (c >= 'a' && c <= 'z'))))); -} - -static inline bool aux_sym_PubidLiteral_token2_character_set_1(int32_t c) { - return (c < '(' - ? (c < ' ' - ? (c < '\r' - ? c == '\n' - : c <= '\r') - : (c <= '!' || (c >= '#' && c <= '%'))) - : (c <= ';' || (c < '_' - ? (c < '?' - ? c == '=' - : c <= 'Z') - : (c <= '_' || (c >= 'a' && c <= 'z'))))); -} - -static bool ts_lex(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (eof) ADVANCE(42); - if (lookahead == '"') ADVANCE(67); - if (lookahead == '#') ADVANCE(72); - if (lookahead == '%') ADVANCE(66); - if (lookahead == '&') ADVANCE(121); - if (lookahead == '\'') ADVANCE(81); - if (lookahead == '(') ADVANCE(49); - if (lookahead == ')') ADVANCE(52); - if (lookahead == '*') ADVANCE(53); - if (lookahead == '+') ADVANCE(55); - if (lookahead == ',') ADVANCE(56); - if (lookahead == '/') ADVANCE(70); - if (lookahead == '1') ADVANCE(69); - if (lookahead == ';') ADVANCE(83); - if (lookahead == '<') ADVANCE(139); - if (lookahead == '=') ADVANCE(136); - if (lookahead == '>') ADVANCE(48); - if (lookahead == '?') ADVANCE(54); - if (lookahead == 'E') ADVANCE(74); - if (lookahead == 'I') ADVANCE(71); - if (lookahead == 'N') ADVANCE(73); - if (lookahead == '[') ADVANCE(44); - if (lookahead == ']') ADVANCE(138); - if (lookahead == '_') ADVANCE(80); - if (lookahead == '|') ADVANCE(51); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(77); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - lookahead == 183) ADVANCE(79); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(78); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(75); - if (('G' <= lookahead && lookahead <= 'Z') || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(76); - if (lookahead != 0) ADVANCE(68); - END_STATE(); - case 1: - if (lookahead == '"') ADVANCE(67); - if (lookahead == '#') ADVANCE(28); - if (lookahead == '%') ADVANCE(66); - if (lookahead == '\'') ADVANCE(81); - if (lookahead == '(') ADVANCE(49); - if (lookahead == ')') ADVANCE(52); - if (lookahead == '*') ADVANCE(53); - if (lookahead == '+') ADVANCE(55); - if (lookahead == ',') ADVANCE(56); - if (lookahead == '/') ADVANCE(7); - if (lookahead == '>') ADVANCE(48); - if (lookahead == '?') ADVANCE(54); - if (lookahead == '[') ADVANCE(44); - if (lookahead == ']') ADVANCE(36); - if (lookahead == '|') ADVANCE(51); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(123); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(116); - END_STATE(); - case 2: - if (lookahead == '"') ADVANCE(67); - if (lookahead == '%') ADVANCE(66); - if (lookahead == '&') ADVANCE(121); - if (lookahead != 0 && - lookahead != '<') ADVANCE(68); - END_STATE(); - case 3: - if (lookahead == '"') ADVANCE(67); - if (lookahead == '&') ADVANCE(121); - if (lookahead != 0 && - lookahead != '<') ADVANCE(126); - END_STATE(); - case 4: - if (lookahead == '%') ADVANCE(66); - if (lookahead == '&') ADVANCE(121); - if (lookahead == '\'') ADVANCE(81); - if (lookahead == '<') ADVANCE(141); - if (lookahead != 0) ADVANCE(82); - END_STATE(); - case 5: - if (lookahead == '&') ADVANCE(121); - if (lookahead == '\'') ADVANCE(81); - if (lookahead != 0 && - lookahead != '<') ADVANCE(127); - END_STATE(); - case 6: - if (lookahead == '.') ADVANCE(38); - END_STATE(); - case 7: - if (lookahead == '>') ADVANCE(142); - END_STATE(); - case 8: - if (lookahead == '>') ADVANCE(45); - END_STATE(); - case 9: - if (lookahead == '>') ADVANCE(133); - END_STATE(); - case 10: - if (lookahead == '?') ADVANCE(9); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(116); - END_STATE(); - case 11: - if (lookahead == 'A') ADVANCE(32); - END_STATE(); - case 12: - if (lookahead == 'A') ADVANCE(50); - END_STATE(); - case 13: - if (lookahead == 'C') ADVANCE(14); - END_STATE(); - case 14: - if (lookahead == 'D') ADVANCE(11); - END_STATE(); - case 15: - if (lookahead == 'D') ADVANCE(65); - END_STATE(); - case 16: - if (lookahead == 'D') ADVANCE(64); - END_STATE(); - case 17: - if (lookahead == 'D') ADVANCE(63); - END_STATE(); - case 18: - if (lookahead == 'E') ADVANCE(30); - END_STATE(); - case 19: - if (lookahead == 'E') ADVANCE(15); - END_STATE(); - case 20: - if (lookahead == 'E') ADVANCE(16); - END_STATE(); - case 21: - if (lookahead == 'E') ADVANCE(17); - END_STATE(); - case 22: - if (lookahead == 'F') ADVANCE(23); - if (lookahead == 'I') ADVANCE(27); - if (lookahead == 'R') ADVANCE(18); - END_STATE(); - case 23: - if (lookahead == 'I') ADVANCE(34); - END_STATE(); - case 24: - if (lookahead == 'I') ADVANCE(31); - END_STATE(); - case 25: - if (lookahead == 'I') ADVANCE(20); - END_STATE(); - case 26: - if (lookahead == 'L') ADVANCE(25); - END_STATE(); - case 27: - if (lookahead == 'M') ADVANCE(29); - END_STATE(); - case 28: - if (lookahead == 'P') ADVANCE(13); - END_STATE(); - case 29: - if (lookahead == 'P') ADVANCE(26); - END_STATE(); - case 30: - if (lookahead == 'Q') ADVANCE(33); - END_STATE(); - case 31: - if (lookahead == 'R') ADVANCE(21); - END_STATE(); - case 32: - if (lookahead == 'T') ADVANCE(12); - END_STATE(); - case 33: - if (lookahead == 'U') ADVANCE(24); - END_STATE(); - case 34: - if (lookahead == 'X') ADVANCE(19); - END_STATE(); - case 35: - if (lookahead == '[') ADVANCE(43); - END_STATE(); - case 36: - if (lookahead == ']') ADVANCE(8); - END_STATE(); - case 37: - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 38: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(134); - END_STATE(); - case 39: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(125); - END_STATE(); - case 40: - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(135); - END_STATE(); - case 41: - if (eof) ADVANCE(42); - if (lookahead == '"') ADVANCE(67); - if (lookahead == '#') ADVANCE(22); - if (lookahead == '%') ADVANCE(66); - if (lookahead == '\'') ADVANCE(81); - if (lookahead == '(') ADVANCE(49); - if (lookahead == ')') ADVANCE(52); - if (lookahead == '*') ADVANCE(53); - if (lookahead == '+') ADVANCE(55); - if (lookahead == ',') ADVANCE(56); - if (lookahead == '/') ADVANCE(7); - if (lookahead == '1') ADVANCE(6); - if (lookahead == ';') ADVANCE(83); - if (lookahead == '<') ADVANCE(140); - if (lookahead == '=') ADVANCE(136); - if (lookahead == '>') ADVANCE(48); - if (lookahead == '?') ADVANCE(54); - if (lookahead == 'E') ADVANCE(102); - if (lookahead == 'I') ADVANCE(85); - if (lookahead == 'N') ADVANCE(100); - if (lookahead == '[') ADVANCE(44); - if (lookahead == ']') ADVANCE(137); - if (lookahead == '|') ADVANCE(51); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(116); - END_STATE(); - case 42: - ACCEPT_TOKEN(ts_builtin_sym_end); - END_STATE(); - case 43: - ACCEPT_TOKEN(anon_sym_LT_BANG_LBRACK); - END_STATE(); - case 44: - ACCEPT_TOKEN(anon_sym_LBRACK); - END_STATE(); - case 45: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK_GT); - END_STATE(); - case 46: - ACCEPT_TOKEN(anon_sym_LT_BANG); - END_STATE(); - case 47: - ACCEPT_TOKEN(anon_sym_LT_BANG); - if (lookahead == '[') ADVANCE(43); - END_STATE(); - case 48: - ACCEPT_TOKEN(anon_sym_GT); - END_STATE(); - case 49: - ACCEPT_TOKEN(anon_sym_LPAREN); - END_STATE(); - case 50: - ACCEPT_TOKEN(anon_sym_POUNDPCDATA); - END_STATE(); - case 51: - ACCEPT_TOKEN(anon_sym_PIPE); - END_STATE(); - case 52: - ACCEPT_TOKEN(anon_sym_RPAREN); - END_STATE(); - case 53: - ACCEPT_TOKEN(anon_sym_STAR); - END_STATE(); - case 54: - ACCEPT_TOKEN(anon_sym_QMARK); - END_STATE(); - case 55: - ACCEPT_TOKEN(anon_sym_PLUS); - END_STATE(); - case 56: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 57: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'R') ADVANCE(86); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 58: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'R') ADVANCE(89); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 59: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'S') ADVANCE(61); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 60: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == 'S') ADVANCE(62); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 61: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 62: - ACCEPT_TOKEN(sym_TokenizedType); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 63: - ACCEPT_TOKEN(anon_sym_POUNDREQUIRED); - END_STATE(); - case 64: - ACCEPT_TOKEN(anon_sym_POUNDIMPLIED); - END_STATE(); - case 65: - ACCEPT_TOKEN(anon_sym_POUNDFIXED); - END_STATE(); - case 66: - ACCEPT_TOKEN(anon_sym_PERCENT); - END_STATE(); - case 67: - ACCEPT_TOKEN(anon_sym_DQUOTE); - END_STATE(); - case 68: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - END_STATE(); - case 69: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '.') ADVANCE(117); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(118); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(119); - if (lookahead == '-' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 70: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '>') ADVANCE(142); - END_STATE(); - case 71: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'D') ADVANCE(57); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 72: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'F') ADVANCE(23); - if (lookahead == 'I') ADVANCE(27); - if (lookahead == 'P') ADVANCE(13); - if (lookahead == 'R') ADVANCE(18); - END_STATE(); - case 73: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'M') ADVANCE(109); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 74: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == 'N') ADVANCE(108); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(114); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 75: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(114); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 76: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 77: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - END_STATE(); - case 78: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(118); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(119); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 79: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 80: - ACCEPT_TOKEN(aux_sym_EntityValue_token1); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 81: - ACCEPT_TOKEN(anon_sym_SQUOTE); - END_STATE(); - case 82: - ACCEPT_TOKEN(aux_sym_EntityValue_token2); - END_STATE(); - case 83: - ACCEPT_TOKEN(anon_sym_SEMI); - END_STATE(); - case 84: - ACCEPT_TOKEN(sym__S); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') ADVANCE(84); - END_STATE(); - case 85: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'D') ADVANCE(58); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 86: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(92); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(101); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 88: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(106); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 89: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(93); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 90: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(107); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 91: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'E') ADVANCE(103); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 92: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'F') ADVANCE(59); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 93: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'F') ADVANCE(60); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 94: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(110); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 95: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(88); - if (lookahead == 'Y') ADVANCE(61); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 96: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(113); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 97: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'I') ADVANCE(90); - if (lookahead == 'Y') ADVANCE(62); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 98: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'K') ADVANCE(87); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 99: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'K') ADVANCE(91); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 100: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'M') ADVANCE(112); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 101: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(59); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 102: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(111); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 103: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'N') ADVANCE(60); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 104: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'O') ADVANCE(98); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 105: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'O') ADVANCE(99); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 106: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'S') ADVANCE(61); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 107: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'S') ADVANCE(62); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 108: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(94); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 109: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(104); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 110: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(95); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 111: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(96); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 112: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(105); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 113: - ACCEPT_TOKEN(sym_Name); - if (lookahead == 'T') ADVANCE(97); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 114: - ACCEPT_TOKEN(sym_Name); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(114); - if (lookahead == '-' || - lookahead == '.' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 115: - ACCEPT_TOKEN(sym_Name); - if (lookahead == ':' || - lookahead == 183) ADVANCE(116); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(115); - END_STATE(); - case 116: - ACCEPT_TOKEN(sym_Name); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(116); - END_STATE(); - case 117: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(117); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 118: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(118); - if (('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(119); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 119: - ACCEPT_TOKEN(sym_Nmtoken); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(119); - if (lookahead == '-' || - lookahead == '.' || - lookahead == ':' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 120: - ACCEPT_TOKEN(sym_Nmtoken); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= ':') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z') || - lookahead == 183) ADVANCE(120); - END_STATE(); - case 121: - ACCEPT_TOKEN(anon_sym_AMP); - if (lookahead == '#') ADVANCE(122); - END_STATE(); - case 122: - ACCEPT_TOKEN(anon_sym_AMP_POUND); - if (lookahead == 'x') ADVANCE(124); - END_STATE(); - case 123: - ACCEPT_TOKEN(aux_sym_CharRef_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(123); - END_STATE(); - case 124: - ACCEPT_TOKEN(anon_sym_AMP_POUNDx); - END_STATE(); - case 125: - ACCEPT_TOKEN(aux_sym_CharRef_token2); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(125); - END_STATE(); - case 126: - ACCEPT_TOKEN(aux_sym_AttValue_token1); - END_STATE(); - case 127: - ACCEPT_TOKEN(aux_sym_AttValue_token2); - END_STATE(); - case 128: - ACCEPT_TOKEN(aux_sym_SystemLiteral_token1); - if (lookahead != 0 && - lookahead != '"') ADVANCE(128); - END_STATE(); - case 129: - ACCEPT_TOKEN(aux_sym_SystemLiteral_token2); - if (lookahead != 0 && - lookahead != '\'') ADVANCE(129); - END_STATE(); - case 130: - ACCEPT_TOKEN(aux_sym_PubidLiteral_token1); - if (aux_sym_PubidLiteral_token1_character_set_1(lookahead)) ADVANCE(130); - END_STATE(); - case 131: - ACCEPT_TOKEN(aux_sym_PubidLiteral_token2); - if (aux_sym_PubidLiteral_token2_character_set_1(lookahead)) ADVANCE(131); - END_STATE(); - case 132: - ACCEPT_TOKEN(anon_sym_LT_QMARK); - END_STATE(); - case 133: - ACCEPT_TOKEN(anon_sym_QMARK_GT); - END_STATE(); - case 134: - ACCEPT_TOKEN(sym_VersionNum); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(134); - END_STATE(); - case 135: - ACCEPT_TOKEN(sym_EncName); - if (lookahead == '-' || - lookahead == '.' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(135); - END_STATE(); - case 136: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - case 137: - ACCEPT_TOKEN(anon_sym_RBRACK); - END_STATE(); - case 138: - ACCEPT_TOKEN(anon_sym_RBRACK); - if (lookahead == ']') ADVANCE(8); - END_STATE(); - case 139: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '!') ADVANCE(47); - if (lookahead == '/') ADVANCE(143); - if (lookahead == '?') ADVANCE(132); - END_STATE(); - case 140: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '!') ADVANCE(46); - if (lookahead == '?') ADVANCE(132); - END_STATE(); - case 141: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '!') ADVANCE(35); - if (lookahead == '/') ADVANCE(143); - if (lookahead == '?') ADVANCE(132); - END_STATE(); - case 142: - ACCEPT_TOKEN(anon_sym_SLASH_GT); - END_STATE(); - case 143: - ACCEPT_TOKEN(anon_sym_LT_SLASH); - END_STATE(); - default: - return false; - } -} - -static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (lookahead == 'A') ADVANCE(1); - if (lookahead == 'C') ADVANCE(2); - if (lookahead == 'D') ADVANCE(3); - if (lookahead == 'E') ADVANCE(4); - if (lookahead == 'I') ADVANCE(5); - if (lookahead == 'N') ADVANCE(6); - if (lookahead == 'P') ADVANCE(7); - if (lookahead == 'S') ADVANCE(8); - if (lookahead == 'e') ADVANCE(9); - if (lookahead == 'n') ADVANCE(10); - if (lookahead == 's') ADVANCE(11); - if (lookahead == 'v') ADVANCE(12); - if (lookahead == 'x') ADVANCE(13); - if (lookahead == 'y') ADVANCE(14); - END_STATE(); - case 1: - if (lookahead == 'N') ADVANCE(15); - if (lookahead == 'T') ADVANCE(16); - END_STATE(); - case 2: - if (lookahead == 'D') ADVANCE(17); - END_STATE(); - case 3: - if (lookahead == 'O') ADVANCE(18); - END_STATE(); - case 4: - if (lookahead == 'L') ADVANCE(19); - if (lookahead == 'M') ADVANCE(20); - if (lookahead == 'N') ADVANCE(21); - END_STATE(); - case 5: - if (lookahead == 'G') ADVANCE(22); - if (lookahead == 'N') ADVANCE(23); - END_STATE(); - case 6: - if (lookahead == 'D') ADVANCE(24); - if (lookahead == 'O') ADVANCE(25); - END_STATE(); - case 7: - if (lookahead == 'U') ADVANCE(26); - END_STATE(); - case 8: - if (lookahead == 'Y') ADVANCE(27); - END_STATE(); - case 9: - if (lookahead == 'n') ADVANCE(28); - END_STATE(); - case 10: - if (lookahead == 'o') ADVANCE(29); - END_STATE(); - case 11: - if (lookahead == 't') ADVANCE(30); - END_STATE(); - case 12: - if (lookahead == 'e') ADVANCE(31); - END_STATE(); - case 13: - if (lookahead == 'm') ADVANCE(32); - END_STATE(); - case 14: - if (lookahead == 'e') ADVANCE(33); - END_STATE(); - case 15: - if (lookahead == 'Y') ADVANCE(34); - END_STATE(); - case 16: - if (lookahead == 'T') ADVANCE(35); - END_STATE(); - case 17: - if (lookahead == 'A') ADVANCE(36); - END_STATE(); - case 18: - if (lookahead == 'C') ADVANCE(37); - END_STATE(); - case 19: - if (lookahead == 'E') ADVANCE(38); - END_STATE(); - case 20: - if (lookahead == 'P') ADVANCE(39); - END_STATE(); - case 21: - if (lookahead == 'T') ADVANCE(40); - END_STATE(); - case 22: - if (lookahead == 'N') ADVANCE(41); - END_STATE(); - case 23: - if (lookahead == 'C') ADVANCE(42); - END_STATE(); - case 24: - if (lookahead == 'A') ADVANCE(43); - END_STATE(); - case 25: - if (lookahead == 'T') ADVANCE(44); - END_STATE(); - case 26: - if (lookahead == 'B') ADVANCE(45); - END_STATE(); - case 27: - if (lookahead == 'S') ADVANCE(46); - END_STATE(); - case 28: - if (lookahead == 'c') ADVANCE(47); - END_STATE(); - case 29: - ACCEPT_TOKEN(anon_sym_no); - END_STATE(); - case 30: - if (lookahead == 'a') ADVANCE(48); - END_STATE(); - case 31: - if (lookahead == 'r') ADVANCE(49); - END_STATE(); - case 32: - if (lookahead == 'l') ADVANCE(50); - END_STATE(); - case 33: - if (lookahead == 's') ADVANCE(51); - END_STATE(); - case 34: - ACCEPT_TOKEN(anon_sym_ANY); - END_STATE(); - case 35: - if (lookahead == 'L') ADVANCE(52); - END_STATE(); - case 36: - if (lookahead == 'T') ADVANCE(53); - END_STATE(); - case 37: - if (lookahead == 'T') ADVANCE(54); - END_STATE(); - case 38: - if (lookahead == 'M') ADVANCE(55); - END_STATE(); - case 39: - if (lookahead == 'T') ADVANCE(56); - END_STATE(); - case 40: - if (lookahead == 'I') ADVANCE(57); - END_STATE(); - case 41: - if (lookahead == 'O') ADVANCE(58); - END_STATE(); - case 42: - if (lookahead == 'L') ADVANCE(59); - END_STATE(); - case 43: - if (lookahead == 'T') ADVANCE(60); - END_STATE(); - case 44: - if (lookahead == 'A') ADVANCE(61); - END_STATE(); - case 45: - if (lookahead == 'L') ADVANCE(62); - END_STATE(); - case 46: - if (lookahead == 'T') ADVANCE(63); - END_STATE(); - case 47: - if (lookahead == 'o') ADVANCE(64); - END_STATE(); - case 48: - if (lookahead == 'n') ADVANCE(65); - END_STATE(); - case 49: - if (lookahead == 's') ADVANCE(66); - END_STATE(); - case 50: - ACCEPT_TOKEN(anon_sym_xml); - if (lookahead == '-') ADVANCE(67); - END_STATE(); - case 51: - ACCEPT_TOKEN(anon_sym_yes); - END_STATE(); - case 52: - if (lookahead == 'I') ADVANCE(68); - END_STATE(); - case 53: - if (lookahead == 'A') ADVANCE(69); - END_STATE(); - case 54: - if (lookahead == 'Y') ADVANCE(70); - END_STATE(); - case 55: - if (lookahead == 'E') ADVANCE(71); - END_STATE(); - case 56: - if (lookahead == 'Y') ADVANCE(72); - END_STATE(); - case 57: - if (lookahead == 'T') ADVANCE(73); - END_STATE(); - case 58: - if (lookahead == 'R') ADVANCE(74); - END_STATE(); - case 59: - if (lookahead == 'U') ADVANCE(75); - END_STATE(); - case 60: - if (lookahead == 'A') ADVANCE(76); - END_STATE(); - case 61: - if (lookahead == 'T') ADVANCE(77); - END_STATE(); - case 62: - if (lookahead == 'I') ADVANCE(78); - END_STATE(); - case 63: - if (lookahead == 'E') ADVANCE(79); - END_STATE(); - case 64: - if (lookahead == 'd') ADVANCE(80); - END_STATE(); - case 65: - if (lookahead == 'd') ADVANCE(81); - END_STATE(); - case 66: - if (lookahead == 'i') ADVANCE(82); - END_STATE(); - case 67: - if (lookahead == 'm') ADVANCE(83); - if (lookahead == 's') ADVANCE(84); - END_STATE(); - case 68: - if (lookahead == 'S') ADVANCE(85); - END_STATE(); - case 69: - ACCEPT_TOKEN(anon_sym_CDATA); - END_STATE(); - case 70: - if (lookahead == 'P') ADVANCE(86); - END_STATE(); - case 71: - if (lookahead == 'N') ADVANCE(87); - END_STATE(); - case 72: - ACCEPT_TOKEN(anon_sym_EMPTY); - END_STATE(); - case 73: - if (lookahead == 'Y') ADVANCE(88); - END_STATE(); - case 74: - if (lookahead == 'E') ADVANCE(89); - END_STATE(); - case 75: - if (lookahead == 'D') ADVANCE(90); - END_STATE(); - case 76: - ACCEPT_TOKEN(anon_sym_NDATA); - END_STATE(); - case 77: - if (lookahead == 'I') ADVANCE(91); - END_STATE(); - case 78: - if (lookahead == 'C') ADVANCE(92); - END_STATE(); - case 79: - if (lookahead == 'M') ADVANCE(93); - END_STATE(); - case 80: - if (lookahead == 'i') ADVANCE(94); - END_STATE(); - case 81: - if (lookahead == 'a') ADVANCE(95); - END_STATE(); - case 82: - if (lookahead == 'o') ADVANCE(96); - END_STATE(); - case 83: - if (lookahead == 'o') ADVANCE(97); - END_STATE(); - case 84: - if (lookahead == 't') ADVANCE(98); - END_STATE(); - case 85: - if (lookahead == 'T') ADVANCE(99); - END_STATE(); - case 86: - if (lookahead == 'E') ADVANCE(100); - END_STATE(); - case 87: - if (lookahead == 'T') ADVANCE(101); - END_STATE(); - case 88: - ACCEPT_TOKEN(anon_sym_ENTITY); - END_STATE(); - case 89: - ACCEPT_TOKEN(anon_sym_IGNORE); - END_STATE(); - case 90: - if (lookahead == 'E') ADVANCE(102); - END_STATE(); - case 91: - if (lookahead == 'O') ADVANCE(103); - END_STATE(); - case 92: - ACCEPT_TOKEN(anon_sym_PUBLIC); - END_STATE(); - case 93: - ACCEPT_TOKEN(anon_sym_SYSTEM); - END_STATE(); - case 94: - if (lookahead == 'n') ADVANCE(104); - END_STATE(); - case 95: - if (lookahead == 'l') ADVANCE(105); - END_STATE(); - case 96: - if (lookahead == 'n') ADVANCE(106); - END_STATE(); - case 97: - if (lookahead == 'd') ADVANCE(107); - END_STATE(); - case 98: - if (lookahead == 'y') ADVANCE(108); - END_STATE(); - case 99: - ACCEPT_TOKEN(anon_sym_ATTLIST); - END_STATE(); - case 100: - ACCEPT_TOKEN(anon_sym_DOCTYPE); - END_STATE(); - case 101: - ACCEPT_TOKEN(anon_sym_ELEMENT); - END_STATE(); - case 102: - ACCEPT_TOKEN(anon_sym_INCLUDE); - END_STATE(); - case 103: - if (lookahead == 'N') ADVANCE(109); - END_STATE(); - case 104: - if (lookahead == 'g') ADVANCE(110); - END_STATE(); - case 105: - if (lookahead == 'o') ADVANCE(111); - END_STATE(); - case 106: - ACCEPT_TOKEN(anon_sym_version); - END_STATE(); - case 107: - if (lookahead == 'e') ADVANCE(112); - END_STATE(); - case 108: - if (lookahead == 'l') ADVANCE(113); - END_STATE(); - case 109: - ACCEPT_TOKEN(anon_sym_NOTATION); - END_STATE(); - case 110: - ACCEPT_TOKEN(anon_sym_encoding); - END_STATE(); - case 111: - if (lookahead == 'n') ADVANCE(114); - END_STATE(); - case 112: - if (lookahead == 'l') ADVANCE(115); - END_STATE(); - case 113: - if (lookahead == 'e') ADVANCE(116); - END_STATE(); - case 114: - if (lookahead == 'e') ADVANCE(117); - END_STATE(); - case 115: - ACCEPT_TOKEN(anon_sym_xml_DASHmodel); - END_STATE(); - case 116: - if (lookahead == 's') ADVANCE(118); - END_STATE(); - case 117: - ACCEPT_TOKEN(anon_sym_standalone); - END_STATE(); - case 118: - if (lookahead == 'h') ADVANCE(119); - END_STATE(); - case 119: - if (lookahead == 'e') ADVANCE(120); - END_STATE(); - case 120: - if (lookahead == 'e') ADVANCE(121); - END_STATE(); - case 121: - if (lookahead == 't') ADVANCE(122); - END_STATE(); - case 122: - ACCEPT_TOKEN(anon_sym_xml_DASHstylesheet); - END_STATE(); - default: - return false; - } -} - -static const TSLexMode ts_lex_modes[STATE_COUNT] = { - [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 41, .external_lex_state = 2}, - [2] = {.lex_state = 4, .external_lex_state = 3}, - [3] = {.lex_state = 4, .external_lex_state = 3}, - [4] = {.lex_state = 4, .external_lex_state = 3}, - [5] = {.lex_state = 4, .external_lex_state = 3}, - [6] = {.lex_state = 41, .external_lex_state = 2}, - [7] = {.lex_state = 41, .external_lex_state = 2}, - [8] = {.lex_state = 41, .external_lex_state = 2}, - [9] = {.lex_state = 41, .external_lex_state = 2}, - [10] = {.lex_state = 41, .external_lex_state = 2}, - [11] = {.lex_state = 41, .external_lex_state = 2}, - [12] = {.lex_state = 41, .external_lex_state = 2}, - [13] = {.lex_state = 41, .external_lex_state = 2}, - [14] = {.lex_state = 41, .external_lex_state = 2}, - [15] = {.lex_state = 41, .external_lex_state = 2}, - [16] = {.lex_state = 4}, - [17] = {.lex_state = 41}, - [18] = {.lex_state = 41, .external_lex_state = 2}, - [19] = {.lex_state = 2}, - [20] = {.lex_state = 4}, - [21] = {.lex_state = 41, .external_lex_state = 2}, - [22] = {.lex_state = 2}, - [23] = {.lex_state = 41, .external_lex_state = 2}, - [24] = {.lex_state = 41, .external_lex_state = 2}, - [25] = {.lex_state = 2}, - [26] = {.lex_state = 41, .external_lex_state = 2}, - [27] = {.lex_state = 4}, - [28] = {.lex_state = 1}, - [29] = {.lex_state = 4, .external_lex_state = 3}, - [30] = {.lex_state = 41, .external_lex_state = 2}, - [31] = {.lex_state = 41, .external_lex_state = 2}, - [32] = {.lex_state = 41, .external_lex_state = 2}, - [33] = {.lex_state = 41, .external_lex_state = 2}, - [34] = {.lex_state = 41, .external_lex_state = 2}, - [35] = {.lex_state = 4, .external_lex_state = 3}, - [36] = {.lex_state = 3}, - [37] = {.lex_state = 4, .external_lex_state = 3}, - [38] = {.lex_state = 41, .external_lex_state = 2}, - [39] = {.lex_state = 1}, - [40] = {.lex_state = 4, .external_lex_state = 3}, - [41] = {.lex_state = 4, .external_lex_state = 3}, - [42] = {.lex_state = 4, .external_lex_state = 3}, - [43] = {.lex_state = 4, .external_lex_state = 3}, - [44] = {.lex_state = 5}, - [45] = {.lex_state = 3}, - [46] = {.lex_state = 41, .external_lex_state = 2}, - [47] = {.lex_state = 41, .external_lex_state = 2}, - [48] = {.lex_state = 4, .external_lex_state = 3}, - [49] = {.lex_state = 4, .external_lex_state = 3}, - [50] = {.lex_state = 5}, - [51] = {.lex_state = 4, .external_lex_state = 3}, - [52] = {.lex_state = 5}, - [53] = {.lex_state = 3}, - [54] = {.lex_state = 5}, - [55] = {.lex_state = 3}, - [56] = {.lex_state = 4, .external_lex_state = 3}, - [57] = {.lex_state = 5}, - [58] = {.lex_state = 4, .external_lex_state = 3}, - [59] = {.lex_state = 41, .external_lex_state = 2}, - [60] = {.lex_state = 41, .external_lex_state = 2}, - [61] = {.lex_state = 41, .external_lex_state = 2}, - [62] = {.lex_state = 4, .external_lex_state = 3}, - [63] = {.lex_state = 4, .external_lex_state = 3}, - [64] = {.lex_state = 4, .external_lex_state = 3}, - [65] = {.lex_state = 3}, - [66] = {.lex_state = 4, .external_lex_state = 3}, - [67] = {.lex_state = 41, .external_lex_state = 2}, - [68] = {.lex_state = 4, .external_lex_state = 3}, - [69] = {.lex_state = 41}, - [70] = {.lex_state = 41}, - [71] = {.lex_state = 41}, - [72] = {.lex_state = 41}, - [73] = {.lex_state = 41}, - [74] = {.lex_state = 1}, - [75] = {.lex_state = 1}, - [76] = {.lex_state = 1}, - [77] = {.lex_state = 41}, - [78] = {.lex_state = 1}, - [79] = {.lex_state = 1}, - [80] = {.lex_state = 41}, - [81] = {.lex_state = 41, .external_lex_state = 2}, - [82] = {.lex_state = 1}, - [83] = {.lex_state = 1}, - [84] = {.lex_state = 4}, - [85] = {.lex_state = 1}, - [86] = {.lex_state = 1}, - [87] = {.lex_state = 4}, - [88] = {.lex_state = 4}, - [89] = {.lex_state = 41, .external_lex_state = 2}, - [90] = {.lex_state = 1}, - [91] = {.lex_state = 2}, - [92] = {.lex_state = 1}, - [93] = {.lex_state = 2}, - [94] = {.lex_state = 1}, - [95] = {.lex_state = 1}, - [96] = {.lex_state = 1}, - [97] = {.lex_state = 2}, - [98] = {.lex_state = 41, .external_lex_state = 2}, - [99] = {.lex_state = 2}, - [100] = {.lex_state = 1}, - [101] = {.lex_state = 41, .external_lex_state = 2}, - [102] = {.lex_state = 41, .external_lex_state = 2}, - [103] = {.lex_state = 41, .external_lex_state = 2}, - [104] = {.lex_state = 4}, - [105] = {.lex_state = 41, .external_lex_state = 2}, - [106] = {.lex_state = 41, .external_lex_state = 2}, - [107] = {.lex_state = 5}, - [108] = {.lex_state = 5}, - [109] = {.lex_state = 1}, - [110] = {.lex_state = 41}, - [111] = {.lex_state = 41, .external_lex_state = 2}, - [112] = {.lex_state = 3}, - [113] = {.lex_state = 5}, - [114] = {.lex_state = 41}, - [115] = {.lex_state = 41, .external_lex_state = 2}, - [116] = {.lex_state = 41}, - [117] = {.lex_state = 1}, - [118] = {.lex_state = 41, .external_lex_state = 2}, - [119] = {.lex_state = 41, .external_lex_state = 2}, - [120] = {.lex_state = 41}, - [121] = {.lex_state = 41, .external_lex_state = 2}, - [122] = {.lex_state = 41}, - [123] = {.lex_state = 41, .external_lex_state = 2}, - [124] = {.lex_state = 3}, - [125] = {.lex_state = 41}, - [126] = {.lex_state = 41, .external_lex_state = 2}, - [127] = {.lex_state = 3}, - [128] = {.lex_state = 41, .external_lex_state = 2}, - [129] = {.lex_state = 41}, - [130] = {.lex_state = 1}, - [131] = {.lex_state = 1, .external_lex_state = 4}, - [132] = {.lex_state = 41, .external_lex_state = 2}, - [133] = {.lex_state = 41}, - [134] = {.lex_state = 1}, - [135] = {.lex_state = 41}, - [136] = {.lex_state = 1}, - [137] = {.lex_state = 41}, - [138] = {.lex_state = 41, .external_lex_state = 2}, - [139] = {.lex_state = 41}, - [140] = {.lex_state = 41, .external_lex_state = 2}, - [141] = {.lex_state = 41}, - [142] = {.lex_state = 0}, - [143] = {.lex_state = 41}, - [144] = {.lex_state = 41}, - [145] = {.lex_state = 41}, - [146] = {.lex_state = 41}, - [147] = {.lex_state = 41, .external_lex_state = 2}, - [148] = {.lex_state = 1}, - [149] = {.lex_state = 1}, - [150] = {.lex_state = 41, .external_lex_state = 2}, - [151] = {.lex_state = 41, .external_lex_state = 2}, - [152] = {.lex_state = 41}, - [153] = {.lex_state = 1}, - [154] = {.lex_state = 41, .external_lex_state = 2}, - [155] = {.lex_state = 41}, - [156] = {.lex_state = 41}, - [157] = {.lex_state = 41}, - [158] = {.lex_state = 1}, - [159] = {.lex_state = 1}, - [160] = {.lex_state = 41}, - [161] = {.lex_state = 1}, - [162] = {.lex_state = 41, .external_lex_state = 2}, - [163] = {.lex_state = 41}, - [164] = {.lex_state = 41}, - [165] = {.lex_state = 41, .external_lex_state = 2}, - [166] = {.lex_state = 41, .external_lex_state = 2}, - [167] = {.lex_state = 41}, - [168] = {.lex_state = 41, .external_lex_state = 2}, - [169] = {.lex_state = 41}, - [170] = {.lex_state = 41}, - [171] = {.lex_state = 0}, - [172] = {.lex_state = 1}, - [173] = {.lex_state = 41}, - [174] = {.lex_state = 1}, - [175] = {.lex_state = 41, .external_lex_state = 2}, - [176] = {.lex_state = 41}, - [177] = {.lex_state = 41, .external_lex_state = 2}, - [178] = {.lex_state = 1}, - [179] = {.lex_state = 41}, - [180] = {.lex_state = 41}, - [181] = {.lex_state = 1}, - [182] = {.lex_state = 41, .external_lex_state = 2}, - [183] = {.lex_state = 10}, - [184] = {.lex_state = 41, .external_lex_state = 2}, - [185] = {.lex_state = 1}, - [186] = {.lex_state = 10}, - [187] = {.lex_state = 41}, - [188] = {.lex_state = 41}, - [189] = {.lex_state = 10}, - [190] = {.lex_state = 41}, - [191] = {.lex_state = 1}, - [192] = {.lex_state = 41}, - [193] = {.lex_state = 1}, - [194] = {.lex_state = 41}, - [195] = {.lex_state = 1}, - [196] = {.lex_state = 1}, - [197] = {.lex_state = 1}, - [198] = {.lex_state = 41}, - [199] = {.lex_state = 41}, - [200] = {.lex_state = 41}, - [201] = {.lex_state = 41}, - [202] = {.lex_state = 10}, - [203] = {.lex_state = 10}, - [204] = {.lex_state = 41}, - [205] = {.lex_state = 41}, - [206] = {.lex_state = 10}, - [207] = {.lex_state = 41}, - [208] = {.lex_state = 1}, - [209] = {.lex_state = 41}, - [210] = {.lex_state = 41}, - [211] = {.lex_state = 41}, - [212] = {.lex_state = 41}, - [213] = {.lex_state = 1}, - [214] = {.lex_state = 41}, - [215] = {.lex_state = 41}, - [216] = {.lex_state = 41}, - [217] = {.lex_state = 41}, - [218] = {.lex_state = 10}, - [219] = {.lex_state = 41}, - [220] = {.lex_state = 41}, - [221] = {.lex_state = 41}, - [222] = {.lex_state = 41}, - [223] = {.lex_state = 41}, - [224] = {.lex_state = 10}, - [225] = {.lex_state = 41}, - [226] = {.lex_state = 41}, - [227] = {.lex_state = 1, .external_lex_state = 4}, - [228] = {.lex_state = 10}, - [229] = {.lex_state = 10}, - [230] = {.lex_state = 41}, - [231] = {.lex_state = 1}, - [232] = {.lex_state = 41}, - [233] = {.lex_state = 10}, - [234] = {.lex_state = 10}, - [235] = {.lex_state = 41}, - [236] = {.lex_state = 1}, - [237] = {.lex_state = 41}, - [238] = {.lex_state = 41}, - [239] = {.lex_state = 41}, - [240] = {.lex_state = 41}, - [241] = {.lex_state = 41}, - [242] = {.lex_state = 41}, - [243] = {.lex_state = 41}, - [244] = {.lex_state = 41}, - [245] = {.lex_state = 41}, - [246] = {.lex_state = 10}, - [247] = {.lex_state = 41}, - [248] = {.lex_state = 0}, - [249] = {.lex_state = 41}, - [250] = {.lex_state = 10}, - [251] = {.lex_state = 41}, - [252] = {.lex_state = 10}, - [253] = {.lex_state = 41}, - [254] = {.lex_state = 41}, - [255] = {.lex_state = 41}, - [256] = {.lex_state = 41}, - [257] = {.lex_state = 41}, - [258] = {.lex_state = 0}, - [259] = {.lex_state = 1}, - [260] = {.lex_state = 41}, - [261] = {.lex_state = 41}, - [262] = {.lex_state = 41}, - [263] = {.lex_state = 41}, - [264] = {.lex_state = 41}, - [265] = {.lex_state = 1}, - [266] = {.lex_state = 41}, - [267] = {.lex_state = 41}, - [268] = {.lex_state = 41}, - [269] = {.lex_state = 41}, - [270] = {.lex_state = 10}, - [271] = {.lex_state = 41}, - [272] = {.lex_state = 10}, - [273] = {.lex_state = 41}, - [274] = {.lex_state = 10}, - [275] = {.lex_state = 10}, - [276] = {.lex_state = 41}, - [277] = {.lex_state = 10}, - [278] = {.lex_state = 10}, - [279] = {.lex_state = 41}, - [280] = {.lex_state = 41}, - [281] = {.lex_state = 41}, - [282] = {.lex_state = 37}, - [283] = {.lex_state = 41}, - [284] = {.lex_state = 41}, - [285] = {.lex_state = 41}, - [286] = {.lex_state = 41}, - [287] = {.lex_state = 41}, - [288] = {.lex_state = 41}, - [289] = {.lex_state = 41}, - [290] = {.lex_state = 41}, - [291] = {.lex_state = 41}, - [292] = {.lex_state = 41}, - [293] = {.lex_state = 41}, - [294] = {.lex_state = 41}, - [295] = {.lex_state = 41}, - [296] = {.lex_state = 41}, - [297] = {.lex_state = 1}, - [298] = {.lex_state = 41}, - [299] = {.lex_state = 10}, - [300] = {.lex_state = 41}, - [301] = {.lex_state = 1}, - [302] = {.lex_state = 41}, - [303] = {.lex_state = 41}, - [304] = {.lex_state = 41}, - [305] = {.lex_state = 41}, - [306] = {.lex_state = 41}, - [307] = {.lex_state = 41}, - [308] = {.lex_state = 10}, - [309] = {.lex_state = 41}, - [310] = {.lex_state = 41}, - [311] = {.lex_state = 41}, - [312] = {.lex_state = 41}, - [313] = {.lex_state = 41}, - [314] = {.lex_state = 10}, - [315] = {.lex_state = 41}, - [316] = {.lex_state = 37}, - [317] = {.lex_state = 41}, - [318] = {.lex_state = 41}, - [319] = {.lex_state = 41}, - [320] = {.lex_state = 41}, - [321] = {.lex_state = 41}, - [322] = {.lex_state = 10}, - [323] = {.lex_state = 1}, - [324] = {.lex_state = 1}, - [325] = {.lex_state = 41}, - [326] = {.lex_state = 41}, - [327] = {.lex_state = 41}, - [328] = {.lex_state = 41}, - [329] = {.lex_state = 41}, - [330] = {.lex_state = 41}, - [331] = {.lex_state = 37}, - [332] = {.lex_state = 41}, - [333] = {.lex_state = 41}, - [334] = {.lex_state = 41}, - [335] = {.lex_state = 41}, - [336] = {.lex_state = 37}, - [337] = {.lex_state = 41}, - [338] = {.lex_state = 41}, - [339] = {.lex_state = 41}, - [340] = {.lex_state = 41}, - [341] = {.lex_state = 40}, - [342] = {.lex_state = 1}, - [343] = {.lex_state = 40}, - [344] = {.lex_state = 41}, - [345] = {.lex_state = 41}, - [346] = {.lex_state = 41}, - [347] = {.lex_state = 41}, - [348] = {.lex_state = 41}, - [349] = {.lex_state = 41}, - [350] = {.lex_state = 41}, - [351] = {.lex_state = 41}, - [352] = {.lex_state = 41}, - [353] = {.lex_state = 10}, - [354] = {.lex_state = 37}, - [355] = {.lex_state = 1}, - [356] = {.lex_state = 128}, - [357] = {.lex_state = 129}, - [358] = {.lex_state = 41}, - [359] = {.lex_state = 37}, - [360] = {.lex_state = 41}, - [361] = {.lex_state = 41}, - [362] = {.lex_state = 130}, - [363] = {.lex_state = 41}, - [364] = {.lex_state = 131}, - [365] = {.lex_state = 41}, - [366] = {.lex_state = 41}, - [367] = {.lex_state = 41}, - [368] = {.lex_state = 41}, - [369] = {.lex_state = 41}, - [370] = {.lex_state = 41}, - [371] = {.lex_state = 41}, - [372] = {.lex_state = 41}, - [373] = {.lex_state = 41}, - [374] = {.lex_state = 41}, - [375] = {.lex_state = 41}, - [376] = {.lex_state = 41}, - [377] = {.lex_state = 41}, - [378] = {.lex_state = 41}, - [379] = {.lex_state = 10}, - [380] = {.lex_state = 41}, - [381] = {.lex_state = 41}, - [382] = {.lex_state = 41}, - [383] = {.lex_state = 41}, - [384] = {.lex_state = 41}, - [385] = {.lex_state = 41}, - [386] = {.lex_state = 41}, - [387] = {.lex_state = 41}, - [388] = {.lex_state = 0, .external_lex_state = 5}, - [389] = {.lex_state = 41}, - [390] = {.lex_state = 41}, - [391] = {.lex_state = 10}, - [392] = {.lex_state = 1}, - [393] = {.lex_state = 41}, - [394] = {.lex_state = 41}, - [395] = {.lex_state = 41}, - [396] = {.lex_state = 41}, - [397] = {.lex_state = 1}, - [398] = {.lex_state = 1}, - [399] = {.lex_state = 0, .external_lex_state = 6}, - [400] = {.lex_state = 1}, - [401] = {.lex_state = 41}, - [402] = {.lex_state = 0, .external_lex_state = 5}, - [403] = {.lex_state = 41}, - [404] = {.lex_state = 1}, - [405] = {.lex_state = 0, .external_lex_state = 7}, - [406] = {.lex_state = 39}, - [407] = {.lex_state = 1}, - [408] = {.lex_state = 1}, - [409] = {.lex_state = 1}, - [410] = {.lex_state = 41}, - [411] = {.lex_state = 41}, - [412] = {.lex_state = 41}, - [413] = {.lex_state = 41}, - [414] = {.lex_state = 41}, - [415] = {.lex_state = 0}, - [416] = {.lex_state = 41}, - [417] = {.lex_state = 41}, - [418] = {.lex_state = 41}, - [419] = {.lex_state = 10}, - [420] = {.lex_state = 1}, - [421] = {.lex_state = 41}, - [422] = {.lex_state = 41}, - [423] = {.lex_state = 41}, - [424] = {.lex_state = 41}, - [425] = {.lex_state = 41}, - [426] = {.lex_state = 10}, - [427] = {.lex_state = 41}, - [428] = {.lex_state = 41}, - [429] = {.lex_state = 41}, - [430] = {.lex_state = 41}, - [431] = {.lex_state = 41}, - [432] = {.lex_state = 41}, - [433] = {.lex_state = 1}, - [434] = {.lex_state = 1}, - [435] = {.lex_state = 1}, - [436] = {.lex_state = 39}, - [437] = {.lex_state = 0, .external_lex_state = 7}, - [438] = {.lex_state = 1}, - [439] = {.lex_state = 0, .external_lex_state = 6}, - [440] = {.lex_state = 1}, - [441] = {.lex_state = 1}, - [442] = {.lex_state = 1}, - [443] = {.lex_state = 39}, - [444] = {.lex_state = 0, .external_lex_state = 6}, - [445] = {.lex_state = 1}, - [446] = {.lex_state = 1}, - [447] = {.lex_state = 1}, - [448] = {.lex_state = 39}, - [449] = {.lex_state = 1}, - [450] = {.lex_state = 1}, - [451] = {.lex_state = 1}, - [452] = {.lex_state = 39}, -}; - -enum { - ts_external_token_PITarget = 0, - ts_external_token__pi_content = 1, - ts_external_token_Comment = 2, - ts_external_token_CharData = 3, - ts_external_token_CData = 4, - ts_external_token_xml_DASHmodel = 5, - ts_external_token_xml_DASHstylesheet = 6, -}; - -static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { - [ts_external_token_PITarget] = sym_PITarget, - [ts_external_token__pi_content] = sym__pi_content, - [ts_external_token_Comment] = sym_Comment, - [ts_external_token_CharData] = sym_CharData, - [ts_external_token_CData] = sym_CData, - [ts_external_token_xml_DASHmodel] = anon_sym_xml_DASHmodel, - [ts_external_token_xml_DASHstylesheet] = anon_sym_xml_DASHstylesheet, -}; - -static const bool ts_external_scanner_states[8][EXTERNAL_TOKEN_COUNT] = { - [1] = { - [ts_external_token_PITarget] = true, - [ts_external_token__pi_content] = true, - [ts_external_token_Comment] = true, - [ts_external_token_CharData] = true, - [ts_external_token_CData] = true, - [ts_external_token_xml_DASHmodel] = true, - [ts_external_token_xml_DASHstylesheet] = true, - }, - [2] = { - [ts_external_token_Comment] = true, - }, - [3] = { - [ts_external_token_Comment] = true, - [ts_external_token_CharData] = true, - }, - [4] = { - [ts_external_token_PITarget] = true, - [ts_external_token_xml_DASHmodel] = true, - [ts_external_token_xml_DASHstylesheet] = true, - }, - [5] = { - [ts_external_token_CData] = true, - }, - [6] = { - [ts_external_token__pi_content] = true, - }, - [7] = { - [ts_external_token_PITarget] = true, - }, -}; - -static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { - [0] = { - [ts_builtin_sym_end] = ACTIONS(1), - [sym_Name] = ACTIONS(1), - [anon_sym_LT_BANG_LBRACK] = ACTIONS(1), - [anon_sym_IGNORE] = ACTIONS(1), - [anon_sym_INCLUDE] = ACTIONS(1), - [anon_sym_LBRACK] = ACTIONS(1), - [anon_sym_RBRACK_RBRACK_GT] = ACTIONS(1), - [anon_sym_LT_BANG] = ACTIONS(1), - [anon_sym_ELEMENT] = ACTIONS(1), - [anon_sym_GT] = ACTIONS(1), - [anon_sym_EMPTY] = ACTIONS(1), - [anon_sym_ANY] = ACTIONS(1), - [anon_sym_LPAREN] = ACTIONS(1), - [anon_sym_POUNDPCDATA] = ACTIONS(1), - [anon_sym_PIPE] = ACTIONS(1), - [anon_sym_RPAREN] = ACTIONS(1), - [anon_sym_STAR] = ACTIONS(1), - [anon_sym_QMARK] = ACTIONS(1), - [anon_sym_PLUS] = ACTIONS(1), - [anon_sym_COMMA] = ACTIONS(1), - [anon_sym_ATTLIST] = ACTIONS(1), - [anon_sym_CDATA] = ACTIONS(1), - [sym_TokenizedType] = ACTIONS(1), - [anon_sym_NOTATION] = ACTIONS(1), - [anon_sym_POUNDREQUIRED] = ACTIONS(1), - [anon_sym_POUNDIMPLIED] = ACTIONS(1), - [anon_sym_POUNDFIXED] = ACTIONS(1), - [anon_sym_ENTITY] = ACTIONS(1), - [anon_sym_PERCENT] = ACTIONS(1), - [anon_sym_DQUOTE] = ACTIONS(1), - [aux_sym_EntityValue_token1] = ACTIONS(1), - [anon_sym_SQUOTE] = ACTIONS(1), - [aux_sym_EntityValue_token2] = ACTIONS(1), - [anon_sym_NDATA] = ACTIONS(1), - [anon_sym_SEMI] = ACTIONS(1), - [sym__S] = ACTIONS(1), - [sym_Nmtoken] = ACTIONS(1), - [anon_sym_AMP] = ACTIONS(1), - [anon_sym_AMP_POUND] = ACTIONS(1), - [aux_sym_CharRef_token1] = ACTIONS(1), - [anon_sym_AMP_POUNDx] = ACTIONS(1), - [aux_sym_CharRef_token2] = ACTIONS(1), - [aux_sym_AttValue_token1] = ACTIONS(1), - [aux_sym_AttValue_token2] = ACTIONS(1), - [anon_sym_SYSTEM] = ACTIONS(1), - [anon_sym_PUBLIC] = ACTIONS(1), - [anon_sym_LT_QMARK] = ACTIONS(1), - [anon_sym_xml] = ACTIONS(1), - [anon_sym_version] = ACTIONS(1), - [sym_VersionNum] = ACTIONS(1), - [anon_sym_encoding] = ACTIONS(1), - [sym_EncName] = ACTIONS(1), - [anon_sym_EQ] = ACTIONS(1), - [anon_sym_standalone] = ACTIONS(1), - [anon_sym_yes] = ACTIONS(1), - [anon_sym_no] = ACTIONS(1), - [anon_sym_DOCTYPE] = ACTIONS(1), - [anon_sym_RBRACK] = ACTIONS(1), - [anon_sym_LT] = ACTIONS(1), - [anon_sym_SLASH_GT] = ACTIONS(1), - [anon_sym_LT_SLASH] = ACTIONS(1), - [anon_sym_xml_DASHstylesheet] = ACTIONS(1), - [anon_sym_xml_DASHmodel] = ACTIONS(1), - [sym_PITarget] = ACTIONS(1), - [sym__pi_content] = ACTIONS(1), - [sym_Comment] = ACTIONS(1), - [sym_CharData] = ACTIONS(1), - [sym_CData] = ACTIONS(1), - }, - [1] = { - [sym_document] = STATE(415), - [sym_XMLDecl] = STATE(23), - [sym_PI] = STATE(18), - [sym_prolog] = STATE(142), - [sym__Misc] = STATE(18), - [sym_doctypedecl] = STATE(38), - [sym_element] = STATE(59), - [sym_EmptyElemTag] = STATE(162), - [sym_STag] = STATE(2), - [sym_StyleSheetPI] = STATE(18), - [sym_XmlModelPI] = STATE(18), - [aux_sym_document_repeat1] = STATE(18), - [anon_sym_LT_BANG] = ACTIONS(3), - [sym__S] = ACTIONS(5), - [anon_sym_LT_QMARK] = ACTIONS(7), - [anon_sym_LT] = ACTIONS(9), - [sym_Comment] = ACTIONS(11), - }, -}; - -static const uint16_t ts_small_parse_table[] = { - [0] = 15, - ACTIONS(13), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(15), 1, - anon_sym_AMP, - ACTIONS(17), 1, - anon_sym_AMP_POUND, - ACTIONS(19), 1, - anon_sym_AMP_POUNDx, - ACTIONS(21), 1, - anon_sym_LT_QMARK, - ACTIONS(23), 1, - anon_sym_LT, - ACTIONS(25), 1, - anon_sym_LT_SLASH, - STATE(3), 1, - sym_STag, - STATE(51), 1, - sym_EmptyElemTag, - STATE(166), 1, - sym_ETag, - STATE(258), 1, - sym_content, - STATE(402), 1, - sym_CDStart, - ACTIONS(27), 2, - sym_Comment, - sym_CharData, - STATE(41), 2, - sym_EntityRef, - sym_CharRef, - STATE(5), 5, - sym__Reference, - sym_PI, - sym_element, - sym_CDSect, - aux_sym_content_repeat1, - [52] = 15, - ACTIONS(13), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(15), 1, - anon_sym_AMP, - ACTIONS(17), 1, - anon_sym_AMP_POUND, - ACTIONS(19), 1, - anon_sym_AMP_POUNDx, - ACTIONS(21), 1, - anon_sym_LT_QMARK, - ACTIONS(23), 1, - anon_sym_LT, - ACTIONS(29), 1, - anon_sym_LT_SLASH, - STATE(3), 1, - sym_STag, - STATE(37), 1, - sym_ETag, - STATE(51), 1, - sym_EmptyElemTag, - STATE(248), 1, - sym_content, - STATE(402), 1, - sym_CDStart, - ACTIONS(27), 2, - sym_Comment, - sym_CharData, - STATE(41), 2, - sym_EntityRef, - sym_CharRef, - STATE(5), 5, - sym__Reference, - sym_PI, - sym_element, - sym_CDSect, - aux_sym_content_repeat1, - [104] = 13, - ACTIONS(31), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(34), 1, - anon_sym_AMP, - ACTIONS(37), 1, - anon_sym_AMP_POUND, - ACTIONS(40), 1, - anon_sym_AMP_POUNDx, - ACTIONS(43), 1, - anon_sym_LT_QMARK, - ACTIONS(46), 1, - anon_sym_LT, - ACTIONS(49), 1, - anon_sym_LT_SLASH, - STATE(3), 1, - sym_STag, - STATE(51), 1, - sym_EmptyElemTag, - STATE(402), 1, - sym_CDStart, - ACTIONS(51), 2, - sym_Comment, - sym_CharData, - STATE(41), 2, - sym_EntityRef, - sym_CharRef, - STATE(4), 5, - sym__Reference, - sym_PI, - sym_element, - sym_CDSect, - aux_sym_content_repeat1, - [150] = 13, - ACTIONS(13), 1, - anon_sym_LT_BANG_LBRACK, - ACTIONS(15), 1, - anon_sym_AMP, - ACTIONS(17), 1, - anon_sym_AMP_POUND, - ACTIONS(19), 1, - anon_sym_AMP_POUNDx, - ACTIONS(21), 1, - anon_sym_LT_QMARK, - ACTIONS(23), 1, - anon_sym_LT, - ACTIONS(54), 1, - anon_sym_LT_SLASH, - STATE(3), 1, - sym_STag, - STATE(51), 1, - sym_EmptyElemTag, - STATE(402), 1, - sym_CDStart, - ACTIONS(56), 2, - sym_Comment, - sym_CharData, - STATE(41), 2, - sym_EntityRef, - sym_CharRef, - STATE(4), 5, - sym__Reference, - sym_PI, - sym_element, - sym_CDSect, - aux_sym_content_repeat1, - [196] = 11, - ACTIONS(3), 1, - anon_sym_LT_BANG, - ACTIONS(7), 1, - anon_sym_LT_QMARK, - ACTIONS(9), 1, - anon_sym_LT, - STATE(2), 1, - sym_STag, - STATE(23), 1, - sym_XMLDecl, - STATE(30), 1, - sym_element, - STATE(38), 1, - sym_doctypedecl, - STATE(162), 1, - sym_EmptyElemTag, - STATE(171), 1, - sym_prolog, - ACTIONS(11), 2, - sym_Comment, - sym__S, - STATE(18), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [235] = 9, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(64), 1, - anon_sym_RBRACK, - ACTIONS(66), 1, - sym_Comment, - STATE(9), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [268] = 9, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - ACTIONS(68), 1, - anon_sym_RBRACK, - STATE(9), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [301] = 9, - ACTIONS(70), 1, - anon_sym_LT_BANG, - ACTIONS(73), 1, - sym__S, - ACTIONS(76), 1, - anon_sym_LT_QMARK, - ACTIONS(79), 1, - anon_sym_RBRACK, - ACTIONS(81), 1, - sym_Comment, - STATE(9), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [334] = 9, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - ACTIONS(84), 1, - anon_sym_RBRACK, - STATE(9), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [367] = 9, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - ACTIONS(86), 1, - anon_sym_RBRACK, - STATE(9), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [400] = 8, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - STATE(10), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [430] = 8, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - STATE(8), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [460] = 8, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - STATE(7), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [490] = 8, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(60), 1, - sym__S, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - STATE(11), 1, - aux_sym__intSubset, - STATE(173), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [520] = 8, - ACTIONS(88), 1, - anon_sym_PERCENT, - ACTIONS(91), 1, - anon_sym_SQUOTE, - ACTIONS(93), 1, - aux_sym_EntityValue_token2, - ACTIONS(96), 1, - anon_sym_AMP, - ACTIONS(99), 1, - anon_sym_AMP_POUND, - ACTIONS(102), 1, - anon_sym_AMP_POUNDx, - STATE(87), 2, - sym_EntityRef, - sym_CharRef, - STATE(16), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [548] = 8, - ACTIONS(105), 1, - anon_sym_LPAREN, - ACTIONS(107), 1, - anon_sym_CDATA, - ACTIONS(109), 1, - sym_TokenizedType, - ACTIONS(111), 1, - anon_sym_NOTATION, - ACTIONS(113), 1, - anon_sym_PERCENT, - STATE(286), 1, - sym__AttType, - STATE(287), 2, - sym_NotationType, - sym_Enumeration, - STATE(284), 3, - sym_StringType, - sym__EnumeratedType, - sym_PEReference, - [576] = 6, - ACTIONS(3), 1, - anon_sym_LT_BANG, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(119), 1, - anon_sym_LT, - STATE(32), 1, - sym_doctypedecl, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [600] = 8, - ACTIONS(121), 1, - anon_sym_PERCENT, - ACTIONS(124), 1, - anon_sym_DQUOTE, - ACTIONS(126), 1, - aux_sym_EntityValue_token1, - ACTIONS(129), 1, - anon_sym_AMP, - ACTIONS(132), 1, - anon_sym_AMP_POUND, - ACTIONS(135), 1, - anon_sym_AMP_POUNDx, - STATE(97), 2, - sym_EntityRef, - sym_CharRef, - STATE(19), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [628] = 8, - ACTIONS(138), 1, - anon_sym_PERCENT, - ACTIONS(140), 1, - anon_sym_SQUOTE, - ACTIONS(142), 1, - aux_sym_EntityValue_token2, - ACTIONS(144), 1, - anon_sym_AMP, - ACTIONS(146), 1, - anon_sym_AMP_POUND, - ACTIONS(148), 1, - anon_sym_AMP_POUNDx, - STATE(87), 2, - sym_EntityRef, - sym_CharRef, - STATE(16), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [656] = 5, - ACTIONS(155), 1, - anon_sym_LT_QMARK, - ACTIONS(158), 1, - anon_sym_LT, - ACTIONS(150), 2, - ts_builtin_sym_end, - anon_sym_LT_BANG, - ACTIONS(152), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [678] = 8, - ACTIONS(140), 1, - anon_sym_DQUOTE, - ACTIONS(160), 1, - anon_sym_PERCENT, - ACTIONS(162), 1, - aux_sym_EntityValue_token1, - ACTIONS(164), 1, - anon_sym_AMP, - ACTIONS(166), 1, - anon_sym_AMP_POUND, - ACTIONS(168), 1, - anon_sym_AMP_POUNDx, - STATE(97), 2, - sym_EntityRef, - sym_CharRef, - STATE(19), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [706] = 6, - ACTIONS(3), 1, - anon_sym_LT_BANG, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(119), 1, - anon_sym_LT, - STATE(32), 1, - sym_doctypedecl, - ACTIONS(170), 2, - sym_Comment, - sym__S, - STATE(24), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [730] = 6, - ACTIONS(3), 1, - anon_sym_LT_BANG, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(172), 1, - anon_sym_LT, - STATE(61), 1, - sym_doctypedecl, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [754] = 8, - ACTIONS(160), 1, - anon_sym_PERCENT, - ACTIONS(164), 1, - anon_sym_AMP, - ACTIONS(166), 1, - anon_sym_AMP_POUND, - ACTIONS(168), 1, - anon_sym_AMP_POUNDx, - ACTIONS(174), 1, - anon_sym_DQUOTE, - ACTIONS(176), 1, - aux_sym_EntityValue_token1, - STATE(97), 2, - sym_EntityRef, - sym_CharRef, - STATE(22), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat1, - [782] = 6, - ACTIONS(58), 1, - anon_sym_LT_BANG, - ACTIONS(62), 1, - anon_sym_LT_QMARK, - ACTIONS(66), 1, - sym_Comment, - STATE(146), 1, - sym__markupdecl, - STATE(303), 2, - sym_GEDecl, - sym_PEDecl, - STATE(302), 5, - sym_elementdecl, - sym_AttlistDecl, - sym__EntityDecl, - sym_NotationDecl, - sym_PI, - [806] = 8, - ACTIONS(138), 1, - anon_sym_PERCENT, - ACTIONS(144), 1, - anon_sym_AMP, - ACTIONS(146), 1, - anon_sym_AMP_POUND, - ACTIONS(148), 1, - anon_sym_AMP_POUNDx, - ACTIONS(174), 1, - anon_sym_SQUOTE, - ACTIONS(178), 1, - aux_sym_EntityValue_token2, - STATE(87), 2, - sym_EntityRef, - sym_CharRef, - STATE(20), 3, - sym_PEReference, - sym__Reference, - aux_sym_EntityValue_repeat2, - [834] = 1, - ACTIONS(180), 10, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - anon_sym_PERCENT, - sym__S, - sym_Name, - [847] = 2, - ACTIONS(184), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(182), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [861] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(186), 1, - ts_builtin_sym_end, - ACTIONS(188), 2, - sym_Comment, - sym__S, - STATE(47), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [879] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(190), 1, - anon_sym_LT, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [897] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(172), 1, - anon_sym_LT, - ACTIONS(192), 2, - sym_Comment, - sym__S, - STATE(60), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [915] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(172), 1, - anon_sym_LT, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [933] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(194), 1, - ts_builtin_sym_end, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [951] = 2, - ACTIONS(198), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(196), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [965] = 7, - ACTIONS(200), 1, - anon_sym_DQUOTE, - ACTIONS(202), 1, - anon_sym_AMP, - ACTIONS(204), 1, - anon_sym_AMP_POUND, - ACTIONS(206), 1, - anon_sym_AMP_POUNDx, - ACTIONS(208), 1, - aux_sym_AttValue_token1, - STATE(53), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(112), 2, - sym_EntityRef, - sym_CharRef, - [989] = 2, - ACTIONS(212), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(210), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1003] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(119), 1, - anon_sym_LT, - ACTIONS(214), 2, - sym_Comment, - sym__S, - STATE(33), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1021] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(218), 1, - anon_sym_LPAREN, - STATE(122), 1, - sym__choice, - STATE(317), 1, - sym_contentspec, - ACTIONS(216), 2, - anon_sym_EMPTY, - anon_sym_ANY, - STATE(243), 3, - sym_Mixed, - sym_children, - sym_PEReference, - [1043] = 2, - ACTIONS(222), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(220), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1057] = 2, - ACTIONS(226), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(224), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1071] = 2, - ACTIONS(230), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(228), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1085] = 2, - ACTIONS(234), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(232), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1099] = 7, - ACTIONS(236), 1, - anon_sym_SQUOTE, - ACTIONS(238), 1, - anon_sym_AMP, - ACTIONS(241), 1, - anon_sym_AMP_POUND, - ACTIONS(244), 1, - anon_sym_AMP_POUNDx, - ACTIONS(247), 1, - aux_sym_AttValue_token2, - STATE(44), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(108), 2, - sym_EntityRef, - sym_CharRef, - [1123] = 7, - ACTIONS(250), 1, - anon_sym_DQUOTE, - ACTIONS(252), 1, - anon_sym_AMP, - ACTIONS(255), 1, - anon_sym_AMP_POUND, - ACTIONS(258), 1, - anon_sym_AMP_POUNDx, - ACTIONS(261), 1, - aux_sym_AttValue_token1, - STATE(45), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(112), 2, - sym_EntityRef, - sym_CharRef, - [1147] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(264), 1, - ts_builtin_sym_end, - ACTIONS(266), 2, - sym_Comment, - sym__S, - STATE(67), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1165] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(268), 1, - ts_builtin_sym_end, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1183] = 2, - ACTIONS(272), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(270), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1197] = 2, - ACTIONS(276), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(274), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1211] = 7, - ACTIONS(278), 1, - anon_sym_SQUOTE, - ACTIONS(280), 1, - anon_sym_AMP, - ACTIONS(282), 1, - anon_sym_AMP_POUND, - ACTIONS(284), 1, - anon_sym_AMP_POUNDx, - ACTIONS(286), 1, - aux_sym_AttValue_token2, - STATE(54), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(108), 2, - sym_EntityRef, - sym_CharRef, - [1235] = 2, - ACTIONS(290), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(288), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1249] = 7, - ACTIONS(280), 1, - anon_sym_AMP, - ACTIONS(282), 1, - anon_sym_AMP_POUND, - ACTIONS(284), 1, - anon_sym_AMP_POUNDx, - ACTIONS(292), 1, - anon_sym_SQUOTE, - ACTIONS(294), 1, - aux_sym_AttValue_token2, - STATE(44), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(108), 2, - sym_EntityRef, - sym_CharRef, - [1273] = 7, - ACTIONS(202), 1, - anon_sym_AMP, - ACTIONS(204), 1, - anon_sym_AMP_POUND, - ACTIONS(206), 1, - anon_sym_AMP_POUNDx, - ACTIONS(292), 1, - anon_sym_DQUOTE, - ACTIONS(296), 1, - aux_sym_AttValue_token1, - STATE(45), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(112), 2, - sym_EntityRef, - sym_CharRef, - [1297] = 7, - ACTIONS(280), 1, - anon_sym_AMP, - ACTIONS(282), 1, - anon_sym_AMP_POUND, - ACTIONS(284), 1, - anon_sym_AMP_POUNDx, - ACTIONS(294), 1, - aux_sym_AttValue_token2, - ACTIONS(298), 1, - anon_sym_SQUOTE, - STATE(44), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(108), 2, - sym_EntityRef, - sym_CharRef, - [1321] = 7, - ACTIONS(202), 1, - anon_sym_AMP, - ACTIONS(204), 1, - anon_sym_AMP_POUND, - ACTIONS(206), 1, - anon_sym_AMP_POUNDx, - ACTIONS(296), 1, - aux_sym_AttValue_token1, - ACTIONS(298), 1, - anon_sym_DQUOTE, - STATE(45), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(112), 2, - sym_EntityRef, - sym_CharRef, - [1345] = 2, - ACTIONS(302), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(300), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1359] = 7, - ACTIONS(200), 1, - anon_sym_SQUOTE, - ACTIONS(280), 1, - anon_sym_AMP, - ACTIONS(282), 1, - anon_sym_AMP_POUND, - ACTIONS(284), 1, - anon_sym_AMP_POUNDx, - ACTIONS(304), 1, - aux_sym_AttValue_token2, - STATE(52), 2, - sym__Reference, - aux_sym_AttValue_repeat2, - STATE(108), 2, - sym_EntityRef, - sym_CharRef, - [1383] = 2, - ACTIONS(308), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(306), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1397] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(310), 1, - ts_builtin_sym_end, - ACTIONS(312), 2, - sym_Comment, - sym__S, - STATE(34), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1415] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(314), 1, - anon_sym_LT, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1433] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(314), 1, - anon_sym_LT, - ACTIONS(316), 2, - sym_Comment, - sym__S, - STATE(31), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1451] = 2, - ACTIONS(320), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(318), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1465] = 2, - ACTIONS(324), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(322), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1479] = 2, - ACTIONS(328), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(326), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1493] = 7, - ACTIONS(202), 1, - anon_sym_AMP, - ACTIONS(204), 1, - anon_sym_AMP_POUND, - ACTIONS(206), 1, - anon_sym_AMP_POUNDx, - ACTIONS(278), 1, - anon_sym_DQUOTE, - ACTIONS(330), 1, - aux_sym_AttValue_token1, - STATE(55), 2, - sym__Reference, - aux_sym_AttValue_repeat1, - STATE(112), 2, - sym_EntityRef, - sym_CharRef, - [1517] = 2, - ACTIONS(334), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(332), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1531] = 4, - ACTIONS(117), 1, - anon_sym_LT_QMARK, - ACTIONS(336), 1, - ts_builtin_sym_end, - ACTIONS(115), 2, - sym_Comment, - sym__S, - STATE(21), 5, - sym_PI, - sym__Misc, - sym_StyleSheetPI, - sym_XmlModelPI, - aux_sym_document_repeat1, - [1549] = 2, - ACTIONS(340), 3, - anon_sym_AMP, - anon_sym_AMP_POUND, - anon_sym_LT, - ACTIONS(338), 6, - sym_Comment, - sym_CharData, - anon_sym_LT_BANG_LBRACK, - anon_sym_AMP_POUNDx, - anon_sym_LT_QMARK, - anon_sym_LT_SLASH, - [1563] = 1, - ACTIONS(342), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [1574] = 1, - ACTIONS(344), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [1585] = 6, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(348), 1, - anon_sym_RPAREN, - ACTIONS(352), 1, - anon_sym_COMMA, - ACTIONS(354), 1, - sym__S, - STATE(163), 1, - aux_sym_Mixed_repeat1, - ACTIONS(350), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [1606] = 1, - ACTIONS(356), 8, - anon_sym_GT, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - anon_sym_COMMA, - sym__S, - [1617] = 6, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(352), 1, - anon_sym_COMMA, - ACTIONS(358), 1, - anon_sym_RPAREN, - ACTIONS(360), 1, - sym__S, - STATE(129), 1, - aux_sym_Mixed_repeat1, - ACTIONS(350), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [1638] = 8, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - ACTIONS(366), 1, - anon_sym_POUNDPCDATA, - ACTIONS(368), 1, - sym__S, - STATE(71), 1, - sym_PEReference, - STATE(80), 1, - sym__choice, - STATE(125), 1, - sym__cp, - [1663] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - ACTIONS(370), 1, - sym__S, - STATE(157), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [1683] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - ACTIONS(372), 1, - sym__S, - STATE(125), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [1703] = 6, - ACTIONS(376), 1, - anon_sym_POUNDFIXED, - ACTIONS(378), 1, - anon_sym_DQUOTE, - ACTIONS(380), 1, - anon_sym_SQUOTE, - STATE(244), 1, - sym_AttValue, - STATE(330), 1, - sym_DefaultDecl, - ACTIONS(374), 2, - anon_sym_POUNDREQUIRED, - anon_sym_POUNDIMPLIED, - [1723] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - ACTIONS(382), 1, - sym__S, - STATE(179), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [1743] = 7, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - ACTIONS(384), 1, - anon_sym_POUNDPCDATA, - STATE(73), 1, - sym_PEReference, - STATE(80), 1, - sym__choice, - STATE(120), 1, - sym__cp, - [1765] = 2, - ACTIONS(350), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - ACTIONS(352), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [1777] = 2, - ACTIONS(388), 1, - anon_sym_LT, - ACTIONS(386), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [1788] = 5, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - STATE(157), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [1805] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(390), 1, - sym_Name, - ACTIONS(392), 1, - anon_sym_PIPE, - ACTIONS(394), 1, - sym__S, - STATE(100), 1, - aux_sym_NotationType_repeat1, - STATE(304), 1, - sym_PEReference, - [1824] = 2, - ACTIONS(334), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(332), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1835] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(392), 1, - anon_sym_PIPE, - ACTIONS(394), 1, - sym__S, - ACTIONS(396), 1, - sym_Name, - STATE(86), 1, - aux_sym_NotationType_repeat1, - STATE(309), 1, - sym_PEReference, - [1854] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(390), 1, - sym_Name, - ACTIONS(392), 1, - anon_sym_PIPE, - ACTIONS(394), 1, - sym__S, - STATE(109), 1, - aux_sym_NotationType_repeat1, - STATE(304), 1, - sym_PEReference, - [1873] = 2, - ACTIONS(226), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(224), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1884] = 2, - ACTIONS(398), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(180), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [1895] = 2, - ACTIONS(402), 1, - anon_sym_LT, - ACTIONS(400), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [1906] = 5, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - STATE(144), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [1923] = 2, - ACTIONS(340), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(338), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1934] = 5, - ACTIONS(404), 1, - anon_sym_DQUOTE, - ACTIONS(406), 1, - anon_sym_SQUOTE, - ACTIONS(408), 1, - anon_sym_SYSTEM, - ACTIONS(410), 1, - anon_sym_PUBLIC, - STATE(291), 2, - sym_EntityValue, - sym_ExternalID, - [1951] = 2, - ACTIONS(334), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(332), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [1962] = 6, - ACTIONS(404), 1, - anon_sym_DQUOTE, - ACTIONS(406), 1, - anon_sym_SQUOTE, - ACTIONS(408), 1, - anon_sym_SYSTEM, - ACTIONS(410), 1, - anon_sym_PUBLIC, - STATE(240), 1, - sym_ExternalID, - STATE(251), 1, - sym_EntityValue, - [1981] = 5, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(408), 1, - anon_sym_SYSTEM, - ACTIONS(412), 1, - anon_sym_PUBLIC, - STATE(418), 1, - sym_PEReference, - STATE(249), 2, - sym_ExternalID, - sym_PublicID, - [1998] = 5, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(362), 1, - sym_Name, - ACTIONS(364), 1, - anon_sym_LPAREN, - STATE(120), 1, - sym__cp, - STATE(80), 2, - sym__choice, - sym_PEReference, - [2015] = 2, - ACTIONS(226), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(224), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [2026] = 2, - ACTIONS(416), 1, - anon_sym_LT, - ACTIONS(414), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2037] = 2, - ACTIONS(398), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(180), 4, - anon_sym_PERCENT, - anon_sym_DQUOTE, - aux_sym_EntityValue_token1, - anon_sym_AMP_POUNDx, - [2048] = 6, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(392), 1, - anon_sym_PIPE, - ACTIONS(394), 1, - sym__S, - ACTIONS(418), 1, - sym_Name, - STATE(109), 1, - aux_sym_NotationType_repeat1, - STATE(294), 1, - sym_PEReference, - [2067] = 2, - ACTIONS(422), 1, - anon_sym_LT, - ACTIONS(420), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2078] = 2, - ACTIONS(184), 1, - anon_sym_LT, - ACTIONS(182), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2089] = 2, - ACTIONS(426), 1, - anon_sym_LT, - ACTIONS(424), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2100] = 2, - ACTIONS(340), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(338), 4, - anon_sym_PERCENT, - anon_sym_SQUOTE, - aux_sym_EntityValue_token2, - anon_sym_AMP_POUNDx, - [2111] = 2, - ACTIONS(430), 1, - anon_sym_LT, - ACTIONS(428), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2122] = 2, - ACTIONS(276), 1, - anon_sym_LT, - ACTIONS(274), 5, - sym_Comment, - ts_builtin_sym_end, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2133] = 2, - ACTIONS(334), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(332), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [2143] = 2, - ACTIONS(226), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(224), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [2153] = 4, - ACTIONS(434), 1, - anon_sym_PIPE, - ACTIONS(437), 1, - sym__S, - STATE(109), 1, - aux_sym_NotationType_repeat1, - ACTIONS(432), 2, - anon_sym_PERCENT, - sym_Name, - [2167] = 4, - ACTIONS(442), 1, - anon_sym_RPAREN, - ACTIONS(444), 1, - sym__S, - STATE(116), 1, - aux_sym__choice_repeat1, - ACTIONS(440), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2181] = 2, - ACTIONS(448), 1, - anon_sym_LT, - ACTIONS(446), 4, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2191] = 2, - ACTIONS(226), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(224), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [2201] = 2, - ACTIONS(340), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(338), 3, - anon_sym_SQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token2, - [2211] = 4, - ACTIONS(444), 1, - sym__S, - ACTIONS(450), 1, - anon_sym_RPAREN, - STATE(116), 1, - aux_sym__choice_repeat1, - ACTIONS(440), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2225] = 1, - ACTIONS(79), 5, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - anon_sym_RBRACK, - [2233] = 4, - ACTIONS(455), 1, - anon_sym_RPAREN, - ACTIONS(457), 1, - sym__S, - STATE(116), 1, - aux_sym__choice_repeat1, - ACTIONS(452), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2247] = 5, - ACTIONS(408), 1, - anon_sym_SYSTEM, - ACTIONS(410), 1, - anon_sym_PUBLIC, - ACTIONS(460), 1, - anon_sym_LBRACK, - ACTIONS(462), 1, - anon_sym_GT, - STATE(242), 1, - sym_ExternalID, - [2263] = 1, - ACTIONS(180), 5, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - anon_sym_RBRACK, - [2271] = 1, - ACTIONS(464), 5, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - anon_sym_RBRACK, - [2279] = 4, - ACTIONS(442), 1, - anon_sym_RPAREN, - ACTIONS(444), 1, - sym__S, - STATE(114), 1, - aux_sym__choice_repeat1, - ACTIONS(440), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2293] = 2, - ACTIONS(468), 1, - anon_sym_LT, - ACTIONS(466), 4, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2303] = 2, - ACTIONS(470), 2, - anon_sym_GT, - sym__S, - ACTIONS(472), 3, - anon_sym_STAR, - anon_sym_QMARK, - anon_sym_PLUS, - [2313] = 2, - ACTIONS(476), 1, - anon_sym_LT, - ACTIONS(474), 4, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2323] = 2, - ACTIONS(340), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(338), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [2333] = 4, - ACTIONS(444), 1, - sym__S, - ACTIONS(478), 1, - anon_sym_RPAREN, - STATE(110), 1, - aux_sym__choice_repeat1, - ACTIONS(440), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [2347] = 2, - ACTIONS(482), 1, - anon_sym_LT, - ACTIONS(480), 4, - sym_Comment, - anon_sym_LT_BANG, - sym__S, - anon_sym_LT_QMARK, - [2357] = 2, - ACTIONS(334), 2, - anon_sym_AMP, - anon_sym_AMP_POUND, - ACTIONS(332), 3, - anon_sym_DQUOTE, - anon_sym_AMP_POUNDx, - aux_sym_AttValue_token1, - [2367] = 2, - ACTIONS(486), 1, - anon_sym_LT, - ACTIONS(484), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2376] = 4, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(488), 1, - anon_sym_RPAREN, - ACTIONS(490), 1, - sym__S, - STATE(180), 1, - aux_sym_Mixed_repeat1, - [2389] = 2, - ACTIONS(494), 1, - sym__S, - ACTIONS(492), 3, - anon_sym_PIPE, - anon_sym_PERCENT, - sym_Name, - [2398] = 4, - ACTIONS(497), 1, - anon_sym_xml, - ACTIONS(499), 1, - anon_sym_xml_DASHstylesheet, - ACTIONS(501), 1, - anon_sym_xml_DASHmodel, - ACTIONS(503), 1, - sym_PITarget, - [2411] = 2, - ACTIONS(507), 1, - anon_sym_LT, - ACTIONS(505), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2420] = 4, - ACTIONS(509), 1, - anon_sym_GT, - ACTIONS(511), 1, - sym__S, - ACTIONS(513), 1, - anon_sym_SLASH_GT, - STATE(160), 1, - aux_sym_EmptyElemTag_repeat1, - [2433] = 4, - ACTIONS(509), 1, - anon_sym_GT, - ACTIONS(513), 1, - anon_sym_SLASH_GT, - ACTIONS(515), 1, - sym_Name, - STATE(215), 1, - sym_Attribute, - [2446] = 3, - ACTIONS(517), 1, - anon_sym_GT, - ACTIONS(519), 1, - sym__S, - STATE(135), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [2457] = 4, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(522), 1, - sym_Name, - ACTIONS(524), 1, - anon_sym_GT, - STATE(338), 1, - sym_PEReference, - [2470] = 4, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(348), 1, - anon_sym_RPAREN, - ACTIONS(354), 1, - sym__S, - STATE(163), 1, - aux_sym_Mixed_repeat1, - [2483] = 1, - ACTIONS(196), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2490] = 4, - ACTIONS(509), 1, - anon_sym_GT, - ACTIONS(526), 1, - sym__S, - ACTIONS(528), 1, - anon_sym_SLASH_GT, - STATE(160), 1, - aux_sym_EmptyElemTag_repeat1, - [2503] = 1, - ACTIONS(232), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2510] = 4, - ACTIONS(530), 1, - anon_sym_GT, - ACTIONS(532), 1, - sym__S, - ACTIONS(534), 1, - anon_sym_SLASH_GT, - STATE(139), 1, - aux_sym_EmptyElemTag_repeat1, - [2523] = 4, - ACTIONS(536), 1, - anon_sym_LT, - STATE(2), 1, - sym_STag, - STATE(30), 1, - sym_element, - STATE(162), 1, - sym_EmptyElemTag, - [2536] = 4, - ACTIONS(538), 1, - anon_sym_PIPE, - ACTIONS(540), 1, - anon_sym_RPAREN, - ACTIONS(542), 1, - sym__S, - STATE(145), 1, - aux_sym_Enumeration_repeat1, - [2549] = 1, - ACTIONS(544), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [2556] = 4, - ACTIONS(546), 1, - anon_sym_PIPE, - ACTIONS(549), 1, - anon_sym_RPAREN, - ACTIONS(551), 1, - sym__S, - STATE(145), 1, - aux_sym_Enumeration_repeat1, - [2569] = 3, - ACTIONS(554), 1, - anon_sym_PERCENT, - ACTIONS(556), 1, - sym__S, - STATE(119), 2, - sym__DeclSep, - sym_PEReference, - [2580] = 2, - ACTIONS(560), 1, - anon_sym_LT, - ACTIONS(558), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2589] = 4, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(562), 1, - sym_Name, - ACTIONS(564), 1, - sym__S, - STATE(85), 1, - sym_PEReference, - [2602] = 4, - ACTIONS(515), 1, - sym_Name, - ACTIONS(566), 1, - anon_sym_GT, - ACTIONS(568), 1, - anon_sym_SLASH_GT, - STATE(215), 1, - sym_Attribute, - [2615] = 1, - ACTIONS(220), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2622] = 2, - ACTIONS(572), 1, - anon_sym_LT, - ACTIONS(570), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2631] = 3, - ACTIONS(574), 1, - anon_sym_GT, - ACTIONS(576), 1, - sym__S, - STATE(135), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [2642] = 4, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(522), 1, - sym_Name, - ACTIONS(574), 1, - anon_sym_GT, - STATE(338), 1, - sym_PEReference, - [2655] = 2, - ACTIONS(580), 1, - anon_sym_LT, - ACTIONS(578), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2664] = 4, - ACTIONS(538), 1, - anon_sym_PIPE, - ACTIONS(582), 1, - anon_sym_RPAREN, - ACTIONS(584), 1, - sym__S, - STATE(145), 1, - aux_sym_Enumeration_repeat1, - [2677] = 4, - ACTIONS(538), 1, - anon_sym_PIPE, - ACTIONS(582), 1, - anon_sym_RPAREN, - ACTIONS(584), 1, - sym__S, - STATE(143), 1, - aux_sym_Enumeration_repeat1, - [2690] = 1, - ACTIONS(586), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [2697] = 4, - ACTIONS(509), 1, - anon_sym_GT, - ACTIONS(515), 1, - sym_Name, - ACTIONS(528), 1, - anon_sym_SLASH_GT, - STATE(215), 1, - sym_Attribute, - [2710] = 4, - ACTIONS(515), 1, - sym_Name, - ACTIONS(566), 1, - anon_sym_GT, - ACTIONS(588), 1, - anon_sym_SLASH_GT, - STATE(215), 1, - sym_Attribute, - [2723] = 3, - ACTIONS(592), 1, - sym__S, - STATE(160), 1, - aux_sym_EmptyElemTag_repeat1, - ACTIONS(590), 2, - anon_sym_GT, - anon_sym_SLASH_GT, - [2734] = 4, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(595), 1, - sym_Name, - ACTIONS(597), 1, - sym__S, - STATE(190), 1, - sym_PEReference, - [2747] = 1, - ACTIONS(288), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2754] = 4, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(490), 1, - sym__S, - ACTIONS(599), 1, - anon_sym_RPAREN, - STATE(180), 1, - aux_sym_Mixed_repeat1, - [2767] = 4, - ACTIONS(346), 1, - anon_sym_PIPE, - ACTIONS(358), 1, - anon_sym_RPAREN, - ACTIONS(360), 1, - sym__S, - STATE(129), 1, - aux_sym_Mixed_repeat1, - [2780] = 1, - ACTIONS(326), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2787] = 1, - ACTIONS(210), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2794] = 1, - ACTIONS(601), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [2801] = 2, - ACTIONS(605), 1, - anon_sym_LT, - ACTIONS(603), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2810] = 4, - ACTIONS(530), 1, - anon_sym_GT, - ACTIONS(607), 1, - sym__S, - ACTIONS(609), 1, - anon_sym_SLASH_GT, - STATE(133), 1, - aux_sym_EmptyElemTag_repeat1, - [2823] = 3, - ACTIONS(611), 1, - anon_sym_GT, - ACTIONS(613), 1, - sym__S, - STATE(152), 2, - sym_AttDef, - aux_sym_AttlistDecl_repeat1, - [2834] = 4, - ACTIONS(536), 1, - anon_sym_LT, - STATE(2), 1, - sym_STag, - STATE(46), 1, - sym_element, - STATE(162), 1, - sym_EmptyElemTag, - [2847] = 1, - ACTIONS(615), 4, - anon_sym_PIPE, - anon_sym_PERCENT, - sym__S, - sym_Name, - [2854] = 3, - ACTIONS(554), 1, - anon_sym_PERCENT, - ACTIONS(617), 1, - sym__S, - STATE(115), 2, - sym__DeclSep, - sym_PEReference, - [2865] = 4, - ACTIONS(619), 1, - anon_sym_ELEMENT, - ACTIONS(621), 1, - anon_sym_ATTLIST, - ACTIONS(623), 1, - anon_sym_NOTATION, - ACTIONS(625), 1, - anon_sym_ENTITY, - [2878] = 2, - ACTIONS(629), 1, - anon_sym_LT, - ACTIONS(627), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2887] = 4, - ACTIONS(538), 1, - anon_sym_PIPE, - ACTIONS(631), 1, - anon_sym_RPAREN, - ACTIONS(633), 1, - sym__S, - STATE(155), 1, - aux_sym_Enumeration_repeat1, - [2900] = 1, - ACTIONS(318), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2907] = 4, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(635), 1, - sym_Name, - ACTIONS(637), 1, - sym__S, - STATE(211), 1, - sym_PEReference, - [2920] = 1, - ACTIONS(455), 4, - anon_sym_PIPE, - anon_sym_RPAREN, - anon_sym_COMMA, - sym__S, - [2927] = 4, - ACTIONS(639), 1, - anon_sym_PIPE, - ACTIONS(642), 1, - anon_sym_RPAREN, - ACTIONS(644), 1, - sym__S, - STATE(180), 1, - aux_sym_Mixed_repeat1, - [2940] = 1, - ACTIONS(432), 4, - anon_sym_PIPE, - anon_sym_PERCENT, - sym__S, - sym_Name, - [2947] = 1, - ACTIONS(322), 4, - sym_Comment, - ts_builtin_sym_end, - sym__S, - anon_sym_LT_QMARK, - [2954] = 4, - ACTIONS(647), 1, - sym__S, - ACTIONS(649), 1, - anon_sym_QMARK_GT, - STATE(233), 1, - sym__EncodingDecl, - STATE(274), 1, - sym__SDDecl, - [2967] = 2, - ACTIONS(653), 1, - anon_sym_LT, - ACTIONS(651), 3, - sym_Comment, - sym__S, - anon_sym_LT_QMARK, - [2976] = 2, - ACTIONS(655), 1, - sym__S, - ACTIONS(432), 3, - anon_sym_PIPE, - anon_sym_PERCENT, - sym_Name, - [2985] = 3, - ACTIONS(658), 1, - sym__S, - ACTIONS(660), 1, - anon_sym_QMARK_GT, - STATE(202), 1, - aux_sym_StyleSheetPI_repeat1, - [2995] = 3, - ACTIONS(662), 1, - sym__S, - ACTIONS(664), 1, - anon_sym_EQ, - STATE(216), 1, - sym__Eq, - [3005] = 1, - ACTIONS(666), 3, - anon_sym_LBRACK, - anon_sym_GT, - sym__S, - [3011] = 3, - ACTIONS(668), 1, - sym_Name, - ACTIONS(670), 1, - anon_sym_QMARK_GT, - STATE(275), 1, - sym_PseudoAtt, - [3021] = 2, - ACTIONS(672), 1, - sym__S, - ACTIONS(642), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [3029] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(635), 1, - sym_Name, - STATE(211), 1, - sym_PEReference, - [3039] = 3, - ACTIONS(675), 1, - anon_sym_DQUOTE, - ACTIONS(677), 1, - anon_sym_SQUOTE, - STATE(314), 1, - sym_PseudoAttValue, - [3049] = 3, - ACTIONS(679), 1, - sym_Name, - ACTIONS(681), 1, - anon_sym_PERCENT, - STATE(383), 1, - sym_PEReference, - [3059] = 1, - ACTIONS(683), 3, - anon_sym_GT, - sym__S, - anon_sym_SLASH_GT, - [3065] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(685), 1, - sym_Name, - STATE(380), 1, - sym_PEReference, - [3075] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(687), 1, - sym_Name, - STATE(170), 1, - sym_PEReference, - [3085] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(689), 1, - sym_Name, - STATE(375), 1, - sym_PEReference, - [3095] = 3, - ACTIONS(662), 1, - sym__S, - ACTIONS(664), 1, - anon_sym_EQ, - STATE(313), 1, - sym__Eq, - [3105] = 3, - ACTIONS(662), 1, - sym__S, - ACTIONS(664), 1, - anon_sym_EQ, - STATE(293), 1, - sym__Eq, - [3115] = 2, - ACTIONS(693), 1, - sym__S, - ACTIONS(691), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [3123] = 3, - ACTIONS(695), 1, - anon_sym_LBRACK, - ACTIONS(697), 1, - anon_sym_GT, - ACTIONS(699), 1, - sym__S, - [3133] = 3, - ACTIONS(670), 1, - anon_sym_QMARK_GT, - ACTIONS(701), 1, - sym__S, - STATE(228), 1, - aux_sym_StyleSheetPI_repeat1, - [3143] = 3, - ACTIONS(668), 1, - sym_Name, - ACTIONS(703), 1, - anon_sym_QMARK_GT, - STATE(275), 1, - sym_PseudoAtt, - [3153] = 1, - ACTIONS(705), 3, - anon_sym_GT, - sym__S, - anon_sym_SLASH_GT, - [3159] = 1, - ACTIONS(707), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3165] = 3, - ACTIONS(703), 1, - anon_sym_QMARK_GT, - ACTIONS(709), 1, - sym__S, - STATE(228), 1, - aux_sym_StyleSheetPI_repeat1, - [3175] = 3, - ACTIONS(711), 1, - anon_sym_DQUOTE, - ACTIONS(713), 1, - anon_sym_SQUOTE, - STATE(222), 1, - sym_SystemLiteral, - [3185] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(715), 1, - sym_Name, - STATE(328), 1, - sym_PEReference, - [3195] = 3, - ACTIONS(662), 1, - sym__S, - ACTIONS(664), 1, - anon_sym_EQ, - STATE(276), 1, - sym__Eq, - [3205] = 2, - ACTIONS(719), 1, - anon_sym_STAR, - ACTIONS(717), 2, - anon_sym_GT, - sym__S, - [3213] = 2, - ACTIONS(723), 1, - sym__S, - ACTIONS(721), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [3221] = 1, - ACTIONS(721), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3227] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(726), 1, - sym_Name, - STATE(221), 1, - sym_PEReference, - [3237] = 2, - ACTIONS(730), 1, - anon_sym_STAR, - ACTIONS(728), 2, - anon_sym_GT, - sym__S, - [3245] = 1, - ACTIONS(590), 3, - anon_sym_GT, - sym__S, - anon_sym_SLASH_GT, - [3251] = 3, - ACTIONS(378), 1, - anon_sym_DQUOTE, - ACTIONS(380), 1, - anon_sym_SQUOTE, - STATE(226), 1, - sym_AttValue, - [3261] = 3, - ACTIONS(711), 1, - anon_sym_DQUOTE, - ACTIONS(713), 1, - anon_sym_SQUOTE, - STATE(188), 1, - sym_SystemLiteral, - [3271] = 3, - ACTIONS(732), 1, - sym__S, - ACTIONS(734), 1, - anon_sym_QMARK_GT, - STATE(206), 1, - aux_sym_StyleSheetPI_repeat1, - [3281] = 1, - ACTIONS(736), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3287] = 1, - ACTIONS(738), 3, - anon_sym_LBRACK, - anon_sym_GT, - sym__S, - [3293] = 2, - ACTIONS(740), 1, - sym__S, - ACTIONS(736), 2, - anon_sym_PIPE, - anon_sym_RPAREN, - [3301] = 1, - ACTIONS(743), 3, - anon_sym_LBRACK, - anon_sym_GT, - sym__S, - [3307] = 3, - ACTIONS(745), 1, - anon_sym_DQUOTE, - ACTIONS(747), 1, - anon_sym_SQUOTE, - STATE(366), 1, - sym_PubidLiteral, - [3317] = 3, - ACTIONS(668), 1, - sym_Name, - ACTIONS(749), 1, - anon_sym_QMARK_GT, - STATE(275), 1, - sym_PseudoAtt, - [3327] = 1, - ACTIONS(549), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3333] = 1, - ACTIONS(751), 3, - anon_sym_GT, - sym__S, - anon_sym_SLASH_GT, - [3339] = 3, - ACTIONS(499), 1, - anon_sym_xml_DASHstylesheet, - ACTIONS(501), 1, - anon_sym_xml_DASHmodel, - ACTIONS(503), 1, - sym_PITarget, - [3349] = 3, - ACTIONS(753), 1, - sym__S, - ACTIONS(756), 1, - anon_sym_QMARK_GT, - STATE(228), 1, - aux_sym_StyleSheetPI_repeat1, - [3359] = 3, - ACTIONS(668), 1, - sym_Name, - ACTIONS(758), 1, - anon_sym_QMARK_GT, - STATE(275), 1, - sym_PseudoAtt, - [3369] = 3, - ACTIONS(662), 1, - sym__S, - ACTIONS(664), 1, - anon_sym_EQ, - STATE(192), 1, - sym__Eq, - [3379] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(760), 1, - sym_Name, - STATE(83), 1, - sym_PEReference, - [3389] = 3, - ACTIONS(378), 1, - anon_sym_DQUOTE, - ACTIONS(380), 1, - anon_sym_SQUOTE, - STATE(307), 1, - sym_AttValue, - [3399] = 3, - ACTIONS(762), 1, - sym__S, - ACTIONS(764), 1, - anon_sym_QMARK_GT, - STATE(278), 1, - sym__SDDecl, - [3409] = 3, - ACTIONS(764), 1, - anon_sym_QMARK_GT, - ACTIONS(766), 1, - anon_sym_encoding, - ACTIONS(768), 1, - anon_sym_standalone, - [3419] = 3, - ACTIONS(745), 1, - anon_sym_DQUOTE, - ACTIONS(747), 1, - anon_sym_SQUOTE, - STATE(289), 1, - sym_PubidLiteral, - [3429] = 3, - ACTIONS(113), 1, - anon_sym_PERCENT, - ACTIONS(522), 1, - sym_Name, - STATE(338), 1, - sym_PEReference, - [3439] = 1, - ACTIONS(770), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3445] = 1, - ACTIONS(772), 3, - anon_sym_PIPE, - anon_sym_RPAREN, - sym__S, - [3451] = 3, - ACTIONS(745), 1, - anon_sym_DQUOTE, - ACTIONS(747), 1, - anon_sym_SQUOTE, - STATE(288), 1, - sym_PubidLiteral, - [3461] = 3, - ACTIONS(774), 1, - anon_sym_GT, - ACTIONS(776), 1, - sym__S, - STATE(266), 1, - sym_NDataDecl, - [3471] = 2, - ACTIONS(780), 1, - sym__S, - ACTIONS(778), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [3479] = 3, - ACTIONS(782), 1, - anon_sym_LBRACK, - ACTIONS(784), 1, - anon_sym_GT, - ACTIONS(786), 1, - sym__S, - [3489] = 1, - ACTIONS(788), 2, - anon_sym_GT, - sym__S, - [3494] = 1, - ACTIONS(790), 2, - anon_sym_GT, - sym__S, - [3499] = 1, - ACTIONS(792), 2, - anon_sym_PERCENT, - sym__S, - [3504] = 2, - ACTIONS(794), 1, - sym__S, - ACTIONS(796), 1, - anon_sym_QMARK_GT, - [3511] = 2, - ACTIONS(798), 1, - anon_sym_GT, - ACTIONS(800), 1, - sym__S, - [3518] = 2, - ACTIONS(29), 1, - anon_sym_LT_SLASH, - STATE(35), 1, - sym_ETag, - [3525] = 2, - ACTIONS(802), 1, - anon_sym_GT, - ACTIONS(804), 1, - sym__S, - [3532] = 2, - ACTIONS(806), 1, - sym__S, - ACTIONS(808), 1, - anon_sym_QMARK_GT, - [3539] = 2, - ACTIONS(774), 1, - anon_sym_GT, - ACTIONS(810), 1, - sym__S, - [3546] = 2, - ACTIONS(812), 1, - sym__S, - ACTIONS(814), 1, - anon_sym_QMARK_GT, - [3553] = 1, - ACTIONS(816), 2, - anon_sym_PERCENT, - sym__S, - [3558] = 2, - ACTIONS(818), 1, - sym__S, - STATE(183), 1, - sym__VersionInfo, - [3565] = 1, - ACTIONS(820), 2, - anon_sym_GT, - sym__S, - [3570] = 1, - ACTIONS(822), 2, - anon_sym_PERCENT, - sym__S, - [3575] = 1, - ACTIONS(824), 2, - anon_sym_PERCENT, - sym__S, - [3580] = 2, - ACTIONS(25), 1, - anon_sym_LT_SLASH, - STATE(138), 1, - sym_ETag, - [3587] = 2, - ACTIONS(826), 1, - sym_Name, - ACTIONS(828), 1, - sym__S, - [3594] = 1, - ACTIONS(830), 2, - anon_sym_GT, - sym__S, - [3599] = 2, - ACTIONS(832), 1, - anon_sym_GT, - ACTIONS(834), 1, - sym__S, - [3606] = 1, - ACTIONS(182), 2, - anon_sym_PERCENT, - sym__S, - [3611] = 1, - ACTIONS(836), 2, - anon_sym_PERCENT, - sym__S, - [3616] = 1, - ACTIONS(274), 2, - anon_sym_PERCENT, - sym__S, - [3621] = 2, - ACTIONS(838), 1, - anon_sym_GT, - ACTIONS(840), 1, - anon_sym_NDATA, - [3628] = 2, - ACTIONS(838), 1, - anon_sym_GT, - ACTIONS(842), 1, - sym__S, - [3635] = 1, - ACTIONS(844), 2, - anon_sym_GT, - sym__S, - [3640] = 2, - ACTIONS(846), 1, - anon_sym_GT, - ACTIONS(848), 1, - sym__S, - [3647] = 1, - ACTIONS(850), 2, - anon_sym_PERCENT, - sym__S, - [3652] = 1, - ACTIONS(852), 2, - sym__S, - anon_sym_QMARK_GT, - [3657] = 2, - ACTIONS(719), 1, - anon_sym_RPAREN, - ACTIONS(854), 1, - anon_sym_PIPE, - [3664] = 1, - ACTIONS(856), 2, - sym__S, - anon_sym_QMARK_GT, - [3669] = 2, - ACTIONS(858), 1, - anon_sym_GT, - ACTIONS(860), 1, - sym__S, - [3676] = 2, - ACTIONS(764), 1, - anon_sym_QMARK_GT, - ACTIONS(862), 1, - sym__S, - [3683] = 1, - ACTIONS(756), 2, - sym__S, - anon_sym_QMARK_GT, - [3688] = 2, - ACTIONS(864), 1, - anon_sym_DQUOTE, - ACTIONS(866), 1, - anon_sym_SQUOTE, - [3695] = 2, - ACTIONS(768), 1, - anon_sym_standalone, - ACTIONS(868), 1, - anon_sym_QMARK_GT, - [3702] = 2, - ACTIONS(868), 1, - anon_sym_QMARK_GT, - ACTIONS(870), 1, - sym__S, - [3709] = 1, - ACTIONS(872), 2, - anon_sym_PIPE, - anon_sym_COMMA, - [3714] = 1, - ACTIONS(874), 2, - anon_sym_GT, - sym__S, - [3719] = 1, - ACTIONS(876), 2, - anon_sym_PERCENT, - sym__S, - [3724] = 2, - ACTIONS(878), 1, - sym__S, - ACTIONS(880), 1, - sym_Nmtoken, - [3731] = 1, - ACTIONS(882), 2, - anon_sym_GT, - sym__S, - [3736] = 1, - ACTIONS(884), 2, - anon_sym_GT, - sym__S, - [3741] = 1, - ACTIONS(886), 2, - anon_sym_GT, - sym__S, - [3746] = 2, - ACTIONS(888), 1, - anon_sym_GT, - ACTIONS(890), 1, - sym__S, - [3753] = 1, - ACTIONS(892), 2, - anon_sym_GT, - sym__S, - [3758] = 2, - ACTIONS(894), 1, - anon_sym_GT, - ACTIONS(896), 1, - sym__S, - [3765] = 1, - ACTIONS(894), 2, - anon_sym_GT, - sym__S, - [3770] = 1, - ACTIONS(898), 2, - anon_sym_PERCENT, - sym__S, - [3775] = 2, - ACTIONS(900), 1, - anon_sym_GT, - ACTIONS(902), 1, - sym__S, - [3782] = 1, - ACTIONS(904), 2, - anon_sym_GT, - sym__S, - [3787] = 2, - ACTIONS(906), 1, - anon_sym_DQUOTE, - ACTIONS(908), 1, - anon_sym_SQUOTE, - [3794] = 2, - ACTIONS(910), 1, - anon_sym_RPAREN, - ACTIONS(912), 1, - sym__S, - [3801] = 1, - ACTIONS(914), 2, - anon_sym_PERCENT, - sym__S, - [3806] = 1, - ACTIONS(916), 2, - anon_sym_GT, - sym__S, - [3811] = 2, - ACTIONS(668), 1, - sym_Name, - STATE(275), 1, - sym_PseudoAtt, - [3818] = 1, - ACTIONS(918), 2, - anon_sym_GT, - sym__S, - [3823] = 1, - ACTIONS(920), 2, - sym__S, - anon_sym_QMARK_GT, - [3828] = 1, - ACTIONS(728), 2, - anon_sym_GT, - sym__S, - [3833] = 2, - ACTIONS(515), 1, - sym_Name, - STATE(215), 1, - sym_Attribute, - [3840] = 1, - ACTIONS(922), 2, - anon_sym_PERCENT, - sym__S, - [3845] = 1, - ACTIONS(924), 2, - anon_sym_PERCENT, - sym__S, - [3850] = 2, - ACTIONS(926), 1, - anon_sym_RPAREN, - ACTIONS(928), 1, - sym__S, - [3857] = 1, - ACTIONS(930), 2, - anon_sym_GT, - sym__S, - [3862] = 2, - ACTIONS(730), 1, - anon_sym_RPAREN, - ACTIONS(854), 1, - anon_sym_PIPE, - [3869] = 1, - ACTIONS(932), 2, - anon_sym_GT, - sym__S, - [3874] = 1, - ACTIONS(934), 2, - sym__S, - anon_sym_QMARK_GT, - [3879] = 2, - ACTIONS(936), 1, - anon_sym_RPAREN, - ACTIONS(938), 1, - sym__S, - [3886] = 1, - ACTIONS(778), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [3891] = 2, - ACTIONS(940), 1, - anon_sym_PIPE, - ACTIONS(942), 1, - anon_sym_RPAREN, - [3898] = 1, - ACTIONS(944), 2, - anon_sym_GT, - sym__S, - [3903] = 2, - ACTIONS(946), 1, - anon_sym_DQUOTE, - ACTIONS(948), 1, - anon_sym_SQUOTE, - [3910] = 1, - ACTIONS(950), 2, - sym__S, - anon_sym_QMARK_GT, - [3915] = 2, - ACTIONS(952), 1, - anon_sym_GT, - ACTIONS(954), 1, - sym__S, - [3922] = 2, - ACTIONS(956), 1, - sym__S, - ACTIONS(958), 1, - sym_Nmtoken, - [3929] = 2, - ACTIONS(960), 1, - anon_sym_GT, - ACTIONS(962), 1, - sym__S, - [3936] = 1, - ACTIONS(964), 2, - anon_sym_PERCENT, - sym__S, - [3941] = 2, - ACTIONS(540), 1, - anon_sym_RPAREN, - ACTIONS(940), 1, - anon_sym_PIPE, - [3948] = 1, - ACTIONS(966), 2, - anon_sym_GT, - sym__S, - [3953] = 1, - ACTIONS(968), 2, - anon_sym_PERCENT, - sym__S, - [3958] = 1, - ACTIONS(970), 2, - sym__S, - anon_sym_QMARK_GT, - [3963] = 1, - ACTIONS(972), 2, - anon_sym_yes, - anon_sym_no, - [3968] = 1, - ACTIONS(974), 2, - anon_sym_yes, - anon_sym_no, - [3973] = 1, - ACTIONS(976), 2, - anon_sym_GT, - sym__S, - [3978] = 1, - ACTIONS(978), 2, - anon_sym_GT, - sym__S, - [3983] = 2, - ACTIONS(980), 1, - anon_sym_GT, - ACTIONS(982), 1, - sym__S, - [3990] = 1, - ACTIONS(984), 2, - anon_sym_GT, - sym__S, - [3995] = 1, - ACTIONS(986), 2, - anon_sym_PERCENT, - sym__S, - [4000] = 1, - ACTIONS(988), 2, - anon_sym_GT, - sym__S, - [4005] = 2, - ACTIONS(990), 1, - sym__S, - ACTIONS(992), 1, - sym_Nmtoken, - [4012] = 1, - ACTIONS(994), 2, - anon_sym_GT, - sym__S, - [4017] = 2, - ACTIONS(582), 1, - anon_sym_RPAREN, - ACTIONS(940), 1, - anon_sym_PIPE, - [4024] = 1, - ACTIONS(996), 2, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [4029] = 2, - ACTIONS(980), 1, - anon_sym_GT, - ACTIONS(998), 1, - anon_sym_LBRACK, - [4036] = 1, - ACTIONS(958), 1, - sym_Nmtoken, - [4040] = 1, - ACTIONS(1000), 1, - anon_sym_SEMI, - [4044] = 1, - ACTIONS(1002), 1, - sym__S, - [4048] = 1, - ACTIONS(1004), 1, - anon_sym_DQUOTE, - [4052] = 1, - ACTIONS(1004), 1, - anon_sym_SQUOTE, - [4056] = 1, - ACTIONS(1006), 1, - sym_EncName, - [4060] = 1, - ACTIONS(1008), 1, - sym_Name, - [4064] = 1, - ACTIONS(1010), 1, - sym_EncName, - [4068] = 1, - ACTIONS(1012), 1, - sym__S, - [4072] = 1, - ACTIONS(1014), 1, - anon_sym_STAR, - [4076] = 1, - ACTIONS(1016), 1, - anon_sym_SEMI, - [4080] = 1, - ACTIONS(1018), 1, - sym__S, - [4084] = 1, - ACTIONS(1020), 1, - anon_sym_GT, - [4088] = 1, - ACTIONS(1022), 1, - sym__S, - [4092] = 1, - ACTIONS(952), 1, - anon_sym_GT, - [4096] = 1, - ACTIONS(1024), 1, - sym__S, - [4100] = 1, - ACTIONS(1026), 1, - anon_sym_LPAREN, - [4104] = 1, - ACTIONS(1028), 1, - anon_sym_QMARK_GT, - [4108] = 1, - ACTIONS(1030), 1, - sym_Nmtoken, - [4112] = 1, - ACTIONS(1032), 1, - anon_sym_DOCTYPE, - [4116] = 1, - ACTIONS(1034), 1, - aux_sym_SystemLiteral_token1, - [4120] = 1, - ACTIONS(1036), 1, - aux_sym_SystemLiteral_token2, - [4124] = 1, - ACTIONS(1038), 1, - sym_VersionNum, - [4128] = 1, - ACTIONS(1040), 1, - sym_Nmtoken, - [4132] = 1, - ACTIONS(940), 1, - anon_sym_PIPE, - [4136] = 1, - ACTIONS(1042), 1, - sym_VersionNum, - [4140] = 1, - ACTIONS(1044), 1, - aux_sym_PubidLiteral_token1, - [4144] = 1, - ACTIONS(1046), 1, - anon_sym_PIPE, - [4148] = 1, - ACTIONS(1048), 1, - aux_sym_PubidLiteral_token2, - [4152] = 1, - ACTIONS(1050), 1, - sym__S, - [4156] = 1, - ACTIONS(896), 1, - sym__S, - [4160] = 1, - ACTIONS(1052), 1, - anon_sym_DQUOTE, - [4164] = 1, - ACTIONS(1054), 1, - sym__S, - [4168] = 1, - ACTIONS(1052), 1, - anon_sym_SQUOTE, - [4172] = 1, - ACTIONS(1056), 1, - anon_sym_DQUOTE, - [4176] = 1, - ACTIONS(854), 1, - anon_sym_PIPE, - [4180] = 1, - ACTIONS(730), 1, - anon_sym_STAR, - [4184] = 1, - ACTIONS(1056), 1, - anon_sym_SQUOTE, - [4188] = 1, - ACTIONS(926), 1, - anon_sym_RPAREN, - [4192] = 1, - ACTIONS(1058), 1, - sym__S, - [4196] = 1, - ACTIONS(1060), 1, - anon_sym_GT, - [4200] = 1, - ACTIONS(910), 1, - anon_sym_RPAREN, - [4204] = 1, - ACTIONS(1062), 1, - sym__S, - [4208] = 1, - ACTIONS(868), 1, - anon_sym_QMARK_GT, - [4212] = 1, - ACTIONS(1064), 1, - sym__S, - [4216] = 1, - ACTIONS(1066), 1, - anon_sym_RPAREN, - [4220] = 1, - ACTIONS(1068), 1, - sym__S, - [4224] = 1, - ACTIONS(1070), 1, - sym__S, - [4228] = 1, - ACTIONS(858), 1, - anon_sym_GT, - [4232] = 1, - ACTIONS(1072), 1, - anon_sym_DQUOTE, - [4236] = 1, - ACTIONS(1074), 1, - anon_sym_EQ, - [4240] = 1, - ACTIONS(1076), 1, - anon_sym_GT, - [4244] = 1, - ACTIONS(1078), 1, - sym_CData, - [4248] = 1, - ACTIONS(1072), 1, - anon_sym_SQUOTE, - [4252] = 1, - ACTIONS(1080), 1, - anon_sym_DQUOTE, - [4256] = 1, - ACTIONS(1082), 1, - anon_sym_QMARK_GT, - [4260] = 1, - ACTIONS(1084), 1, - anon_sym_RBRACK_RBRACK_GT, - [4264] = 1, - ACTIONS(1080), 1, - anon_sym_SQUOTE, - [4268] = 1, - ACTIONS(1086), 1, - anon_sym_SEMI, - [4272] = 1, - ACTIONS(1088), 1, - sym__S, - [4276] = 1, - ACTIONS(1090), 1, - anon_sym_LBRACK, - [4280] = 1, - ACTIONS(1092), 1, - anon_sym_version, - [4284] = 1, - ACTIONS(1094), 1, - sym_Name, - [4288] = 1, - ACTIONS(1096), 1, - sym__pi_content, - [4292] = 1, - ACTIONS(1098), 1, - sym_Name, - [4296] = 1, - ACTIONS(838), 1, - anon_sym_GT, - [4300] = 1, - ACTIONS(1100), 1, - sym_CData, - [4304] = 1, - ACTIONS(832), 1, - anon_sym_GT, - [4308] = 1, - ACTIONS(1102), 1, - sym_Name, - [4312] = 1, - ACTIONS(1104), 1, - sym_PITarget, - [4316] = 1, - ACTIONS(1106), 1, - aux_sym_CharRef_token2, - [4320] = 1, - ACTIONS(1106), 1, - aux_sym_CharRef_token1, - [4324] = 1, - ACTIONS(1108), 1, - sym_Name, - [4328] = 1, - ACTIONS(1110), 1, - anon_sym_CDATA, - [4332] = 1, - ACTIONS(1112), 1, - anon_sym_GT, - [4336] = 1, - ACTIONS(1114), 1, - anon_sym_GT, - [4340] = 1, - ACTIONS(1116), 1, - anon_sym_GT, - [4344] = 1, - ACTIONS(1118), 1, - sym__S, - [4348] = 1, - ACTIONS(1120), 1, - sym__S, - [4352] = 1, - ACTIONS(1122), 1, - ts_builtin_sym_end, - [4356] = 1, - ACTIONS(1124), 1, - anon_sym_SEMI, - [4360] = 1, - ACTIONS(1126), 1, - anon_sym_SEMI, - [4364] = 1, - ACTIONS(1128), 1, - sym__S, - [4368] = 1, - ACTIONS(1130), 1, - anon_sym_QMARK_GT, - [4372] = 1, - ACTIONS(1132), 1, - sym_Name, - [4376] = 1, - ACTIONS(1134), 1, - anon_sym_GT, - [4380] = 1, - ACTIONS(1136), 1, - anon_sym_SEMI, - [4384] = 1, - ACTIONS(1138), 1, - sym__S, - [4388] = 1, - ACTIONS(1140), 1, - anon_sym_SEMI, - [4392] = 1, - ACTIONS(1142), 1, - anon_sym_SEMI, - [4396] = 1, - ACTIONS(1144), 1, - anon_sym_QMARK_GT, - [4400] = 1, - ACTIONS(1146), 1, - anon_sym_SEMI, - [4404] = 1, - ACTIONS(1148), 1, - anon_sym_SEMI, - [4408] = 1, - ACTIONS(1150), 1, - anon_sym_SEMI, - [4412] = 1, - ACTIONS(1152), 1, - anon_sym_SEMI, - [4416] = 1, - ACTIONS(1154), 1, - anon_sym_SEMI, - [4420] = 1, - ACTIONS(1156), 1, - anon_sym_SEMI, - [4424] = 1, - ACTIONS(1158), 1, - sym_Name, - [4428] = 1, - ACTIONS(1160), 1, - sym_Name, - [4432] = 1, - ACTIONS(1162), 1, - aux_sym_CharRef_token1, - [4436] = 1, - ACTIONS(1162), 1, - aux_sym_CharRef_token2, - [4440] = 1, - ACTIONS(1164), 1, - sym_PITarget, - [4444] = 1, - ACTIONS(1166), 1, - sym_Name, - [4448] = 1, - ACTIONS(1168), 1, - sym__pi_content, - [4452] = 1, - ACTIONS(826), 1, - sym_Name, - [4456] = 1, - ACTIONS(1170), 1, - sym_Name, - [4460] = 1, - ACTIONS(1172), 1, - aux_sym_CharRef_token1, - [4464] = 1, - ACTIONS(1172), 1, - aux_sym_CharRef_token2, - [4468] = 1, - ACTIONS(1174), 1, - sym__pi_content, - [4472] = 1, - ACTIONS(1176), 1, - sym_Name, - [4476] = 1, - ACTIONS(1178), 1, - sym_Name, - [4480] = 1, - ACTIONS(1180), 1, - aux_sym_CharRef_token1, - [4484] = 1, - ACTIONS(1180), 1, - aux_sym_CharRef_token2, - [4488] = 1, - ACTIONS(1182), 1, - sym_Name, - [4492] = 1, - ACTIONS(1184), 1, - sym_Name, - [4496] = 1, - ACTIONS(1186), 1, - aux_sym_CharRef_token1, - [4500] = 1, - ACTIONS(1186), 1, - aux_sym_CharRef_token2, -}; - -static const uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(2)] = 0, - [SMALL_STATE(3)] = 52, - [SMALL_STATE(4)] = 104, - [SMALL_STATE(5)] = 150, - [SMALL_STATE(6)] = 196, - [SMALL_STATE(7)] = 235, - [SMALL_STATE(8)] = 268, - [SMALL_STATE(9)] = 301, - [SMALL_STATE(10)] = 334, - [SMALL_STATE(11)] = 367, - [SMALL_STATE(12)] = 400, - [SMALL_STATE(13)] = 430, - [SMALL_STATE(14)] = 460, - [SMALL_STATE(15)] = 490, - [SMALL_STATE(16)] = 520, - [SMALL_STATE(17)] = 548, - [SMALL_STATE(18)] = 576, - [SMALL_STATE(19)] = 600, - [SMALL_STATE(20)] = 628, - [SMALL_STATE(21)] = 656, - [SMALL_STATE(22)] = 678, - [SMALL_STATE(23)] = 706, - [SMALL_STATE(24)] = 730, - [SMALL_STATE(25)] = 754, - [SMALL_STATE(26)] = 782, - [SMALL_STATE(27)] = 806, - [SMALL_STATE(28)] = 834, - [SMALL_STATE(29)] = 847, - [SMALL_STATE(30)] = 861, - [SMALL_STATE(31)] = 879, - [SMALL_STATE(32)] = 897, - [SMALL_STATE(33)] = 915, - [SMALL_STATE(34)] = 933, - [SMALL_STATE(35)] = 951, - [SMALL_STATE(36)] = 965, - [SMALL_STATE(37)] = 989, - [SMALL_STATE(38)] = 1003, - [SMALL_STATE(39)] = 1021, - [SMALL_STATE(40)] = 1043, - [SMALL_STATE(41)] = 1057, - [SMALL_STATE(42)] = 1071, - [SMALL_STATE(43)] = 1085, - [SMALL_STATE(44)] = 1099, - [SMALL_STATE(45)] = 1123, - [SMALL_STATE(46)] = 1147, - [SMALL_STATE(47)] = 1165, - [SMALL_STATE(48)] = 1183, - [SMALL_STATE(49)] = 1197, - [SMALL_STATE(50)] = 1211, - [SMALL_STATE(51)] = 1235, - [SMALL_STATE(52)] = 1249, - [SMALL_STATE(53)] = 1273, - [SMALL_STATE(54)] = 1297, - [SMALL_STATE(55)] = 1321, - [SMALL_STATE(56)] = 1345, - [SMALL_STATE(57)] = 1359, - [SMALL_STATE(58)] = 1383, - [SMALL_STATE(59)] = 1397, - [SMALL_STATE(60)] = 1415, - [SMALL_STATE(61)] = 1433, - [SMALL_STATE(62)] = 1451, - [SMALL_STATE(63)] = 1465, - [SMALL_STATE(64)] = 1479, - [SMALL_STATE(65)] = 1493, - [SMALL_STATE(66)] = 1517, - [SMALL_STATE(67)] = 1531, - [SMALL_STATE(68)] = 1549, - [SMALL_STATE(69)] = 1563, - [SMALL_STATE(70)] = 1574, - [SMALL_STATE(71)] = 1585, - [SMALL_STATE(72)] = 1606, - [SMALL_STATE(73)] = 1617, - [SMALL_STATE(74)] = 1638, - [SMALL_STATE(75)] = 1663, - [SMALL_STATE(76)] = 1683, - [SMALL_STATE(77)] = 1703, - [SMALL_STATE(78)] = 1723, - [SMALL_STATE(79)] = 1743, - [SMALL_STATE(80)] = 1765, - [SMALL_STATE(81)] = 1777, - [SMALL_STATE(82)] = 1788, - [SMALL_STATE(83)] = 1805, - [SMALL_STATE(84)] = 1824, - [SMALL_STATE(85)] = 1835, - [SMALL_STATE(86)] = 1854, - [SMALL_STATE(87)] = 1873, - [SMALL_STATE(88)] = 1884, - [SMALL_STATE(89)] = 1895, - [SMALL_STATE(90)] = 1906, - [SMALL_STATE(91)] = 1923, - [SMALL_STATE(92)] = 1934, - [SMALL_STATE(93)] = 1951, - [SMALL_STATE(94)] = 1962, - [SMALL_STATE(95)] = 1981, - [SMALL_STATE(96)] = 1998, - [SMALL_STATE(97)] = 2015, - [SMALL_STATE(98)] = 2026, - [SMALL_STATE(99)] = 2037, - [SMALL_STATE(100)] = 2048, - [SMALL_STATE(101)] = 2067, - [SMALL_STATE(102)] = 2078, - [SMALL_STATE(103)] = 2089, - [SMALL_STATE(104)] = 2100, - [SMALL_STATE(105)] = 2111, - [SMALL_STATE(106)] = 2122, - [SMALL_STATE(107)] = 2133, - [SMALL_STATE(108)] = 2143, - [SMALL_STATE(109)] = 2153, - [SMALL_STATE(110)] = 2167, - [SMALL_STATE(111)] = 2181, - [SMALL_STATE(112)] = 2191, - [SMALL_STATE(113)] = 2201, - [SMALL_STATE(114)] = 2211, - [SMALL_STATE(115)] = 2225, - [SMALL_STATE(116)] = 2233, - [SMALL_STATE(117)] = 2247, - [SMALL_STATE(118)] = 2263, - [SMALL_STATE(119)] = 2271, - [SMALL_STATE(120)] = 2279, - [SMALL_STATE(121)] = 2293, - [SMALL_STATE(122)] = 2303, - [SMALL_STATE(123)] = 2313, - [SMALL_STATE(124)] = 2323, - [SMALL_STATE(125)] = 2333, - [SMALL_STATE(126)] = 2347, - [SMALL_STATE(127)] = 2357, - [SMALL_STATE(128)] = 2367, - [SMALL_STATE(129)] = 2376, - [SMALL_STATE(130)] = 2389, - [SMALL_STATE(131)] = 2398, - [SMALL_STATE(132)] = 2411, - [SMALL_STATE(133)] = 2420, - [SMALL_STATE(134)] = 2433, - [SMALL_STATE(135)] = 2446, - [SMALL_STATE(136)] = 2457, - [SMALL_STATE(137)] = 2470, - [SMALL_STATE(138)] = 2483, - [SMALL_STATE(139)] = 2490, - [SMALL_STATE(140)] = 2503, - [SMALL_STATE(141)] = 2510, - [SMALL_STATE(142)] = 2523, - [SMALL_STATE(143)] = 2536, - [SMALL_STATE(144)] = 2549, - [SMALL_STATE(145)] = 2556, - [SMALL_STATE(146)] = 2569, - [SMALL_STATE(147)] = 2580, - [SMALL_STATE(148)] = 2589, - [SMALL_STATE(149)] = 2602, - [SMALL_STATE(150)] = 2615, - [SMALL_STATE(151)] = 2622, - [SMALL_STATE(152)] = 2631, - [SMALL_STATE(153)] = 2642, - [SMALL_STATE(154)] = 2655, - [SMALL_STATE(155)] = 2664, - [SMALL_STATE(156)] = 2677, - [SMALL_STATE(157)] = 2690, - [SMALL_STATE(158)] = 2697, - [SMALL_STATE(159)] = 2710, - [SMALL_STATE(160)] = 2723, - [SMALL_STATE(161)] = 2734, - [SMALL_STATE(162)] = 2747, - [SMALL_STATE(163)] = 2754, - [SMALL_STATE(164)] = 2767, - [SMALL_STATE(165)] = 2780, - [SMALL_STATE(166)] = 2787, - [SMALL_STATE(167)] = 2794, - [SMALL_STATE(168)] = 2801, - [SMALL_STATE(169)] = 2810, - [SMALL_STATE(170)] = 2823, - [SMALL_STATE(171)] = 2834, - [SMALL_STATE(172)] = 2847, - [SMALL_STATE(173)] = 2854, - [SMALL_STATE(174)] = 2865, - [SMALL_STATE(175)] = 2878, - [SMALL_STATE(176)] = 2887, - [SMALL_STATE(177)] = 2900, - [SMALL_STATE(178)] = 2907, - [SMALL_STATE(179)] = 2920, - [SMALL_STATE(180)] = 2927, - [SMALL_STATE(181)] = 2940, - [SMALL_STATE(182)] = 2947, - [SMALL_STATE(183)] = 2954, - [SMALL_STATE(184)] = 2967, - [SMALL_STATE(185)] = 2976, - [SMALL_STATE(186)] = 2985, - [SMALL_STATE(187)] = 2995, - [SMALL_STATE(188)] = 3005, - [SMALL_STATE(189)] = 3011, - [SMALL_STATE(190)] = 3021, - [SMALL_STATE(191)] = 3029, - [SMALL_STATE(192)] = 3039, - [SMALL_STATE(193)] = 3049, - [SMALL_STATE(194)] = 3059, - [SMALL_STATE(195)] = 3065, - [SMALL_STATE(196)] = 3075, - [SMALL_STATE(197)] = 3085, - [SMALL_STATE(198)] = 3095, - [SMALL_STATE(199)] = 3105, - [SMALL_STATE(200)] = 3115, - [SMALL_STATE(201)] = 3123, - [SMALL_STATE(202)] = 3133, - [SMALL_STATE(203)] = 3143, - [SMALL_STATE(204)] = 3153, - [SMALL_STATE(205)] = 3159, - [SMALL_STATE(206)] = 3165, - [SMALL_STATE(207)] = 3175, - [SMALL_STATE(208)] = 3185, - [SMALL_STATE(209)] = 3195, - [SMALL_STATE(210)] = 3205, - [SMALL_STATE(211)] = 3213, - [SMALL_STATE(212)] = 3221, - [SMALL_STATE(213)] = 3227, - [SMALL_STATE(214)] = 3237, - [SMALL_STATE(215)] = 3245, - [SMALL_STATE(216)] = 3251, - [SMALL_STATE(217)] = 3261, - [SMALL_STATE(218)] = 3271, - [SMALL_STATE(219)] = 3281, - [SMALL_STATE(220)] = 3287, - [SMALL_STATE(221)] = 3293, - [SMALL_STATE(222)] = 3301, - [SMALL_STATE(223)] = 3307, - [SMALL_STATE(224)] = 3317, - [SMALL_STATE(225)] = 3327, - [SMALL_STATE(226)] = 3333, - [SMALL_STATE(227)] = 3339, - [SMALL_STATE(228)] = 3349, - [SMALL_STATE(229)] = 3359, - [SMALL_STATE(230)] = 3369, - [SMALL_STATE(231)] = 3379, - [SMALL_STATE(232)] = 3389, - [SMALL_STATE(233)] = 3399, - [SMALL_STATE(234)] = 3409, - [SMALL_STATE(235)] = 3419, - [SMALL_STATE(236)] = 3429, - [SMALL_STATE(237)] = 3439, - [SMALL_STATE(238)] = 3445, - [SMALL_STATE(239)] = 3451, - [SMALL_STATE(240)] = 3461, - [SMALL_STATE(241)] = 3471, - [SMALL_STATE(242)] = 3479, - [SMALL_STATE(243)] = 3489, - [SMALL_STATE(244)] = 3494, - [SMALL_STATE(245)] = 3499, - [SMALL_STATE(246)] = 3504, - [SMALL_STATE(247)] = 3511, - [SMALL_STATE(248)] = 3518, - [SMALL_STATE(249)] = 3525, - [SMALL_STATE(250)] = 3532, - [SMALL_STATE(251)] = 3539, - [SMALL_STATE(252)] = 3546, - [SMALL_STATE(253)] = 3553, - [SMALL_STATE(254)] = 3558, - [SMALL_STATE(255)] = 3565, - [SMALL_STATE(256)] = 3570, - [SMALL_STATE(257)] = 3575, - [SMALL_STATE(258)] = 3580, - [SMALL_STATE(259)] = 3587, - [SMALL_STATE(260)] = 3594, - [SMALL_STATE(261)] = 3599, - [SMALL_STATE(262)] = 3606, - [SMALL_STATE(263)] = 3611, - [SMALL_STATE(264)] = 3616, - [SMALL_STATE(265)] = 3621, - [SMALL_STATE(266)] = 3628, - [SMALL_STATE(267)] = 3635, - [SMALL_STATE(268)] = 3640, - [SMALL_STATE(269)] = 3647, - [SMALL_STATE(270)] = 3652, - [SMALL_STATE(271)] = 3657, - [SMALL_STATE(272)] = 3664, - [SMALL_STATE(273)] = 3669, - [SMALL_STATE(274)] = 3676, - [SMALL_STATE(275)] = 3683, - [SMALL_STATE(276)] = 3688, - [SMALL_STATE(277)] = 3695, - [SMALL_STATE(278)] = 3702, - [SMALL_STATE(279)] = 3709, - [SMALL_STATE(280)] = 3714, - [SMALL_STATE(281)] = 3719, - [SMALL_STATE(282)] = 3724, - [SMALL_STATE(283)] = 3731, - [SMALL_STATE(284)] = 3736, - [SMALL_STATE(285)] = 3741, - [SMALL_STATE(286)] = 3746, - [SMALL_STATE(287)] = 3753, - [SMALL_STATE(288)] = 3758, - [SMALL_STATE(289)] = 3765, - [SMALL_STATE(290)] = 3770, - [SMALL_STATE(291)] = 3775, - [SMALL_STATE(292)] = 3782, - [SMALL_STATE(293)] = 3787, - [SMALL_STATE(294)] = 3794, - [SMALL_STATE(295)] = 3801, - [SMALL_STATE(296)] = 3806, - [SMALL_STATE(297)] = 3811, - [SMALL_STATE(298)] = 3818, - [SMALL_STATE(299)] = 3823, - [SMALL_STATE(300)] = 3828, - [SMALL_STATE(301)] = 3833, - [SMALL_STATE(302)] = 3840, - [SMALL_STATE(303)] = 3845, - [SMALL_STATE(304)] = 3850, - [SMALL_STATE(305)] = 3857, - [SMALL_STATE(306)] = 3862, - [SMALL_STATE(307)] = 3869, - [SMALL_STATE(308)] = 3874, - [SMALL_STATE(309)] = 3879, - [SMALL_STATE(310)] = 3886, - [SMALL_STATE(311)] = 3891, - [SMALL_STATE(312)] = 3898, - [SMALL_STATE(313)] = 3903, - [SMALL_STATE(314)] = 3910, - [SMALL_STATE(315)] = 3915, - [SMALL_STATE(316)] = 3922, - [SMALL_STATE(317)] = 3929, - [SMALL_STATE(318)] = 3936, - [SMALL_STATE(319)] = 3941, - [SMALL_STATE(320)] = 3948, - [SMALL_STATE(321)] = 3953, - [SMALL_STATE(322)] = 3958, - [SMALL_STATE(323)] = 3963, - [SMALL_STATE(324)] = 3968, - [SMALL_STATE(325)] = 3973, - [SMALL_STATE(326)] = 3978, - [SMALL_STATE(327)] = 3983, - [SMALL_STATE(328)] = 3990, - [SMALL_STATE(329)] = 3995, - [SMALL_STATE(330)] = 4000, - [SMALL_STATE(331)] = 4005, - [SMALL_STATE(332)] = 4012, - [SMALL_STATE(333)] = 4017, - [SMALL_STATE(334)] = 4024, - [SMALL_STATE(335)] = 4029, - [SMALL_STATE(336)] = 4036, - [SMALL_STATE(337)] = 4040, - [SMALL_STATE(338)] = 4044, - [SMALL_STATE(339)] = 4048, - [SMALL_STATE(340)] = 4052, - [SMALL_STATE(341)] = 4056, - [SMALL_STATE(342)] = 4060, - [SMALL_STATE(343)] = 4064, - [SMALL_STATE(344)] = 4068, - [SMALL_STATE(345)] = 4072, - [SMALL_STATE(346)] = 4076, - [SMALL_STATE(347)] = 4080, - [SMALL_STATE(348)] = 4084, - [SMALL_STATE(349)] = 4088, - [SMALL_STATE(350)] = 4092, - [SMALL_STATE(351)] = 4096, - [SMALL_STATE(352)] = 4100, - [SMALL_STATE(353)] = 4104, - [SMALL_STATE(354)] = 4108, - [SMALL_STATE(355)] = 4112, - [SMALL_STATE(356)] = 4116, - [SMALL_STATE(357)] = 4120, - [SMALL_STATE(358)] = 4124, - [SMALL_STATE(359)] = 4128, - [SMALL_STATE(360)] = 4132, - [SMALL_STATE(361)] = 4136, - [SMALL_STATE(362)] = 4140, - [SMALL_STATE(363)] = 4144, - [SMALL_STATE(364)] = 4148, - [SMALL_STATE(365)] = 4152, - [SMALL_STATE(366)] = 4156, - [SMALL_STATE(367)] = 4160, - [SMALL_STATE(368)] = 4164, - [SMALL_STATE(369)] = 4168, - [SMALL_STATE(370)] = 4172, - [SMALL_STATE(371)] = 4176, - [SMALL_STATE(372)] = 4180, - [SMALL_STATE(373)] = 4184, - [SMALL_STATE(374)] = 4188, - [SMALL_STATE(375)] = 4192, - [SMALL_STATE(376)] = 4196, - [SMALL_STATE(377)] = 4200, - [SMALL_STATE(378)] = 4204, - [SMALL_STATE(379)] = 4208, - [SMALL_STATE(380)] = 4212, - [SMALL_STATE(381)] = 4216, - [SMALL_STATE(382)] = 4220, - [SMALL_STATE(383)] = 4224, - [SMALL_STATE(384)] = 4228, - [SMALL_STATE(385)] = 4232, - [SMALL_STATE(386)] = 4236, - [SMALL_STATE(387)] = 4240, - [SMALL_STATE(388)] = 4244, - [SMALL_STATE(389)] = 4248, - [SMALL_STATE(390)] = 4252, - [SMALL_STATE(391)] = 4256, - [SMALL_STATE(392)] = 4260, - [SMALL_STATE(393)] = 4264, - [SMALL_STATE(394)] = 4268, - [SMALL_STATE(395)] = 4272, - [SMALL_STATE(396)] = 4276, - [SMALL_STATE(397)] = 4280, - [SMALL_STATE(398)] = 4284, - [SMALL_STATE(399)] = 4288, - [SMALL_STATE(400)] = 4292, - [SMALL_STATE(401)] = 4296, - [SMALL_STATE(402)] = 4300, - [SMALL_STATE(403)] = 4304, - [SMALL_STATE(404)] = 4308, - [SMALL_STATE(405)] = 4312, - [SMALL_STATE(406)] = 4316, - [SMALL_STATE(407)] = 4320, - [SMALL_STATE(408)] = 4324, - [SMALL_STATE(409)] = 4328, - [SMALL_STATE(410)] = 4332, - [SMALL_STATE(411)] = 4336, - [SMALL_STATE(412)] = 4340, - [SMALL_STATE(413)] = 4344, - [SMALL_STATE(414)] = 4348, - [SMALL_STATE(415)] = 4352, - [SMALL_STATE(416)] = 4356, - [SMALL_STATE(417)] = 4360, - [SMALL_STATE(418)] = 4364, - [SMALL_STATE(419)] = 4368, - [SMALL_STATE(420)] = 4372, - [SMALL_STATE(421)] = 4376, - [SMALL_STATE(422)] = 4380, - [SMALL_STATE(423)] = 4384, - [SMALL_STATE(424)] = 4388, - [SMALL_STATE(425)] = 4392, - [SMALL_STATE(426)] = 4396, - [SMALL_STATE(427)] = 4400, - [SMALL_STATE(428)] = 4404, - [SMALL_STATE(429)] = 4408, - [SMALL_STATE(430)] = 4412, - [SMALL_STATE(431)] = 4416, - [SMALL_STATE(432)] = 4420, - [SMALL_STATE(433)] = 4424, - [SMALL_STATE(434)] = 4428, - [SMALL_STATE(435)] = 4432, - [SMALL_STATE(436)] = 4436, - [SMALL_STATE(437)] = 4440, - [SMALL_STATE(438)] = 4444, - [SMALL_STATE(439)] = 4448, - [SMALL_STATE(440)] = 4452, - [SMALL_STATE(441)] = 4456, - [SMALL_STATE(442)] = 4460, - [SMALL_STATE(443)] = 4464, - [SMALL_STATE(444)] = 4468, - [SMALL_STATE(445)] = 4472, - [SMALL_STATE(446)] = 4476, - [SMALL_STATE(447)] = 4480, - [SMALL_STATE(448)] = 4484, - [SMALL_STATE(449)] = 4488, - [SMALL_STATE(450)] = 4492, - [SMALL_STATE(451)] = 4496, - [SMALL_STATE(452)] = 4500, -}; - -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(355), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), - [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(420), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(409), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(408), - [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(407), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(406), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(405), - [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(433), - [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(404), - [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(438), - [31] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(409), - [34] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(408), - [37] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(407), - [40] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(406), - [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(405), - [46] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(433), - [49] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_content_repeat1, 2), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_repeat1, 2), SHIFT_REPEAT(4), - [54] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_content, 1), - [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(174), - [60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(437), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(273), - [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(302), - [68] = {.entry = {.count = 1, .reusable = true}}, SHIFT(327), - [70] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__intSubset, 2), SHIFT_REPEAT(174), - [73] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__intSubset, 2), SHIFT_REPEAT(26), - [76] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__intSubset, 2), SHIFT_REPEAT(437), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__intSubset, 2), - [81] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__intSubset, 2), SHIFT_REPEAT(302), - [84] = {.entry = {.count = 1, .reusable = true}}, SHIFT(315), - [86] = {.entry = {.count = 1, .reusable = true}}, SHIFT(261), - [88] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(449), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), - [93] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(16), - [96] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(450), - [99] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(451), - [102] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat2, 2), SHIFT_REPEAT(452), - [105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(282), - [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(283), - [109] = {.entry = {.count = 1, .reusable = true}}, SHIFT(284), - [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(382), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(440), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(227), - [119] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prolog, 1), - [121] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(445), - [124] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), - [126] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(19), - [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(446), - [132] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(447), - [135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EntityValue_repeat1, 2), SHIFT_REPEAT(448), - [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(449), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(292), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [144] = {.entry = {.count = 1, .reusable = false}}, SHIFT(450), - [146] = {.entry = {.count = 1, .reusable = false}}, SHIFT(451), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(452), - [150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), - [152] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(21), - [155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(227), - [158] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(445), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [164] = {.entry = {.count = 1, .reusable = false}}, SHIFT(446), - [166] = {.entry = {.count = 1, .reusable = false}}, SHIFT(447), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(448), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [172] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prolog, 2), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(260), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [180] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEReference, 3), - [182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PI, 5), - [184] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PI, 5), - [186] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2, .production_id = 2), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [190] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prolog, 4), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2, .production_id = 1), - [196] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 3), - [198] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 3), - [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204), - [202] = {.entry = {.count = 1, .reusable = false}}, SHIFT(434), - [204] = {.entry = {.count = 1, .reusable = false}}, SHIFT(435), - [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(436), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 2), - [212] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 2), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(243), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EmptyElemTag, 4), - [222] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_EmptyElemTag, 4), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Reference, 1), - [226] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__Reference, 1), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_CDSect, 3), - [230] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_CDSect, 3), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EmptyElemTag, 3), - [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_EmptyElemTag, 3), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), - [238] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(441), - [241] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(442), - [244] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(443), - [247] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat2, 2), SHIFT_REPEAT(44), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), - [252] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(434), - [255] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(435), - [258] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(436), - [261] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttValue_repeat1, 2), SHIFT_REPEAT(45), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 3, .production_id = 3), - [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 3, .production_id = 2), - [270] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_STag, 4), - [272] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_STag, 4), - [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PI, 3), - [276] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PI, 3), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(322), - [280] = {.entry = {.count = 1, .reusable = false}}, SHIFT(441), - [282] = {.entry = {.count = 1, .reusable = false}}, SHIFT(442), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(443), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 1), - [290] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 1), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(194), - [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [298] = {.entry = {.count = 1, .reusable = true}}, SHIFT(299), - [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_STag, 3), - [302] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_STag, 3), - [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_STag, 5), - [308] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_STag, 5), - [310] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1, .production_id = 1), - [312] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [314] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_prolog, 3), - [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [318] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ETag, 4), - [320] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ETag, 4), - [322] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EmptyElemTag, 5), - [324] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_EmptyElemTag, 5), - [326] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ETag, 3), - [328] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ETag, 3), - [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityRef, 3), - [334] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_EntityRef, 3), - [336] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 4, .production_id = 3), - [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_CharRef, 3), - [340] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_CharRef, 3), - [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 3), - [344] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 5), - [346] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161), - [348] = {.entry = {.count = 1, .reusable = true}}, SHIFT(210), - [350] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167), - [352] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cp, 1), - [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(271), - [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__choice, 4), - [358] = {.entry = {.count = 1, .reusable = true}}, SHIFT(214), - [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(306), - [362] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [366] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137), - [368] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [370] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [372] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [374] = {.entry = {.count = 1, .reusable = true}}, SHIFT(244), - [376] = {.entry = {.count = 1, .reusable = true}}, SHIFT(395), - [378] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [380] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [382] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [384] = {.entry = {.count = 1, .reusable = true}}, SHIFT(164), - [386] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XmlModelPI, 4), - [388] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XmlModelPI, 4), - [390] = {.entry = {.count = 1, .reusable = true}}, SHIFT(304), - [392] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [394] = {.entry = {.count = 1, .reusable = true}}, SHIFT(363), - [396] = {.entry = {.count = 1, .reusable = true}}, SHIFT(309), - [398] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_PEReference, 3), - [400] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_StyleSheetPI, 4), - [402] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_StyleSheetPI, 4), - [404] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [406] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [408] = {.entry = {.count = 1, .reusable = true}}, SHIFT(368), - [410] = {.entry = {.count = 1, .reusable = true}}, SHIFT(365), - [412] = {.entry = {.count = 1, .reusable = true}}, SHIFT(423), - [414] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XmlModelPI, 3), - [416] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XmlModelPI, 3), - [418] = {.entry = {.count = 1, .reusable = true}}, SHIFT(294), - [420] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_StyleSheetPI, 3), - [422] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_StyleSheetPI, 3), - [424] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XmlModelPI, 5), - [426] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XmlModelPI, 5), - [428] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_StyleSheetPI, 5), - [430] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_StyleSheetPI, 5), - [432] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), - [434] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(130), - [437] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(363), - [440] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [442] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [444] = {.entry = {.count = 1, .reusable = true}}, SHIFT(279), - [446] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 5), - [448] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 5), - [450] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [452] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), SHIFT_REPEAT(78), - [455] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), - [457] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 2), SHIFT_REPEAT(279), - [460] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [462] = {.entry = {.count = 1, .reusable = true}}, SHIFT(184), - [464] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__intSubset, 3), - [466] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 7), - [468] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 7), - [470] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_children, 1), - [472] = {.entry = {.count = 1, .reusable = true}}, SHIFT(255), - [474] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 4), - [476] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 4), - [478] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [480] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_XMLDecl, 6), - [482] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_XMLDecl, 6), - [484] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 9), - [486] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 9), - [488] = {.entry = {.count = 1, .reusable = true}}, SHIFT(345), - [490] = {.entry = {.count = 1, .reusable = true}}, SHIFT(371), - [492] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 1), - [494] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 1), SHIFT_REPEAT(181), - [497] = {.entry = {.count = 1, .reusable = false}}, SHIFT(254), - [499] = {.entry = {.count = 1, .reusable = true}}, SHIFT(186), - [501] = {.entry = {.count = 1, .reusable = true}}, SHIFT(218), - [503] = {.entry = {.count = 1, .reusable = true}}, SHIFT(250), - [505] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 11), - [507] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 11), - [509] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [511] = {.entry = {.count = 1, .reusable = true}}, SHIFT(149), - [513] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [515] = {.entry = {.count = 1, .reusable = true}}, SHIFT(187), - [517] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_AttlistDecl_repeat1, 2), - [519] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_AttlistDecl_repeat1, 2), SHIFT_REPEAT(236), - [522] = {.entry = {.count = 1, .reusable = true}}, SHIFT(338), - [524] = {.entry = {.count = 1, .reusable = true}}, SHIFT(256), - [526] = {.entry = {.count = 1, .reusable = true}}, SHIFT(159), - [528] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150), - [530] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [532] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158), - [534] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), - [536] = {.entry = {.count = 1, .reusable = true}}, SHIFT(420), - [538] = {.entry = {.count = 1, .reusable = true}}, SHIFT(331), - [540] = {.entry = {.count = 1, .reusable = true}}, SHIFT(312), - [542] = {.entry = {.count = 1, .reusable = true}}, SHIFT(311), - [544] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 4), - [546] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), SHIFT_REPEAT(331), - [549] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), - [551] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 2), SHIFT_REPEAT(360), - [554] = {.entry = {.count = 1, .reusable = true}}, SHIFT(342), - [556] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [558] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 10), - [560] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 10), - [562] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [564] = {.entry = {.count = 1, .reusable = true}}, SHIFT(231), - [566] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [568] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [570] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 12), - [572] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 12), - [574] = {.entry = {.count = 1, .reusable = true}}, SHIFT(245), - [576] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [578] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 7), - [580] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 7), - [582] = {.entry = {.count = 1, .reusable = true}}, SHIFT(320), - [584] = {.entry = {.count = 1, .reusable = true}}, SHIFT(319), - [586] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__choice_repeat1, 3), - [588] = {.entry = {.count = 1, .reusable = true}}, SHIFT(182), - [590] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_EmptyElemTag_repeat1, 2), - [592] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_EmptyElemTag_repeat1, 2), SHIFT_REPEAT(301), - [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(190), - [597] = {.entry = {.count = 1, .reusable = true}}, SHIFT(191), - [599] = {.entry = {.count = 1, .reusable = true}}, SHIFT(372), - [601] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cp, 2), - [603] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 5), - [605] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 5), - [607] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [609] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [611] = {.entry = {.count = 1, .reusable = true}}, SHIFT(269), - [613] = {.entry = {.count = 1, .reusable = true}}, SHIFT(153), - [615] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 3), - [617] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [619] = {.entry = {.count = 1, .reusable = true}}, SHIFT(351), - [621] = {.entry = {.count = 1, .reusable = true}}, SHIFT(349), - [623] = {.entry = {.count = 1, .reusable = true}}, SHIFT(347), - [625] = {.entry = {.count = 1, .reusable = true}}, SHIFT(344), - [627] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 8), - [629] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 8), - [631] = {.entry = {.count = 1, .reusable = true}}, SHIFT(332), - [633] = {.entry = {.count = 1, .reusable = true}}, SHIFT(333), - [635] = {.entry = {.count = 1, .reusable = true}}, SHIFT(211), - [637] = {.entry = {.count = 1, .reusable = true}}, SHIFT(213), - [639] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(161), - [642] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), - [644] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(371), - [647] = {.entry = {.count = 1, .reusable = true}}, SHIFT(234), - [649] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), - [651] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctypedecl, 6), - [653] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctypedecl, 6), - [655] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_NotationType_repeat1, 2), SHIFT_REPEAT(172), - [658] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189), - [660] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [662] = {.entry = {.count = 1, .reusable = true}}, SHIFT(386), - [664] = {.entry = {.count = 1, .reusable = true}}, SHIFT(200), - [666] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ExternalID, 3), - [668] = {.entry = {.count = 1, .reusable = true}}, SHIFT(230), - [670] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [672] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 2), SHIFT_REPEAT(212), - [675] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [677] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [679] = {.entry = {.count = 1, .reusable = true}}, SHIFT(383), - [681] = {.entry = {.count = 1, .reusable = true}}, SHIFT(259), - [683] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttValue, 3, .production_id = 4), - [685] = {.entry = {.count = 1, .reusable = true}}, SHIFT(380), - [687] = {.entry = {.count = 1, .reusable = true}}, SHIFT(170), - [689] = {.entry = {.count = 1, .reusable = true}}, SHIFT(375), - [691] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 1), - [693] = {.entry = {.count = 1, .reusable = true}}, SHIFT(310), - [695] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [697] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168), - [699] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [701] = {.entry = {.count = 1, .reusable = true}}, SHIFT(229), - [703] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [705] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttValue, 2), - [707] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 4), - [709] = {.entry = {.count = 1, .reusable = true}}, SHIFT(224), - [711] = {.entry = {.count = 1, .reusable = true}}, SHIFT(356), - [713] = {.entry = {.count = 1, .reusable = true}}, SHIFT(357), - [715] = {.entry = {.count = 1, .reusable = true}}, SHIFT(328), - [717] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 3), - [719] = {.entry = {.count = 1, .reusable = true}}, SHIFT(300), - [721] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 3), - [723] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 3), SHIFT_REPEAT(219), - [726] = {.entry = {.count = 1, .reusable = true}}, SHIFT(221), - [728] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 4), - [730] = {.entry = {.count = 1, .reusable = true}}, SHIFT(325), - [732] = {.entry = {.count = 1, .reusable = true}}, SHIFT(203), - [734] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [736] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 4), - [738] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_SystemLiteral, 3), - [740] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 4), SHIFT_REPEAT(237), - [743] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ExternalID, 5), - [745] = {.entry = {.count = 1, .reusable = true}}, SHIFT(362), - [747] = {.entry = {.count = 1, .reusable = true}}, SHIFT(364), - [749] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103), - [751] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Attribute, 3), - [753] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_StyleSheetPI_repeat1, 2), SHIFT_REPEAT(297), - [756] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_StyleSheetPI_repeat1, 2), - [758] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [760] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [762] = {.entry = {.count = 1, .reusable = true}}, SHIFT(277), - [764] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [766] = {.entry = {.count = 1, .reusable = true}}, SHIFT(199), - [768] = {.entry = {.count = 1, .reusable = true}}, SHIFT(198), - [770] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Mixed_repeat1, 5), - [772] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_Enumeration_repeat1, 3), - [774] = {.entry = {.count = 1, .reusable = true}}, SHIFT(263), - [776] = {.entry = {.count = 1, .reusable = true}}, SHIFT(265), - [778] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 2), - [780] = {.entry = {.count = 1, .reusable = true}}, SHIFT(334), - [782] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [784] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154), - [786] = {.entry = {.count = 1, .reusable = true}}, SHIFT(335), - [788] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_contentspec, 1), - [790] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_DefaultDecl, 1), - [792] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 6), - [794] = {.entry = {.count = 1, .reusable = true}}, SHIFT(444), - [796] = {.entry = {.count = 1, .reusable = true}}, SHIFT(264), - [798] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [800] = {.entry = {.count = 1, .reusable = true}}, SHIFT(421), - [802] = {.entry = {.count = 1, .reusable = true}}, SHIFT(257), - [804] = {.entry = {.count = 1, .reusable = true}}, SHIFT(410), - [806] = {.entry = {.count = 1, .reusable = true}}, SHIFT(399), - [808] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [810] = {.entry = {.count = 1, .reusable = true}}, SHIFT(401), - [812] = {.entry = {.count = 1, .reusable = true}}, SHIFT(439), - [814] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [816] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_elementdecl, 7), - [818] = {.entry = {.count = 1, .reusable = true}}, SHIFT(397), - [820] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_children, 2), - [822] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 7), - [824] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationDecl, 7), - [826] = {.entry = {.count = 1, .reusable = true}}, SHIFT(422), - [828] = {.entry = {.count = 1, .reusable = true}}, SHIFT(398), - [830] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityValue, 2), - [832] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [834] = {.entry = {.count = 1, .reusable = true}}, SHIFT(412), - [836] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 7), - [838] = {.entry = {.count = 1, .reusable = true}}, SHIFT(295), - [840] = {.entry = {.count = 1, .reusable = true}}, SHIFT(378), - [842] = {.entry = {.count = 1, .reusable = true}}, SHIFT(376), - [844] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PubidLiteral, 3), - [846] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165), - [848] = {.entry = {.count = 1, .reusable = true}}, SHIFT(387), - [850] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttlistDecl, 5), - [852] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__SDDecl, 6), - [854] = {.entry = {.count = 1, .reusable = true}}, SHIFT(178), - [856] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EncodingDecl, 6), - [858] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147), - [860] = {.entry = {.count = 1, .reusable = true}}, SHIFT(403), - [862] = {.entry = {.count = 1, .reusable = true}}, SHIFT(379), - [864] = {.entry = {.count = 1, .reusable = true}}, SHIFT(361), - [866] = {.entry = {.count = 1, .reusable = true}}, SHIFT(358), - [868] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [870] = {.entry = {.count = 1, .reusable = true}}, SHIFT(353), - [872] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [874] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 9), - [876] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_elementdecl, 8), - [878] = {.entry = {.count = 1, .reusable = true}}, SHIFT(354), - [880] = {.entry = {.count = 1, .reusable = true}}, SHIFT(176), - [882] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_StringType, 1), - [884] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__AttType, 1), - [886] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 8), - [888] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttDef, 4), - [890] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [892] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EnumeratedType, 1), - [894] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PublicID, 3), - [896] = {.entry = {.count = 1, .reusable = true}}, SHIFT(207), - [898] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationDecl, 8), - [900] = {.entry = {.count = 1, .reusable = true}}, SHIFT(318), - [902] = {.entry = {.count = 1, .reusable = true}}, SHIFT(348), - [904] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_EntityValue, 3, .production_id = 4), - [906] = {.entry = {.count = 1, .reusable = true}}, SHIFT(341), - [908] = {.entry = {.count = 1, .reusable = true}}, SHIFT(343), - [910] = {.entry = {.count = 1, .reusable = true}}, SHIFT(285), - [912] = {.entry = {.count = 1, .reusable = true}}, SHIFT(381), - [914] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 8), - [916] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 7), - [918] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NotationType, 6), - [920] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PseudoAttValue, 3, .production_id = 4), - [922] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__markupdecl, 1), - [924] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__EntityDecl, 1), - [926] = {.entry = {.count = 1, .reusable = true}}, SHIFT(296), - [928] = {.entry = {.count = 1, .reusable = true}}, SHIFT(377), - [930] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 6), - [932] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_DefaultDecl, 3), - [934] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__VersionInfo, 6), - [936] = {.entry = {.count = 1, .reusable = true}}, SHIFT(298), - [938] = {.entry = {.count = 1, .reusable = true}}, SHIFT(374), - [940] = {.entry = {.count = 1, .reusable = true}}, SHIFT(316), - [942] = {.entry = {.count = 1, .reusable = true}}, SHIFT(305), - [944] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 5), - [946] = {.entry = {.count = 1, .reusable = true}}, SHIFT(324), - [948] = {.entry = {.count = 1, .reusable = true}}, SHIFT(323), - [950] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PseudoAtt, 3), - [952] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [954] = {.entry = {.count = 1, .reusable = true}}, SHIFT(384), - [956] = {.entry = {.count = 1, .reusable = true}}, SHIFT(359), - [958] = {.entry = {.count = 1, .reusable = true}}, SHIFT(238), - [960] = {.entry = {.count = 1, .reusable = true}}, SHIFT(253), - [962] = {.entry = {.count = 1, .reusable = true}}, SHIFT(411), - [964] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEDecl, 9), - [966] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 4), - [968] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_GEDecl, 9), - [970] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PseudoAttValue, 2), - [972] = {.entry = {.count = 1, .reusable = true}}, SHIFT(373), - [974] = {.entry = {.count = 1, .reusable = true}}, SHIFT(370), - [976] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 5), - [978] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Mixed, 6), - [980] = {.entry = {.count = 1, .reusable = true}}, SHIFT(175), - [982] = {.entry = {.count = 1, .reusable = true}}, SHIFT(350), - [984] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_NDataDecl, 4), - [986] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_PEDecl, 10), - [988] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_AttDef, 6), - [990] = {.entry = {.count = 1, .reusable = true}}, SHIFT(336), - [992] = {.entry = {.count = 1, .reusable = true}}, SHIFT(225), - [994] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_Enumeration, 3), - [996] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__Eq, 3), - [998] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [1000] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [1002] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [1004] = {.entry = {.count = 1, .reusable = true}}, SHIFT(308), - [1006] = {.entry = {.count = 1, .reusable = true}}, SHIFT(367), - [1008] = {.entry = {.count = 1, .reusable = true}}, SHIFT(346), - [1010] = {.entry = {.count = 1, .reusable = true}}, SHIFT(369), - [1012] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193), - [1014] = {.entry = {.count = 1, .reusable = true}}, SHIFT(326), - [1016] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [1018] = {.entry = {.count = 1, .reusable = true}}, SHIFT(195), - [1020] = {.entry = {.count = 1, .reusable = true}}, SHIFT(329), - [1022] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196), - [1024] = {.entry = {.count = 1, .reusable = true}}, SHIFT(197), - [1026] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148), - [1028] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [1030] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156), - [1032] = {.entry = {.count = 1, .reusable = true}}, SHIFT(414), - [1034] = {.entry = {.count = 1, .reusable = true}}, SHIFT(385), - [1036] = {.entry = {.count = 1, .reusable = true}}, SHIFT(389), - [1038] = {.entry = {.count = 1, .reusable = true}}, SHIFT(340), - [1040] = {.entry = {.count = 1, .reusable = true}}, SHIFT(205), - [1042] = {.entry = {.count = 1, .reusable = true}}, SHIFT(339), - [1044] = {.entry = {.count = 1, .reusable = true}}, SHIFT(390), - [1046] = {.entry = {.count = 1, .reusable = true}}, SHIFT(185), - [1048] = {.entry = {.count = 1, .reusable = true}}, SHIFT(393), - [1050] = {.entry = {.count = 1, .reusable = true}}, SHIFT(223), - [1052] = {.entry = {.count = 1, .reusable = true}}, SHIFT(272), - [1054] = {.entry = {.count = 1, .reusable = true}}, SHIFT(217), - [1056] = {.entry = {.count = 1, .reusable = true}}, SHIFT(270), - [1058] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [1060] = {.entry = {.count = 1, .reusable = true}}, SHIFT(321), - [1062] = {.entry = {.count = 1, .reusable = true}}, SHIFT(208), - [1064] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [1066] = {.entry = {.count = 1, .reusable = true}}, SHIFT(280), - [1068] = {.entry = {.count = 1, .reusable = true}}, SHIFT(352), - [1070] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [1072] = {.entry = {.count = 1, .reusable = true}}, SHIFT(220), - [1074] = {.entry = {.count = 1, .reusable = true}}, SHIFT(241), - [1076] = {.entry = {.count = 1, .reusable = true}}, SHIFT(177), - [1078] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_CDStart, 3), - [1080] = {.entry = {.count = 1, .reusable = true}}, SHIFT(267), - [1082] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [1084] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [1086] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [1088] = {.entry = {.count = 1, .reusable = true}}, SHIFT(232), - [1090] = {.entry = {.count = 1, .reusable = true}}, SHIFT(388), - [1092] = {.entry = {.count = 1, .reusable = true}}, SHIFT(209), - [1094] = {.entry = {.count = 1, .reusable = true}}, SHIFT(413), - [1096] = {.entry = {.count = 1, .reusable = true}}, SHIFT(391), - [1098] = {.entry = {.count = 1, .reusable = true}}, SHIFT(201), - [1100] = {.entry = {.count = 1, .reusable = true}}, SHIFT(392), - [1102] = {.entry = {.count = 1, .reusable = true}}, SHIFT(268), - [1104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(252), - [1106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(394), - [1108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(337), - [1110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(396), - [1112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(290), - [1114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(281), - [1116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(151), - [1118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [1120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(400), - [1122] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [1124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [1126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [1128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(235), - [1130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [1132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), - [1134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [1136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [1138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(239), - [1140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [1142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [1144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(262), - [1146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [1148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [1150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [1152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [1154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [1156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [1158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169), - [1160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(416), - [1162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(417), - [1164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(246), - [1166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(247), - [1168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(419), - [1170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(424), - [1172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(425), - [1174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(426), - [1176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(427), - [1178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(428), - [1180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(429), - [1182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(430), - [1184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(431), - [1186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(432), -}; - -#ifdef __cplusplus -extern "C" { -#endif -void *tree_sitter_xml_external_scanner_create(void); -void tree_sitter_xml_external_scanner_destroy(void *); -bool tree_sitter_xml_external_scanner_scan(void *, TSLexer *, const bool *); -unsigned tree_sitter_xml_external_scanner_serialize(void *, char *); -void tree_sitter_xml_external_scanner_deserialize(void *, const char *, unsigned); - -#ifdef _WIN32 -#define extern __declspec(dllexport) -#endif - -extern const TSLanguage *tree_sitter_xml(void) { - static const TSLanguage language = { - .version = LANGUAGE_VERSION, - .symbol_count = SYMBOL_COUNT, - .alias_count = ALIAS_COUNT, - .token_count = TOKEN_COUNT, - .external_token_count = EXTERNAL_TOKEN_COUNT, - .state_count = STATE_COUNT, - .large_state_count = LARGE_STATE_COUNT, - .production_id_count = PRODUCTION_ID_COUNT, - .field_count = FIELD_COUNT, - .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, - .parse_table = &ts_parse_table[0][0], - .small_parse_table = ts_small_parse_table, - .small_parse_table_map = ts_small_parse_table_map, - .parse_actions = ts_parse_actions, - .symbol_names = ts_symbol_names, - .field_names = ts_field_names, - .field_map_slices = ts_field_map_slices, - .field_map_entries = ts_field_map_entries, - .symbol_metadata = ts_symbol_metadata, - .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_fn = ts_lex, - .keyword_lex_fn = ts_lex_keywords, - .keyword_capture_token = sym_Name, - .external_scanner = { - &ts_external_scanner_states[0][0], - ts_external_scanner_symbol_map, - tree_sitter_xml_external_scanner_create, - tree_sitter_xml_external_scanner_destroy, - tree_sitter_xml_external_scanner_scan, - tree_sitter_xml_external_scanner_serialize, - tree_sitter_xml_external_scanner_deserialize, - }, - .primary_state_ids = ts_primary_state_ids, - }; - return &language; -} -#ifdef __cplusplus -} -#endif diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/scanner.c b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/scanner.c deleted file mode 100644 index f949e8fb91..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/scanner.c +++ /dev/null @@ -1,81 +0,0 @@ -#include "../../common/scanner.h" - -/// Check if the lexer is in error recovery mode -static inline bool in_error_recovery(const bool *valid_symbols) { - return valid_symbols[PI_TARGET] && valid_symbols[PI_CONTENT] && - valid_symbols[COMMENT] && valid_symbols[CHAR_DATA] && valid_symbols[CDATA]; -} - -/// Scan for a CharData node -static bool scan_char_data(TSLexer *lexer) { - bool advanced_once = false; - - while (!lexer->eof(lexer) && - lexer->lookahead != '<' && - lexer->lookahead != '&') { - if (lexer->lookahead == ']') { - lexer->mark_end(lexer); - advance(lexer); - if (lexer->lookahead == ']') { - advance(lexer); - if (lexer->lookahead == '>') { - advance(lexer); - if (advanced_once) { - lexer->result_symbol = CHAR_DATA; - return false; - } - } - } - } - advanced_once = true; - advance(lexer); - } - - if (advanced_once) { - lexer->mark_end(lexer); - lexer->result_symbol = CHAR_DATA; - return true; - } - return false; -} - -/// Scan for a CData node -static bool scan_cdata(TSLexer *lexer) { - bool advanced_once = false; - - while (!lexer->eof(lexer)) { - if (lexer->lookahead == ']') { - lexer->mark_end(lexer); - advance(lexer); - if (lexer->lookahead == ']') { - advance(lexer); - if (lexer->lookahead == '>' && advanced_once) { - lexer->result_symbol = CDATA; - return true; - } - } - } - advanced_once = true; - advance(lexer); - } - - return false; -} - -bool tree_sitter_xml_external_scanner_scan(void *payload, TSLexer *lexer, const bool *valid_symbols) { - if (in_error_recovery(valid_symbols)) return false; - - if (valid_symbols[PI_TARGET]) return scan_pi_target(lexer, valid_symbols); - - if (valid_symbols[PI_CONTENT]) return scan_pi_content(lexer); - - if (valid_symbols[COMMENT] && lexer->lookahead == '<') return scan_comment(lexer); - - if (valid_symbols[CHAR_DATA]) return scan_char_data(lexer); - - if (valid_symbols[CDATA]) return scan_cdata(lexer); - - return false; -} - -SCANNER_BOILERPLATE(xml) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/tree_sitter/parser.h b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/tree_sitter/parser.h deleted file mode 100644 index 2b14ac1046..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/src/tree_sitter/parser.h +++ /dev/null @@ -1,224 +0,0 @@ -#ifndef TREE_SITTER_PARSER_H_ -#define TREE_SITTER_PARSER_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -#define ts_builtin_sym_error ((TSSymbol)-1) -#define ts_builtin_sym_end 0 -#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024 - -typedef uint16_t TSStateId; - -#ifndef TREE_SITTER_API_H_ -typedef uint16_t TSSymbol; -typedef uint16_t TSFieldId; -typedef struct TSLanguage TSLanguage; -#endif - -typedef struct { - TSFieldId field_id; - uint8_t child_index; - bool inherited; -} TSFieldMapEntry; - -typedef struct { - uint16_t index; - uint16_t length; -} TSFieldMapSlice; - -typedef struct { - bool visible; - bool named; - bool supertype; -} TSSymbolMetadata; - -typedef struct TSLexer TSLexer; - -struct TSLexer { - int32_t lookahead; - TSSymbol result_symbol; - void (*advance)(TSLexer *, bool); - void (*mark_end)(TSLexer *); - uint32_t (*get_column)(TSLexer *); - bool (*is_at_included_range_start)(const TSLexer *); - bool (*eof)(const TSLexer *); -}; - -typedef enum { - TSParseActionTypeShift, - TSParseActionTypeReduce, - TSParseActionTypeAccept, - TSParseActionTypeRecover, -} TSParseActionType; - -typedef union { - struct { - uint8_t type; - TSStateId state; - bool extra; - bool repetition; - } shift; - struct { - uint8_t type; - uint8_t child_count; - TSSymbol symbol; - int16_t dynamic_precedence; - uint16_t production_id; - } reduce; - uint8_t type; -} TSParseAction; - -typedef struct { - uint16_t lex_state; - uint16_t external_lex_state; -} TSLexMode; - -typedef union { - TSParseAction action; - struct { - uint8_t count; - bool reusable; - } entry; -} TSParseActionEntry; - -struct TSLanguage { - uint32_t version; - uint32_t symbol_count; - uint32_t alias_count; - uint32_t token_count; - uint32_t external_token_count; - uint32_t state_count; - uint32_t large_state_count; - uint32_t production_id_count; - uint32_t field_count; - uint16_t max_alias_sequence_length; - const uint16_t *parse_table; - const uint16_t *small_parse_table; - const uint32_t *small_parse_table_map; - const TSParseActionEntry *parse_actions; - const char * const *symbol_names; - const char * const *field_names; - const TSFieldMapSlice *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; - bool (*lex_fn)(TSLexer *, TSStateId); - bool (*keyword_lex_fn)(TSLexer *, TSStateId); - TSSymbol keyword_capture_token; - struct { - const bool *states; - const TSSymbol *symbol_map; - void *(*create)(void); - void (*destroy)(void *); - bool (*scan)(void *, TSLexer *, const bool *symbol_whitelist); - unsigned (*serialize)(void *, char *); - void (*deserialize)(void *, const char *, unsigned); - } external_scanner; - const TSStateId *primary_state_ids; -}; - -/* - * Lexer Macros - */ - -#define START_LEXER() \ - bool result = false; \ - bool skip = false; \ - bool eof = false; \ - int32_t lookahead; \ - goto start; \ - next_state: \ - lexer->advance(lexer, skip); \ - start: \ - skip = false; \ - lookahead = lexer->lookahead; - -#define ADVANCE(state_value) \ - { \ - state = state_value; \ - goto next_state; \ - } - -#define SKIP(state_value) \ - { \ - skip = true; \ - state = state_value; \ - goto next_state; \ - } - -#define ACCEPT_TOKEN(symbol_value) \ - result = true; \ - lexer->result_symbol = symbol_value; \ - lexer->mark_end(lexer); - -#define END_STATE() return result; - -/* - * Parse Table Macros - */ - -#define SMALL_STATE(id) id - LARGE_STATE_COUNT - -#define STATE(id) id - -#define ACTIONS(id) id - -#define SHIFT(state_value) \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .state = state_value \ - } \ - }} - -#define SHIFT_REPEAT(state_value) \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .state = state_value, \ - .repetition = true \ - } \ - }} - -#define SHIFT_EXTRA() \ - {{ \ - .shift = { \ - .type = TSParseActionTypeShift, \ - .extra = true \ - } \ - }} - -#define REDUCE(symbol_val, child_count_val, ...) \ - {{ \ - .reduce = { \ - .type = TSParseActionTypeReduce, \ - .symbol = symbol_val, \ - .child_count = child_count_val, \ - __VA_ARGS__ \ - }, \ - }} - -#define RECOVER() \ - {{ \ - .type = TSParseActionTypeRecover \ - }} - -#define ACCEPT_INPUT() \ - {{ \ - .type = TSParseActionTypeAccept \ - }} - -#ifdef __cplusplus -} -#endif - -#endif // TREE_SITTER_PARSER_H_ diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/errors.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/errors.txt deleted file mode 100644 index b63d9085e6..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/errors.txt +++ /dev/null @@ -1,104 +0,0 @@ -================================================================================ -Invalid comment -================================================================================ - - - - - --------------------------------------------------------------------------------- - -(ERROR - (STag - (Name)) - (content - (CharData) - (element - (STag - (ERROR - (Nmtoken)) - (Name) - (ERROR - (Nmtoken) - (Nmtoken))) - (content - (CharData)) - (ETag - (Name))) - (CharData))) - -================================================================================ -Invalid processing instructions -================================================================================ - - - - invalid?> - - --------------------------------------------------------------------------------- - -(document - (ERROR - (Name) - (Name)) - (element - (STag - (Name)) - (content - (CharData)) - (ERROR - (PITarget) - (Name) - (Name)) - (ETag - (Name)))) - -================================================================================ -Invalid character data -================================================================================ - - - -This is not valid: ]]> - - - is invalid ]]> - - - --------------------------------------------------------------------------------- - -(document - (element - (STag - (Name)) - (content - (CharData) - (element - (STag - (Name)) - (ERROR - (Name) - (Name) - (Name) - (Name)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData) - (CDSect - (CDStart) - (CData))) - (ERROR - (Name) - (Name)) - (ETag - (Name))) - (CharData)) - (ETag - (Name)))) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/examples.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/examples.txt deleted file mode 100644 index f4dcc85911..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/examples.txt +++ /dev/null @@ -1,180 +0,0 @@ -================================================================================ -note.xml -================================================================================ - - - - - - - - - - - -]> - - Tove - Jani - Reminder - Don't forget me this weekend! -
&writer; ©right;
-
- --------------------------------------------------------------------------------- - -(document - (prolog - (XMLDecl - (VersionNum) - (EncName)) - (doctypedecl - (Name) - (elementdecl - (Name) - (contentspec - (children - (Name) - (Name) - (Name) - (Name) - (Name)))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (elementdecl - (Name) - (contentspec - (Mixed))) - (GEDecl - (Name) - (EntityValue - (CharRef))) - (GEDecl - (Name) - (EntityValue)) - (GEDecl - (Name) - (EntityValue)))) - (element - (STag - (Name)) - (content - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (EntityRef - (Name)) - (EntityRef - (Name)) - (EntityRef - (Name))) - (ETag - (Name))) - (CharData)) - (ETag - (Name)))) - -================================================================================ -address.xml -================================================================================ - - - -
- Tanmay Patil - TutorialsPoint - (011) 123-4567 -
- --------------------------------------------------------------------------------- - -(document - (prolog - (XMLDecl - (VersionNum) - (EncName)) - (doctypedecl - (Name) - (ExternalID - (SystemLiteral - (URI))))) - (element - (STag - (Name)) - (content - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData)) - (ETag - (Name)))) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/extra.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/extra.txt deleted file mode 100644 index 7c4fa3b686..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/extra.txt +++ /dev/null @@ -1,119 +0,0 @@ -================================================================================ -XML Model -================================================================================ - - - - - - … - - --------------------------------------------------------------------------------- - -(document - (prolog - (XMLDecl - (VersionNum)) - (XmlModelPI - (PseudoAtt - (Name) - (PseudoAttValue))) - (XmlModelPI - (PseudoAtt - (Name) - (PseudoAttValue)))) - (element - (STag - (Name) - (Attribute - (Name) - (AttValue))) - (content - (CharData)) - (ETag - (Name)))) - -================================================================================ -XML Stylesheet -================================================================================ - - - - - - - - Example with xml-stylesheet processing instructions - - - ... - - - --------------------------------------------------------------------------------- - -(document - (prolog - (StyleSheetPI - (PseudoAtt - (Name) - (PseudoAttValue))) - (StyleSheetPI - (PseudoAtt - (Name) - (PseudoAttValue)) - (PseudoAtt - (Name) - (PseudoAttValue))) - (StyleSheetPI - (PseudoAtt - (Name) - (PseudoAttValue)) - (PseudoAtt - (Name) - (PseudoAttValue)) - (PseudoAtt - (Name) - (PseudoAttValue))) - (StyleSheetPI - (PseudoAtt - (Name) - (PseudoAttValue)) - (PseudoAtt - (Name) - (PseudoAttValue)))) - (element - (STag - (Name) - (Attribute - (Name) - (AttValue))) - (content - (CharData) - (element - (STag - (Name)) - (content - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData)) - (ETag - (Name))) - (CharData) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name))) - (CharData)) - (ETag - (Name)))) diff --git a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/standard.txt b/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/standard.txt deleted file mode 100644 index c600fc6ace..0000000000 --- a/vendored_parsers/tree-sitter-xml/tree-sitter-xml/test/corpus/standard.txt +++ /dev/null @@ -1,117 +0,0 @@ -================================================================================ -Prolog and Document Type -================================================================================ - - - -]> -Hello, world! - --------------------------------------------------------------------------------- - -(document - (prolog - (XMLDecl - (VersionNum) - (EncName)) - (doctypedecl - (Name) - (elementdecl - (Name) - (contentspec - (Mixed))))) - (element - (STag - (Name)) - (content - (CharData)) - (ETag - (Name)))) - -================================================================================ -Comment -================================================================================ - - - - --------------------------------------------------------------------------------- - -(document - (prolog - (Comment)) - (element - (EmptyElemTag - (Name)))) - -================================================================================ -CDATA Section -================================================================================ - - -Hello, world!]]> - - --------------------------------------------------------------------------------- - -(document - (element - (STag - (Name)) - (content - (CharData) - (CDSect - (CDStart) - (CData)) - (CharData)) - (ETag - (Name)))) - -================================================================================ -Element Tags -================================================================================ - - - -

-
-
- --------------------------------------------------------------------------------- - -(document - (element - (STag - (Name) - (Attribute - (Name) - (AttValue)) - (Attribute - (Name) - (AttValue))) - (content - (CharData) - (element - (EmptyElemTag - (Name) - (Attribute - (Name) - (AttValue)) - (Attribute - (Name) - (AttValue)))) - (CharData) - (element - (STag - (Name)) - (ETag - (Name))) - (CharData) - (element - (EmptyElemTag - (Name))) - (CharData)) - (ETag - (Name))))