diff --git a/CHANGELOG.md b/CHANGELOG.md index 35bb7babe..27e33650d 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, Objective-C, OCaml, -PHP, Python, Ruby, Scala and TypeScript. +PHP, Python, Ruby, Scala, TOML and TypeScript. ### Syntax Highlighting diff --git a/Cargo.lock b/Cargo.lock index 99cecdd04..da37821cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -268,6 +268,7 @@ dependencies = [ "tree-sitter-python", "tree-sitter-ruby", "tree-sitter-scala", + "tree-sitter-toml-ng", "tree-sitter-typescript", "tree_magic_mini", "typed-arena", @@ -1206,6 +1207,16 @@ dependencies = [ "tree-sitter-language", ] +[[package]] +name = "tree-sitter-toml-ng" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9adc2c898ae49730e857d75be403da3f92bb81d8e37a2f918a08dd10de5ebb1" +dependencies = [ + "cc", + "tree-sitter-language", +] + [[package]] name = "tree-sitter-typescript" version = "0.23.2" diff --git a/Cargo.toml b/Cargo.toml index c3396d50c..f6aebedc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,6 +97,7 @@ tree-sitter-php = "0.23.11" tree-sitter-json = "0.24.8" tree-sitter-html = "0.23.2" tree-sitter-css = "0.23.1" +tree-sitter-toml-ng = "0.7.0" [dev-dependencies] # assert_cmd 2.0.10 requires predicates 3. diff --git a/build.rs b/build.rs index cf672a9cb..d78f6c130 100644 --- a/build.rs +++ b/build.rs @@ -247,11 +247,6 @@ fn main() { src_dir: "vendored_parsers/tree-sitter-swift-src", extra_files: vec!["scanner.c"], }, - TreeSitterParser { - name: "tree-sitter-toml", - src_dir: "vendored_parsers/tree-sitter-toml-src", - extra_files: vec!["scanner.c"], - }, TreeSitterParser { name: "tree-sitter-vhdl", src_dir: "vendored_parsers/tree-sitter-vhdl-src", diff --git a/manual/src/languages_supported.md b/manual/src/languages_supported.md index a8aad13bd..a214251b7 100644 --- a/manual/src/languages_supported.md +++ b/manual/src/languages_supported.md @@ -60,16 +60,16 @@ with `difft --list-languages`. ## Structured Text Formats -| Language | Parser Used | -|----------|-------------------------------------------------------------------------------------| -| CSS | [tree-sitter/tree-sitter-css](https://github.com/tree-sitter/tree-sitter-css) | -| HCL | [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl) | -| HTML | [tree-sitter/tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) | -| JSON | [tree-sitter/tree-sitter-json](https://github.com/tree-sitter/tree-sitter-json) | -| LaTeX | [latex-lsp/tree-sitter-latex](https://github.com/latex-lsp/tree-sitter-latex) | -| 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 | [ikatyang/tree-sitter-toml](https://github.com/ikatyang/tree-sitter-toml) | -| XML | [ObserverOfTime/tree-sitter-xml](https://github.com/ObserverOfTime/tree-sitter-xml) | -| YAML | [ikatyang/tree-sitter-yaml](https://github.com/ikatyang/tree-sitter-yaml) | +| Language | Parser Used | +|----------|---------------------------------------------------------------------------------------------------| +| CSS | [tree-sitter/tree-sitter-css](https://github.com/tree-sitter/tree-sitter-css) | +| HCL | [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl) | +| HTML | [tree-sitter/tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) | +| JSON | [tree-sitter/tree-sitter-json](https://github.com/tree-sitter/tree-sitter-json) | +| LaTeX | [latex-lsp/tree-sitter-latex](https://github.com/latex-lsp/tree-sitter-latex) | +| 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) | +| YAML | [ikatyang/tree-sitter-yaml](https://github.com/ikatyang/tree-sitter-yaml) | diff --git a/sample_files/compare.expected b/sample_files/compare.expected index e3db3f1a2..74ceef1ed 100644 --- a/sample_files/compare.expected +++ b/sample_files/compare.expected @@ -278,7 +278,7 @@ sample_files/todomvc_1.gleam sample_files/todomvc_2.gleam 9fe64f7d77ad99095ac29357554f3d71 - sample_files/toml_1.toml sample_files/toml_2.toml -a771827287e174fc2e18a1cd2624bc9c - +c331bdb54c00b0a5b5a622dbd250042a - sample_files/trailling_newline_1.yaml sample_files/trailling_newline_2.yaml 8e37febfec957288576f9c2020cfc4f2 - diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index 21f780868..6cdc73b79 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -97,7 +97,6 @@ extern "C" { fn tree_sitter_solidity() -> ts::Language; fn tree_sitter_sql() -> ts::Language; fn tree_sitter_swift() -> ts::Language; - fn tree_sitter_toml() -> ts::Language; fn tree_sitter_vhdl() -> ts::Language; fn tree_sitter_xml() -> ts::Language; fn tree_sitter_yaml() -> ts::Language; @@ -1038,16 +1037,15 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig { } } Toml => { - let language = unsafe { tree_sitter_toml() }; + let language_fn = tree_sitter_toml_ng::LANGUAGE; + let language = tree_sitter::Language::new(language_fn); + TreeSitterConfig { language: language.clone(), atom_nodes: vec!["string", "quoted_key"].into_iter().collect(), delimiter_tokens: vec![("{", "}"), ("[", "]")], - highlight_query: ts::Query::new( - &language, - include_str!("../../vendored_parsers/highlights/toml.scm"), - ) - .unwrap(), + highlight_query: ts::Query::new(&language, tree_sitter_toml_ng::HIGHLIGHTS_QUERY) + .unwrap(), sub_languages: vec![], } } diff --git a/vendored_parsers/highlights/toml.scm b/vendored_parsers/highlights/toml.scm deleted file mode 120000 index 95af975ea..000000000 --- a/vendored_parsers/highlights/toml.scm +++ /dev/null @@ -1 +0,0 @@ -../tree-sitter-toml/queries/highlights.scm \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-toml-src b/vendored_parsers/tree-sitter-toml-src deleted file mode 120000 index baa1e54d4..000000000 --- a/vendored_parsers/tree-sitter-toml-src +++ /dev/null @@ -1 +0,0 @@ -tree-sitter-toml/src \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-toml/.editorconfig b/vendored_parsers/tree-sitter-toml/.editorconfig deleted file mode 100644 index 8354c63fc..000000000 --- a/vendored_parsers/tree-sitter-toml/.editorconfig +++ /dev/null @@ -1,12 +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 - -[corpus/*] -trim_trailing_whitespace = false diff --git a/vendored_parsers/tree-sitter-toml/.gitattributes b/vendored_parsers/tree-sitter-toml/.gitattributes deleted file mode 100644 index 4f06d2302..000000000 --- a/vendored_parsers/tree-sitter-toml/.gitattributes +++ /dev/null @@ -1,7 +0,0 @@ -* text eol=lf -*.wasm binary - -/src/** linguist-generated -/src/scanner.c linguist-generated=false -/index.js linguist-generated -/binding.gyp linguist-detectable=false diff --git a/vendored_parsers/tree-sitter-toml/.gitignore b/vendored_parsers/tree-sitter-toml/.gitignore deleted file mode 100644 index 39e43805c..000000000 --- a/vendored_parsers/tree-sitter-toml/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/build -/node_modules - -/bindings/rust -/Cargo.toml diff --git a/vendored_parsers/tree-sitter-toml/.gitmodules b/vendored_parsers/tree-sitter-toml/.gitmodules deleted file mode 100644 index 922f976ca..000000000 --- a/vendored_parsers/tree-sitter-toml/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "tree-sitter"] - path = tree-sitter - url = https://github.com/ikatyang/tree-sitter - branch = v0.19.3-custom diff --git a/vendored_parsers/tree-sitter-toml/.npmignore b/vendored_parsers/tree-sitter-toml/.npmignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendored_parsers/tree-sitter-toml/.travis.yml b/vendored_parsers/tree-sitter-toml/.travis.yml deleted file mode 100644 index a192fe54a..000000000 --- a/vendored_parsers/tree-sitter-toml/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: rust - -rust: - - stable - -script: - - if [ ! -d "./tree-sitter/target/release" ]; then bash ./scripts/setup-tree-sitter.sh; fi - - ./tree-sitter/target/release/tree-sitter test - -cache: - cargo: true - directories: - - ./tree-sitter diff --git a/vendored_parsers/tree-sitter-toml/CHANGELOG.md b/vendored_parsers/tree-sitter-toml/CHANGELOG.md deleted file mode 100644 index 23f4501d9..000000000 --- a/vendored_parsers/tree-sitter-toml/CHANGELOG.md +++ /dev/null @@ -1,95 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -## [0.5.1](https://github.com/ikatyang/tree-sitter-toml/compare/v0.5.0...v0.5.1) (2021-03-21) - - -### Bug Fixes - -* add missing binding.gyp ([5366d87](https://github.com/ikatyang/tree-sitter-toml/commit/5366d87)) - - - -# [0.5.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.4.1...v0.5.0) (2021-03-14) - - -### Features - -* upgrade to tree-sitter@0.19.3 ([e880176](https://github.com/ikatyang/tree-sitter-toml/commit/e880176)) - - -### BREAKING CHANGES - -* require tree-sitter 0.19+ - - - -## [0.4.1](https://github.com/ikatyang/tree-sitter-toml/compare/v0.4.0...v0.4.1) (2020-11-14) - - -### Bug Fixes - -* immediate hash in string is considered content instead of comment ([#18](https://github.com/ikatyang/tree-sitter-toml/issues/18)) ([4993307](https://github.com/ikatyang/tree-sitter-toml/commit/4993307)) - - - -# [0.4.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.3.0...v0.4.0) (2020-07-04) - - -### Features - -* add queries for highlighting ([#13](https://github.com/ikatyang/tree-sitter-toml/issues/13)) ([64da30c](https://github.com/ikatyang/tree-sitter-toml/commit/64da30c)) - - - -# [0.3.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.2.0...v0.3.0) (2020-06-28) - - -### Features - -* upgrade to TOML spec v1.0.0-rc.1 ([#11](https://github.com/ikatyang/tree-sitter-toml/issues/11)) ([7df9880](https://github.com/ikatyang/tree-sitter-toml/commit/7df9880)) - - - -## [0.2.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.3...v0.2.0) (2019-08-31) - - -### ⚠ BREAKING CHANGES - -- rename `file` with `document`. -- rename `table_array` with `table_array_element`. -- unflatten `table` and `table_array_element`, i.e., `pair`s are now their children instead of siblings. - -### Features - -* unflatten structure and rename nodes ([#4](https://github.com/ikatyang/tree-sitter-toml/issues/4)) ([42afd6a](https://github.com/ikatyang/tree-sitter-toml/commit/42afd6a)) - -### [0.1.3](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.2...v0.1.3) (2019-08-21) - - -### Bug Fixes - -* trailing whitespaces are allowed for `local_time` ([#3](https://github.com/ikatyang/tree-sitter-toml/issues/3)) ([752419c](https://github.com/ikatyang/tree-sitter-toml/commit/752419c)) - -### [0.1.2](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.1...v0.1.2) (2019-08-20) - - -### Features - -* flatten table/table-array structure ([#2](https://github.com/ikatyang/tree-sitter-toml/issues/2)) ([a381203](https://github.com/ikatyang/tree-sitter-toml/commit/a381203)) -* rename `root` with `file` ([a0cd384](https://github.com/ikatyang/tree-sitter-toml/commit/a0cd384)) - -### [0.1.1](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.0...v0.1.1) (2019-08-20) - - -### Bug Fixes - -* disallow invalid whitespaces between scalar components ([#1](https://github.com/ikatyang/tree-sitter-toml/issues/1)) ([e2b28db](https://github.com/ikatyang/tree-sitter-toml/commit/e2b28db)) - -## 0.1.0 (2019-08-18) - - -### Features - -* initial implementation ([5acac39](https://github.com/ikatyang/tree-sitter-toml/commit/5acac39)) diff --git a/vendored_parsers/tree-sitter-toml/LICENSE b/vendored_parsers/tree-sitter-toml/LICENSE deleted file mode 100644 index 7bf071b1d..000000000 --- a/vendored_parsers/tree-sitter-toml/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Ika (https://github.com/ikatyang) - -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-toml/README.md b/vendored_parsers/tree-sitter-toml/README.md deleted file mode 100644 index 917087f85..000000000 --- a/vendored_parsers/tree-sitter-toml/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# tree-sitter-toml - -[![npm](https://img.shields.io/npm/v/tree-sitter-toml.svg)](https://www.npmjs.com/package/tree-sitter-toml) -[![build](https://img.shields.io/travis/com/ikatyang/tree-sitter-toml/master.svg)](https://travis-ci.com/ikatyang/tree-sitter-toml/builds) - -TOML ([TOML Spec v1.0.0-rc.1](https://github.com/toml-lang/toml/blob/v1.0.0-rc.1/versions/en/toml-v1.0.0-rc.1.md)) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter) - -[Changelog](https://github.com/ikatyang/tree-sitter-toml/blob/master/CHANGELOG.md) - -## Install - -```sh -npm install tree-sitter-toml tree-sitter -``` - -## Usage - -```js -const Parser = require("tree-sitter"); -const TOML = require("tree-sitter-toml"); - -const parser = new Parser(); -parser.setLanguage(TOML); - -const sourceCode = ` - [hello] - world = true -`; - -const tree = parser.parse(sourceCode); -console.log(tree.rootNode.toString()); -// (document -// (table -// (key) -// (pair -// (key) (boolean)))) -``` - -## License - -MIT © [Ika](https://github.com/ikatyang) diff --git a/vendored_parsers/tree-sitter-toml/binding.gyp b/vendored_parsers/tree-sitter-toml/binding.gyp deleted file mode 100644 index 328438d88..000000000 --- a/vendored_parsers/tree-sitter-toml/binding.gyp +++ /dev/null @@ -1,19 +0,0 @@ -{ - "targets": [ - { - "target_name": "tree_sitter_toml_binding", - "include_dirs": [ - " -#include "nan.h" - -using namespace v8; - -extern "C" TSLanguage * tree_sitter_toml(); - -namespace { - -NAN_METHOD(New) {} - -void Init(Local exports, Local module) { - Local tpl = Nan::New(New); - tpl->SetClassName(Nan::New("Language").ToLocalChecked()); - tpl->InstanceTemplate()->SetInternalFieldCount(1); - - Local constructor = Nan::GetFunction(tpl).ToLocalChecked(); - Local instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(instance, 0, tree_sitter_toml()); - - Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("toml").ToLocalChecked()); - Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance); -} - -NODE_MODULE(tree_sitter_toml_binding, Init) - -} // namespace diff --git a/vendored_parsers/tree-sitter-toml/bindings/node/index.js b/vendored_parsers/tree-sitter-toml/bindings/node/index.js deleted file mode 100644 index d33075582..000000000 --- a/vendored_parsers/tree-sitter-toml/bindings/node/index.js +++ /dev/null @@ -1,19 +0,0 @@ -try { - module.exports = require("../../build/Release/tree_sitter_toml_binding"); -} catch (error1) { - if (error1.code !== 'MODULE_NOT_FOUND') { - throw error1; - } - try { - module.exports = require("../../build/Debug/tree_sitter_toml_binding"); - } catch (error2) { - if (error2.code !== 'MODULE_NOT_FOUND') { - throw error2; - } - throw error1 - } -} - -try { - module.exports.nodeTypeInfo = require("../../src/node-types.json"); -} catch (_) {} diff --git a/vendored_parsers/tree-sitter-toml/corpus/custom.txt b/vendored_parsers/tree-sitter-toml/corpus/custom.txt deleted file mode 100644 index 77a27ab1b..000000000 --- a/vendored_parsers/tree-sitter-toml/corpus/custom.txt +++ /dev/null @@ -1,296 +0,0 @@ -================================================================================ -VALID - empty file -================================================================================ - --------------------------------------------------------------------------------- - -(document) - -================================================================================ -INVALID - key/value pair - multiline string for keys are not allowed -================================================================================ - -""" -invalid -multiline -basic -key -""" = false - -''' -invalid -multiline -literal -key -''' = false - --------------------------------------------------------------------------------- - -(document - (ERROR - (quoted_key) - (bare_key) - (bare_key) - (bare_key)) - (pair - (bare_key) - (ERROR) - (boolean)) - (ERROR - (quoted_key) - (bare_key) - (bare_key) - (bare_key)) - (pair - (bare_key) - (ERROR) - (boolean))) - -================================================================================ -INVALID - float - whitespaces between its components are not allowed -================================================================================ - -invalid_fractional = 1 .0 -invalid_exponent = 1 e 2 -invalid_both = 1 .0 e 2 - --------------------------------------------------------------------------------- - -(document - (ERROR - (bare_key) - (integer) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key))) - -================================================================================ -INVALID - offset date time - whitespaces between its components are not allowed -================================================================================ - -invalid1 = 1979-05-27 07:32:00 Z -invalid2 = 1979-05-27 T 07:32:00 Z - --------------------------------------------------------------------------------- - -(document - (ERROR - (bare_key) - (local_date) - (local_time) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (local_time) - (bare_key))) - -================================================================================ -INVALID - local date time - whitespaces between its components are not allowed -================================================================================ - -invalid1 = 1979-05-27 07:32:00 -invalid2 = 1979-05-27 T 07:32:00 - --------------------------------------------------------------------------------- - -(document - (ERROR - (bare_key) - (local_date) - (local_time) - (bare_key) - (bare_key) - (bare_key) - (local_time))) - -================================================================================ -VALID - local date - trailing whitespaces are allowed -================================================================================ - -valid = 1979-05-27 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (local_date))) - -================================================================================ -INVALID - table - multiline string for header keys are not allowed -================================================================================ - -[""" -invalid -multiline -basic -key -"""] - -[''' -invalid -multiline -basic -key -'''] - --------------------------------------------------------------------------------- - -(document - (table - (ERROR - (quoted_key) - (bare_key) - (bare_key) - (bare_key)) - (bare_key) - (ERROR)) - (table - (ERROR - (quoted_key) - (bare_key) - (bare_key) - (bare_key)) - (bare_key) - (ERROR))) - -================================================================================ -INVALID - inline table - newlines outside of pairs are not allowed -================================================================================ - -key = { - newline = true -} - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (inline_table - (ERROR) - (pair - (bare_key) - (boolean)) - (ERROR)))) - -================================================================================ -INVALID - array of tables - multiline string for header keys are not allowed -================================================================================ - -[[""" -invalid -multiline -basic -key -"""]] - -[[''' -invalid -multiline -basic -key -''']] - --------------------------------------------------------------------------------- - -(document - (ERROR - (ERROR - (quoted_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key) - (bare_key)) - (bare_key))) - -================================================================================ -VALID - table - empty content separated by comments -================================================================================ - -[table] - -# comment - --------------------------------------------------------------------------------- - -(document - (table - (bare_key) - (comment))) - -================================================================================ -VALID - array of tables - empty content separated by comments -================================================================================ - -[[array-table]] - -# comment - --------------------------------------------------------------------------------- - -(document - (table_array_element - (bare_key) - (comment))) - -================================================================================ -VALID - table - two pairs separated by comments -================================================================================ - -[table] - -a = 1 - -# comment - -b = 2 - --------------------------------------------------------------------------------- - -(document - (table - (bare_key) - (pair - (bare_key) - (integer)) - (comment) - (pair - (bare_key) - (integer)))) - -================================================================================ -VALID - array of tables - two pairs separated by comments -================================================================================ - -[[array-table]] - -a = 1 - -# comment - -b = 2 - --------------------------------------------------------------------------------- - -(document - (table_array_element - (bare_key) - (pair - (bare_key) - (integer)) - (comment) - (pair - (bare_key) - (integer)))) diff --git a/vendored_parsers/tree-sitter-toml/corpus/issues.txt b/vendored_parsers/tree-sitter-toml/corpus/issues.txt deleted file mode 100644 index 906473b16..000000000 --- a/vendored_parsers/tree-sitter-toml/corpus/issues.txt +++ /dev/null @@ -1,19 +0,0 @@ -================================================================================ -VALID - issue #17 - immediate hash in string is considered content instead of comment -================================================================================ - -# This is a full-line comment -key = "value" # This is a comment at the end of a line -another = "# This is not a comment" - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (string) - (comment)) - (pair - (bare_key) - (string))) diff --git a/vendored_parsers/tree-sitter-toml/corpus/spec.txt b/vendored_parsers/tree-sitter-toml/corpus/spec.txt deleted file mode 100644 index 030eb7cfa..000000000 --- a/vendored_parsers/tree-sitter-toml/corpus/spec.txt +++ /dev/null @@ -1,1505 +0,0 @@ -================================================================================ -VALID - comment - basic -================================================================================ - -# This is a full-line comment -key = "value" # This is a comment at the end of a line - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (string) - (comment))) - -================================================================================ -VALID - key/value pair - basic -================================================================================ - -key = "value" - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string))) - -================================================================================ -INVALID - key/value pair - empty value -================================================================================ - -key = # INVALID - --------------------------------------------------------------------------------- - -(document - (ERROR - (bare_key) - (comment))) - -================================================================================ -INVALID - key/value pair - no newline between pairs -================================================================================ - -first = "Tom" last = "Preston-Werner" # INVALID - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string) - (MISSING _line_ending_or_eof)) - (pair - (bare_key) - (string) - (comment))) - -================================================================================ -VALID - keys - bare keys -================================================================================ - -key = "value" -bare_key = "value" -bare-key = "value" -1234 = "value" - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - keys - quoted keys -================================================================================ - -"127.0.0.1" = "value" -"character encoding" = "value" -"ʎǝʞ" = "value" -'key2' = "value" -'quoted "value"' = "value" - --------------------------------------------------------------------------------- - -(document - (pair - (quoted_key) - (string)) - (pair - (quoted_key) - (string)) - (pair - (quoted_key) - (string)) - (pair - (quoted_key) - (string)) - (pair - (quoted_key) - (string))) - -================================================================================ -INVALID - keys - empty bare key -================================================================================ - -= "no key name" # INVALID -"" = "blank" # VALID but discouraged -'' = 'blank' # VALID but discouraged - --------------------------------------------------------------------------------- - -(document - (ERROR) - (pair - (quoted_key) - (comment) - (ERROR) - (string) - (comment)) - (pair - (quoted_key) - (string) - (comment))) - -================================================================================ -VALID - keys - dotted keys -================================================================================ - -name = "Orange" -physical.color = "orange" -physical.shape = "round" -site."google.com" = true - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (quoted_key)) - (boolean))) - -================================================================================ -VALID - keys - duplicate keys (semantically INVALID) -================================================================================ - -# DO NOT DO THIS -name = "Tom" -name = "Pradyun" - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - keys - directly defined nested keys -================================================================================ - -# This makes the key "fruit" into a table. -fruit.apple.smooth = true - -# So then you can add to the table "fruit" like so: -fruit.orange = 2 - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (boolean)) - (comment) - (pair - (dotted_key - (bare_key) - (bare_key)) - (integer))) - -================================================================================ -VALID - keys - overlapped keys (semantically INVALID) -================================================================================ - -# THE FOLLOWING IS INVALID - -# This defines the value of fruit.apple to be an integer. -fruit.apple = 1 - -# But then this treats fruit.apple like it's a table. -# You can't turn an integer into a table. -fruit.apple.smooth = true - --------------------------------------------------------------------------------- - -(document - (comment) - (comment) - (pair - (dotted_key - (bare_key) - (bare_key)) - (integer)) - (comment) - (comment) - (pair - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (boolean))) - -================================================================================ -VALID - keys - order -================================================================================ - -# VALID BUT DISCOURAGED - -apple.type = "fruit" -orange.type = "fruit" - -apple.skin = "thin" -orange.skin = "thick" - -apple.color = "red" -orange.color = "orange" - -# RECOMMENDED - -apple.type = "fruit" -apple.skin = "thin" -apple.color = "red" - -orange.type = "fruit" -orange.skin = "thick" -orange.color = "orange" - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (comment) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string))) - -================================================================================ -VALID - string - basic strings -================================================================================ - -str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF." - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence)))) - -================================================================================ -VALID - string - multi-line basic strings -================================================================================ - -str1 = """ -Roses are red -Violets are blue""" - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string))) - -================================================================================ -VALID - string - multi-line basic strings with trailing backslashes -================================================================================ - -# The following strings are byte-for-byte equivalent: -str1 = "The quick brown fox jumps over the lazy dog." - -str2 = """ -The quick brown \ - - - fox jumps over \ - the lazy dog.""" - -str3 = """\ - The quick brown \ - fox jumps over \ - the lazy dog.\ - """ - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string - (escape_sequence) - (escape_sequence))) - (pair - (bare_key) - (string - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence)))) - -================================================================================ -VALID - string - multi-line basic strings with double quotes -================================================================================ - -str4 = """Here are two quotation marks: "". Simple enough.""" -# str5 = """Here are three quotation marks: """.""" # INVALID -str5 = """Here are three quotation marks: ""\".""" -str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\".""" - -# "This," she said, "is just a pointless statement." -str7 = """"This," she said, "is just a pointless statement."""" - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string)) - (comment) - (pair - (bare_key) - (string - (escape_sequence))) - (pair - (bare_key) - (string - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence) - (escape_sequence))) - (comment) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - string - literal strings -================================================================================ - -# What you see is what you get. -winpath = 'C:\Users\nodejs\templates' -winpath2 = '\\ServerX\admin$\system32\' -quoted = 'Tom "Dubs" Preston-Werner' -regex = '<\i\c*\s*>' - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - string - multi-line literal strings -================================================================================ - -regex2 = '''I [dw]on't need \d{2} apples''' -lines = ''' -The first newline is -trimmed in raw strings. - All other whitespace - is preserved. -''' - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - string - multi-line literal strings with single quotes -================================================================================ - -quot15 = '''Here are fifteen quotation marks: """""""""""""""''' - -# apos15 = '''Here are fifteen apostrophes: '''''''''''''''''' # INVALID -apos15 = "Here are fifteen apostrophes: '''''''''''''''" - -# 'That's still pointless', she said. -str = ''''That's still pointless', she said.''' - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (string)) - (comment) - (pair - (bare_key) - (string)) - (comment) - (pair - (bare_key) - (string))) - -================================================================================ -VALID - integer - signed/unsigned decimal integer -================================================================================ - -int1 = +99 -int2 = 42 -int3 = 0 -int4 = -17 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer))) - -================================================================================ -VALID - integer - decimal integer with underscores -================================================================================ - -int5 = 1_000 -int6 = 5_349_221 -int7 = 1_2_3_4_5 # VALID but discouraged - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer) - (comment))) - -================================================================================ -VALID - integer - hexadecimal/octal/binary integer -================================================================================ - -# hexadecimal with prefix `0x` -hex1 = 0xDEADBEEF -hex2 = 0xdeadbeef -hex3 = 0xdead_beef - -# octal with prefix `0o` -oct1 = 0o01234567 -oct2 = 0o755 # useful for Unix file permissions - -# binary with prefix `0b` -bin1 = 0b11010110 - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)) - (comment) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer) - (comment)) - (comment) - (pair - (bare_key) - (integer))) - -================================================================================ -VALID - float - float with fractional or exponent or both -================================================================================ - -# fractional -flt1 = +1.0 -flt2 = 3.1415 -flt3 = -0.01 - -# exponent -flt4 = 5e+22 -flt5 = 1e06 -flt6 = -2E-2 - -# both -flt7 = 6.626e-34 - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (float)) - (pair - (bare_key) - (float)) - (pair - (bare_key) - (float)) - (comment) - (pair - (bare_key) - (float)) - (pair - (bare_key) - (float)) - (pair - (bare_key) - (float)) - (comment) - (pair - (bare_key) - (float))) - -================================================================================ -VALID - float - float with underscores -================================================================================ - -flt8 = 224_617.445_991_228 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (float))) - -================================================================================ -VALID - float - special float values -================================================================================ - -# infinity -sf1 = inf # positive infinity -sf2 = +inf # positive infinity -sf3 = -inf # negative infinity - -# not a number -sf4 = nan # actual sNaN/qNaN encoding is implementation specific -sf5 = +nan # same as `nan` -sf6 = -nan # valid, actual encoding is implementation specific - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (float) - (comment)) - (pair - (bare_key) - (float) - (comment)) - (pair - (bare_key) - (float) - (comment)) - (comment) - (pair - (bare_key) - (float) - (comment)) - (pair - (bare_key) - (float) - (comment)) - (pair - (bare_key) - (float) - (comment))) - -================================================================================ -VALID - boolean - basic -================================================================================ - -bool1 = true -bool2 = false - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (boolean)) - (pair - (bare_key) - (boolean))) - -================================================================================ -VALID - offset date time - basic -================================================================================ - -odt1 = 1979-05-27T07:32:00Z -odt2 = 1979-05-27T00:32:00-07:00 -odt3 = 1979-05-27T00:32:00.999999-07:00 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (offset_date_time)) - (pair - (bare_key) - (offset_date_time)) - (pair - (bare_key) - (offset_date_time))) - -================================================================================ -VALID - offset date time - whitespace as delimiter -================================================================================ - -odt4 = 1979-05-27 07:32:00Z - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (offset_date_time))) - -================================================================================ -VALID - local date time - basic -================================================================================ - -ldt1 = 1979-05-27T07:32:00 -ldt2 = 1979-05-27T00:32:00.999999 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (local_date_time)) - (pair - (bare_key) - (local_date_time))) - -================================================================================ -VALID - local date - basic -================================================================================ - -ld1 = 1979-05-27 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (local_date))) - -================================================================================ -VALID - local time - basic -================================================================================ - -lt1 = 07:32:00 -lt2 = 00:32:00.999999 - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (local_time)) - (pair - (bare_key) - (local_time))) - -================================================================================ -VALID - array - basic -================================================================================ - -integers = [ 1, 2, 3 ] -colors = [ "red", "yellow", "green" ] -nested_array_of_int = [ [ 1, 2 ], [3, 4, 5] ] -nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ] -string_array = [ "all", 'strings', """are the same""", '''type''' ] - -# Mixed-type arrays are allowed -numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ] -contributors = [ - "Foo Bar ", - { name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" } -] - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (array - (integer) - (integer) - (integer))) - (pair - (bare_key) - (array - (string) - (string) - (string))) - (pair - (bare_key) - (array - (array - (integer) - (integer)) - (array - (integer) - (integer) - (integer)))) - (pair - (bare_key) - (array - (array - (integer) - (integer)) - (array - (string) - (string) - (string)))) - (pair - (bare_key) - (array - (string) - (string) - (string) - (string))) - (comment) - (pair - (bare_key) - (array - (float) - (float) - (float) - (integer) - (integer) - (integer))) - (pair - (bare_key) - (array - (string) - (inline_table - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)))))) - -================================================================================ -VALID - array - allow newlines -================================================================================ - -integers2 = [ - 1, 2, 3 -] - -integers3 = [ - 1, - 2, # this is ok -] - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (array - (integer) - (integer) - (integer))) - (pair - (bare_key) - (array - (integer) - (integer) - (comment)))) - -================================================================================ -VALID - table - header -================================================================================ - -[table] - --------------------------------------------------------------------------------- - -(document - (table - (bare_key))) - -================================================================================ -VALID - table - basic -================================================================================ - -[table-1] -key1 = "some string" -key2 = 123 - -[table-2] -key1 = "another string" -key2 = 456 - --------------------------------------------------------------------------------- - -(document - (table - (bare_key) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (integer))) - (table - (bare_key) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (integer)))) - -================================================================================ -VALID - table - header with dotted key -================================================================================ - -[dog."tater.man"] -type.name = "pug" - --------------------------------------------------------------------------------- - -(document - (table - (dotted_key - (bare_key) - (quoted_key)) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)))) - -================================================================================ -VALID - table- header with whitespaces -================================================================================ - -[a.b.c] # this is best practice -[ d.e.f ] # same as [d.e.f] -[ g . h . i ] # same as [g.h.i] -[ j . "ʞ" . 'l' ] # same as [j."ʞ".'l'] - --------------------------------------------------------------------------------- - -(document - (table - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (comment)) - (table - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (comment)) - (table - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (comment)) - (table - (dotted_key - (dotted_key - (bare_key) - (quoted_key)) - (quoted_key)) - (comment))) - -================================================================================ -VALID - table - directly defined nested header key -================================================================================ - -# [x] you -# [x.y] don't -# [x.y.z] need these -[x.y.z.w] # for this to work - -[x] # defining a super-table afterwards is ok - --------------------------------------------------------------------------------- - -(document - (comment) - (comment) - (comment) - (table - (dotted_key - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (bare_key)) - (comment)) - (table - (bare_key) - (comment))) - -================================================================================ -VALID - table - duplicate header key (semantically INVALID) -================================================================================ - -# DO NOT DO THIS - -[fruit] -apple = "red" - -[fruit] -orange = "orange" - --------------------------------------------------------------------------------- - -(document - (comment) - (table - (bare_key) - (pair - (bare_key) - (string))) - (table - (bare_key) - (pair - (bare_key) - (string)))) - -================================================================================ -VALID - table - overlapped header key (semantically INVALID) -================================================================================ - -# DO NOT DO THIS EITHER - -[fruit] -apple = "red" - -[fruit.apple] -texture = "smooth" - --------------------------------------------------------------------------------- - -(document - (comment) - (table - (bare_key) - (pair - (bare_key) - (string))) - (table - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string)))) - -================================================================================ -VALID - table - order -================================================================================ - -# VALID BUT DISCOURAGED -[fruit.apple] -[animal] -[fruit.orange] - -# RECOMMENDED -[fruit.apple] -[fruit.orange] -[animal] - --------------------------------------------------------------------------------- - -(document - (comment) - (table - (dotted_key - (bare_key) - (bare_key))) - (table - (bare_key)) - (table - (dotted_key - (bare_key) - (bare_key)) - (comment)) - (table - (dotted_key - (bare_key) - (bare_key))) - (table - (dotted_key - (bare_key) - (bare_key))) - (table - (bare_key))) - -================================================================================ -VALID - table - sub-table -================================================================================ - -[fruit] -apple.color = "red" -apple.taste.sweet = true - -# [fruit.apple] # INVALID -# [fruit.apple.taste] # INVALID - -[fruit.apple.texture] # you can add sub-tables -smooth = true - --------------------------------------------------------------------------------- - -(document - (table - (bare_key) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (pair - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (boolean)) - (comment) - (comment)) - (table - (dotted_key - (dotted_key - (bare_key) - (bare_key)) - (bare_key)) - (comment) - (pair - (bare_key) - (boolean)))) - -================================================================================ -VALID - inline table - basic -================================================================================ - -name = { first = "Tom", last = "Preston-Werner" } -point = { x = 1, y = 2 } -animal = { type.name = "pug" } - --------------------------------------------------------------------------------- - -(document - (pair - (bare_key) - (inline_table - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)))) - (pair - (bare_key) - (inline_table - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (integer)))) - (pair - (bare_key) - (inline_table - (pair - (dotted_key - (bare_key) - (bare_key)) - (string))))) - -================================================================================ -VALID - inline table - overlapped key (semantically INVALID) -================================================================================ - -[product] -type = { name = "Nail" } -# type.edible = false # INVALID - -[product] -type.name = "Nail" -# type = { edible = false } # INVALID - --------------------------------------------------------------------------------- - -(document - (table - (bare_key) - (pair - (bare_key) - (inline_table - (pair - (bare_key) - (string)))) - (comment)) - (table - (bare_key) - (pair - (dotted_key - (bare_key) - (bare_key)) - (string)) - (comment))) - -================================================================================ -VALID - array of tables - basic -================================================================================ - -[[products]] -name = "Hammer" -sku = 738594937 - -[[products]] - -[[products]] -name = "Nail" -sku = 284758393 - -color = "gray" - --------------------------------------------------------------------------------- - -(document - (table_array_element - (bare_key) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (integer))) - (table_array_element - (bare_key)) - (table_array_element - (bare_key) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (integer)) - (pair - (bare_key) - (string)))) - -================================================================================ -VALID - array of tables - nested arrays of tables -================================================================================ - -[[fruit]] - name = "apple" - - [fruit.physical] # subtable - color = "red" - shape = "round" - - [[fruit.variety]] # nested array of tables - name = "red delicious" - - [[fruit.variety]] - name = "granny smith" - -[[fruit]] - name = "banana" - - [[fruit.variety]] - name = "plantain" - --------------------------------------------------------------------------------- - -(document - (table_array_element - (bare_key) - (pair - (bare_key) - (string))) - (table - (dotted_key - (bare_key) - (bare_key)) - (comment) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - (table_array_element - (dotted_key - (bare_key) - (bare_key)) - (comment) - (pair - (bare_key) - (string))) - (table_array_element - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string))) - (table_array_element - (bare_key) - (pair - (bare_key) - (string))) - (table_array_element - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string)))) - -================================================================================ -VALID - array of tables - append to array in undefined table (semantically INVALID) -================================================================================ - -# INVALID TOML DOC -[fruit.physical] # subtable, but to which parent element should it belong? - color = "red" - shape = "round" - -[[fruit]] # parser must throw an error upon discovering that "fruit" is - # an array rather than a table - name = "apple" - --------------------------------------------------------------------------------- - -(document - (comment) - (table - (dotted_key - (bare_key) - (bare_key)) - (comment) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string))) - (table_array_element - (bare_key) - (comment) - (comment) - (pair - (bare_key) - (string)))) - -================================================================================ -VALID - array of tables - append to statically defined array (semantically INVALID) -================================================================================ - -# INVALID TOML DOC -fruit = [] - -[[fruit]] # Not allowed - --------------------------------------------------------------------------------- - -(document - (comment) - (pair - (bare_key) - (array)) - (table_array_element - (bare_key) - (comment))) - -================================================================================ -VALID - array of tables - append to table (semantically INVALID) -================================================================================ - -# INVALID TOML DOC -[[fruit]] - name = "apple" - - [[fruit.variety]] - name = "red delicious" - - # INVALID: This table conflicts with the previous array of tables - [fruit.variety] - name = "granny smith" - - [fruit.physical] - color = "red" - shape = "round" - - # INVALID: This array of tables conflicts with the previous table - [[fruit.physical]] - color = "green" - --------------------------------------------------------------------------------- - -(document - (comment) - (table_array_element - (bare_key) - (pair - (bare_key) - (string))) - (table_array_element - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string)) - (comment)) - (table - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string))) - (table - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string)) - (pair - (bare_key) - (string)) - (comment)) - (table_array_element - (dotted_key - (bare_key) - (bare_key)) - (pair - (bare_key) - (string)))) diff --git a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/LICENSE b/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/LICENSE deleted file mode 100644 index 971b81f9a..000000000 --- a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Max Brunsfeld - -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-toml/docs/assets/tree-sitter-playground-0.19.3/playground.js b/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/playground.js deleted file mode 100644 index b3c005ad4..000000000 --- a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/playground.js +++ /dev/null @@ -1,469 +0,0 @@ -let tree; - -(async () => { - const CAPTURE_REGEX = /@\s*([\w\._-]+)/g; - const COLORS_BY_INDEX = [ - 'blue', - 'chocolate', - 'darkblue', - 'darkcyan', - 'darkgreen', - 'darkred', - 'darkslategray', - 'dimgray', - 'green', - 'indigo', - 'navy', - 'red', - 'sienna', - ]; - - const scriptURL = document.currentScript.getAttribute('src'); - - const codeInput = document.getElementById('code-input'); - const languageSelect = document.getElementById('language-select'); - const loggingCheckbox = document.getElementById('logging-checkbox'); - const outputContainer = document.getElementById('output-container'); - const outputContainerScroll = document.getElementById('output-container-scroll'); - const playgroundContainer = document.getElementById('playground-container'); - const queryCheckbox = document.getElementById('query-checkbox'); - const queryContainer = document.getElementById('query-container'); - const queryInput = document.getElementById('query-input'); - const updateTimeSpan = document.getElementById('update-time'); - const languagesByName = {}; - - loadState(); - - await TreeSitter.init(); - - const parser = new TreeSitter(); - const codeEditor = CodeMirror.fromTextArea(codeInput, { - lineNumbers: true, - showCursorWhenSelecting: true - }); - - const queryEditor = CodeMirror.fromTextArea(queryInput, { - lineNumbers: true, - showCursorWhenSelecting: true - }); - - const cluster = new Clusterize({ - rows: [], - noDataText: null, - contentElem: outputContainer, - scrollElem: outputContainerScroll - }); - const renderTreeOnCodeChange = debounce(renderTree, 50); - const saveStateOnChange = debounce(saveState, 2000); - const runTreeQueryOnChange = debounce(runTreeQuery, 50); - - let languageName = languageSelect.value; - let treeRows = null; - let treeRowHighlightedIndex = -1; - let parseCount = 0; - let isRendering = 0; - let query; - - codeEditor.on('changes', handleCodeChange); - codeEditor.on('viewportChange', runTreeQueryOnChange); - codeEditor.on('cursorActivity', debounce(handleCursorMovement, 150)); - queryEditor.on('changes', debounce(handleQueryChange, 150)); - - loggingCheckbox.addEventListener('change', handleLoggingChange); - queryCheckbox.addEventListener('change', handleQueryEnableChange); - languageSelect.addEventListener('change', handleLanguageChange); - outputContainer.addEventListener('click', handleTreeClick); - - handleQueryEnableChange(); - await handleLanguageChange() - - playgroundContainer.style.visibility = 'visible'; - - async function handleLanguageChange() { - const newLanguageName = languageSelect.value; - if (!languagesByName[newLanguageName]) { - const url = `${LANGUAGE_BASE_URL}/tree-sitter-${newLanguageName}.wasm` - languageSelect.disabled = true; - try { - languagesByName[newLanguageName] = await TreeSitter.Language.load(url); - } catch (e) { - console.error(e); - languageSelect.value = languageName; - return - } finally { - languageSelect.disabled = false; - } - } - - tree = null; - languageName = newLanguageName; - parser.setLanguage(languagesByName[newLanguageName]); - handleCodeChange(); - handleQueryChange(); - } - - async function handleCodeChange(editor, changes) { - const newText = codeEditor.getValue(); - const edits = tree && changes && changes.map(treeEditForEditorChange); - - const start = performance.now(); - if (edits) { - for (const edit of edits) { - tree.edit(edit); - } - } - const newTree = parser.parse(newText, tree); - const duration = (performance.now() - start).toFixed(1); - - updateTimeSpan.innerText = `${duration} ms`; - if (tree) tree.delete(); - tree = newTree; - parseCount++; - renderTreeOnCodeChange(); - runTreeQueryOnChange(); - saveStateOnChange(); - } - - async function renderTree() { - isRendering++; - const cursor = tree.walk(); - - let currentRenderCount = parseCount; - let row = ''; - let rows = []; - let finishedRow = false; - let visitedChildren = false; - let indentLevel = 0; - - for (let i = 0;; i++) { - if (i > 0 && i % 10000 === 0) { - await new Promise(r => setTimeout(r, 0)); - if (parseCount !== currentRenderCount) { - cursor.delete(); - isRendering--; - return; - } - } - - let displayName; - if (cursor.nodeIsMissing) { - displayName = `MISSING ${cursor.nodeType}` - } else if (cursor.nodeIsNamed) { - displayName = cursor.nodeType; - } - - if (visitedChildren) { - if (displayName) { - finishedRow = true; - } - - if (cursor.gotoNextSibling()) { - visitedChildren = false; - } else if (cursor.gotoParent()) { - visitedChildren = true; - indentLevel--; - } else { - break; - } - } else { - if (displayName) { - if (finishedRow) { - row += ''; - rows.push(row); - finishedRow = false; - } - const start = cursor.startPosition; - const end = cursor.endPosition; - const id = cursor.nodeId; - let fieldName = cursor.currentFieldName(); - if (fieldName) { - fieldName += ': '; - } else { - fieldName = ''; - } - row = `
${' '.repeat(indentLevel)}${fieldName}${displayName} [${start.row}, ${start.column}] - [${end.row}, ${end.column}])`; - finishedRow = true; - } - - if (cursor.gotoFirstChild()) { - visitedChildren = false; - indentLevel++; - } else { - visitedChildren = true; - } - } - } - if (finishedRow) { - row += '
'; - rows.push(row); - } - - cursor.delete(); - cluster.update(rows); - treeRows = rows; - isRendering--; - handleCursorMovement(); - } - - function runTreeQuery(_, startRow, endRow) { - if (endRow == null) { - const viewport = codeEditor.getViewport(); - startRow = viewport.from; - endRow = viewport.to; - } - - codeEditor.operation(() => { - const marks = codeEditor.getAllMarks(); - marks.forEach(m => m.clear()); - - if (tree && query) { - const captures = query.captures( - tree.rootNode, - {row: startRow, column: 0}, - {row: endRow, column: 0}, - ); - let lastNodeId; - for (const {name, node} of captures) { - if (node.id === lastNodeId) continue; - lastNodeId = node.id; - const {startPosition, endPosition} = node; - codeEditor.markText( - {line: startPosition.row, ch: startPosition.column}, - {line: endPosition.row, ch: endPosition.column}, - { - inclusiveLeft: true, - inclusiveRight: true, - css: `color: ${colorForCaptureName(name)}` - } - ); - } - } - }); - } - - function handleQueryChange() { - if (query) { - query.delete(); - query.deleted = true; - query = null; - } - - queryEditor.operation(() => { - queryEditor.getAllMarks().forEach(m => m.clear()); - if (!queryCheckbox.checked) return; - - const queryText = queryEditor.getValue(); - - try { - query = parser.getLanguage().query(queryText); - let match; - - let row = 0; - queryEditor.eachLine((line) => { - while (match = CAPTURE_REGEX.exec(line.text)) { - queryEditor.markText( - {line: row, ch: match.index}, - {line: row, ch: match.index + match[0].length}, - { - inclusiveLeft: true, - inclusiveRight: true, - css: `color: ${colorForCaptureName(match[1])}` - } - ); - } - row++; - }); - } catch (error) { - const startPosition = queryEditor.posFromIndex(error.index); - const endPosition = { - line: startPosition.line, - ch: startPosition.ch + (error.length || Infinity) - }; - - if (error.index === queryText.length) { - if (startPosition.ch > 0) { - startPosition.ch--; - } else if (startPosition.row > 0) { - startPosition.row--; - startPosition.column = Infinity; - } - } - - queryEditor.markText( - startPosition, - endPosition, - { - className: 'query-error', - inclusiveLeft: true, - inclusiveRight: true, - attributes: {title: error.message} - } - ); - } - }); - - runTreeQuery(); - saveQueryState(); - } - - function handleCursorMovement() { - if (isRendering) return; - - const selection = codeEditor.getDoc().listSelections()[0]; - let start = {row: selection.anchor.line, column: selection.anchor.ch}; - let end = {row: selection.head.line, column: selection.head.ch}; - if ( - start.row > end.row || - ( - start.row === end.row && - start.column > end.column - ) - ) { - let swap = end; - end = start; - start = swap; - } - const node = tree.rootNode.namedDescendantForPosition(start, end); - if (treeRows) { - if (treeRowHighlightedIndex !== -1) { - const row = treeRows[treeRowHighlightedIndex]; - if (row) treeRows[treeRowHighlightedIndex] = row.replace('highlighted', 'plain'); - } - treeRowHighlightedIndex = treeRows.findIndex(row => row.includes(`data-id=${node.id}`)); - if (treeRowHighlightedIndex !== -1) { - const row = treeRows[treeRowHighlightedIndex]; - if (row) treeRows[treeRowHighlightedIndex] = row.replace('plain', 'highlighted'); - } - cluster.update(treeRows); - const lineHeight = cluster.options.item_height; - const scrollTop = outputContainerScroll.scrollTop; - const containerHeight = outputContainerScroll.clientHeight; - const offset = treeRowHighlightedIndex * lineHeight; - if (scrollTop > offset - 20) { - $(outputContainerScroll).animate({scrollTop: offset - 20}, 150); - } else if (scrollTop < offset + lineHeight + 40 - containerHeight) { - $(outputContainerScroll).animate({scrollTop: offset - containerHeight + 40}, 150); - } - } - } - - function handleTreeClick(event) { - if (event.target.tagName === 'A') { - event.preventDefault(); - const [startRow, startColumn, endRow, endColumn] = event - .target - .dataset - .range - .split(',') - .map(n => parseInt(n)); - codeEditor.focus(); - codeEditor.setSelection( - {line: startRow, ch: startColumn}, - {line: endRow, ch: endColumn} - ); - } - } - - function handleLoggingChange() { - if (loggingCheckbox.checked) { - parser.setLogger((message, lexing) => { - if (lexing) { - console.log(" ", message) - } else { - console.log(message) - } - }); - } else { - parser.setLogger(null); - } - } - - function handleQueryEnableChange() { - if (queryCheckbox.checked) { - queryContainer.style.visibility = ''; - queryContainer.style.position = ''; - } else { - queryContainer.style.visibility = 'hidden'; - queryContainer.style.position = 'absolute'; - } - handleQueryChange(); - } - - function treeEditForEditorChange(change) { - const oldLineCount = change.removed.length; - const newLineCount = change.text.length; - const lastLineLength = change.text[newLineCount - 1].length; - - const startPosition = {row: change.from.line, column: change.from.ch}; - const oldEndPosition = {row: change.to.line, column: change.to.ch}; - const newEndPosition = { - row: startPosition.row + newLineCount - 1, - column: newLineCount === 1 - ? startPosition.column + lastLineLength - : lastLineLength - }; - - const startIndex = codeEditor.indexFromPos(change.from); - let newEndIndex = startIndex + newLineCount - 1; - let oldEndIndex = startIndex + oldLineCount - 1; - for (let i = 0; i < newLineCount; i++) newEndIndex += change.text[i].length; - for (let i = 0; i < oldLineCount; i++) oldEndIndex += change.removed[i].length; - - return { - startIndex, oldEndIndex, newEndIndex, - startPosition, oldEndPosition, newEndPosition - }; - } - - function colorForCaptureName(capture) { - const id = query.captureNames.indexOf(capture); - return COLORS_BY_INDEX[id % COLORS_BY_INDEX.length]; - } - - function getLocalStorageItem(key) { - return localStorage.getItem(`${document.title}:${key}`); - } - - function setLocalStorageItem(key, value) { - localStorage.setItem(`${document.title}:${key}`, value); - } - - function loadState() { - const language = getLocalStorageItem("language"); - const sourceCode = getLocalStorageItem("sourceCode"); - const query = getLocalStorageItem("query"); - const queryEnabled = getLocalStorageItem("queryEnabled"); - if (language != null && sourceCode != null && query != null) { - queryInput.value = query; - codeInput.value = sourceCode; - languageSelect.value = language; - queryCheckbox.checked = (queryEnabled === 'true'); - } - } - - function saveState() { - setLocalStorageItem("language", languageSelect.value); - setLocalStorageItem("sourceCode", codeEditor.getValue()); - saveQueryState(); - } - - function saveQueryState() { - setLocalStorageItem("queryEnabled", queryCheckbox.checked); - setLocalStorageItem("query", queryEditor.getValue()); - } - - function debounce(func, wait, immediate) { - var timeout; - return function() { - var context = this, args = arguments; - var later = function() { - timeout = null; - if (!immediate) func.apply(context, args); - }; - var callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) func.apply(context, args); - }; - } -})(); diff --git a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/style.css b/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/style.css deleted file mode 100644 index 6e37df6d6..000000000 --- a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-playground-0.19.3/style.css +++ /dev/null @@ -1 +0,0 @@ -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.highlight table td{padding:5px}.highlight table pre{margin:0}.highlight .cm{color:#999988;font-style:italic}.highlight .cp{color:#999999;font-weight:bold}.highlight .c1{color:#999988;font-style:italic}.highlight .cs{color:#999999;font-weight:bold;font-style:italic}.highlight .c,.highlight .cd{color:#999988;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .gd{color:#000000;background-color:#ffdddd}.highlight .ge{color:#000000;font-style:italic}.highlight .gr{color:#aa0000}.highlight .gh{color:#999999}.highlight .gi{color:#000000;background-color:#ddffdd}.highlight .go{color:#888888}.highlight .gp{color:#555555}.highlight .gs{font-weight:bold}.highlight .gu{color:#aaaaaa}.highlight .gt{color:#aa0000}.highlight .kc{color:#000000;font-weight:bold}.highlight .kd{color:#000000;font-weight:bold}.highlight .kn{color:#000000;font-weight:bold}.highlight .kp{color:#000000;font-weight:bold}.highlight .kr{color:#000000;font-weight:bold}.highlight .kt{color:#445588;font-weight:bold}.highlight .k,.highlight .kv{color:#000000;font-weight:bold}.highlight .mf{color:#009999}.highlight .mh{color:#009999}.highlight .il{color:#009999}.highlight .mi{color:#009999}.highlight .mo{color:#009999}.highlight .m,.highlight .mb,.highlight .mx{color:#009999}.highlight .sb{color:#d14}.highlight .sc{color:#d14}.highlight .sd{color:#d14}.highlight .s2{color:#d14}.highlight .se{color:#d14}.highlight .sh{color:#d14}.highlight .si{color:#d14}.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .s{color:#d14}.highlight .na{color:#008080}.highlight .bp{color:#999999}.highlight .nb{color:#0086B3}.highlight .nc{color:#445588;font-weight:bold}.highlight .no{color:#008080}.highlight .nd{color:#3c5d5d;font-weight:bold}.highlight .ni{color:#800080}.highlight .ne{color:#990000;font-weight:bold}.highlight .nf{color:#990000;font-weight:bold}.highlight .nl{color:#990000;font-weight:bold}.highlight .nn{color:#555555}.highlight .nt{color:#000080}.highlight .vc{color:#008080}.highlight .vg{color:#008080}.highlight .vi{color:#008080}.highlight .nv{color:#008080}.highlight .ow{color:#000000;font-weight:bold}.highlight .o{color:#000000;font-weight:bold}.highlight .w{color:#bbbbbb}.highlight{background-color:#f8f8f8}*{box-sizing:border-box}body{padding:0;margin:0;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;color:#606c71}a{color:#1e6bb8;text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-block;margin-bottom:1rem;color:rgba(255,255,255,0.7);background-color:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.2);border-style:solid;border-width:1px;border-radius:0.3rem;transition:color 0.2s, background-color 0.2s, border-color 0.2s}.btn:hover{color:rgba(255,255,255,0.8);text-decoration:none;background-color:rgba(255,255,255,0.2);border-color:rgba(255,255,255,0.3)}.btn+.btn{margin-left:1rem}@media screen and (min-width: 64em){.btn{padding:0.75rem 1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.btn{padding:0.6rem 0.9rem;font-size:0.9rem}}@media screen and (max-width: 42em){.btn{display:block;width:100%;padding:0.75rem;font-size:0.9rem}.btn+.btn{margin-top:1rem;margin-left:0}}.page-header{color:#fff;text-align:center;background-color:#159957;background-image:linear-gradient(120deg, #155799, #159957)}@media screen and (min-width: 64em){.page-header{padding:5rem 6rem}}@media screen and (min-width: 42em) and (max-width: 64em){.page-header{padding:3rem 4rem}}@media screen and (max-width: 42em){.page-header{padding:2rem 1rem}}.project-name{margin-top:0;margin-bottom:0.1rem}@media screen and (min-width: 64em){.project-name{font-size:3.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-name{font-size:2.25rem}}@media screen and (max-width: 42em){.project-name{font-size:1.75rem}}.project-tagline{margin-bottom:2rem;font-weight:normal;opacity:0.7}@media screen and (min-width: 64em){.project-tagline{font-size:1.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-tagline{font-size:1.15rem}}@media screen and (max-width: 42em){.project-tagline{font-size:1rem}}.main-content{word-wrap:break-word}.main-content :first-child{margin-top:0}@media screen and (min-width: 64em){.main-content{max-width:64rem;padding:2rem 6rem;margin:0 auto;font-size:1.1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.main-content{padding:2rem 4rem;font-size:1.1rem}}@media screen and (max-width: 42em){.main-content{padding:2rem 1rem;font-size:1rem}}.main-content img{max-width:100%}.main-content h1,.main-content h2,.main-content h3,.main-content h4,.main-content h5,.main-content h6{margin-top:2rem;margin-bottom:1rem;font-weight:normal;color:#159957}.main-content p{margin-bottom:1em}.main-content code{padding:2px 4px;font-family:Consolas, "Liberation Mono", Menlo, Courier, monospace;font-size:0.9rem;color:#567482;background-color:#f3f6fa;border-radius:0.3rem}.main-content pre{padding:0.8rem;margin-top:0;margin-bottom:1rem;font:1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;color:#567482;word-wrap:normal;background-color:#f3f6fa;border:solid 1px #dce6f0;border-radius:0.3rem}.main-content pre>code{padding:0;margin:0;font-size:0.9rem;color:#567482;word-break:normal;white-space:pre;background:transparent;border:0}.main-content .highlight{margin-bottom:1rem}.main-content .highlight pre{margin-bottom:0;word-break:normal}.main-content .highlight pre,.main-content pre{padding:0.8rem;overflow:auto;font-size:0.9rem;line-height:1.45;border-radius:0.3rem;-webkit-overflow-scrolling:touch}.main-content pre code,.main-content pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.main-content pre code:before,.main-content pre code:after,.main-content pre tt:before,.main-content pre tt:after{content:normal}.main-content ul,.main-content ol{margin-top:0}.main-content blockquote{padding:0 1rem;margin-left:0;color:#819198;border-left:0.3rem solid #dce6f0}.main-content blockquote>:first-child{margin-top:0}.main-content blockquote>:last-child{margin-bottom:0}.main-content table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;-webkit-overflow-scrolling:touch}.main-content table th{font-weight:bold}.main-content table th,.main-content table td{padding:0.5rem 1rem;border:1px solid #e9ebec}.main-content dl{padding:0}.main-content dl dt{padding:0;margin-top:1rem;font-size:1rem;font-weight:bold}.main-content dl dd{padding:0;margin-bottom:1rem}.main-content hr{height:2px;padding:0;margin:1rem 0;background-color:#eff0f1;border:0}.site-footer{padding-top:2rem;margin-top:2rem;border-top:solid 1px #eff0f1}@media screen and (min-width: 64em){.site-footer{font-size:1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.site-footer{font-size:1rem}}@media screen and (max-width: 42em){.site-footer{font-size:0.9rem}}.site-footer-owner{display:block;font-weight:bold}.site-footer-credits{color:#819198}body{overflow:scroll}a[href^="http"]:after{content:"";display:inline-block;transform:translate(0px, 2px);width:.9em;height:.9em;margin-left:3px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M20 3h-5a1 1 0 1 0 0 2h3L8 14a1 1 0 1 0 2 2l9-10v3a1 1 0 1 0 2 0V4a1 1 0 0 0-1-1zM5 3L3 5v14l2 2h14l2-2v-6a1 1 0 1 0-2 0v6H5V5h6a1 1 0 1 0 0-2H5z'/%3E%3C/svg%3E");background-size:cover}#container{position:relative;max-width:1024px;margin:0 auto}#main-content,#sidebar{padding:20px 0}#sidebar{position:fixed;background:white;top:0;bottom:0;width:0;overflow-y:auto;border-right:1px solid #ccc;z-index:1}#sidebar .github-repo{display:inline-block;padding-left:3.75em;font-size:.85em}#sidebar-toggle-link{font-size:24px;position:fixed;background-color:white;opacity:0.75;box-shadow:1px 1px 5px #aaa;left:0;padding:5px 10px;display:none;z-index:100;text-decoration:none !important;color:#aaa}#main-content{position:relative;padding:20px;padding-left:20px}.nav-link.active{text-decoration:underline}a>span{text-decoration:inherit}.table-of-contents-section{border-bottom:1px solid #ccc}.logo{display:block}.table-of-contents-section.active{background-color:#edffcb}.table-of-contents-section{padding:10px 20px}#table-of-contents ul{padding:0;margin:0}#table-of-contents li{display:block;padding:5px 20px}@media (max-width: 900px){#sidebar{left:0;transition:left 0.25s}#sidebar-toggle-link{display:block;transition:left 0.25s}#main-content{left:0;padding-left:20px;transition:left 0.25s}body.sidebar-hidden #sidebar{left:0}body.sidebar-hidden #main-content{left:0}body.sidebar-hidden #sidebar-toggle-link{left:0}}#playground-container .CodeMirror{height:auto;max-height:350px;border:1px solid #aaa}#playground-container .CodeMirror-scroll{height:auto;max-height:350px}#playground-container h4,#playground-container select,#playground-container .field,#playground-container label{display:inline-block;margin-right:20px}#playground-container #logging-checkbox{height:15px}#playground-container .CodeMirror div.CodeMirror-cursor{border-left:3px solid red}#output-container{padding:0 10px;margin:0}#output-container-scroll{padding:0;position:relative;margin-top:0;overflow:auto;max-height:350px;border:1px solid #aaa}a.highlighted{background-color:#ddd;text-decoration:underline}.query-error{text-decoration:underline red dashed} diff --git a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-toml-0.5.1/tree-sitter-toml.wasm b/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-toml-0.5.1/tree-sitter-toml.wasm deleted file mode 100755 index 283b04257..000000000 Binary files a/vendored_parsers/tree-sitter-toml/docs/assets/tree-sitter-toml-0.5.1/tree-sitter-toml.wasm and /dev/null differ diff --git a/vendored_parsers/tree-sitter-toml/docs/assets/web-tree-sitter-0.19.3/LICENSE b/vendored_parsers/tree-sitter-toml/docs/assets/web-tree-sitter-0.19.3/LICENSE deleted file mode 100644 index 971b81f9a..000000000 --- a/vendored_parsers/tree-sitter-toml/docs/assets/web-tree-sitter-0.19.3/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Max Brunsfeld - -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-toml/docs/assets/web-tree-sitter-0.19.3/tree-sitter.js b/vendored_parsers/tree-sitter-toml/docs/assets/web-tree-sitter-0.19.3/tree-sitter.js deleted file mode 100644 index d78d92354..000000000 --- a/vendored_parsers/tree-sitter-toml/docs/assets/web-tree-sitter-0.19.3/tree-sitter.js +++ /dev/null @@ -1 +0,0 @@ -var Module=void 0!==Module?Module:{};!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.TreeSitter=t()}(0,function(){var e,t={};for(e in Module)Module.hasOwnProperty(e)&&(t[e]=Module[e]);var n,r,s=[],o=function(e,t){throw t},_=!1,a=!1;_="object"==typeof window,a="function"==typeof importScripts,n="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,r=!_&&!n&&!a;var u,i,l,d,c,m="";n?(m=a?require("path").dirname(m)+"/":__dirname+"/",u=function(e,t){return d||(d=require("fs")),c||(c=require("path")),e=c.normalize(e),d.readFileSync(e,t?null:"utf8")},l=function(e){var t=u(e,!0);return t.buffer||(t=new Uint8Array(t)),x(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),s=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=Module),o=function(e){process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}):r?("undefined"!=typeof read&&(u=function(e){return read(e)}),l=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(x("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&(o=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(_||a)&&(a?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",u=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),i=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});Module.print||console.log.bind(console);var f=Module.printErr||console.warn.bind(console);for(e in t)t.hasOwnProperty(e)&&(Module[e]=t[e]);t=null,Module.arguments&&(s=Module.arguments),Module.thisProgram&&Module.thisProgram,Module.quit&&(o=Module.quit);var p=16;var h,g=[];function w(e,t){if(!h){h=new WeakMap;for(var n=0;n>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":R[e>>2]=t;break;case"i64":ie=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],R[e>>2]=ie[0],R[e+4>>2]=ie[1];break;case"float":q[e>>2]=t;break;case"double":T[e>>3]=t;break;default:te("invalid type for setValue: "+n)}}function I(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return P[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return R[e>>2];case"float":return q[e>>2];case"double":return T[e>>3];default:te("invalid type for getValue: "+t)}return null}Module.wasmBinary&&(M=Module.wasmBinary),Module.noExitRuntime&&(y=Module.noExitRuntime),"object"!=typeof WebAssembly&&te("no native wasm support detected");var S=!1;function x(e,t){e||te("Assertion failed: "+t)}var N=1;var A,P,k,C,R,q,T,L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function Z(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&L)return L.decode(e.subarray(t,s));for(var o="";t>10,56320|1023&i)}}else o+=String.fromCharCode((31&_)<<6|a)}else o+=String.fromCharCode(_)}return o}function F(e,t){return e?Z(k,e,t):""}function W(e,t,n){return function(e,t,n,r){if(!(r>0))return 0;for(var s=n,o=n+r-1,_=0;_=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++_)),a<=127){if(n>=o)break;t[n++]=a}else if(a<=2047){if(n+1>=o)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=o)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=o)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}(e,k,t,n)}function O(e){for(var t=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function $(e){A=e,Module.HEAP8=P=new Int8Array(e),Module.HEAP16=C=new Int16Array(e),Module.HEAP32=R=new Int32Array(e),Module.HEAPU8=k=new Uint8Array(e),Module.HEAPU16=new Uint16Array(e),Module.HEAPU32=new Uint32Array(e),Module.HEAPF32=q=new Float32Array(e),Module.HEAPF64=T=new Float64Array(e)}var U=new WebAssembly.Global({value:"i32",mutable:!0},5250848);Module.___heap_base=5250848;var j=Module.INITIAL_MEMORY||33554432;(b=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:j/65536,maximum:32768}))&&(A=b.buffer),j=A.byteLength,$(A);var D=new WebAssembly.Table({initial:13,element:"anyfunc"}),G=[],B=[],H=[],K=[],z=!1;function V(e){G.unshift(e)}B.push({func:function(){Re()}});var X=0,Q=null,Y=null;function J(e){X++,Module.monitorRunDependencies&&Module.monitorRunDependencies(X)}function ee(e){if(X--,Module.monitorRunDependencies&&Module.monitorRunDependencies(X),0==X&&(null!==Q&&(clearInterval(Q),Q=null),Y)){var t=Y;Y=null,t()}}function te(e){throw Module.onAbort&&Module.onAbort(e),f(e+=""),S=!0,1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}function ne(e,t){return String.prototype.startsWith?e.startsWith(t):0===e.indexOf(t)}Module.preloadedImages={},Module.preloadedAudios={},Module.preloadedWasm={},V(function(){var e=[];Module.dynamicLibraries&&(e=e.concat(Module.dynamicLibraries));if(!e.length)return void ve();if(!l)return J(),void Promise.all(e.map(function(e){return Ee(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})})).then(function(){ee(),ve()});e.forEach(function(e){Ee(e,{global:!0,nodelete:!0,allowUndefined:!0})}),ve()});var re="data:application/octet-stream;base64,";function se(e){return ne(e,re)}var oe="file://";function _e(e){return ne(e,oe)}var ae,ue,ie,le="tree-sitter.wasm";function de(e){try{if(e==le&&M)return new Uint8Array(M);if(l)return l(e);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}se(le)||(ae=le,le=Module.locateFile?Module.locateFile(ae,m):m+ae);var ce={},me={get:function(e,t){return ce[t]||(ce[t]=new WebAssembly.Global({value:"i32",mutable:!0})),ce[t]}};function fe(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?D.get(n)():D.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(Module)}}var pe,he={nextHandle:1,loadedLibs:{},loadedLibNames:{}};function ge(e){return-1!=["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].indexOf(e)}function we(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!ge(t)){var n=!1,r=e[t];0==t.indexOf("orig$")&&(t=t.split("$")[1],n=!0),ce[t]||(ce[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==ce[t].value)&&("function"==typeof r?ce[t].value=w(r):"number"==typeof r?ce[t].value=r:f("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function Me(e){return 0==e.indexOf("dynCall_")||-1!=["setTempRet0","getTempRet0","stackAlloc","stackSave","stackRestore"].indexOf(e)?e:"_"+e}function ye(e,t){var n,r;return t&&(n=Module.asm["orig$"+e]),n||(n=Module.asm[e]),!n&&t&&(n=Module["_orig$"+e]),n||(n=Module[Me(e)]),n||0!=e.indexOf("invoke_")||(r=e.split("_")[1],n=function(){var e=Le();try{return dynCall(r,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ze(e),t!==t+0&&"longjmp"!==t)throw t;_setThrew(1,0)}}),n}function be(e,t){x(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),x(0===e[8],"need the dylink section to be first");var n=9;function r(){for(var t=0,r=1;;){var s=e[n++];if(t+=(127&s)*r,r*=128,!(128&s))break}return t}r();x(6===e[n]),x(e[++n]==="d".charCodeAt(0)),x(e[++n]==="y".charCodeAt(0)),x(e[++n]==="l".charCodeAt(0)),x(e[++n]==="i".charCodeAt(0)),x(e[++n]==="n".charCodeAt(0)),x(e[++n]==="k".charCodeAt(0)),n++;for(var s=r(),o=r(),_=r(),a=r(),u=r(),i=[],l=0;l>2]=r,-1;n=pe()}return R[t>>2]=n/1e3|0,R[t+4>>2]=n%1e3*1e3*1e3|0,0}function Ne(e){try{return b.grow(e-A.byteLength+65535>>>16),$(b.buffer),1}catch(e){}}function Ae(e){$e(e)}function Pe(e){E(0|e)}xe.sig="iii",Ae.sig="vi",Pe.sig="vi";var ke,Ce={__indirect_function_table:D,__memory_base:1024,__stack_pointer:U,__table_base:1,abort:Ie,clock_gettime:xe,emscripten_memcpy_big:function(e,t,n){k.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){e>>>=0;var t=k.length;if(e>2147483648)return!1;for(var n,r,s=1;s<=4;s*=2){var o=t*(1+.2/s);if(o=Math.min(o,e+100663296),Ne(Math.min(2147483648,((n=Math.max(16777216,e,o))%(r=65536)>0&&(n+=r-n%r),n))))return!0}return!1},exit:Ae,memory:b,setTempRet0:Pe,tree_sitter_log_callback:function(e,t){if(rt){const n=F(t);rt(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var o=nt(t,{row:n,column:r});"string"==typeof o?(v(s,o.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s>1]=o,t+=2}C[t>>1]=0}(o,e,10240)):v(s,0,"i32")}},Re=(function(){var e={env:Ce,wasi_snapshot_preview1:Ce,"GOT.mem":new Proxy(Ce,me),"GOT.func":new Proxy(Ce,me)};function t(e,t){var n=e.exports;n=we(n,1024),Module.asm=n,ee()}function n(e){t(e.instance)}function r(t){return function(){if(!M&&(_||a)){if("function"==typeof fetch&&!_e(le))return fetch(le,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+le+"'";return e.arrayBuffer()}).catch(function(){return de(le)});if(i)return new Promise(function(e,t){i(le,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return de(le)})}().then(function(t){return WebAssembly.instantiate(t,e)}).then(t,function(e){f("failed to asynchronously prepare wasm: "+e),te(e)})}if(J(),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return f("Module.instantiateWasm callback failed with error: "+e),!1}M||"function"!=typeof WebAssembly.instantiateStreaming||se(le)||_e(le)||"function"!=typeof fetch?r(n):fetch(le,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,e).then(n,function(e){return f("wasm streaming compile failed: "+e),f("falling back to ArrayBuffer instantiation"),r(n)})})}(),Module.___wasm_call_ctors=function(){return(Re=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)}),qe=Module._malloc=function(){return(qe=Module._malloc=Module.asm.malloc).apply(null,arguments)},Te=(Module._ts_language_symbol_count=function(){return(Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},Module._ts_language_version=function(){return(Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},Module._ts_language_field_count=function(){return(Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},Module._ts_language_symbol_name=function(){return(Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},Module._ts_language_symbol_for_name=function(){return(Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},Module._ts_language_symbol_type=function(){return(Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},Module._ts_language_field_name_for_id=function(){return(Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},Module._memcpy=function(){return(Module._memcpy=Module.asm.memcpy).apply(null,arguments)},Module._free=function(){return(Module._free=Module.asm.free).apply(null,arguments)},Module._calloc=function(){return(Module._calloc=Module.asm.calloc).apply(null,arguments)},Module._ts_parser_delete=function(){return(Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},Module._ts_parser_set_language=function(){return(Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},Module._ts_parser_timeout_micros=function(){return(Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},Module._ts_parser_set_timeout_micros=function(){return(Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},Module._memcmp=function(){return(Module._memcmp=Module.asm.memcmp).apply(null,arguments)},Module._ts_query_new=function(){return(Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},Module._iswspace=function(){return(Module._iswspace=Module.asm.iswspace).apply(null,arguments)},Module._ts_query_delete=function(){return(Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},Module._iswalnum=function(){return(Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},Module._ts_query_pattern_count=function(){return(Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},Module._ts_query_capture_count=function(){return(Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},Module._ts_query_string_count=function(){return(Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},Module._ts_query_capture_name_for_id=function(){return(Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},Module._ts_query_string_value_for_id=function(){return(Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},Module._ts_query_predicates_for_pattern=function(){return(Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},Module._ts_tree_copy=function(){return(Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},Module._ts_tree_delete=function(){return(Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},Module._ts_init=function(){return(Module._ts_init=Module.asm.ts_init).apply(null,arguments)},Module._ts_parser_new_wasm=function(){return(Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},Module._ts_parser_enable_logger_wasm=function(){return(Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},Module._ts_parser_parse_wasm=function(){return(Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},Module._ts_language_type_is_named_wasm=function(){return(Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},Module._ts_language_type_is_visible_wasm=function(){return(Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},Module._ts_tree_root_node_wasm=function(){return(Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},Module._ts_tree_edit_wasm=function(){return(Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},Module._ts_tree_get_changed_ranges_wasm=function(){return(Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},Module._ts_tree_cursor_new_wasm=function(){return(Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},Module._ts_tree_cursor_delete_wasm=function(){return(Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},Module._ts_tree_cursor_reset_wasm=function(){return(Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_first_child_wasm=function(){return(Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_parent_wasm=function(){return(Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_id_wasm=function(){return(Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_start_position_wasm=function(){return(Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},Module._ts_tree_cursor_end_position_wasm=function(){return(Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},Module._ts_tree_cursor_start_index_wasm=function(){return(Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},Module._ts_tree_cursor_end_index_wasm=function(){return(Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_field_id_wasm=function(){return(Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_wasm=function(){return(Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},Module._ts_node_symbol_wasm=function(){return(Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},Module._ts_node_child_count_wasm=function(){return(Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},Module._ts_node_named_child_count_wasm=function(){return(Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},Module._ts_node_child_wasm=function(){return(Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},Module._ts_node_named_child_wasm=function(){return(Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},Module._ts_node_child_by_field_id_wasm=function(){return(Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},Module._ts_node_next_sibling_wasm=function(){return(Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},Module._ts_node_prev_sibling_wasm=function(){return(Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},Module._ts_node_next_named_sibling_wasm=function(){return(Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},Module._ts_node_prev_named_sibling_wasm=function(){return(Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},Module._ts_node_parent_wasm=function(){return(Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},Module._ts_node_descendant_for_index_wasm=function(){return(Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},Module._ts_node_named_descendant_for_index_wasm=function(){return(Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},Module._ts_node_descendant_for_position_wasm=function(){return(Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},Module._ts_node_named_descendant_for_position_wasm=function(){return(Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},Module._ts_node_start_point_wasm=function(){return(Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},Module._ts_node_end_point_wasm=function(){return(Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},Module._ts_node_start_index_wasm=function(){return(Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},Module._ts_node_end_index_wasm=function(){return(Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},Module._ts_node_to_string_wasm=function(){return(Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},Module._ts_node_children_wasm=function(){return(Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},Module._ts_node_named_children_wasm=function(){return(Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},Module._ts_node_descendants_of_type_wasm=function(){return(Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},Module._ts_node_is_named_wasm=function(){return(Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},Module._ts_node_has_changes_wasm=function(){return(Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},Module._ts_node_has_error_wasm=function(){return(Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},Module._ts_node_is_missing_wasm=function(){return(Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},Module._ts_query_matches_wasm=function(){return(Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},Module._ts_query_captures_wasm=function(){return(Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},Module._towupper=function(){return(Module._towupper=Module.asm.towupper).apply(null,arguments)},Module._iswdigit=function(){return(Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},Module._iswalpha=function(){return(Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},Module._iswlower=function(){return(Module._iswlower=Module.asm.iswlower).apply(null,arguments)},Module._memchr=function(){return(Module._memchr=Module.asm.memchr).apply(null,arguments)},Module.___errno_location=function(){return(Te=Module.___errno_location=Module.asm.__errno_location).apply(null,arguments)}),Le=(Module._strlen=function(){return(Module._strlen=Module.asm.strlen).apply(null,arguments)},Module.stackSave=function(){return(Le=Module.stackSave=Module.asm.stackSave).apply(null,arguments)}),Ze=Module.stackRestore=function(){return(Ze=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},Fe=Module.stackAlloc=function(){return(Fe=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)};Module.__Znwm=function(){return(Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},Module.__ZdlPv=function(){return(Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},Module.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(Module.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=Module.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_).apply(null,arguments)},Module._orig$ts_parser_timeout_micros=function(){return(Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},Module._orig$ts_parser_set_timeout_micros=function(){return(Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},Module._TRANSFER_BUFFER=2480,Module.___cxa_new_handler=7124;function We(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}Module.allocate=function(e,t){var n;return n=t==N?Fe(e.length):qe(e.length),e.subarray||e.slice?k.set(e,n):k.set(new Uint8Array(e),n),n};function Oe(e){function t(){ke||(ke=!0,Module.calledRun=!0,S||(z=!0,fe(B),fe(H),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),Ue&&function(e){var t=Module._main;if(t)try{$e(t(0,0),!0)}catch(e){if(e instanceof We)return;if("unwind"==e)return void(y=!0);var n=e;e&&"object"==typeof e&&e.stack&&(n=[e,e.stack]),f("exception thrown: "+n),o(1,e)}finally{!0}}(),function(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)e=Module.postRun.shift(),K.unshift(e);var e;fe(K)}()))}e=e||s,X>0||(!function(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)V(Module.preRun.shift());fe(G)}(),X>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),t()},1)):t()))}function $e(e,t){t&&y&&0===e||(y||(e,!0,Module.onExit&&Module.onExit(e),S=!0),o(e,new We(e)))}if(Y=function e(){ke||Oe(),ke||(Y=e)},Module.run=Oe,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var Ue=!0;Module.noInitialRun&&(Ue=!1),y=!0,Oe();const je=Module,De={},Ge=4,Be=5*Ge,He=2*Ge,Ke=2*Ge+2*He,ze={row:0,column:0},Ve=/[\w-.]*/g,Xe=1,Qe=2,Ye=/^_?tree_sitter_\w+/;var Je,et,tt,nt,rt,st=new Promise(e=>{Module.onRuntimeInitialized=e}).then(()=>{tt=je._ts_init(),Je=I(tt,"i32"),et=I(tt+Ge,"i32")});class Parser{static init(){return st}constructor(){if(null==tt)throw new Error("You must first call Parser.init() and wait for it to resolve.");je._ts_parser_new_wasm(),this[0]=I(tt,"i32"),this[1]=I(tt+Ge,"i32")}delete(){je._ts_parser_delete(this[0]),je._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const n=je._ts_language_version(t);if(ne.slice(t,r));else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");nt=e}this.logCallback?(rt=this.logCallback,je._ts_parser_enable_logger_wasm(this[0],1)):(rt=null,je._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=je._calloc(r,Ke);for(let t=0;t0){let e=n;for(let n=0;n0){let n=t;for(let t=0;t0){let n=t;for(let t=0;t0){let e=a;for(let t=0;t<_;t++)u[t]=lt(this.tree,e),e+=Be}return je._free(a),je._free(o),u}get nextSibling(){return it(this),je._ts_node_next_sibling_wasm(this.tree[0]),lt(this.tree)}get previousSibling(){return it(this),je._ts_node_prev_sibling_wasm(this.tree[0]),lt(this.tree)}get nextNamedSibling(){return it(this),je._ts_node_next_named_sibling_wasm(this.tree[0]),lt(this.tree)}get previousNamedSibling(){return it(this),je._ts_node_prev_named_sibling_wasm(this.tree[0]),lt(this.tree)}get parent(){return it(this),je._ts_node_parent_wasm(this.tree[0]),lt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");it(this);let n=tt+Be;return v(n,e,"i32"),v(n+Ge,t,"i32"),je._ts_node_descendant_for_index_wasm(this.tree[0]),lt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");it(this);let n=tt+Be;return v(n,e,"i32"),v(n+Ge,t,"i32"),je._ts_node_named_descendant_for_index_wasm(this.tree[0]),lt(this.tree)}descendantForPosition(e,t=e){if(!ut(e)||!ut(t))throw new Error("Arguments must be {row, column} objects");it(this);let n=tt+Be;return mt(n,e),mt(n+He,t),je._ts_node_descendant_for_position_wasm(this.tree[0]),lt(this.tree)}namedDescendantForPosition(e,t=e){if(!ut(e)||!ut(t))throw new Error("Arguments must be {row, column} objects");it(this);let n=tt+Be;return mt(n,e),mt(n+He,t),je._ts_node_named_descendant_for_position_wasm(this.tree[0]),lt(this.tree)}walk(){return it(this),je._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(De,this.tree)}toString(){it(this);const e=je._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=k[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return je._free(e),t}}class TreeCursor{constructor(e,t){at(e),this.tree=t,ct(this)}delete(){dt(this),je._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){it(e),dt(this,tt+Be),je._ts_tree_cursor_reset_wasm(this.tree[0]),ct(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return dt(this),je._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return dt(this),je._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return dt(this),1===je._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return dt(this),1===je._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){dt(this);const e=je._ts_tree_cursor_start_index_wasm(this.tree[0]),t=je._ts_tree_cursor_end_index_wasm(this.tree[0]);return ot(this.tree,e,t)}get startPosition(){return dt(this),je._ts_tree_cursor_start_position_wasm(this.tree[0]),ft(tt)}get endPosition(){return dt(this),je._ts_tree_cursor_end_position_wasm(this.tree[0]),ft(tt)}get startIndex(){return dt(this),je._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return dt(this),je._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return dt(this),je._ts_tree_cursor_current_node_wasm(this.tree[0]),lt(this.tree)}currentFieldId(){return dt(this),je._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){dt(this);const e=je._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return ct(this),1===e}gotoNextSibling(){dt(this);const e=je._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return ct(this),1===e}gotoParent(){dt(this);const e=je._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return ct(this),1===e}}class Language{constructor(e,t){at(e),this[0]=t,this.types=new Array(je._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#eq?\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push(function(e){let s,o;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(o=n.node);return s.text===o.text===n})}else{const t=s[1].name,r=s[2].value;m[e].push(function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!1})}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,o=new RegExp(s[2].value);m[e].push(function(e){for(const t of e)if(t.name===r)return o.test(t.node.text)===n;return!1});break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some(e=>"string"!==e.type))throw new Error('Arguments to `#set!` predicate must be a strings.".');i[e]||(i[e]={}),i[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some(e=>"string"!==e.type))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const _="is?"===t?l:d;_[e]||(_[e]={}),_[e][s[1].value]=s[2]?s[2].value:null;break;default:c[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(i[e]),Object.freeze(l[e]),Object.freeze(d[e])}return je._free(n),new Query(De,r,a,m,c,Object.freeze(i),Object.freeze(l),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=require("fs");t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then(e=>e.arrayBuffer().then(t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))}const n="function"==typeof loadSideModule?loadSideModule:be;return t.then(e=>n(e,{loadAsync:!0})).then(e=>{const t=Object.keys(e),n=t.find(e=>Ye.test(e)&&!e.includes("external_scanner_"));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new Language(De,r)})}}class Query{constructor(e,t,n,r,s,o,_,a){at(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=o,this.assertedProperties=_,this.refutedProperties=a}delete(){je._ts_query_delete(this[0]),this[0]=0}matches(e,t,n){t||(t=ze),n||(n=ze),it(e),je._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column);const r=I(tt,"i32"),s=I(tt+Ge,"i32"),o=new Array(r);let _=0,a=s;for(let t=0;te(s))){o[_++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(o[t].setProperties=e);const r=this.assertedProperties[n];r&&(o[t].assertedProperties=r);const a=this.refutedProperties[n];a&&(o[t].refutedProperties=a)}}return o.length=_,je._free(s),o}captures(e,t,n){t||(t=ze),n||(n=ze),it(e),je._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column);const r=I(tt,"i32"),s=I(tt+Ge,"i32"),o=[],_=[];let a=s;for(let t=0;te(_))){const e=_[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const a=this.refutedProperties[t];a&&(e.refutedProperties=a),o.push(e)}}return je._free(s),o}predicatesForPattern(e){return this.predicates[e]}}function ot(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function _t(e,t,n,r){for(let s=0,o=r.length;s - - - - - - - Tree-sitter TOML Playground - - - -
-
- - - - -

Tree-sitter TOML v0.5.1

- - - -
- This playground was modified from the official Tree-sitter Playground. -
- - - - - - - - - - - -
-
- - - - diff --git a/vendored_parsers/tree-sitter-toml/examples/toml-lang.toml b/vendored_parsers/tree-sitter-toml/examples/toml-lang.toml deleted file mode 100644 index 21895a2ac..000000000 --- a/vendored_parsers/tree-sitter-toml/examples/toml-lang.toml +++ /dev/null @@ -1,33 +0,0 @@ -# This is a TOML document. - -title = "TOML Example" - -[owner] -name = "Tom Preston-Werner" -dob = 1979-05-27T07:32:00-08:00 # First class dates - -[database] -server = "192.168.1.1" -ports = [ 8001, 8001, 8002 ] -connection_max = 5000 -enabled = true - -[servers] - - # Indentation (tabs and/or spaces) is allowed but not required - [servers.alpha] - ip = "10.0.0.1" - dc = "eqdc10" - - [servers.beta] - ip = "10.0.0.2" - dc = "eqdc10" - -[clients] -data = [ ["gamma", "delta"], [1, 2] ] - -# Line breaks are OK when inside arrays -hosts = [ - "alpha", - "omega" -] diff --git a/vendored_parsers/tree-sitter-toml/grammar.js b/vendored_parsers/tree-sitter-toml/grammar.js deleted file mode 100644 index 2e0857303..000000000 --- a/vendored_parsers/tree-sitter-toml/grammar.js +++ /dev/null @@ -1,214 +0,0 @@ -const { Charset } = require("regexp-util"); - -const getInverseRegex = charset => - new RegExp(`[^${charset.toString().slice(1, -1)}]`); - -const control_chars = new Charset([0x0, 0x1f], 0x7f); -const newline = /\r?\n/; - -const decimal_integer = /[+-]?(0|[1-9](_?[0-9])*)/; -const decimal_integer_in_float_exponent_part = /[+-]?[0-9](_?[0-9])*/; // allow leading zeros -const hexadecimal_integer = /0x[0-9a-fA-F](_?[0-9a-fA-F])*/; -const octal_integer = /0o[0-7](_?[0-7])*/; -const binary_integer = /0b[01](_?[01])*/; -const float_fractional_part = /[.][0-9](_?[0-9])*/; -const float_exponent_part = seq(/[eE]/, decimal_integer_in_float_exponent_part); - -const rfc3339_date = /([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])/; -const rfc3339_delimiter = /[ tT]/; -const rfc3339_time = /([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)([.][0-9]+)?/; -const rfc3339_offset = /([zZ])|([+-]([01][0-9]|2[0-3]):[0-5][0-9])/; - -module.exports = grammar({ - name: "toml", - - externals: $ => [ - $._line_ending_or_eof, - $._multiline_basic_string_content, - $._multiline_basic_string_end, - $._multiline_literal_string_content, - $._multiline_literal_string_end, - ], - - extras: $ => [$.comment, /[ \t]/], - - rules: { - document: $ => - seq( - repeat(choice($.pair, newline)), - repeat(choice($.table, $.table_array_element)), - ), - - comment: $ => - token(prec(-1, seq( - "#", - repeat(getInverseRegex(control_chars.subtract("\t"))), - ))), - - table: $ => - seq( - "[", - choice($.dotted_key, $._key), - "]", - $._line_ending_or_eof, - repeat(choice($.pair, newline)), - ), - - table_array_element: $ => - seq( - "[[", - choice($.dotted_key, $._key), - "]]", - $._line_ending_or_eof, - repeat(choice($.pair, newline)), - ), - - pair: $ => seq($._inline_pair, $._line_ending_or_eof), - _inline_pair: $ => seq(choice($.dotted_key, $._key), "=", $._inline_value), - - _key: $ => choice($.bare_key, $.quoted_key), - dotted_key: $ => seq(choice($.dotted_key, $._key), ".", $._key), - bare_key: $ => /[A-Za-z0-9_-]+/, - quoted_key: $ => choice($._basic_string, $._literal_string), - - _inline_value: $ => - choice( - $.string, - $.integer, - $.float, - $.boolean, - $.offset_date_time, - $.local_date_time, - $.local_date, - $.local_time, - $.array, - $.inline_table, - ), - - string: $ => - choice( - $._basic_string, - $._multiline_basic_string, - $._literal_string, - $._multiline_literal_string, - ), - _basic_string: $ => - seq( - '"', - repeat( - choice( - token.immediate( - repeat1( - getInverseRegex(control_chars.subtract("\t").union('"', "\\")), - ), - ), - $.escape_sequence, - ), - ), - token.immediate('"'), - ), - _multiline_basic_string: $ => - seq( - '"""', - repeat( - choice( - token.immediate( - repeat1( - getInverseRegex(control_chars.subtract("\t").union('"', "\\")), - ), - ), - $._multiline_basic_string_content, - token.immediate(newline), - $.escape_sequence, - alias($._escape_line_ending, $.escape_sequence), - ), - ), - $._multiline_basic_string_end, - ), - escape_sequence: $ => - token.immediate(/\\([btnfr"\\]|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/), - _escape_line_ending: $ => token.immediate(seq(/\\/, newline)), - _literal_string: $ => - seq( - "'", - optional( - token.immediate( - repeat1(getInverseRegex(control_chars.union("'").subtract("\t"))), - ), - ), - token.immediate("'"), - ), - _multiline_literal_string: $ => - seq( - "'''", - repeat( - choice( - token.immediate( - repeat1(getInverseRegex(control_chars.union("'").subtract("\t"))), - ), - $._multiline_literal_string_content, - token.immediate(newline), - ), - ), - $._multiline_literal_string_end, - ), - - integer: $ => - choice( - decimal_integer, - hexadecimal_integer, - octal_integer, - binary_integer, - ), - - float: $ => - choice( - token( - seq( - decimal_integer, - choice( - float_fractional_part, - seq(optional(float_fractional_part), float_exponent_part), - ), - ), - ), - /[+-]?(inf|nan)/, - ), - - boolean: $ => /true|false/, - - offset_date_time: $ => - token(seq(rfc3339_date, rfc3339_delimiter, rfc3339_time, rfc3339_offset)), - local_date_time: $ => - token(seq(rfc3339_date, rfc3339_delimiter, rfc3339_time)), - local_date: $ => rfc3339_date, - local_time: $ => rfc3339_time, - - array: $ => - seq( - "[", - repeat(newline), - optional( - seq( - $._inline_value, - repeat(newline), - repeat(seq(",", repeat(newline), $._inline_value, repeat(newline))), - optional(seq(",", repeat(newline))), - ), - ), - "]", - ), - - inline_table: $ => - seq( - "{", - optional( - seq( - alias($._inline_pair, $.pair), - repeat(seq(",", alias($._inline_pair, $.pair))), - ), - ), - "}", - ), - }, -}); diff --git a/vendored_parsers/tree-sitter-toml/package.json b/vendored_parsers/tree-sitter-toml/package.json deleted file mode 100644 index 9a3637765..000000000 --- a/vendored_parsers/tree-sitter-toml/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "tree-sitter-toml", - "version": "0.5.1", - "description": "TOML grammar for tree-sitter", - "keywords": [ - "parser", - "lexer" - ], - "main": "bindings/node", - "repository": "https://github.com/ikatyang/tree-sitter-toml", - "homepage": "https://github.com/ikatyang/tree-sitter-toml#readme", - "author": { - "name": "Ika", - "email": "ikatyang@gmail.com", - "url": "https://github.com/ikatyang" - }, - "license": "MIT", - "scripts": { - "test": "yarn tree-sitter test", - "prepack": "yarn tree-sitter generate", - "release": "standard-version --commit-all", - "tree-sitter": "./tree-sitter/target/release/tree-sitter" - }, - "standard-version": { - "preset": "angular", - "scripts": { - "postbump": "rm -r docs && node scripts/generate-playground.js && git add docs" - } - }, - "dependencies": { - "nan": "^2.14.0" - }, - "devDependencies": { - "regexp-util": "1.2.2", - "standard-version": "7.0.0" - }, - "files": [ - "/src/", - "/queries/", - "/bindings/node/", - "/binding.gyp", - "/grammar.js" - ], - "tree-sitter": [ - { - "scope": "source.toml", - "file-types": [ - "toml" - ], - "highlights": [ - "queries/highlights.scm" - ], - "injection-regex": "^toml$" - } - ] -} diff --git a/vendored_parsers/tree-sitter-toml/queries/highlights.scm b/vendored_parsers/tree-sitter-toml/queries/highlights.scm deleted file mode 100644 index e4d6966fc..000000000 --- a/vendored_parsers/tree-sitter-toml/queries/highlights.scm +++ /dev/null @@ -1,33 +0,0 @@ -; Properties -;----------- - -(bare_key) @property -(quoted_key) @string - -; Literals -;--------- - -(boolean) @constant.builtin -(comment) @comment -(string) @string -(integer) @number -(float) @number -(offset_date_time) @string.special -(local_date_time) @string.special -(local_date) @string.special -(local_time) @string.special - -; Punctuation -;------------ - -"." @punctuation.delimiter -"," @punctuation.delimiter - -"=" @operator - -"[" @punctuation.bracket -"]" @punctuation.bracket -"[[" @punctuation.bracket -"]]" @punctuation.bracket -"{" @punctuation.bracket -"}" @punctuation.bracket diff --git a/vendored_parsers/tree-sitter-toml/scripts/generate-playground.js b/vendored_parsers/tree-sitter-toml/scripts/generate-playground.js deleted file mode 100644 index 4b6449496..000000000 --- a/vendored_parsers/tree-sitter-toml/scripts/generate-playground.js +++ /dev/null @@ -1,15 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const generatePlayground = require("../tree-sitter/script/generate-playground"); - -generatePlayground("docs", { - name: "TOML", - codeExample: fs.readFileSync( - path.resolve(__dirname, "../examples/toml-lang.toml"), - "utf8", - ), - queryExample: fs.readFileSync( - path.resolve(__dirname, "../queries/highlights.scm"), - "utf8", - ), -}); diff --git a/vendored_parsers/tree-sitter-toml/scripts/setup-tree-sitter.sh b/vendored_parsers/tree-sitter-toml/scripts/setup-tree-sitter.sh deleted file mode 100644 index 1299e58e9..000000000 --- a/vendored_parsers/tree-sitter-toml/scripts/setup-tree-sitter.sh +++ /dev/null @@ -1,4 +0,0 @@ -git submodule update --init -cd tree-sitter -./script/build-wasm -cargo build --release diff --git a/vendored_parsers/tree-sitter-toml/src/grammar.json b/vendored_parsers/tree-sitter-toml/src/grammar.json deleted file mode 100644 index 24421fcbb..000000000 --- a/vendored_parsers/tree-sitter-toml/src/grammar.json +++ /dev/null @@ -1,838 +0,0 @@ -{ - "name": "toml", - "rules": { - "document": { - "type": "SEQ", - "members": [ - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "pair" - }, - { - "type": "PATTERN", - "value": "\\r?\\n" - } - ] - } - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "table" - }, - { - "type": "SYMBOL", - "name": "table_array_element" - } - ] - } - } - ] - }, - "comment": { - "type": "TOKEN", - "content": { - "type": "PREC", - "value": -1, - "content": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "#" - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "[^\\u0000-\\u0008\\u000a-\\u001f\\u007f]" - } - } - ] - } - } - }, - "table": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "[" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "dotted_key" - }, - { - "type": "SYMBOL", - "name": "_key" - } - ] - }, - { - "type": "STRING", - "value": "]" - }, - { - "type": "SYMBOL", - "name": "_line_ending_or_eof" - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "pair" - }, - { - "type": "PATTERN", - "value": "\\r?\\n" - } - ] - } - } - ] - }, - "table_array_element": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "[[" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "dotted_key" - }, - { - "type": "SYMBOL", - "name": "_key" - } - ] - }, - { - "type": "STRING", - "value": "]]" - }, - { - "type": "SYMBOL", - "name": "_line_ending_or_eof" - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "pair" - }, - { - "type": "PATTERN", - "value": "\\r?\\n" - } - ] - } - } - ] - }, - "pair": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_inline_pair" - }, - { - "type": "SYMBOL", - "name": "_line_ending_or_eof" - } - ] - }, - "_inline_pair": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "dotted_key" - }, - { - "type": "SYMBOL", - "name": "_key" - } - ] - }, - { - "type": "STRING", - "value": "=" - }, - { - "type": "SYMBOL", - "name": "_inline_value" - } - ] - }, - "_key": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "bare_key" - }, - { - "type": "SYMBOL", - "name": "quoted_key" - } - ] - }, - "dotted_key": { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "dotted_key" - }, - { - "type": "SYMBOL", - "name": "_key" - } - ] - }, - { - "type": "STRING", - "value": "." - }, - { - "type": "SYMBOL", - "name": "_key" - } - ] - }, - "bare_key": { - "type": "PATTERN", - "value": "[A-Za-z0-9_-]+" - }, - "quoted_key": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_basic_string" - }, - { - "type": "SYMBOL", - "name": "_literal_string" - } - ] - }, - "_inline_value": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "string" - }, - { - "type": "SYMBOL", - "name": "integer" - }, - { - "type": "SYMBOL", - "name": "float" - }, - { - "type": "SYMBOL", - "name": "boolean" - }, - { - "type": "SYMBOL", - "name": "offset_date_time" - }, - { - "type": "SYMBOL", - "name": "local_date_time" - }, - { - "type": "SYMBOL", - "name": "local_date" - }, - { - "type": "SYMBOL", - "name": "local_time" - }, - { - "type": "SYMBOL", - "name": "array" - }, - { - "type": "SYMBOL", - "name": "inline_table" - } - ] - }, - "string": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_basic_string" - }, - { - "type": "SYMBOL", - "name": "_multiline_basic_string" - }, - { - "type": "SYMBOL", - "name": "_literal_string" - }, - { - "type": "SYMBOL", - "name": "_multiline_literal_string" - } - ] - }, - "_basic_string": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"" - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "REPEAT1", - "content": { - "type": "PATTERN", - "value": "[^\\u0000-\\u0008\\u000a-\\u001f\\u0022\\u005c\\u007f]" - } - } - }, - { - "type": "SYMBOL", - "name": "escape_sequence" - } - ] - } - }, - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "STRING", - "value": "\"" - } - } - ] - }, - "_multiline_basic_string": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "\"\"\"" - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "REPEAT1", - "content": { - "type": "PATTERN", - "value": "[^\\u0000-\\u0008\\u000a-\\u001f\\u0022\\u005c\\u007f]" - } - } - }, - { - "type": "SYMBOL", - "name": "_multiline_basic_string_content" - }, - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - }, - { - "type": "SYMBOL", - "name": "escape_sequence" - }, - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "_escape_line_ending" - }, - "named": true, - "value": "escape_sequence" - } - ] - } - }, - { - "type": "SYMBOL", - "name": "_multiline_basic_string_end" - } - ] - }, - "escape_sequence": { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "PATTERN", - "value": "\\\\([btnfr\"\\\\]|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})" - } - }, - "_escape_line_ending": { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "SEQ", - "members": [ - { - "type": "PATTERN", - "value": "\\\\" - }, - { - "type": "PATTERN", - "value": "\\r?\\n" - } - ] - } - }, - "_literal_string": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "REPEAT1", - "content": { - "type": "PATTERN", - "value": "[^\\u0000-\\u0008\\u000a-\\u001f\\u0027\\u007f]" - } - } - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "STRING", - "value": "'" - } - } - ] - }, - "_multiline_literal_string": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "'''" - }, - { - "type": "REPEAT", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "REPEAT1", - "content": { - "type": "PATTERN", - "value": "[^\\u0000-\\u0008\\u000a-\\u001f\\u0027\\u007f]" - } - } - }, - { - "type": "SYMBOL", - "name": "_multiline_literal_string_content" - }, - { - "type": "IMMEDIATE_TOKEN", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - } - ] - } - }, - { - "type": "SYMBOL", - "name": "_multiline_literal_string_end" - } - ] - }, - "integer": { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[+-]?(0|[1-9](_?[0-9])*)" - }, - { - "type": "PATTERN", - "value": "0x[0-9a-fA-F](_?[0-9a-fA-F])*" - }, - { - "type": "PATTERN", - "value": "0o[0-7](_?[0-7])*" - }, - { - "type": "PATTERN", - "value": "0b[01](_?[01])*" - } - ] - }, - "float": { - "type": "CHOICE", - "members": [ - { - "type": "TOKEN", - "content": { - "type": "SEQ", - "members": [ - { - "type": "PATTERN", - "value": "[+-]?(0|[1-9](_?[0-9])*)" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[.][0-9](_?[0-9])*" - }, - { - "type": "SEQ", - "members": [ - { - "type": "CHOICE", - "members": [ - { - "type": "PATTERN", - "value": "[.][0-9](_?[0-9])*" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "SEQ", - "members": [ - { - "type": "PATTERN", - "value": "[eE]" - }, - { - "type": "PATTERN", - "value": "[+-]?[0-9](_?[0-9])*" - } - ] - } - ] - } - ] - } - ] - } - }, - { - "type": "PATTERN", - "value": "[+-]?(inf|nan)" - } - ] - }, - "boolean": { - "type": "PATTERN", - "value": "true|false" - }, - "offset_date_time": { - "type": "TOKEN", - "content": { - "type": "SEQ", - "members": [ - { - "type": "PATTERN", - "value": "([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" - }, - { - "type": "PATTERN", - "value": "[ tT]" - }, - { - "type": "PATTERN", - "value": "([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)([.][0-9]+)?" - }, - { - "type": "PATTERN", - "value": "([zZ])|([+-]([01][0-9]|2[0-3]):[0-5][0-9])" - } - ] - } - }, - "local_date_time": { - "type": "TOKEN", - "content": { - "type": "SEQ", - "members": [ - { - "type": "PATTERN", - "value": "([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" - }, - { - "type": "PATTERN", - "value": "[ tT]" - }, - { - "type": "PATTERN", - "value": "([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)([.][0-9]+)?" - } - ] - } - }, - "local_date": { - "type": "PATTERN", - "value": "([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" - }, - "local_time": { - "type": "PATTERN", - "value": "([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)([.][0-9]+)?" - }, - "array": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "[" - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "_inline_value" - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - }, - { - "type": "SYMBOL", - "name": "_inline_value" - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - } - ] - } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "REPEAT", - "content": { - "type": "PATTERN", - "value": "\\r?\\n" - } - } - ] - }, - { - "type": "BLANK" - } - ] - } - ] - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "]" - } - ] - }, - "inline_table": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "{" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "_inline_pair" - }, - "named": true, - "value": "pair" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "_inline_pair" - }, - "named": true, - "value": "pair" - } - ] - } - } - ] - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "}" - } - ] - } - }, - "extras": [ - { - "type": "SYMBOL", - "name": "comment" - }, - { - "type": "PATTERN", - "value": "[ \\t]" - } - ], - "conflicts": [], - "precedences": [], - "externals": [ - { - "type": "SYMBOL", - "name": "_line_ending_or_eof" - }, - { - "type": "SYMBOL", - "name": "_multiline_basic_string_content" - }, - { - "type": "SYMBOL", - "name": "_multiline_basic_string_end" - }, - { - "type": "SYMBOL", - "name": "_multiline_literal_string_content" - }, - { - "type": "SYMBOL", - "name": "_multiline_literal_string_end" - } - ], - "inline": [], - "supertypes": [] -} - diff --git a/vendored_parsers/tree-sitter-toml/src/node-types.json b/vendored_parsers/tree-sitter-toml/src/node-types.json deleted file mode 100644 index d2ad0d541..000000000 --- a/vendored_parsers/tree-sitter-toml/src/node-types.json +++ /dev/null @@ -1,355 +0,0 @@ -[ - { - "type": "array", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "array", - "named": true - }, - { - "type": "boolean", - "named": true - }, - { - "type": "float", - "named": true - }, - { - "type": "inline_table", - "named": true - }, - { - "type": "integer", - "named": true - }, - { - "type": "local_date", - "named": true - }, - { - "type": "local_date_time", - "named": true - }, - { - "type": "local_time", - "named": true - }, - { - "type": "offset_date_time", - "named": true - }, - { - "type": "string", - "named": true - } - ] - } - }, - { - "type": "document", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "pair", - "named": true - }, - { - "type": "table", - "named": true - }, - { - "type": "table_array_element", - "named": true - } - ] - } - }, - { - "type": "dotted_key", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "bare_key", - "named": true - }, - { - "type": "dotted_key", - "named": true - }, - { - "type": "quoted_key", - "named": true - } - ] - } - }, - { - "type": "float", - "named": true, - "fields": {} - }, - { - "type": "inline_table", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "pair", - "named": true - } - ] - } - }, - { - "type": "integer", - "named": true, - "fields": {} - }, - { - "type": "pair", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "array", - "named": true - }, - { - "type": "bare_key", - "named": true - }, - { - "type": "boolean", - "named": true - }, - { - "type": "dotted_key", - "named": true - }, - { - "type": "float", - "named": true - }, - { - "type": "inline_table", - "named": true - }, - { - "type": "integer", - "named": true - }, - { - "type": "local_date", - "named": true - }, - { - "type": "local_date_time", - "named": true - }, - { - "type": "local_time", - "named": true - }, - { - "type": "offset_date_time", - "named": true - }, - { - "type": "quoted_key", - "named": true - }, - { - "type": "string", - "named": true - } - ] - } - }, - { - "type": "quoted_key", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "escape_sequence", - "named": true - } - ] - } - }, - { - "type": "string", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "escape_sequence", - "named": true - } - ] - } - }, - { - "type": "table", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "bare_key", - "named": true - }, - { - "type": "dotted_key", - "named": true - }, - { - "type": "pair", - "named": true - }, - { - "type": "quoted_key", - "named": true - } - ] - } - }, - { - "type": "table_array_element", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "bare_key", - "named": true - }, - { - "type": "dotted_key", - "named": true - }, - { - "type": "pair", - "named": true - }, - { - "type": "quoted_key", - "named": true - } - ] - } - }, - { - "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": "bare_key", - "named": true - }, - { - "type": "boolean", - "named": true - }, - { - "type": "comment", - "named": true - }, - { - "type": "escape_sequence", - "named": true - }, - { - "type": "local_date", - "named": true - }, - { - "type": "local_date_time", - "named": true - }, - { - "type": "local_time", - "named": true - }, - { - "type": "offset_date_time", - "named": true - }, - { - "type": "{", - "named": false - }, - { - "type": "}", - "named": false - } -] \ No newline at end of file diff --git a/vendored_parsers/tree-sitter-toml/src/parser.c b/vendored_parsers/tree-sitter-toml/src/parser.c deleted file mode 100644 index 805070042..000000000 --- a/vendored_parsers/tree-sitter-toml/src/parser.c +++ /dev/null @@ -1,4576 +0,0 @@ -#include - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -#define LANGUAGE_VERSION 13 -#define STATE_COUNT 152 -#define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 66 -#define ALIAS_COUNT 0 -#define TOKEN_COUNT 40 -#define EXTERNAL_TOKEN_COUNT 5 -#define FIELD_COUNT 0 -#define MAX_ALIAS_SEQUENCE_LENGTH 8 -#define PRODUCTION_ID_COUNT 2 - -enum { - aux_sym_document_token1 = 1, - sym_comment = 2, - anon_sym_LBRACK = 3, - anon_sym_RBRACK = 4, - anon_sym_LBRACK_LBRACK = 5, - anon_sym_RBRACK_RBRACK = 6, - anon_sym_EQ = 7, - anon_sym_DOT = 8, - sym_bare_key = 9, - anon_sym_DQUOTE = 10, - aux_sym__basic_string_token1 = 11, - anon_sym_DQUOTE2 = 12, - anon_sym_DQUOTE_DQUOTE_DQUOTE = 13, - aux_sym__multiline_basic_string_token1 = 14, - sym_escape_sequence = 15, - sym__escape_line_ending = 16, - anon_sym_SQUOTE = 17, - aux_sym__literal_string_token1 = 18, - anon_sym_SQUOTE2 = 19, - anon_sym_SQUOTE_SQUOTE_SQUOTE = 20, - aux_sym_integer_token1 = 21, - aux_sym_integer_token2 = 22, - aux_sym_integer_token3 = 23, - aux_sym_integer_token4 = 24, - aux_sym_float_token1 = 25, - aux_sym_float_token2 = 26, - sym_boolean = 27, - sym_offset_date_time = 28, - sym_local_date_time = 29, - sym_local_date = 30, - sym_local_time = 31, - anon_sym_COMMA = 32, - anon_sym_LBRACE = 33, - anon_sym_RBRACE = 34, - sym__line_ending_or_eof = 35, - sym__multiline_basic_string_content = 36, - sym__multiline_basic_string_end = 37, - sym__multiline_literal_string_content = 38, - sym__multiline_literal_string_end = 39, - sym_document = 40, - sym_table = 41, - sym_table_array_element = 42, - sym_pair = 43, - sym__inline_pair = 44, - sym__key = 45, - sym_dotted_key = 46, - sym_quoted_key = 47, - sym__inline_value = 48, - sym_string = 49, - sym__basic_string = 50, - sym__multiline_basic_string = 51, - sym__literal_string = 52, - sym__multiline_literal_string = 53, - sym_integer = 54, - sym_float = 55, - sym_array = 56, - sym_inline_table = 57, - aux_sym_document_repeat1 = 58, - aux_sym_document_repeat2 = 59, - aux_sym__basic_string_repeat1 = 60, - aux_sym__multiline_basic_string_repeat1 = 61, - aux_sym__multiline_literal_string_repeat1 = 62, - aux_sym_array_repeat1 = 63, - aux_sym_array_repeat2 = 64, - aux_sym_inline_table_repeat1 = 65, -}; - -static const char *ts_symbol_names[] = { - [ts_builtin_sym_end] = "end", - [aux_sym_document_token1] = "document_token1", - [sym_comment] = "comment", - [anon_sym_LBRACK] = "[", - [anon_sym_RBRACK] = "]", - [anon_sym_LBRACK_LBRACK] = "[[", - [anon_sym_RBRACK_RBRACK] = "]]", - [anon_sym_EQ] = "=", - [anon_sym_DOT] = ".", - [sym_bare_key] = "bare_key", - [anon_sym_DQUOTE] = "\"", - [aux_sym__basic_string_token1] = "_basic_string_token1", - [anon_sym_DQUOTE2] = "\"", - [anon_sym_DQUOTE_DQUOTE_DQUOTE] = "\"\"\"", - [aux_sym__multiline_basic_string_token1] = "_multiline_basic_string_token1", - [sym_escape_sequence] = "escape_sequence", - [sym__escape_line_ending] = "escape_sequence", - [anon_sym_SQUOTE] = "'", - [aux_sym__literal_string_token1] = "_literal_string_token1", - [anon_sym_SQUOTE2] = "'", - [anon_sym_SQUOTE_SQUOTE_SQUOTE] = "'''", - [aux_sym_integer_token1] = "integer_token1", - [aux_sym_integer_token2] = "integer_token2", - [aux_sym_integer_token3] = "integer_token3", - [aux_sym_integer_token4] = "integer_token4", - [aux_sym_float_token1] = "float_token1", - [aux_sym_float_token2] = "float_token2", - [sym_boolean] = "boolean", - [sym_offset_date_time] = "offset_date_time", - [sym_local_date_time] = "local_date_time", - [sym_local_date] = "local_date", - [sym_local_time] = "local_time", - [anon_sym_COMMA] = ",", - [anon_sym_LBRACE] = "{", - [anon_sym_RBRACE] = "}", - [sym__line_ending_or_eof] = "_line_ending_or_eof", - [sym__multiline_basic_string_content] = "_multiline_basic_string_content", - [sym__multiline_basic_string_end] = "_multiline_basic_string_end", - [sym__multiline_literal_string_content] = "_multiline_literal_string_content", - [sym__multiline_literal_string_end] = "_multiline_literal_string_end", - [sym_document] = "document", - [sym_table] = "table", - [sym_table_array_element] = "table_array_element", - [sym_pair] = "pair", - [sym__inline_pair] = "_inline_pair", - [sym__key] = "_key", - [sym_dotted_key] = "dotted_key", - [sym_quoted_key] = "quoted_key", - [sym__inline_value] = "_inline_value", - [sym_string] = "string", - [sym__basic_string] = "_basic_string", - [sym__multiline_basic_string] = "_multiline_basic_string", - [sym__literal_string] = "_literal_string", - [sym__multiline_literal_string] = "_multiline_literal_string", - [sym_integer] = "integer", - [sym_float] = "float", - [sym_array] = "array", - [sym_inline_table] = "inline_table", - [aux_sym_document_repeat1] = "document_repeat1", - [aux_sym_document_repeat2] = "document_repeat2", - [aux_sym__basic_string_repeat1] = "_basic_string_repeat1", - [aux_sym__multiline_basic_string_repeat1] = "_multiline_basic_string_repeat1", - [aux_sym__multiline_literal_string_repeat1] = "_multiline_literal_string_repeat1", - [aux_sym_array_repeat1] = "array_repeat1", - [aux_sym_array_repeat2] = "array_repeat2", - [aux_sym_inline_table_repeat1] = "inline_table_repeat1", -}; - -static TSSymbol ts_symbol_map[] = { - [ts_builtin_sym_end] = ts_builtin_sym_end, - [aux_sym_document_token1] = aux_sym_document_token1, - [sym_comment] = sym_comment, - [anon_sym_LBRACK] = anon_sym_LBRACK, - [anon_sym_RBRACK] = anon_sym_RBRACK, - [anon_sym_LBRACK_LBRACK] = anon_sym_LBRACK_LBRACK, - [anon_sym_RBRACK_RBRACK] = anon_sym_RBRACK_RBRACK, - [anon_sym_EQ] = anon_sym_EQ, - [anon_sym_DOT] = anon_sym_DOT, - [sym_bare_key] = sym_bare_key, - [anon_sym_DQUOTE] = anon_sym_DQUOTE, - [aux_sym__basic_string_token1] = aux_sym__basic_string_token1, - [anon_sym_DQUOTE2] = anon_sym_DQUOTE, - [anon_sym_DQUOTE_DQUOTE_DQUOTE] = anon_sym_DQUOTE_DQUOTE_DQUOTE, - [aux_sym__multiline_basic_string_token1] = aux_sym__multiline_basic_string_token1, - [sym_escape_sequence] = sym_escape_sequence, - [sym__escape_line_ending] = sym_escape_sequence, - [anon_sym_SQUOTE] = anon_sym_SQUOTE, - [aux_sym__literal_string_token1] = aux_sym__literal_string_token1, - [anon_sym_SQUOTE2] = anon_sym_SQUOTE, - [anon_sym_SQUOTE_SQUOTE_SQUOTE] = anon_sym_SQUOTE_SQUOTE_SQUOTE, - [aux_sym_integer_token1] = aux_sym_integer_token1, - [aux_sym_integer_token2] = aux_sym_integer_token2, - [aux_sym_integer_token3] = aux_sym_integer_token3, - [aux_sym_integer_token4] = aux_sym_integer_token4, - [aux_sym_float_token1] = aux_sym_float_token1, - [aux_sym_float_token2] = aux_sym_float_token2, - [sym_boolean] = sym_boolean, - [sym_offset_date_time] = sym_offset_date_time, - [sym_local_date_time] = sym_local_date_time, - [sym_local_date] = sym_local_date, - [sym_local_time] = sym_local_time, - [anon_sym_COMMA] = anon_sym_COMMA, - [anon_sym_LBRACE] = anon_sym_LBRACE, - [anon_sym_RBRACE] = anon_sym_RBRACE, - [sym__line_ending_or_eof] = sym__line_ending_or_eof, - [sym__multiline_basic_string_content] = sym__multiline_basic_string_content, - [sym__multiline_basic_string_end] = sym__multiline_basic_string_end, - [sym__multiline_literal_string_content] = sym__multiline_literal_string_content, - [sym__multiline_literal_string_end] = sym__multiline_literal_string_end, - [sym_document] = sym_document, - [sym_table] = sym_table, - [sym_table_array_element] = sym_table_array_element, - [sym_pair] = sym_pair, - [sym__inline_pair] = sym__inline_pair, - [sym__key] = sym__key, - [sym_dotted_key] = sym_dotted_key, - [sym_quoted_key] = sym_quoted_key, - [sym__inline_value] = sym__inline_value, - [sym_string] = sym_string, - [sym__basic_string] = sym__basic_string, - [sym__multiline_basic_string] = sym__multiline_basic_string, - [sym__literal_string] = sym__literal_string, - [sym__multiline_literal_string] = sym__multiline_literal_string, - [sym_integer] = sym_integer, - [sym_float] = sym_float, - [sym_array] = sym_array, - [sym_inline_table] = sym_inline_table, - [aux_sym_document_repeat1] = aux_sym_document_repeat1, - [aux_sym_document_repeat2] = aux_sym_document_repeat2, - [aux_sym__basic_string_repeat1] = aux_sym__basic_string_repeat1, - [aux_sym__multiline_basic_string_repeat1] = aux_sym__multiline_basic_string_repeat1, - [aux_sym__multiline_literal_string_repeat1] = aux_sym__multiline_literal_string_repeat1, - [aux_sym_array_repeat1] = aux_sym_array_repeat1, - [aux_sym_array_repeat2] = aux_sym_array_repeat2, - [aux_sym_inline_table_repeat1] = aux_sym_inline_table_repeat1, -}; - -static const TSSymbolMetadata ts_symbol_metadata[] = { - [ts_builtin_sym_end] = { - .visible = false, - .named = true, - }, - [aux_sym_document_token1] = { - .visible = false, - .named = false, - }, - [sym_comment] = { - .visible = true, - .named = true, - }, - [anon_sym_LBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_LBRACK_LBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACK_RBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_EQ] = { - .visible = true, - .named = false, - }, - [anon_sym_DOT] = { - .visible = true, - .named = false, - }, - [sym_bare_key] = { - .visible = true, - .named = true, - }, - [anon_sym_DQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym__basic_string_token1] = { - .visible = false, - .named = false, - }, - [anon_sym_DQUOTE2] = { - .visible = true, - .named = false, - }, - [anon_sym_DQUOTE_DQUOTE_DQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym__multiline_basic_string_token1] = { - .visible = false, - .named = false, - }, - [sym_escape_sequence] = { - .visible = true, - .named = true, - }, - [sym__escape_line_ending] = { - .visible = true, - .named = true, - }, - [anon_sym_SQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym__literal_string_token1] = { - .visible = false, - .named = false, - }, - [anon_sym_SQUOTE2] = { - .visible = true, - .named = false, - }, - [anon_sym_SQUOTE_SQUOTE_SQUOTE] = { - .visible = true, - .named = false, - }, - [aux_sym_integer_token1] = { - .visible = false, - .named = false, - }, - [aux_sym_integer_token2] = { - .visible = false, - .named = false, - }, - [aux_sym_integer_token3] = { - .visible = false, - .named = false, - }, - [aux_sym_integer_token4] = { - .visible = false, - .named = false, - }, - [aux_sym_float_token1] = { - .visible = false, - .named = false, - }, - [aux_sym_float_token2] = { - .visible = false, - .named = false, - }, - [sym_boolean] = { - .visible = true, - .named = true, - }, - [sym_offset_date_time] = { - .visible = true, - .named = true, - }, - [sym_local_date_time] = { - .visible = true, - .named = true, - }, - [sym_local_date] = { - .visible = true, - .named = true, - }, - [sym_local_time] = { - .visible = true, - .named = true, - }, - [anon_sym_COMMA] = { - .visible = true, - .named = false, - }, - [anon_sym_LBRACE] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACE] = { - .visible = true, - .named = false, - }, - [sym__line_ending_or_eof] = { - .visible = false, - .named = true, - }, - [sym__multiline_basic_string_content] = { - .visible = false, - .named = true, - }, - [sym__multiline_basic_string_end] = { - .visible = false, - .named = true, - }, - [sym__multiline_literal_string_content] = { - .visible = false, - .named = true, - }, - [sym__multiline_literal_string_end] = { - .visible = false, - .named = true, - }, - [sym_document] = { - .visible = true, - .named = true, - }, - [sym_table] = { - .visible = true, - .named = true, - }, - [sym_table_array_element] = { - .visible = true, - .named = true, - }, - [sym_pair] = { - .visible = true, - .named = true, - }, - [sym__inline_pair] = { - .visible = false, - .named = true, - }, - [sym__key] = { - .visible = false, - .named = true, - }, - [sym_dotted_key] = { - .visible = true, - .named = true, - }, - [sym_quoted_key] = { - .visible = true, - .named = true, - }, - [sym__inline_value] = { - .visible = false, - .named = true, - }, - [sym_string] = { - .visible = true, - .named = true, - }, - [sym__basic_string] = { - .visible = false, - .named = true, - }, - [sym__multiline_basic_string] = { - .visible = false, - .named = true, - }, - [sym__literal_string] = { - .visible = false, - .named = true, - }, - [sym__multiline_literal_string] = { - .visible = false, - .named = true, - }, - [sym_integer] = { - .visible = true, - .named = true, - }, - [sym_float] = { - .visible = true, - .named = true, - }, - [sym_array] = { - .visible = true, - .named = true, - }, - [sym_inline_table] = { - .visible = true, - .named = true, - }, - [aux_sym_document_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_document_repeat2] = { - .visible = false, - .named = false, - }, - [aux_sym__basic_string_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym__multiline_basic_string_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym__multiline_literal_string_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_array_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_array_repeat2] = { - .visible = false, - .named = false, - }, - [aux_sym_inline_table_repeat1] = { - .visible = false, - .named = false, - }, -}; - -static TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { - [0] = {0}, - [1] = { - [1] = sym_pair, - }, -}; - -static uint16_t ts_non_terminal_alias_map[] = { - sym__inline_pair, 2, - sym__inline_pair, - sym_pair, - 0, -}; - -static bool ts_lex(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (eof) ADVANCE(77); - if (lookahead == '\n') ADVANCE(129); - if (lookahead == '\r') ADVANCE(1); - if (lookahead == '"') ADVANCE(127); - if (lookahead == '#') ADVANCE(79); - if (lookahead == '\'') ADVANCE(137); - if (lookahead == '+') ADVANCE(15); - if (lookahead == ',') ADVANCE(161); - if (lookahead == '-') ADVANCE(95); - if (lookahead == '.') ADVANCE(86); - if (lookahead == '0') ADVANCE(92); - if (lookahead == '1') ADVANCE(90); - if (lookahead == '2') ADVANCE(89); - if (lookahead == '=') ADVANCE(85); - if (lookahead == '[') ADVANCE(81); - if (lookahead == '\\') ADVANCE(5); - if (lookahead == ']') ADVANCE(82); - if (lookahead == 'f') ADVANCE(102); - if (lookahead == 'i') ADVANCE(108); - if (lookahead == 'n') ADVANCE(103); - if (lookahead == 't') ADVANCE(109); - if (lookahead == '{') ADVANCE(162); - if (lookahead == '}') ADVANCE(163); - if (lookahead == '\t' || - lookahead == ' ') SKIP(75) - if (('3' <= lookahead && lookahead <= '9')) ADVANCE(91); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 1: - if (lookahead == '\n') ADVANCE(129); - END_STATE(); - case 2: - if (lookahead == '\n') ADVANCE(129); - if (lookahead == '\r') ADVANCE(1); - if (lookahead == '"') ADVANCE(126); - if (lookahead == '#') ADVANCE(125); - if (lookahead == '\\') ADVANCE(5); - if (lookahead == '\t' || - lookahead == ' ') ADVANCE(124); - if (lookahead != 0 && - lookahead > 31 && - lookahead != 127) ADVANCE(125); - END_STATE(); - case 3: - if (lookahead == '\n') ADVANCE(129); - if (lookahead == '\r') ADVANCE(1); - if (lookahead == '#') ADVANCE(135); - if (lookahead == '\'') ADVANCE(136); - if (lookahead == '\t' || - lookahead == ' ') ADVANCE(134); - if (lookahead != 0 && - lookahead > 31 && - lookahead != 127) ADVANCE(135); - END_STATE(); - case 4: - if (lookahead == '\n') ADVANCE(131); - END_STATE(); - case 5: - if (lookahead == '\n') ADVANCE(131); - if (lookahead == '\r') ADVANCE(4); - if (lookahead == 'U') ADVANCE(74); - if (lookahead == 'u') ADVANCE(70); - if (lookahead == '"' || - lookahead == '\\' || - lookahead == 'b' || - lookahead == 'f' || - lookahead == 'n' || - lookahead == 'r' || - lookahead == 't') ADVANCE(130); - END_STATE(); - case 6: - if (lookahead == '\n') ADVANCE(78); - END_STATE(); - case 7: - if (lookahead == '\n') ADVANCE(78); - if (lookahead == '\r') ADVANCE(6); - if (lookahead == '"') ADVANCE(123); - if (lookahead == '#') ADVANCE(79); - if (lookahead == '\'') ADVANCE(133); - if (lookahead == ',') ADVANCE(161); - if (lookahead == '0') ADVANCE(144); - if (lookahead == '1') ADVANCE(142); - if (lookahead == '2') ADVANCE(141); - if (lookahead == '[') ADVANCE(80); - if (lookahead == ']') ADVANCE(82); - if (lookahead == 'f') ADVANCE(30); - if (lookahead == 'i') ADVANCE(35); - if (lookahead == 'n') ADVANCE(31); - if (lookahead == 't') ADVANCE(37); - if (lookahead == '{') ADVANCE(162); - if (lookahead == '\t' || - lookahead == ' ') SKIP(7) - if (('+' <= lookahead && lookahead <= '-')) ADVANCE(17); - if (('3' <= lookahead && lookahead <= '9')) ADVANCE(143); - END_STATE(); - case 8: - if (lookahead == '"') ADVANCE(128); - END_STATE(); - case 9: - if (lookahead == '#') ADVANCE(79); - if (lookahead == '\'') ADVANCE(136); - if (lookahead == '.') ADVANCE(86); - if (lookahead == ']') ADVANCE(29); - if (lookahead == '\t' || - lookahead == ' ') SKIP(10) - END_STATE(); - case 10: - if (lookahead == '#') ADVANCE(79); - if (lookahead == '.') ADVANCE(86); - if (lookahead == ']') ADVANCE(29); - if (lookahead == '\t' || - lookahead == ' ') SKIP(10) - END_STATE(); - case 11: - if (lookahead == '\'') ADVANCE(138); - END_STATE(); - case 12: - if (lookahead == '-') ADVANCE(18); - if (lookahead == ':') ADVANCE(46); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(13); - END_STATE(); - case 13: - if (lookahead == '-') ADVANCE(18); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(13); - END_STATE(); - case 14: - if (lookahead == '-') ADVANCE(20); - END_STATE(); - case 15: - if (lookahead == '0') ADVANCE(139); - if (lookahead == 'i') ADVANCE(35); - if (lookahead == 'n') ADVANCE(31); - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(147); - END_STATE(); - case 16: - if (lookahead == '0') ADVANCE(159); - END_STATE(); - case 17: - if (lookahead == '0') ADVANCE(146); - if (lookahead == 'i') ADVANCE(35); - if (lookahead == 'n') ADVANCE(31); - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(145); - END_STATE(); - case 18: - if (lookahead == '0') ADVANCE(50); - if (lookahead == '1') ADVANCE(43); - END_STATE(); - case 19: - if (lookahead == '0') ADVANCE(156); - END_STATE(); - case 20: - if (lookahead == '0') ADVANCE(51); - if (lookahead == '3') ADVANCE(42); - if (lookahead == '1' || - lookahead == '2') ADVANCE(59); - END_STATE(); - case 21: - if (lookahead == '2') ADVANCE(44); - if (lookahead == '0' || - lookahead == '1') ADVANCE(63); - END_STATE(); - case 22: - if (lookahead == '2') ADVANCE(45); - if (lookahead == '0' || - lookahead == '1') ADVANCE(64); - END_STATE(); - case 23: - if (lookahead == '6') ADVANCE(16); - if (('0' <= lookahead && lookahead <= '5')) ADVANCE(54); - END_STATE(); - case 24: - if (lookahead == '6') ADVANCE(19); - if (('0' <= lookahead && lookahead <= '5')) ADVANCE(60); - END_STATE(); - case 25: - if (lookahead == ':') ADVANCE(23); - END_STATE(); - case 26: - if (lookahead == ':') ADVANCE(47); - END_STATE(); - case 27: - if (lookahead == ':') ADVANCE(24); - END_STATE(); - case 28: - if (lookahead == ':') ADVANCE(48); - END_STATE(); - case 29: - if (lookahead == ']') ADVANCE(84); - END_STATE(); - case 30: - if (lookahead == 'a') ADVANCE(34); - END_STATE(); - case 31: - if (lookahead == 'a') ADVANCE(36); - END_STATE(); - case 32: - if (lookahead == 'e') ADVANCE(154); - END_STATE(); - case 33: - if (lookahead == 'f') ADVANCE(153); - END_STATE(); - case 34: - if (lookahead == 'l') ADVANCE(38); - END_STATE(); - case 35: - if (lookahead == 'n') ADVANCE(33); - END_STATE(); - case 36: - if (lookahead == 'n') ADVANCE(153); - END_STATE(); - case 37: - if (lookahead == 'r') ADVANCE(39); - END_STATE(); - case 38: - if (lookahead == 's') ADVANCE(32); - END_STATE(); - case 39: - if (lookahead == 'u') ADVANCE(32); - END_STATE(); - case 40: - if (lookahead == '+' || - lookahead == '-') ADVANCE(58); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(152); - END_STATE(); - case 41: - if (lookahead == '0' || - lookahead == '1') ADVANCE(150); - END_STATE(); - case 42: - if (lookahead == '0' || - lookahead == '1') ADVANCE(158); - END_STATE(); - case 43: - if (('0' <= lookahead && lookahead <= '2')) ADVANCE(14); - END_STATE(); - case 44: - if (('0' <= lookahead && lookahead <= '3')) ADVANCE(28); - END_STATE(); - case 45: - if (('0' <= lookahead && lookahead <= '3')) ADVANCE(26); - END_STATE(); - case 46: - if (('0' <= lookahead && lookahead <= '5')) ADVANCE(53); - END_STATE(); - case 47: - if (('0' <= lookahead && lookahead <= '5')) ADVANCE(61); - END_STATE(); - case 48: - if (('0' <= lookahead && lookahead <= '5')) ADVANCE(65); - END_STATE(); - case 49: - if (('0' <= lookahead && lookahead <= '7')) ADVANCE(149); - END_STATE(); - case 50: - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(14); - END_STATE(); - case 51: - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(158); - END_STATE(); - case 52: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(147); - END_STATE(); - case 53: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(25); - END_STATE(); - case 54: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(159); - END_STATE(); - case 55: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(160); - END_STATE(); - case 56: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(145); - END_STATE(); - case 57: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(151); - END_STATE(); - case 58: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(152); - END_STATE(); - case 59: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(158); - END_STATE(); - case 60: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(156); - END_STATE(); - case 61: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(155); - END_STATE(); - case 62: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(157); - END_STATE(); - case 63: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(28); - END_STATE(); - case 64: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(26); - END_STATE(); - case 65: - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(27); - END_STATE(); - case 66: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(130); - END_STATE(); - case 67: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(148); - END_STATE(); - case 68: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(66); - END_STATE(); - case 69: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(68); - END_STATE(); - case 70: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(69); - END_STATE(); - case 71: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(70); - END_STATE(); - case 72: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(71); - END_STATE(); - case 73: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(72); - END_STATE(); - case 74: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(73); - END_STATE(); - case 75: - if (eof) ADVANCE(77); - if (lookahead == '\n') ADVANCE(78); - if (lookahead == '\r') ADVANCE(6); - if (lookahead == '"') ADVANCE(123); - if (lookahead == '#') ADVANCE(79); - if (lookahead == '\'') ADVANCE(133); - if (lookahead == '+') ADVANCE(15); - if (lookahead == ',') ADVANCE(161); - if (lookahead == '-') ADVANCE(95); - if (lookahead == '.') ADVANCE(86); - if (lookahead == '0') ADVANCE(92); - if (lookahead == '1') ADVANCE(90); - if (lookahead == '2') ADVANCE(89); - if (lookahead == '=') ADVANCE(85); - if (lookahead == '[') ADVANCE(81); - if (lookahead == ']') ADVANCE(82); - if (lookahead == 'f') ADVANCE(102); - if (lookahead == 'i') ADVANCE(108); - if (lookahead == 'n') ADVANCE(103); - if (lookahead == 't') ADVANCE(109); - if (lookahead == '{') ADVANCE(162); - if (lookahead == '}') ADVANCE(163); - if (lookahead == '\t' || - lookahead == ' ') SKIP(75) - if (('3' <= lookahead && lookahead <= '9')) ADVANCE(91); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 76: - if (eof) ADVANCE(77); - if (lookahead == '\n') ADVANCE(78); - if (lookahead == '\r') ADVANCE(6); - if (lookahead == '"') ADVANCE(122); - if (lookahead == '#') ADVANCE(79); - if (lookahead == '\'') ADVANCE(132); - if (lookahead == ',') ADVANCE(161); - if (lookahead == '.') ADVANCE(86); - if (lookahead == '=') ADVANCE(85); - if (lookahead == '[') ADVANCE(81); - if (lookahead == ']') ADVANCE(82); - if (lookahead == '}') ADVANCE(163); - if (lookahead == '\t' || - lookahead == ' ') SKIP(76) - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 77: - ACCEPT_TOKEN(ts_builtin_sym_end); - END_STATE(); - case 78: - ACCEPT_TOKEN(aux_sym_document_token1); - END_STATE(); - case 79: - ACCEPT_TOKEN(sym_comment); - if (lookahead != 0 && - lookahead > 8 && - (lookahead < '\n' || 31 < lookahead) && - lookahead != 127) ADVANCE(79); - END_STATE(); - case 80: - ACCEPT_TOKEN(anon_sym_LBRACK); - END_STATE(); - case 81: - ACCEPT_TOKEN(anon_sym_LBRACK); - if (lookahead == '[') ADVANCE(83); - END_STATE(); - case 82: - ACCEPT_TOKEN(anon_sym_RBRACK); - END_STATE(); - case 83: - ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK); - END_STATE(); - case 84: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); - END_STATE(); - case 85: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - case 86: - ACCEPT_TOKEN(anon_sym_DOT); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == ':') ADVANCE(46); - if (lookahead == '_') ADVANCE(119); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(91); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 88: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == ':') ADVANCE(46); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 89: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == '_') ADVANCE(119); - if (('0' <= lookahead && lookahead <= '3')) ADVANCE(87); - if (('4' <= lookahead && lookahead <= '9')) ADVANCE(91); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 90: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == '_') ADVANCE(119); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(87); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 91: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == '_') ADVANCE(119); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(91); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 92: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (lookahead == 'b') ADVANCE(113); - if (lookahead == 'o') ADVANCE(115); - if (lookahead == 'x') ADVANCE(120); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(88); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 93: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(96); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(93); - if (('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 94: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-') ADVANCE(97); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 95: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '0') ADVANCE(121); - if (lookahead == 'i') ADVANCE(108); - if (lookahead == 'n') ADVANCE(103); - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(101); - if (lookahead == '-' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 96: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '0') ADVANCE(117); - if (lookahead == '1') ADVANCE(114); - if (lookahead == '-' || - ('2' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 97: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '0') ADVANCE(116); - if (lookahead == '3') ADVANCE(112); - if (lookahead == '1' || - lookahead == '2') ADVANCE(118); - if (lookahead == '-' || - ('4' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 98: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '_') ADVANCE(113); - if (lookahead == '0' || - lookahead == '1') ADVANCE(98); - if (lookahead == '-' || - ('2' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 99: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '_') ADVANCE(115); - if (('0' <= lookahead && lookahead <= '7')) ADVANCE(99); - if (lookahead == '-' || - lookahead == '8' || - lookahead == '9' || - ('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 100: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '_') ADVANCE(120); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); - if (lookahead == '-' || - ('G' <= lookahead && lookahead <= 'Z') || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 101: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '_') ADVANCE(119); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(101); - if (lookahead == '-' || - ('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 102: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'a') ADVANCE(106); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('b' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 103: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'a') ADVANCE(107); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('b' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 104: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'e') ADVANCE(121); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 105: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'f') ADVANCE(121); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 106: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'l') ADVANCE(110); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 107: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'n') ADVANCE(121); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 108: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'n') ADVANCE(105); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 109: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'r') ADVANCE(111); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 110: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 's') ADVANCE(104); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 111: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == 'u') ADVANCE(104); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 112: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '0' || - lookahead == '1') ADVANCE(121); - if (lookahead == '-' || - ('2' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 113: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '0' || - lookahead == '1') ADVANCE(98); - if (lookahead == '-' || - ('2' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 114: - ACCEPT_TOKEN(sym_bare_key); - if (('0' <= lookahead && lookahead <= '2')) ADVANCE(94); - if (lookahead == '-' || - ('3' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 115: - ACCEPT_TOKEN(sym_bare_key); - if (('0' <= lookahead && lookahead <= '7')) ADVANCE(99); - if (lookahead == '-' || - lookahead == '8' || - lookahead == '9' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 116: - ACCEPT_TOKEN(sym_bare_key); - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(121); - if (lookahead == '-' || - lookahead == '0' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 117: - ACCEPT_TOKEN(sym_bare_key); - if (('1' <= lookahead && lookahead <= '9')) ADVANCE(94); - if (lookahead == '-' || - lookahead == '0' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 118: - ACCEPT_TOKEN(sym_bare_key); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(121); - if (lookahead == '-' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 119: - ACCEPT_TOKEN(sym_bare_key); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(101); - if (lookahead == '-' || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 120: - ACCEPT_TOKEN(sym_bare_key); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(100); - if (lookahead == '-' || - ('G' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('g' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 121: - ACCEPT_TOKEN(sym_bare_key); - if (lookahead == '-' || - ('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'Z') || - lookahead == '_' || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(121); - END_STATE(); - case 122: - ACCEPT_TOKEN(anon_sym_DQUOTE); - END_STATE(); - case 123: - ACCEPT_TOKEN(anon_sym_DQUOTE); - if (lookahead == '"') ADVANCE(8); - END_STATE(); - case 124: - ACCEPT_TOKEN(aux_sym__basic_string_token1); - if (lookahead == '#') ADVANCE(125); - if (lookahead == '\t' || - lookahead == ' ') ADVANCE(124); - if (lookahead != 0 && - lookahead > 31 && - lookahead != '"' && - lookahead != '\\' && - lookahead != 127) ADVANCE(125); - END_STATE(); - case 125: - ACCEPT_TOKEN(aux_sym__basic_string_token1); - if (lookahead != 0 && - lookahead > 8 && - (lookahead < '\n' || 31 < lookahead) && - lookahead != '"' && - lookahead != '\\' && - lookahead != 127) ADVANCE(125); - END_STATE(); - case 126: - ACCEPT_TOKEN(anon_sym_DQUOTE2); - END_STATE(); - case 127: - ACCEPT_TOKEN(anon_sym_DQUOTE2); - if (lookahead == '"') ADVANCE(8); - END_STATE(); - case 128: - ACCEPT_TOKEN(anon_sym_DQUOTE_DQUOTE_DQUOTE); - END_STATE(); - case 129: - ACCEPT_TOKEN(aux_sym__multiline_basic_string_token1); - END_STATE(); - case 130: - ACCEPT_TOKEN(sym_escape_sequence); - END_STATE(); - case 131: - ACCEPT_TOKEN(sym__escape_line_ending); - END_STATE(); - case 132: - ACCEPT_TOKEN(anon_sym_SQUOTE); - END_STATE(); - case 133: - ACCEPT_TOKEN(anon_sym_SQUOTE); - if (lookahead == '\'') ADVANCE(11); - END_STATE(); - case 134: - ACCEPT_TOKEN(aux_sym__literal_string_token1); - if (lookahead == '#') ADVANCE(135); - if (lookahead == '\t' || - lookahead == ' ') ADVANCE(134); - if (lookahead != 0 && - lookahead > 31 && - lookahead != '\'' && - lookahead != 127) ADVANCE(135); - END_STATE(); - case 135: - ACCEPT_TOKEN(aux_sym__literal_string_token1); - if (lookahead != 0 && - lookahead > 8 && - (lookahead < '\n' || 31 < lookahead) && - lookahead != '\'' && - lookahead != 127) ADVANCE(135); - END_STATE(); - case 136: - ACCEPT_TOKEN(anon_sym_SQUOTE2); - END_STATE(); - case 137: - ACCEPT_TOKEN(anon_sym_SQUOTE2); - if (lookahead == '\'') ADVANCE(11); - END_STATE(); - case 138: - ACCEPT_TOKEN(anon_sym_SQUOTE_SQUOTE_SQUOTE); - END_STATE(); - case 139: - ACCEPT_TOKEN(aux_sym_integer_token1); - END_STATE(); - case 140: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '.') ADVANCE(57); - if (lookahead == ':') ADVANCE(46); - if (lookahead == '_') ADVANCE(56); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(143); - END_STATE(); - case 141: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '.') ADVANCE(57); - if (lookahead == '_') ADVANCE(56); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '3')) ADVANCE(140); - if (('4' <= lookahead && lookahead <= '9')) ADVANCE(143); - END_STATE(); - case 142: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '.') ADVANCE(57); - if (lookahead == '_') ADVANCE(56); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(140); - END_STATE(); - case 143: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '.') ADVANCE(57); - if (lookahead == '_') ADVANCE(56); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(143); - END_STATE(); - case 144: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '-') ADVANCE(18); - if (lookahead == '.') ADVANCE(57); - if (lookahead == 'b') ADVANCE(41); - if (lookahead == 'o') ADVANCE(49); - if (lookahead == 'x') ADVANCE(67); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(12); - END_STATE(); - case 145: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '.') ADVANCE(57); - if (lookahead == '_') ADVANCE(56); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(145); - END_STATE(); - case 146: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '.') ADVANCE(57); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - END_STATE(); - case 147: - ACCEPT_TOKEN(aux_sym_integer_token1); - if (lookahead == '_') ADVANCE(52); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(147); - END_STATE(); - case 148: - ACCEPT_TOKEN(aux_sym_integer_token2); - if (lookahead == '_') ADVANCE(67); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(148); - END_STATE(); - case 149: - ACCEPT_TOKEN(aux_sym_integer_token3); - if (lookahead == '_') ADVANCE(49); - if (('0' <= lookahead && lookahead <= '7')) ADVANCE(149); - END_STATE(); - case 150: - ACCEPT_TOKEN(aux_sym_integer_token4); - if (lookahead == '_') ADVANCE(41); - if (lookahead == '0' || - lookahead == '1') ADVANCE(150); - END_STATE(); - case 151: - ACCEPT_TOKEN(aux_sym_float_token1); - if (lookahead == '_') ADVANCE(57); - if (lookahead == 'E' || - lookahead == 'e') ADVANCE(40); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(151); - END_STATE(); - case 152: - ACCEPT_TOKEN(aux_sym_float_token1); - if (lookahead == '_') ADVANCE(58); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(152); - END_STATE(); - case 153: - ACCEPT_TOKEN(aux_sym_float_token2); - END_STATE(); - case 154: - ACCEPT_TOKEN(sym_boolean); - END_STATE(); - case 155: - ACCEPT_TOKEN(sym_offset_date_time); - END_STATE(); - case 156: - ACCEPT_TOKEN(sym_local_date_time); - if (lookahead == '.') ADVANCE(62); - if (lookahead == '+' || - lookahead == '-') ADVANCE(22); - if (lookahead == 'Z' || - lookahead == 'z') ADVANCE(155); - END_STATE(); - case 157: - ACCEPT_TOKEN(sym_local_date_time); - if (lookahead == '+' || - lookahead == '-') ADVANCE(22); - if (lookahead == 'Z' || - lookahead == 'z') ADVANCE(155); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(157); - END_STATE(); - case 158: - ACCEPT_TOKEN(sym_local_date); - if (lookahead == ' ' || - lookahead == 'T' || - lookahead == 't') ADVANCE(21); - END_STATE(); - case 159: - ACCEPT_TOKEN(sym_local_time); - if (lookahead == '.') ADVANCE(55); - END_STATE(); - case 160: - ACCEPT_TOKEN(sym_local_time); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(160); - END_STATE(); - case 161: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 162: - ACCEPT_TOKEN(anon_sym_LBRACE); - END_STATE(); - case 163: - ACCEPT_TOKEN(anon_sym_RBRACE); - END_STATE(); - default: - return false; - } -} - -static TSLexMode ts_lex_modes[STATE_COUNT] = { - [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 76}, - [2] = {.lex_state = 7}, - [3] = {.lex_state = 7}, - [4] = {.lex_state = 7}, - [5] = {.lex_state = 7}, - [6] = {.lex_state = 7}, - [7] = {.lex_state = 7}, - [8] = {.lex_state = 7}, - [9] = {.lex_state = 7}, - [10] = {.lex_state = 7}, - [11] = {.lex_state = 7}, - [12] = {.lex_state = 7}, - [13] = {.lex_state = 7}, - [14] = {.lex_state = 7}, - [15] = {.lex_state = 7}, - [16] = {.lex_state = 7}, - [17] = {.lex_state = 7}, - [18] = {.lex_state = 7}, - [19] = {.lex_state = 7}, - [20] = {.lex_state = 7}, - [21] = {.lex_state = 7}, - [22] = {.lex_state = 7}, - [23] = {.lex_state = 7}, - [24] = {.lex_state = 7}, - [25] = {.lex_state = 7}, - [26] = {.lex_state = 7}, - [27] = {.lex_state = 76}, - [28] = {.lex_state = 76}, - [29] = {.lex_state = 76}, - [30] = {.lex_state = 76}, - [31] = {.lex_state = 76}, - [32] = {.lex_state = 76}, - [33] = {.lex_state = 76}, - [34] = {.lex_state = 76}, - [35] = {.lex_state = 76}, - [36] = {.lex_state = 76}, - [37] = {.lex_state = 76}, - [38] = {.lex_state = 2, .external_lex_state = 2}, - [39] = {.lex_state = 2, .external_lex_state = 2}, - [40] = {.lex_state = 2, .external_lex_state = 2}, - [41] = {.lex_state = 2, .external_lex_state = 2}, - [42] = {.lex_state = 2, .external_lex_state = 2}, - [43] = {.lex_state = 76}, - [44] = {.lex_state = 76}, - [45] = {.lex_state = 76}, - [46] = {.lex_state = 76}, - [47] = {.lex_state = 0}, - [48] = {.lex_state = 0}, - [49] = {.lex_state = 76}, - [50] = {.lex_state = 76}, - [51] = {.lex_state = 76}, - [52] = {.lex_state = 0}, - [53] = {.lex_state = 76}, - [54] = {.lex_state = 76}, - [55] = {.lex_state = 76}, - [56] = {.lex_state = 3, .external_lex_state = 3}, - [57] = {.lex_state = 76}, - [58] = {.lex_state = 76}, - [59] = {.lex_state = 3, .external_lex_state = 3}, - [60] = {.lex_state = 3, .external_lex_state = 3}, - [61] = {.lex_state = 76}, - [62] = {.lex_state = 3, .external_lex_state = 3}, - [63] = {.lex_state = 3, .external_lex_state = 3}, - [64] = {.lex_state = 76}, - [65] = {.lex_state = 76}, - [66] = {.lex_state = 76}, - [67] = {.lex_state = 76}, - [68] = {.lex_state = 76}, - [69] = {.lex_state = 2}, - [70] = {.lex_state = 2}, - [71] = {.lex_state = 2}, - [72] = {.lex_state = 2}, - [73] = {.lex_state = 2}, - [74] = {.lex_state = 76}, - [75] = {.lex_state = 2}, - [76] = {.lex_state = 2}, - [77] = {.lex_state = 76}, - [78] = {.lex_state = 76}, - [79] = {.lex_state = 76}, - [80] = {.lex_state = 76}, - [81] = {.lex_state = 76}, - [82] = {.lex_state = 76}, - [83] = {.lex_state = 76}, - [84] = {.lex_state = 76}, - [85] = {.lex_state = 76}, - [86] = {.lex_state = 76}, - [87] = {.lex_state = 76}, - [88] = {.lex_state = 76}, - [89] = {.lex_state = 76}, - [90] = {.lex_state = 76}, - [91] = {.lex_state = 76}, - [92] = {.lex_state = 76}, - [93] = {.lex_state = 76}, - [94] = {.lex_state = 0}, - [95] = {.lex_state = 0}, - [96] = {.lex_state = 0}, - [97] = {.lex_state = 0}, - [98] = {.lex_state = 0}, - [99] = {.lex_state = 0}, - [100] = {.lex_state = 0}, - [101] = {.lex_state = 0}, - [102] = {.lex_state = 0}, - [103] = {.lex_state = 0}, - [104] = {.lex_state = 0}, - [105] = {.lex_state = 0}, - [106] = {.lex_state = 0}, - [107] = {.lex_state = 0}, - [108] = {.lex_state = 9}, - [109] = {.lex_state = 0}, - [110] = {.lex_state = 0}, - [111] = {.lex_state = 9}, - [112] = {.lex_state = 0}, - [113] = {.lex_state = 3}, - [114] = {.lex_state = 0}, - [115] = {.lex_state = 9}, - [116] = {.lex_state = 9}, - [117] = {.lex_state = 9}, - [118] = {.lex_state = 9}, - [119] = {.lex_state = 3}, - [120] = {.lex_state = 3}, - [121] = {.lex_state = 0}, - [122] = {.lex_state = 9}, - [123] = {.lex_state = 0, .external_lex_state = 4}, - [124] = {.lex_state = 0, .external_lex_state = 4}, - [125] = {.lex_state = 0, .external_lex_state = 4}, - [126] = {.lex_state = 0, .external_lex_state = 4}, - [127] = {.lex_state = 0, .external_lex_state = 4}, - [128] = {.lex_state = 0, .external_lex_state = 4}, - [129] = {.lex_state = 0, .external_lex_state = 4}, - [130] = {.lex_state = 0, .external_lex_state = 4}, - [131] = {.lex_state = 0, .external_lex_state = 4}, - [132] = {.lex_state = 0, .external_lex_state = 4}, - [133] = {.lex_state = 0, .external_lex_state = 4}, - [134] = {.lex_state = 0, .external_lex_state = 4}, - [135] = {.lex_state = 9}, - [136] = {.lex_state = 0, .external_lex_state = 4}, - [137] = {.lex_state = 0, .external_lex_state = 4}, - [138] = {.lex_state = 0, .external_lex_state = 4}, - [139] = {.lex_state = 0, .external_lex_state = 4}, - [140] = {.lex_state = 0, .external_lex_state = 4}, - [141] = {.lex_state = 0, .external_lex_state = 4}, - [142] = {.lex_state = 0, .external_lex_state = 4}, - [143] = {.lex_state = 0, .external_lex_state = 4}, - [144] = {.lex_state = 0, .external_lex_state = 4}, - [145] = {.lex_state = 0}, - [146] = {.lex_state = 9}, - [147] = {.lex_state = 0, .external_lex_state = 4}, - [148] = {.lex_state = 0, .external_lex_state = 4}, - [149] = {.lex_state = 0, .external_lex_state = 4}, - [150] = {.lex_state = 9}, - [151] = {.lex_state = 0, .external_lex_state = 4}, -}; - -enum { - ts_external_token__line_ending_or_eof = 0, - ts_external_token__multiline_basic_string_content = 1, - ts_external_token__multiline_basic_string_end = 2, - ts_external_token__multiline_literal_string_content = 3, - ts_external_token__multiline_literal_string_end = 4, -}; - -static TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { - [ts_external_token__line_ending_or_eof] = sym__line_ending_or_eof, - [ts_external_token__multiline_basic_string_content] = sym__multiline_basic_string_content, - [ts_external_token__multiline_basic_string_end] = sym__multiline_basic_string_end, - [ts_external_token__multiline_literal_string_content] = sym__multiline_literal_string_content, - [ts_external_token__multiline_literal_string_end] = sym__multiline_literal_string_end, -}; - -static bool ts_external_scanner_states[5][EXTERNAL_TOKEN_COUNT] = { - [1] = { - [ts_external_token__line_ending_or_eof] = true, - [ts_external_token__multiline_basic_string_content] = true, - [ts_external_token__multiline_basic_string_end] = true, - [ts_external_token__multiline_literal_string_content] = true, - [ts_external_token__multiline_literal_string_end] = true, - }, - [2] = { - [ts_external_token__multiline_basic_string_content] = true, - [ts_external_token__multiline_basic_string_end] = true, - }, - [3] = { - [ts_external_token__multiline_literal_string_content] = true, - [ts_external_token__multiline_literal_string_end] = true, - }, - [4] = { - [ts_external_token__line_ending_or_eof] = true, - }, -}; - -static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { - [0] = { - [ts_builtin_sym_end] = ACTIONS(1), - [aux_sym_document_token1] = ACTIONS(1), - [sym_comment] = ACTIONS(3), - [anon_sym_LBRACK] = ACTIONS(1), - [anon_sym_RBRACK] = ACTIONS(1), - [anon_sym_LBRACK_LBRACK] = ACTIONS(1), - [anon_sym_EQ] = ACTIONS(1), - [anon_sym_DOT] = ACTIONS(1), - [sym_bare_key] = ACTIONS(1), - [anon_sym_DQUOTE] = ACTIONS(1), - [anon_sym_DQUOTE2] = ACTIONS(1), - [anon_sym_DQUOTE_DQUOTE_DQUOTE] = ACTIONS(1), - [aux_sym__multiline_basic_string_token1] = ACTIONS(1), - [sym_escape_sequence] = ACTIONS(1), - [sym__escape_line_ending] = ACTIONS(1), - [anon_sym_SQUOTE] = ACTIONS(1), - [anon_sym_SQUOTE2] = ACTIONS(1), - [anon_sym_SQUOTE_SQUOTE_SQUOTE] = ACTIONS(1), - [aux_sym_integer_token1] = ACTIONS(1), - [aux_sym_integer_token2] = ACTIONS(1), - [aux_sym_integer_token3] = ACTIONS(1), - [aux_sym_integer_token4] = ACTIONS(1), - [aux_sym_float_token2] = ACTIONS(1), - [sym_boolean] = ACTIONS(1), - [sym_local_date] = ACTIONS(1), - [sym_local_time] = ACTIONS(1), - [anon_sym_COMMA] = ACTIONS(1), - [anon_sym_LBRACE] = ACTIONS(1), - [anon_sym_RBRACE] = ACTIONS(1), - [sym__line_ending_or_eof] = ACTIONS(1), - [sym__multiline_basic_string_content] = ACTIONS(1), - [sym__multiline_basic_string_end] = ACTIONS(1), - [sym__multiline_literal_string_content] = ACTIONS(1), - [sym__multiline_literal_string_end] = ACTIONS(1), - }, - [1] = { - [sym_document] = STATE(145), - [sym_table] = STATE(52), - [sym_table_array_element] = STATE(52), - [sym_pair] = STATE(27), - [sym__inline_pair] = STATE(144), - [sym__key] = STATE(121), - [sym_dotted_key] = STATE(121), - [sym_quoted_key] = STATE(121), - [sym__basic_string] = STATE(100), - [sym__literal_string] = STATE(100), - [aux_sym_document_repeat1] = STATE(27), - [aux_sym_document_repeat2] = STATE(52), - [ts_builtin_sym_end] = ACTIONS(5), - [aux_sym_document_token1] = ACTIONS(7), - [sym_comment] = ACTIONS(3), - [anon_sym_LBRACK] = ACTIONS(9), - [anon_sym_LBRACK_LBRACK] = ACTIONS(11), - [sym_bare_key] = ACTIONS(13), - [anon_sym_DQUOTE] = ACTIONS(15), - [anon_sym_SQUOTE] = ACTIONS(17), - }, -}; - -static uint16_t ts_small_parse_table[] = { - [0] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(23), 1, - anon_sym_RBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(41), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(39), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(55), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [66] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(45), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [132] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(51), 1, - aux_sym_document_token1, - ACTIONS(53), 1, - anon_sym_RBRACK, - STATE(15), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [198] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(59), 1, - aux_sym_document_token1, - ACTIONS(61), 1, - anon_sym_RBRACK, - STATE(14), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [264] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(61), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [330] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(63), 1, - aux_sym_document_token1, - ACTIONS(65), 1, - anon_sym_RBRACK, - STATE(6), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [396] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(65), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [462] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(67), 1, - aux_sym_document_token1, - ACTIONS(69), 1, - anon_sym_RBRACK, - STATE(10), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [528] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(53), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [594] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(71), 1, - aux_sym_document_token1, - ACTIONS(73), 1, - anon_sym_RBRACK, - STATE(18), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [660] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(75), 1, - aux_sym_document_token1, - ACTIONS(77), 1, - anon_sym_RBRACK, - STATE(8), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [726] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(77), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [792] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(79), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [858] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(81), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [924] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(83), 1, - aux_sym_document_token1, - ACTIONS(85), 1, - anon_sym_RBRACK, - STATE(2), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(89), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(87), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(54), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [990] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(81), 1, - anon_sym_RBRACK, - ACTIONS(91), 1, - aux_sym_document_token1, - STATE(3), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1056] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(69), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1122] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(93), 1, - aux_sym_document_token1, - ACTIONS(95), 1, - anon_sym_RBRACK, - STATE(13), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1188] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(97), 1, - aux_sym_document_token1, - ACTIONS(99), 1, - anon_sym_RBRACK, - STATE(21), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(103), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(101), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(61), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1254] = 17, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(105), 1, - anon_sym_RBRACK, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(109), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(107), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(53), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1320] = 16, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(111), 1, - aux_sym_document_token1, - STATE(23), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(57), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(55), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(68), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1383] = 16, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(49), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(47), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(66), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1446] = 14, - ACTIONS(3), 1, - sym_comment, - ACTIONS(21), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(29), 1, - anon_sym_SQUOTE, - ACTIONS(31), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(33), 1, - aux_sym_integer_token1, - ACTIONS(43), 1, - anon_sym_LBRACE, - ACTIONS(37), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(115), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(35), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(113), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(86), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(110), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1503] = 14, - ACTIONS(3), 1, - sym_comment, - ACTIONS(117), 1, - anon_sym_LBRACK, - ACTIONS(119), 1, - anon_sym_DQUOTE, - ACTIONS(121), 1, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - ACTIONS(123), 1, - anon_sym_SQUOTE, - ACTIONS(125), 1, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - ACTIONS(127), 1, - aux_sym_integer_token1, - ACTIONS(137), 1, - anon_sym_LBRACE, - ACTIONS(131), 2, - aux_sym_float_token1, - aux_sym_float_token2, - ACTIONS(135), 2, - sym_local_date_time, - sym_local_date, - ACTIONS(129), 3, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - ACTIONS(133), 3, - sym_boolean, - sym_offset_date_time, - sym_local_time, - STATE(126), 4, - sym__basic_string, - sym__multiline_basic_string, - sym__literal_string, - sym__multiline_literal_string, - STATE(127), 6, - sym__inline_value, - sym_string, - sym_integer, - sym_float, - sym_array, - sym_inline_table, - [1560] = 5, - ACTIONS(3), 1, - sym_comment, - ACTIONS(139), 1, - aux_sym_document_token1, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(144), 5, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - aux_sym_integer_token1, - sym_local_date_time, - sym_local_date, - ACTIONS(142), 14, - anon_sym_LBRACK, - anon_sym_RBRACK, - anon_sym_DQUOTE_DQUOTE_DQUOTE, - anon_sym_SQUOTE_SQUOTE_SQUOTE, - aux_sym_integer_token2, - aux_sym_integer_token3, - aux_sym_integer_token4, - aux_sym_float_token1, - aux_sym_float_token2, - sym_boolean, - sym_offset_date_time, - sym_local_time, - anon_sym_COMMA, - anon_sym_LBRACE, - [1593] = 13, - ACTIONS(3), 1, - sym_comment, - ACTIONS(9), 1, - anon_sym_LBRACK, - ACTIONS(11), 1, - anon_sym_LBRACK_LBRACK, - ACTIONS(13), 1, - sym_bare_key, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(146), 1, - ts_builtin_sym_end, - ACTIONS(148), 1, - aux_sym_document_token1, - STATE(144), 1, - sym__inline_pair, - STATE(32), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(48), 3, - sym_table, - sym_table_array_element, - aux_sym_document_repeat2, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1639] = 11, - ACTIONS(3), 1, - sym_comment, - ACTIONS(13), 1, - sym_bare_key, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(152), 1, - aux_sym_document_token1, - ACTIONS(154), 1, - anon_sym_LBRACK, - STATE(144), 1, - sym__inline_pair, - ACTIONS(150), 2, - ts_builtin_sym_end, - anon_sym_LBRACK_LBRACK, - STATE(31), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1678] = 11, - ACTIONS(3), 1, - sym_comment, - ACTIONS(13), 1, - sym_bare_key, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(158), 1, - aux_sym_document_token1, - ACTIONS(160), 1, - anon_sym_LBRACK, - STATE(144), 1, - sym__inline_pair, - ACTIONS(156), 2, - ts_builtin_sym_end, - anon_sym_LBRACK_LBRACK, - STATE(30), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1717] = 11, - ACTIONS(3), 1, - sym_comment, - ACTIONS(13), 1, - sym_bare_key, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(148), 1, - aux_sym_document_token1, - ACTIONS(164), 1, - anon_sym_LBRACK, - STATE(144), 1, - sym__inline_pair, - ACTIONS(162), 2, - ts_builtin_sym_end, - anon_sym_LBRACK_LBRACK, - STATE(32), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1756] = 11, - ACTIONS(3), 1, - sym_comment, - ACTIONS(13), 1, - sym_bare_key, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(148), 1, - aux_sym_document_token1, - ACTIONS(168), 1, - anon_sym_LBRACK, - STATE(144), 1, - sym__inline_pair, - ACTIONS(166), 2, - ts_builtin_sym_end, - anon_sym_LBRACK_LBRACK, - STATE(32), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1795] = 11, - ACTIONS(3), 1, - sym_comment, - ACTIONS(172), 1, - aux_sym_document_token1, - ACTIONS(175), 1, - anon_sym_LBRACK, - ACTIONS(177), 1, - sym_bare_key, - ACTIONS(180), 1, - anon_sym_DQUOTE, - ACTIONS(183), 1, - anon_sym_SQUOTE, - STATE(144), 1, - sym__inline_pair, - ACTIONS(170), 2, - ts_builtin_sym_end, - anon_sym_LBRACK_LBRACK, - STATE(32), 2, - sym_pair, - aux_sym_document_repeat1, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(121), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1834] = 8, - ACTIONS(3), 1, - sym_comment, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(186), 1, - sym_bare_key, - ACTIONS(188), 1, - anon_sym_RBRACE, - STATE(94), 1, - sym__inline_pair, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(112), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1862] = 8, - ACTIONS(3), 1, - sym_comment, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(186), 1, - sym_bare_key, - ACTIONS(190), 1, - anon_sym_RBRACE, - STATE(99), 1, - sym__inline_pair, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(112), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1890] = 7, - ACTIONS(3), 1, - sym_comment, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(186), 1, - sym_bare_key, - STATE(114), 1, - sym__inline_pair, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(112), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1915] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(192), 1, - sym_bare_key, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(109), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1937] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(194), 1, - sym_bare_key, - ACTIONS(196), 1, - anon_sym_DQUOTE, - ACTIONS(198), 1, - anon_sym_SQUOTE, - STATE(122), 2, - sym__basic_string, - sym__literal_string, - STATE(108), 3, - sym__key, - sym_dotted_key, - sym_quoted_key, - [1959] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(204), 1, - sym__multiline_basic_string_end, - STATE(39), 1, - aux_sym__multiline_basic_string_repeat1, - ACTIONS(202), 5, - sym__multiline_basic_string_content, - aux_sym__basic_string_token1, - aux_sym__multiline_basic_string_token1, - sym_escape_sequence, - sym__escape_line_ending, - [1976] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(209), 1, - sym__multiline_basic_string_end, - STATE(39), 1, - aux_sym__multiline_basic_string_repeat1, - ACTIONS(206), 5, - sym__multiline_basic_string_content, - aux_sym__basic_string_token1, - aux_sym__multiline_basic_string_token1, - sym_escape_sequence, - sym__escape_line_ending, - [1993] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(213), 1, - sym__multiline_basic_string_end, - STATE(38), 1, - aux_sym__multiline_basic_string_repeat1, - ACTIONS(211), 5, - sym__multiline_basic_string_content, - aux_sym__basic_string_token1, - aux_sym__multiline_basic_string_token1, - sym_escape_sequence, - sym__escape_line_ending, - [2010] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(217), 1, - sym__multiline_basic_string_end, - STATE(42), 1, - aux_sym__multiline_basic_string_repeat1, - ACTIONS(215), 5, - sym__multiline_basic_string_content, - aux_sym__basic_string_token1, - aux_sym__multiline_basic_string_token1, - sym_escape_sequence, - sym__escape_line_ending, - [2027] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(219), 1, - sym__multiline_basic_string_end, - STATE(39), 1, - aux_sym__multiline_basic_string_repeat1, - ACTIONS(202), 5, - sym__multiline_basic_string_content, - aux_sym__basic_string_token1, - aux_sym__multiline_basic_string_token1, - sym_escape_sequence, - sym__escape_line_ending, - [2044] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(196), 1, - anon_sym_DQUOTE, - ACTIONS(198), 1, - anon_sym_SQUOTE, - ACTIONS(221), 1, - sym_bare_key, - STATE(111), 2, - sym__key, - sym_quoted_key, - STATE(122), 2, - sym__basic_string, - sym__literal_string, - [2065] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(15), 1, - anon_sym_DQUOTE, - ACTIONS(17), 1, - anon_sym_SQUOTE, - ACTIONS(223), 1, - sym_bare_key, - STATE(100), 2, - sym__basic_string, - sym__literal_string, - STATE(105), 2, - sym__key, - sym_quoted_key, - [2086] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(227), 1, - anon_sym_LBRACK, - ACTIONS(225), 6, - ts_builtin_sym_end, - aux_sym_document_token1, - anon_sym_LBRACK_LBRACK, - sym_bare_key, - anon_sym_DQUOTE, - anon_sym_SQUOTE, - [2101] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(229), 6, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - anon_sym_COMMA, - anon_sym_RBRACE, - [2113] = 5, - ACTIONS(3), 1, - sym_comment, - ACTIONS(231), 1, - ts_builtin_sym_end, - ACTIONS(233), 1, - anon_sym_LBRACK, - ACTIONS(236), 1, - anon_sym_LBRACK_LBRACK, - STATE(47), 3, - sym_table, - sym_table_array_element, - aux_sym_document_repeat2, - [2131] = 5, - ACTIONS(3), 1, - sym_comment, - ACTIONS(9), 1, - anon_sym_LBRACK, - ACTIONS(11), 1, - anon_sym_LBRACK_LBRACK, - ACTIONS(239), 1, - ts_builtin_sym_end, - STATE(47), 3, - sym_table, - sym_table_array_element, - aux_sym_document_repeat2, - [2149] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(241), 6, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - anon_sym_COMMA, - anon_sym_RBRACE, - [2161] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(243), 6, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - anon_sym_COMMA, - anon_sym_RBRACE, - [2173] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(245), 6, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - anon_sym_COMMA, - anon_sym_RBRACE, - [2185] = 5, - ACTIONS(3), 1, - sym_comment, - ACTIONS(9), 1, - anon_sym_LBRACK, - ACTIONS(11), 1, - anon_sym_LBRACK_LBRACK, - ACTIONS(146), 1, - ts_builtin_sym_end, - STATE(47), 3, - sym_table, - sym_table_array_element, - aux_sym_document_repeat2, - [2203] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(95), 1, - anon_sym_RBRACK, - ACTIONS(247), 1, - aux_sym_document_token1, - ACTIONS(249), 1, - anon_sym_COMMA, - STATE(58), 1, - aux_sym_array_repeat1, - STATE(101), 1, - aux_sym_array_repeat2, - [2222] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(23), 1, - anon_sym_RBRACK, - ACTIONS(251), 1, - aux_sym_document_token1, - ACTIONS(253), 1, - anon_sym_COMMA, - STATE(57), 1, - aux_sym_array_repeat1, - STATE(96), 1, - aux_sym_array_repeat2, - [2241] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(73), 1, - anon_sym_RBRACK, - ACTIONS(255), 1, - aux_sym_document_token1, - ACTIONS(257), 1, - anon_sym_COMMA, - STATE(65), 1, - aux_sym_array_repeat1, - STATE(106), 1, - aux_sym_array_repeat2, - [2260] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(261), 1, - sym__multiline_literal_string_end, - STATE(60), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(259), 3, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - aux_sym__literal_string_token1, - [2275] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(73), 1, - anon_sym_RBRACK, - ACTIONS(257), 1, - anon_sym_COMMA, - STATE(26), 1, - aux_sym_array_repeat1, - STATE(106), 1, - aux_sym_array_repeat2, - [2294] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(77), 1, - anon_sym_RBRACK, - ACTIONS(263), 1, - anon_sym_COMMA, - STATE(26), 1, - aux_sym_array_repeat1, - STATE(98), 1, - aux_sym_array_repeat2, - [2313] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(267), 1, - sym__multiline_literal_string_end, - STATE(63), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(265), 3, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - aux_sym__literal_string_token1, - [2328] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(272), 1, - sym__multiline_literal_string_end, - STATE(60), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(269), 3, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - aux_sym__literal_string_token1, - [2343] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(105), 1, - anon_sym_RBRACK, - ACTIONS(274), 1, - aux_sym_document_token1, - ACTIONS(276), 1, - anon_sym_COMMA, - STATE(64), 1, - aux_sym_array_repeat1, - STATE(103), 1, - aux_sym_array_repeat2, - [2362] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(280), 1, - sym__multiline_literal_string_end, - STATE(56), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(278), 3, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - aux_sym__literal_string_token1, - [2377] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(282), 1, - sym__multiline_literal_string_end, - STATE(60), 1, - aux_sym__multiline_literal_string_repeat1, - ACTIONS(259), 3, - sym__multiline_literal_string_content, - aux_sym__multiline_basic_string_token1, - aux_sym__literal_string_token1, - [2392] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(95), 1, - anon_sym_RBRACK, - ACTIONS(249), 1, - anon_sym_COMMA, - STATE(26), 1, - aux_sym_array_repeat1, - STATE(101), 1, - aux_sym_array_repeat2, - [2411] = 6, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - ACTIONS(69), 1, - anon_sym_RBRACK, - ACTIONS(284), 1, - anon_sym_COMMA, - STATE(26), 1, - aux_sym_array_repeat1, - STATE(95), 1, - aux_sym_array_repeat2, - [2430] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(286), 1, - aux_sym_document_token1, - STATE(81), 1, - aux_sym_array_repeat1, - ACTIONS(288), 2, - anon_sym_RBRACK, - anon_sym_COMMA, - [2444] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(290), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2454] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(292), 1, - aux_sym_document_token1, - STATE(74), 1, - aux_sym_array_repeat1, - ACTIONS(294), 2, - anon_sym_RBRACK, - anon_sym_COMMA, - [2468] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(298), 1, - anon_sym_DQUOTE2, - STATE(72), 1, - aux_sym__basic_string_repeat1, - ACTIONS(296), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2482] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(302), 1, - anon_sym_DQUOTE2, - STATE(69), 1, - aux_sym__basic_string_repeat1, - ACTIONS(300), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2496] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(304), 1, - anon_sym_DQUOTE2, - STATE(72), 1, - aux_sym__basic_string_repeat1, - ACTIONS(296), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2510] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(309), 1, - anon_sym_DQUOTE2, - STATE(72), 1, - aux_sym__basic_string_repeat1, - ACTIONS(306), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2524] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(311), 1, - anon_sym_DQUOTE2, - STATE(72), 1, - aux_sym__basic_string_repeat1, - ACTIONS(296), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2538] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(288), 2, - anon_sym_RBRACK, - anon_sym_COMMA, - [2552] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(315), 1, - anon_sym_DQUOTE2, - STATE(73), 1, - aux_sym__basic_string_repeat1, - ACTIONS(313), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2566] = 4, - ACTIONS(200), 1, - sym_comment, - ACTIONS(319), 1, - anon_sym_DQUOTE2, - STATE(71), 1, - aux_sym__basic_string_repeat1, - ACTIONS(317), 2, - aux_sym__basic_string_token1, - sym_escape_sequence, - [2580] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(321), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2590] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(323), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2600] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(325), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2610] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(327), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2620] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(19), 1, - aux_sym_document_token1, - STATE(26), 1, - aux_sym_array_repeat1, - ACTIONS(329), 2, - anon_sym_RBRACK, - anon_sym_COMMA, - [2634] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(331), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2644] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(333), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2654] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(335), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2664] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(337), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2674] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(339), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2684] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(341), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2694] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(343), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2704] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(345), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2714] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(347), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2724] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(349), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2734] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(351), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2744] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(353), 4, - aux_sym_document_token1, - anon_sym_RBRACK, - anon_sym_COMMA, - anon_sym_RBRACE, - [2754] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(355), 1, - anon_sym_COMMA, - ACTIONS(357), 1, - anon_sym_RBRACE, - STATE(102), 1, - aux_sym_inline_table_repeat1, - [2767] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(53), 1, - anon_sym_RBRACK, - ACTIONS(359), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2780] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(73), 1, - anon_sym_RBRACK, - ACTIONS(257), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2793] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(294), 1, - anon_sym_RBRACK, - ACTIONS(361), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2806] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(65), 1, - anon_sym_RBRACK, - ACTIONS(364), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2819] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(355), 1, - anon_sym_COMMA, - ACTIONS(366), 1, - anon_sym_RBRACE, - STATE(107), 1, - aux_sym_inline_table_repeat1, - [2832] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(368), 3, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - [2841] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(77), 1, - anon_sym_RBRACK, - ACTIONS(263), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2854] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(355), 1, - anon_sym_COMMA, - ACTIONS(370), 1, - anon_sym_RBRACE, - STATE(104), 1, - aux_sym_inline_table_repeat1, - [2867] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(95), 1, - anon_sym_RBRACK, - ACTIONS(249), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2880] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(372), 1, - anon_sym_COMMA, - ACTIONS(375), 1, - anon_sym_RBRACE, - STATE(104), 1, - aux_sym_inline_table_repeat1, - [2893] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(377), 3, - anon_sym_RBRACK, - anon_sym_EQ, - anon_sym_DOT, - [2902] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(69), 1, - anon_sym_RBRACK, - ACTIONS(284), 1, - anon_sym_COMMA, - STATE(97), 1, - aux_sym_array_repeat2, - [2915] = 4, - ACTIONS(3), 1, - sym_comment, - ACTIONS(355), 1, - anon_sym_COMMA, - ACTIONS(379), 1, - anon_sym_RBRACE, - STATE(104), 1, - aux_sym_inline_table_repeat1, - [2928] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(381), 1, - anon_sym_RBRACK_RBRACK, - ACTIONS(383), 1, - anon_sym_DOT, - [2938] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(385), 1, - anon_sym_RBRACK, - ACTIONS(387), 1, - anon_sym_DOT, - [2948] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(389), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2956] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(377), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [2964] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(387), 1, - anon_sym_DOT, - ACTIONS(391), 1, - anon_sym_EQ, - [2974] = 3, - ACTIONS(200), 1, - sym_comment, - ACTIONS(393), 1, - aux_sym__literal_string_token1, - ACTIONS(395), 1, - anon_sym_SQUOTE2, - [2984] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(397), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2992] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(245), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3000] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(243), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3008] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(229), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3016] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(241), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3024] = 3, - ACTIONS(200), 1, - sym_comment, - ACTIONS(399), 1, - aux_sym__literal_string_token1, - ACTIONS(401), 1, - anon_sym_SQUOTE2, - [3034] = 3, - ACTIONS(200), 1, - sym_comment, - ACTIONS(403), 1, - aux_sym__literal_string_token1, - ACTIONS(405), 1, - anon_sym_SQUOTE2, - [3044] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(387), 1, - anon_sym_DOT, - ACTIONS(407), 1, - anon_sym_EQ, - [3054] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(368), 2, - anon_sym_RBRACK_RBRACK, - anon_sym_DOT, - [3062] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(333), 1, - sym__line_ending_or_eof, - [3069] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(353), 1, - sym__line_ending_or_eof, - [3076] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(351), 1, - sym__line_ending_or_eof, - [3083] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(339), 1, - sym__line_ending_or_eof, - [3090] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(389), 1, - sym__line_ending_or_eof, - [3097] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(335), 1, - sym__line_ending_or_eof, - [3104] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(241), 1, - sym__line_ending_or_eof, - [3111] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(229), 1, - sym__line_ending_or_eof, - [3118] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(341), 1, - sym__line_ending_or_eof, - [3125] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(409), 1, - sym__line_ending_or_eof, - [3132] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(411), 1, - sym__line_ending_or_eof, - [3139] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(349), 1, - sym__line_ending_or_eof, - [3146] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(413), 1, - anon_sym_SQUOTE2, - [3153] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(243), 1, - sym__line_ending_or_eof, - [3160] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(331), 1, - sym__line_ending_or_eof, - [3167] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(343), 1, - sym__line_ending_or_eof, - [3174] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(245), 1, - sym__line_ending_or_eof, - [3181] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(325), 1, - sym__line_ending_or_eof, - [3188] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(345), 1, - sym__line_ending_or_eof, - [3195] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(347), 1, - sym__line_ending_or_eof, - [3202] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(321), 1, - sym__line_ending_or_eof, - [3209] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(415), 1, - sym__line_ending_or_eof, - [3216] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(417), 1, - ts_builtin_sym_end, - [3223] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(419), 1, - anon_sym_SQUOTE2, - [3230] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(327), 1, - sym__line_ending_or_eof, - [3237] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(337), 1, - sym__line_ending_or_eof, - [3244] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(323), 1, - sym__line_ending_or_eof, - [3251] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(421), 1, - anon_sym_SQUOTE2, - [3258] = 2, - ACTIONS(3), 1, - sym_comment, - ACTIONS(290), 1, - sym__line_ending_or_eof, -}; - -static uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(2)] = 0, - [SMALL_STATE(3)] = 66, - [SMALL_STATE(4)] = 132, - [SMALL_STATE(5)] = 198, - [SMALL_STATE(6)] = 264, - [SMALL_STATE(7)] = 330, - [SMALL_STATE(8)] = 396, - [SMALL_STATE(9)] = 462, - [SMALL_STATE(10)] = 528, - [SMALL_STATE(11)] = 594, - [SMALL_STATE(12)] = 660, - [SMALL_STATE(13)] = 726, - [SMALL_STATE(14)] = 792, - [SMALL_STATE(15)] = 858, - [SMALL_STATE(16)] = 924, - [SMALL_STATE(17)] = 990, - [SMALL_STATE(18)] = 1056, - [SMALL_STATE(19)] = 1122, - [SMALL_STATE(20)] = 1188, - [SMALL_STATE(21)] = 1254, - [SMALL_STATE(22)] = 1320, - [SMALL_STATE(23)] = 1383, - [SMALL_STATE(24)] = 1446, - [SMALL_STATE(25)] = 1503, - [SMALL_STATE(26)] = 1560, - [SMALL_STATE(27)] = 1593, - [SMALL_STATE(28)] = 1639, - [SMALL_STATE(29)] = 1678, - [SMALL_STATE(30)] = 1717, - [SMALL_STATE(31)] = 1756, - [SMALL_STATE(32)] = 1795, - [SMALL_STATE(33)] = 1834, - [SMALL_STATE(34)] = 1862, - [SMALL_STATE(35)] = 1890, - [SMALL_STATE(36)] = 1915, - [SMALL_STATE(37)] = 1937, - [SMALL_STATE(38)] = 1959, - [SMALL_STATE(39)] = 1976, - [SMALL_STATE(40)] = 1993, - [SMALL_STATE(41)] = 2010, - [SMALL_STATE(42)] = 2027, - [SMALL_STATE(43)] = 2044, - [SMALL_STATE(44)] = 2065, - [SMALL_STATE(45)] = 2086, - [SMALL_STATE(46)] = 2101, - [SMALL_STATE(47)] = 2113, - [SMALL_STATE(48)] = 2131, - [SMALL_STATE(49)] = 2149, - [SMALL_STATE(50)] = 2161, - [SMALL_STATE(51)] = 2173, - [SMALL_STATE(52)] = 2185, - [SMALL_STATE(53)] = 2203, - [SMALL_STATE(54)] = 2222, - [SMALL_STATE(55)] = 2241, - [SMALL_STATE(56)] = 2260, - [SMALL_STATE(57)] = 2275, - [SMALL_STATE(58)] = 2294, - [SMALL_STATE(59)] = 2313, - [SMALL_STATE(60)] = 2328, - [SMALL_STATE(61)] = 2343, - [SMALL_STATE(62)] = 2362, - [SMALL_STATE(63)] = 2377, - [SMALL_STATE(64)] = 2392, - [SMALL_STATE(65)] = 2411, - [SMALL_STATE(66)] = 2430, - [SMALL_STATE(67)] = 2444, - [SMALL_STATE(68)] = 2454, - [SMALL_STATE(69)] = 2468, - [SMALL_STATE(70)] = 2482, - [SMALL_STATE(71)] = 2496, - [SMALL_STATE(72)] = 2510, - [SMALL_STATE(73)] = 2524, - [SMALL_STATE(74)] = 2538, - [SMALL_STATE(75)] = 2552, - [SMALL_STATE(76)] = 2566, - [SMALL_STATE(77)] = 2580, - [SMALL_STATE(78)] = 2590, - [SMALL_STATE(79)] = 2600, - [SMALL_STATE(80)] = 2610, - [SMALL_STATE(81)] = 2620, - [SMALL_STATE(82)] = 2634, - [SMALL_STATE(83)] = 2644, - [SMALL_STATE(84)] = 2654, - [SMALL_STATE(85)] = 2664, - [SMALL_STATE(86)] = 2674, - [SMALL_STATE(87)] = 2684, - [SMALL_STATE(88)] = 2694, - [SMALL_STATE(89)] = 2704, - [SMALL_STATE(90)] = 2714, - [SMALL_STATE(91)] = 2724, - [SMALL_STATE(92)] = 2734, - [SMALL_STATE(93)] = 2744, - [SMALL_STATE(94)] = 2754, - [SMALL_STATE(95)] = 2767, - [SMALL_STATE(96)] = 2780, - [SMALL_STATE(97)] = 2793, - [SMALL_STATE(98)] = 2806, - [SMALL_STATE(99)] = 2819, - [SMALL_STATE(100)] = 2832, - [SMALL_STATE(101)] = 2841, - [SMALL_STATE(102)] = 2854, - [SMALL_STATE(103)] = 2867, - [SMALL_STATE(104)] = 2880, - [SMALL_STATE(105)] = 2893, - [SMALL_STATE(106)] = 2902, - [SMALL_STATE(107)] = 2915, - [SMALL_STATE(108)] = 2928, - [SMALL_STATE(109)] = 2938, - [SMALL_STATE(110)] = 2948, - [SMALL_STATE(111)] = 2956, - [SMALL_STATE(112)] = 2964, - [SMALL_STATE(113)] = 2974, - [SMALL_STATE(114)] = 2984, - [SMALL_STATE(115)] = 2992, - [SMALL_STATE(116)] = 3000, - [SMALL_STATE(117)] = 3008, - [SMALL_STATE(118)] = 3016, - [SMALL_STATE(119)] = 3024, - [SMALL_STATE(120)] = 3034, - [SMALL_STATE(121)] = 3044, - [SMALL_STATE(122)] = 3054, - [SMALL_STATE(123)] = 3062, - [SMALL_STATE(124)] = 3069, - [SMALL_STATE(125)] = 3076, - [SMALL_STATE(126)] = 3083, - [SMALL_STATE(127)] = 3090, - [SMALL_STATE(128)] = 3097, - [SMALL_STATE(129)] = 3104, - [SMALL_STATE(130)] = 3111, - [SMALL_STATE(131)] = 3118, - [SMALL_STATE(132)] = 3125, - [SMALL_STATE(133)] = 3132, - [SMALL_STATE(134)] = 3139, - [SMALL_STATE(135)] = 3146, - [SMALL_STATE(136)] = 3153, - [SMALL_STATE(137)] = 3160, - [SMALL_STATE(138)] = 3167, - [SMALL_STATE(139)] = 3174, - [SMALL_STATE(140)] = 3181, - [SMALL_STATE(141)] = 3188, - [SMALL_STATE(142)] = 3195, - [SMALL_STATE(143)] = 3202, - [SMALL_STATE(144)] = 3209, - [SMALL_STATE(145)] = 3216, - [SMALL_STATE(146)] = 3223, - [SMALL_STATE(147)] = 3230, - [SMALL_STATE(148)] = 3237, - [SMALL_STATE(149)] = 3244, - [SMALL_STATE(150)] = 3251, - [SMALL_STATE(151)] = 3258, -}; - -static TSParseActionEntry ts_parse_actions[] = { - [0] = {.entry = {.count = 0, .reusable = false}}, - [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(), - [5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 0), - [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(76), - [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(120), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(83), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [41] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55), - [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143), - [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [49] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140), - [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [57] = {.entry = {.count = 1, .reusable = false}}, SHIFT(68), - [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147), - [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [73] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), - [75] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [77] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [79] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(149), - [83] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [85] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138), - [87] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [89] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), - [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [95] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [97] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61), - [105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), - [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [119] = {.entry = {.count = 1, .reusable = false}}, SHIFT(70), - [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [127] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2), SHIFT_REPEAT(26), - [142] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2), - [144] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_array_repeat1, 2), - [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_table, 4), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [154] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_table, 4), - [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_table_array_element, 4), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [160] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_table_array_element, 4), - [162] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_table_array_element, 5), - [164] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_table_array_element, 5), - [166] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_table, 5), - [168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_table, 5), - [170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), - [172] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(32), - [175] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), - [177] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(121), - [180] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(76), - [183] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(120), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [200] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [204] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [206] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), SHIFT_REPEAT(39), - [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_basic_string_repeat1, 2), - [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141), - [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pair, 2), - [227] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_pair, 2), - [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 3), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), - [233] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(36), - [236] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(37), - [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2), - [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 3), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__literal_string, 2), - [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__basic_string, 2), - [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(151), - [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [269] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), SHIFT_REPEAT(60), - [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__multiline_literal_string_repeat1, 2), - [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [276] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 3), - [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 3), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), - [296] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [298] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [300] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [302] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), - [304] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [306] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), SHIFT_REPEAT(72), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__basic_string_repeat1, 2), - [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [317] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 8), - [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 7), - [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 6), - [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 5), - [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 4), - [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 4, .production_id = 1), - [333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer, 1), - [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_float, 1), - [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 3, .production_id = 1), - [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 1), - [341] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4), - [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 2), - [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 2), - [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_literal_string, 2), - [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_inline_table, 2), - [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3), - [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__multiline_basic_string, 3), - [355] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [361] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat2, 2), SHIFT_REPEAT(22), - [364] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [366] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148), - [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_key, 1), - [370] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [372] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), SHIFT_REPEAT(35), - [375] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2), - [377] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dotted_key, 3), - [379] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137), - [381] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), - [383] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [389] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__inline_pair, 3), - [391] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [393] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150), - [395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), - [397] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_inline_table_repeat1, 2, .production_id = 1), - [399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146), - [401] = {.entry = {.count = 1, .reusable = true}}, SHIFT(116), - [403] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), - [405] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [407] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [409] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [411] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [413] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [415] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [417] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [419] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [421] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), -}; - -#ifdef __cplusplus -extern "C" { -#endif -void *tree_sitter_toml_external_scanner_create(void); -void tree_sitter_toml_external_scanner_destroy(void *); -bool tree_sitter_toml_external_scanner_scan(void *, TSLexer *, const bool *); -unsigned tree_sitter_toml_external_scanner_serialize(void *, char *); -void tree_sitter_toml_external_scanner_deserialize(void *, const char *, unsigned); - -#ifdef _WIN32 -#define extern __declspec(dllexport) -#endif - -extern const TSLanguage *tree_sitter_toml(void) { - static 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 = (const uint16_t *)ts_parse_table, - .small_parse_table = (const uint16_t *)ts_small_parse_table, - .small_parse_table_map = (const uint32_t *)ts_small_parse_table_map, - .parse_actions = ts_parse_actions, - .symbol_names = ts_symbol_names, - .symbol_metadata = ts_symbol_metadata, - .public_symbol_map = ts_symbol_map, - .alias_map = ts_non_terminal_alias_map, - .alias_sequences = (const TSSymbol *)ts_alias_sequences, - .lex_modes = ts_lex_modes, - .lex_fn = ts_lex, - .external_scanner = { - (const bool *)ts_external_scanner_states, - ts_external_scanner_symbol_map, - tree_sitter_toml_external_scanner_create, - tree_sitter_toml_external_scanner_destroy, - tree_sitter_toml_external_scanner_scan, - tree_sitter_toml_external_scanner_serialize, - tree_sitter_toml_external_scanner_deserialize, - }, - }; - return &language; -} -#ifdef __cplusplus -} -#endif diff --git a/vendored_parsers/tree-sitter-toml/src/scanner.c b/vendored_parsers/tree-sitter-toml/src/scanner.c deleted file mode 100644 index 0aac170dc..000000000 --- a/vendored_parsers/tree-sitter-toml/src/scanner.c +++ /dev/null @@ -1,91 +0,0 @@ -#include - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#endif - -enum TokenType { - LINE_ENDING_OR_EOF, - MULTILINE_BASIC_STRING_CONTENT, - MULTILINE_BASIC_STRING_END, - MULTILINE_LITERAL_STRING_CONTENT, - MULTILINE_LITERAL_STRING_END, -}; - -void *tree_sitter_toml_external_scanner_create() { return NULL; } -void tree_sitter_toml_external_scanner_destroy(void *payload) {} -unsigned tree_sitter_toml_external_scanner_serialize(void *payload, char *buffer) { return 0; } -void tree_sitter_toml_external_scanner_deserialize(void *payload, const char *buffer, unsigned length) {} - -bool tree_sitter_toml_external_scanner_scan_multiline_string_end(TSLexer *lexer, const bool *valid_symbols, int32_t delimiter, enum TokenType content_symbol, enum TokenType end_symbol) { - if (!valid_symbols[end_symbol] || lexer->lookahead != delimiter) { - return false; - } - - lexer->advance(lexer, false); - lexer->mark_end(lexer); - - if (lexer->lookahead != delimiter) { - lexer->result_symbol = content_symbol; - return true; - } - - lexer->advance(lexer, false); - - if (lexer->lookahead != delimiter) { - lexer->mark_end(lexer); - lexer->result_symbol = content_symbol; - return true; - } - - lexer->advance(lexer, false); - - if (lexer->lookahead != delimiter) { - lexer->mark_end(lexer); - lexer->result_symbol = end_symbol; - return true; - } - - lexer->result_symbol = content_symbol; - return true; -} - -bool tree_sitter_toml_external_scanner_scan( - void *payload, - TSLexer *lexer, - const bool *valid_symbols -) { - if ( - tree_sitter_toml_external_scanner_scan_multiline_string_end(lexer, valid_symbols, '"', MULTILINE_BASIC_STRING_CONTENT, MULTILINE_BASIC_STRING_END) - || tree_sitter_toml_external_scanner_scan_multiline_string_end(lexer, valid_symbols, '\'', MULTILINE_LITERAL_STRING_CONTENT, MULTILINE_LITERAL_STRING_END) - ) { - return true; - } - - if (valid_symbols[LINE_ENDING_OR_EOF]) { - lexer->result_symbol = LINE_ENDING_OR_EOF; - - while (lexer->lookahead == ' ' || lexer->lookahead == '\t') { - lexer->advance(lexer, true); - } - - if (lexer->lookahead == 0 || lexer->lookahead == '\n') { - return true; - } - - if (lexer->lookahead == '\r') { - lexer->advance(lexer, true); - if (lexer->lookahead == '\n') { - return true; - } - } - } - - - return false; -} - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif diff --git a/vendored_parsers/tree-sitter-toml/src/tree_sitter/parser.h b/vendored_parsers/tree-sitter-toml/src/tree_sitter/parser.h deleted file mode 100644 index a3a87bd1d..000000000 --- a/vendored_parsers/tree-sitter-toml/src/tree_sitter/parser.h +++ /dev/null @@ -1,223 +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 **symbol_names; - const char **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; -}; - -/* - * 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-toml/toml-spec/spec.md b/vendored_parsers/tree-sitter-toml/toml-spec/spec.md deleted file mode 100644 index 74baacf7e..000000000 --- a/vendored_parsers/tree-sitter-toml/toml-spec/spec.md +++ /dev/null @@ -1,1031 +0,0 @@ -TOML v1.0.0-rc.1 -================ - -Tom's Obvious, Minimal Language. - -By Tom Preston-Werner, Pradyun Gedam, et al. - -Objectives ----------- - -TOML aims to be a minimal configuration file format that's easy to read due to -obvious semantics. TOML is designed to map unambiguously to a hash table. TOML -should be easy to parse into data structures in a wide variety of languages. - -Table of contents -------- - -- [Example](#user-content-example) -- [Spec](#user-content-spec) -- [Comment](#user-content-comment) -- [Key/Value Pair](#user-content-keyvalue-pair) -- [Keys](#user-content-keys) -- [String](#user-content-string) -- [Integer](#user-content-integer) -- [Float](#user-content-float) -- [Boolean](#user-content-boolean) -- [Offset Date-Time](#user-content-offset-date-time) -- [Local Date-Time](#user-content-local-date-time) -- [Local Date](#user-content-local-date) -- [Local Time](#user-content-local-time) -- [Array](#user-content-array) -- [Table](#user-content-table) -- [Inline Table](#user-content-inline-table) -- [Array of Tables](#user-content-array-of-tables) -- [Filename Extension](#user-content-filename-extension) -- [MIME Type](#user-content-mime-type) -- [Comparison with Other Formats](#user-content-comparison-with-other-formats) -- [Get Involved](#user-content-get-involved) -- [Wiki](#user-content-wiki) - -Example -------- - -```toml -# This is a TOML document. - -title = "TOML Example" - -[owner] -name = "Tom Preston-Werner" -dob = 1979-05-27T07:32:00-08:00 # First class dates - -[database] -server = "192.168.1.1" -ports = [ 8001, 8001, 8002 ] -connection_max = 5000 -enabled = true - -[servers] - - # Indentation (tabs and/or spaces) is allowed but not required - [servers.alpha] - ip = "10.0.0.1" - dc = "eqdc10" - - [servers.beta] - ip = "10.0.0.2" - dc = "eqdc10" - -[clients] -data = [ ["gamma", "delta"], [1, 2] ] - -# Line breaks are OK when inside arrays -hosts = [ - "alpha", - "omega" -] -``` - -Spec ----- - -* TOML is case sensitive. -* A TOML file must be a valid UTF-8 encoded Unicode document. -* Whitespace means tab (0x09) or space (0x20). -* Newline means LF (0x0A) or CRLF (0x0D 0x0A). - -Comment -------- - -A hash symbol marks the rest of the line as a comment, except when inside a string. - -```toml -# This is a full-line comment -key = "value" # This is a comment at the end of a line -another = "# This is not a comment" -``` - -Control characters other than tab (U+0000 to U+0008, U+000A to U+001F, U+007F) -are not permitted in comments. - -Key/Value Pair --------------- - -The primary building block of a TOML document is the key/value pair. - -Keys are on the left of the equals sign and values are on the right. Whitespace -is ignored around key names and values. The key, equals sign, and value must be -on the same line (though some values can be broken over multiple lines). - -```toml -key = "value" -``` - -Values must have one of the following types. - -- [String](#user-content-string) -- [Integer](#user-content-integer) -- [Float](#user-content-float) -- [Boolean](#user-content-boolean) -- [Offset Date-Time](#user-content-offset-date-time) -- [Local Date-Time](#user-content-local-date-time) -- [Local Date](#user-content-local-date) -- [Local Time](#user-content-local-time) -- [Array](#user-content-array) -- [Inline Table](#user-content-inline-table) - -Unspecified values are invalid. - -```toml -key = # INVALID -``` - -There must be a newline after a key/value pair. -(See [Inline Table](#user-content-inline-table) for exceptions.) - -``` -first = "Tom" last = "Preston-Werner" # INVALID -``` - -Keys ----- - -A key may be either bare, quoted or dotted. - -**Bare keys** may only contain ASCII letters, ASCII digits, underscores, and -dashes (`A-Za-z0-9_-`). Note that bare keys are allowed to be composed of only -ASCII digits, e.g. `1234`, but are always interpreted as strings. - -```toml -key = "value" -bare_key = "value" -bare-key = "value" -1234 = "value" -``` - -**Quoted keys** follow the exact same rules as either basic strings or literal -strings and allow you to use a much broader set of key names. Best practice is -to use bare keys except when absolutely necessary. - -```toml -"127.0.0.1" = "value" -"character encoding" = "value" -"ʎǝʞ" = "value" -'key2' = "value" -'quoted "value"' = "value" -``` - -A bare key must be non-empty, but an empty quoted key is allowed (though -discouraged). - -```toml -= "no key name" # INVALID -"" = "blank" # VALID but discouraged -'' = 'blank' # VALID but discouraged -``` - -**Dotted keys** are a sequence of bare or quoted keys joined with a dot. This -allows for grouping similar properties together: - -```toml -name = "Orange" -physical.color = "orange" -physical.shape = "round" -site."google.com" = true -``` - -In JSON land, that would give you the following structure: - -```json -{ - "name": "Orange", - "physical": { - "color": "orange", - "shape": "round" - }, - "site": { - "google.com": true - } -} -``` - -Whitespace around dot-separated parts is ignored, however, best practice is to -not use any extraneous whitespace. - -Defining a key multiple times is invalid. - -``` -# DO NOT DO THIS -name = "Tom" -name = "Pradyun" -``` - -Since bare keys are allowed to compose of only ASCII integers, it is possible -to write dotted keys that look like floats but are 2-part dotted keys. Don't do -this unless you have a good reason to (you probably don't). - -```toml -3.14159 = "pi" -``` - -The above TOML maps to the following JSON. - -```json -{ "3": { "14159": "pi" } } -``` - -As long as a key hasn't been directly defined, you may still write to it and -to names within it. - -``` -# This makes the key "fruit" into a table. -fruit.apple.smooth = true - -# So then you can add to the table "fruit" like so: -fruit.orange = 2 -``` - -``` -# THE FOLLOWING IS INVALID - -# This defines the value of fruit.apple to be an integer. -fruit.apple = 1 - -# But then this treats fruit.apple like it's a table. -# You can't turn an integer into a table. -fruit.apple.smooth = true -``` - -Defining dotted keys out-of-order is discouraged. - -```toml -# VALID BUT DISCOURAGED - -apple.type = "fruit" -orange.type = "fruit" - -apple.skin = "thin" -orange.skin = "thick" - -apple.color = "red" -orange.color = "orange" -``` - -```toml -# RECOMMENDED - -apple.type = "fruit" -apple.skin = "thin" -apple.color = "red" - -orange.type = "fruit" -orange.skin = "thick" -orange.color = "orange" -``` - -String ------- - -There are four ways to express strings: basic, multi-line basic, literal, and -multi-line literal. All strings must contain only valid UTF-8 characters. - -**Basic strings** are surrounded by quotation marks. Any Unicode character may -be used except those that must be escaped: quotation mark, backslash, and the -control characters other than tab (U+0000 to U+0008, U+000A to U+001F, U+007F). - -```toml -str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF." -``` - -For convenience, some popular characters have a compact escape sequence. - -``` -\b - backspace (U+0008) -\t - tab (U+0009) -\n - linefeed (U+000A) -\f - form feed (U+000C) -\r - carriage return (U+000D) -\" - quote (U+0022) -\\ - backslash (U+005C) -\uXXXX - unicode (U+XXXX) -\UXXXXXXXX - unicode (U+XXXXXXXX) -``` - -Any Unicode character may be escaped with the `\uXXXX` or `\UXXXXXXXX` forms. -The escape codes must be valid Unicode [scalar values](http://unicode.org/glossary/#unicode_scalar_value). - -All other escape sequences not listed above are reserved and, if used, TOML -should produce an error. - -Sometimes you need to express passages of text (e.g. translation files) or would -like to break up a very long string into multiple lines. TOML makes this easy. - -**Multi-line basic strings** are surrounded by three quotation marks on each -side and allow newlines. A newline immediately following the opening delimiter -will be trimmed. All other whitespace and newline characters remain intact. - -```toml -str1 = """ -Roses are red -Violets are blue""" -``` - -TOML parsers should feel free to normalize newline to whatever makes sense for -their platform. - -```toml -# On a Unix system, the above multi-line string will most likely be the same as: -str2 = "Roses are red\nViolets are blue" - -# On a Windows system, it will most likely be equivalent to: -str3 = "Roses are red\r\nViolets are blue" -``` - -For writing long strings without introducing extraneous whitespace, use a "line -ending backslash". When the last non-whitespace character on a line is a `\`, it -will be trimmed along with all whitespace (including newlines) up to the next -non-whitespace character or closing delimiter. All of the escape sequences that -are valid for basic strings are also valid for multi-line basic strings. - -```toml -# The following strings are byte-for-byte equivalent: -str1 = "The quick brown fox jumps over the lazy dog." - -str2 = """ -The quick brown \ - - - fox jumps over \ - the lazy dog.""" - -str3 = """\ - The quick brown \ - fox jumps over \ - the lazy dog.\ - """ -``` - -Any Unicode character may be used except those that must be escaped: backslash -and the control characters other than tab, line feed, and carriage return -(U+0000 to U+0008, U+000B, U+000C, U+000E to U+001F, U+007F). - -You can write a quotation mark, or two adjacent quotation marks, anywhere -inside a multi-line basic string. They can also be written just inside the -delimiters. - -```toml -str4 = """Here are two quotation marks: "". Simple enough.""" -# str5 = """Here are three quotation marks: """.""" # INVALID -str5 = """Here are three quotation marks: ""\".""" -str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\".""" - -# "This," she said, "is just a pointless statement." -str7 = """"This," she said, "is just a pointless statement."""" -``` - -If you're a frequent specifier of Windows paths or regular expressions, then -having to escape backslashes quickly becomes tedious and error prone. To help, -TOML supports literal strings which do not allow escaping at all. - -**Literal strings** are surrounded by single quotes. Like basic strings, they -must appear on a single line: - -```toml -# What you see is what you get. -winpath = 'C:\Users\nodejs\templates' -winpath2 = '\\ServerX\admin$\system32\' -quoted = 'Tom "Dubs" Preston-Werner' -regex = '<\i\c*\s*>' -``` - -Since there is no escaping, there is no way to write a single quote inside a -literal string enclosed by single quotes. Luckily, TOML supports a multi-line -version of literal strings that solves this problem. - -**Multi-line literal strings** are surrounded by three single quotes on each -side and allow newlines. Like literal strings, there is no escaping whatsoever. -A newline immediately following the opening delimiter will be trimmed. All -other content between the delimiters is interpreted as-is without modification. - -```toml -regex2 = '''I [dw]on't need \d{2} apples''' -lines = ''' -The first newline is -trimmed in raw strings. - All other whitespace - is preserved. -''' -``` - -You can write 1 or 2 single quotes anywhere within a multi-line literal string, -but sequences of three or more single quotes are not permitted. - -```toml -quot15 = '''Here are fifteen quotation marks: """""""""""""""''' - -# apos15 = '''Here are fifteen apostrophes: '''''''''''''''''' # INVALID -apos15 = "Here are fifteen apostrophes: '''''''''''''''" - -# 'That's still pointless', she said. -str = ''''That's still pointless', she said.''' -``` - -Control characters other than tab are not permitted in a literal string. Thus, -for binary data it is recommended that you use Base64 or another suitable ASCII -or UTF-8 encoding. The handling of that encoding will be application specific. - -Integer -------- - -Integers are whole numbers. Positive numbers may be prefixed with a plus sign. -Negative numbers are prefixed with a minus sign. - -```toml -int1 = +99 -int2 = 42 -int3 = 0 -int4 = -17 -``` - -For large numbers, you may use underscores between digits to enhance -readability. Each underscore must be surrounded by at least one digit on each -side. - -```toml -int5 = 1_000 -int6 = 5_349_221 -int7 = 1_2_3_4_5 # VALID but discouraged -``` - -Leading zeros are not allowed. Integer values `-0` and `+0` are valid and -identical to an unprefixed zero. - -Non-negative integer values may also be expressed in hexadecimal, octal, or -binary. In these formats, leading `+` is not allowed and leading zeros are -allowed (after the prefix). Hex values are case insensitive. Underscores are -allowed between digits (but not between the prefix and the value). - -```toml -# hexadecimal with prefix `0x` -hex1 = 0xDEADBEEF -hex2 = 0xdeadbeef -hex3 = 0xdead_beef - -# octal with prefix `0o` -oct1 = 0o01234567 -oct2 = 0o755 # useful for Unix file permissions - -# binary with prefix `0b` -bin1 = 0b11010110 -``` - -64 bit (signed long) range expected (−9,223,372,036,854,775,808 to -9,223,372,036,854,775,807). - -Float ------ - -Floats should be implemented as IEEE 754 binary64 values. - -A float consists of an integer part (which follows the same rules as decimal -integer values) followed by a fractional part and/or an exponent part. If both a -fractional part and exponent part are present, the fractional part must precede -the exponent part. - -```toml -# fractional -flt1 = +1.0 -flt2 = 3.1415 -flt3 = -0.01 - -# exponent -flt4 = 5e+22 -flt5 = 1e06 -flt6 = -2E-2 - -# both -flt7 = 6.626e-34 -``` - -A fractional part is a decimal point followed by one or more digits. - -An exponent part is an E (upper or lower case) followed by an integer part -(which follows the same rules as decimal integer values but may include leading -zeros). - -Similar to integers, you may use underscores to enhance readability. Each -underscore must be surrounded by at least one digit. - -```toml -flt8 = 224_617.445_991_228 -``` - -Float values `-0.0` and `+0.0` are valid and should map according to IEEE 754. - -Special float values can also be expressed. They are always lowercase. - -```toml -# infinity -sf1 = inf # positive infinity -sf2 = +inf # positive infinity -sf3 = -inf # negative infinity - -# not a number -sf4 = nan # actual sNaN/qNaN encoding is implementation specific -sf5 = +nan # same as `nan` -sf6 = -nan # valid, actual encoding is implementation specific -``` - -Boolean -------- - -Booleans are just the tokens you're used to. Always lowercase. - -```toml -bool1 = true -bool2 = false -``` - -Offset Date-Time ---------------- - -To unambiguously represent a specific instant in time, you may use an -[RFC 3339](http://tools.ietf.org/html/rfc3339) formatted date-time with offset. - -```toml -odt1 = 1979-05-27T07:32:00Z -odt2 = 1979-05-27T00:32:00-07:00 -odt3 = 1979-05-27T00:32:00.999999-07:00 -``` - -For the sake of readability, you may replace the T delimiter between date and -time with a space (as permitted by RFC 3339 section 5.6). - -```toml -odt4 = 1979-05-27 07:32:00Z -``` - -The precision of fractional seconds is implementation specific, but at least -millisecond precision is expected. If the value contains greater precision than -the implementation can support, the additional precision must be truncated, not -rounded. - -Local Date-Time --------------- - -If you omit the offset from an [RFC 3339](http://tools.ietf.org/html/rfc3339) -formatted date-time, it will represent the given date-time without any relation -to an offset or timezone. It cannot be converted to an instant in time without -additional information. Conversion to an instant, if required, is implementation -specific. - -```toml -ldt1 = 1979-05-27T07:32:00 -ldt2 = 1979-05-27T00:32:00.999999 -``` - -The precision of fractional seconds is implementation specific, but at least -millisecond precision is expected. If the value contains greater precision than -the implementation can support, the additional precision must be truncated, not -rounded. - -Local Date ----------- - -If you include only the date portion of an -[RFC 3339](http://tools.ietf.org/html/rfc3339) formatted date-time, it will -represent that entire day without any relation to an offset or timezone. - -```toml -ld1 = 1979-05-27 -``` - -Local Time ----------- - -If you include only the time portion of an [RFC -3339](http://tools.ietf.org/html/rfc3339) formatted date-time, it will represent -that time of day without any relation to a specific day or any offset or -timezone. - -```toml -lt1 = 07:32:00 -lt2 = 00:32:00.999999 -``` - -The precision of fractional seconds is implementation specific, but at least -millisecond precision is expected. If the value contains greater precision than -the implementation can support, the additional precision must be truncated, not -rounded. - -Array ------ - -Arrays are square brackets with values inside. Whitespace is ignored. Elements -are separated by commas. Arrays can contain values of the same data types as -allowed in key/value pairs. Values of different types may be mixed. - -```toml -integers = [ 1, 2, 3 ] -colors = [ "red", "yellow", "green" ] -nested_array_of_int = [ [ 1, 2 ], [3, 4, 5] ] -nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ] -string_array = [ "all", 'strings', """are the same""", '''type''' ] - -# Mixed-type arrays are allowed -numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ] -contributors = [ - "Foo Bar ", - { name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" } -] -``` - -Arrays can span multiple lines. A terminating comma (also called trailing comma) -is ok after the last value of the array. There can be an arbitrary number of -newlines and comments before a value and before the closing bracket. - -```toml -integers2 = [ - 1, 2, 3 -] - -integers3 = [ - 1, - 2, # this is ok -] -``` - -Table ------ - -Tables (also known as hash tables or dictionaries) are collections of key/value -pairs. They appear in square brackets on a line by themselves. You can tell them -apart from arrays because arrays are only ever values. - -```toml -[table] -``` - -Under that, and until the next table or EOF are the key/values of that table. -Key/value pairs within tables are not guaranteed to be in any specific order. - -```toml -[table-1] -key1 = "some string" -key2 = 123 - -[table-2] -key1 = "another string" -key2 = 456 -``` - -Naming rules for tables are the same as for keys (see definition of Keys above). - -```toml -[dog."tater.man"] -type.name = "pug" -``` - -In JSON land, that would give you the following structure: - -```json -{ "dog": { "tater.man": { "type": { "name": "pug" } } } } -``` - -Whitespace around the key is ignored, however, best practice is to not use any -extraneous whitespace. - -```toml -[a.b.c] # this is best practice -[ d.e.f ] # same as [d.e.f] -[ g . h . i ] # same as [g.h.i] -[ j . "ʞ" . 'l' ] # same as [j."ʞ".'l'] -``` - -You don't need to specify all the super-tables if you don't want to. TOML knows -how to do it for you. - -```toml -# [x] you -# [x.y] don't -# [x.y.z] need these -[x.y.z.w] # for this to work - -[x] # defining a super-table afterwards is ok -``` - -Empty tables are allowed and simply have no key/value pairs within them. - -Like keys, you cannot define any table more than once. Doing so is invalid. - -``` -# DO NOT DO THIS - -[fruit] -apple = "red" - -[fruit] -orange = "orange" -``` - -``` -# DO NOT DO THIS EITHER - -[fruit] -apple = "red" - -[fruit.apple] -texture = "smooth" -``` - -Defining tables out-of-order is discouraged. - -```toml -# VALID BUT DISCOURAGED -[fruit.apple] -[animal] -[fruit.orange] -``` - -```toml -# RECOMMENDED -[fruit.apple] -[fruit.orange] -[animal] -``` - -Dotted keys define everything to the left of each dot as a table. Since tables -cannot be defined more than once, redefining such tables using a `[table]` -header is not allowed. Likewise, using dotted keys to redefine tables already -defined in `[table]` form is not allowed. - -The `[table]` form can, however, be used to define sub-tables within tables -defined via dotted keys. - -```toml -[fruit] -apple.color = "red" -apple.taste.sweet = true - -# [fruit.apple] # INVALID -# [fruit.apple.taste] # INVALID - -[fruit.apple.texture] # you can add sub-tables -smooth = true -``` - -Inline Table ------------- - -Inline tables provide a more compact syntax for expressing tables. They are -especially useful for grouped data that can otherwise quickly become verbose. -Inline tables are enclosed in curly braces `{` and `}`. Within the braces, zero -or more comma separated key/value pairs may appear. Key/value pairs take the -same form as key/value pairs in standard tables. All value types are allowed, -including inline tables. - -Inline tables are intended to appear on a single line. A terminating comma (also -called trailing comma) is not permitted after the last key/value pair in an -inline table. No newlines are allowed between the curly braces unless they are -valid within a value. Even so, it is strongly discouraged to break an inline -table onto multiples lines. If you find yourself gripped with this desire, it -means you should be using standard tables. - -```toml -name = { first = "Tom", last = "Preston-Werner" } -point = { x = 1, y = 2 } -animal = { type.name = "pug" } -``` - -The inline tables above are identical to the following standard table -definitions: - -```toml -[name] -first = "Tom" -last = "Preston-Werner" - -[point] -x = 1 -y = 2 - -[animal] -type.name = "pug" - -``` - -Inline tables fully define the keys and sub-tables within them. New keys and -sub-tables cannot be added to them. - -```toml -[product] -type = { name = "Nail" } -# type.edible = false # INVALID -``` - -Similarly, inline tables can not be used to add keys or sub-tables to an -already-defined table. - -```toml -[product] -type.name = "Nail" -# type = { edible = false } # INVALID -``` - -Array of Tables ---------------- - -The last type that has not yet been expressed is an array of tables. These can -be expressed by using a table name in double brackets. Under that, and until the -next table or EOF are the key/values of that table. Each table with the same -double bracketed name will be an element in the array of tables. The tables are -inserted in the order encountered. A double bracketed table without any -key/value pairs will be considered an empty table. - -```toml -[[products]] -name = "Hammer" -sku = 738594937 - -[[products]] - -[[products]] -name = "Nail" -sku = 284758393 - -color = "gray" -``` - -In JSON land, that would give you the following structure. - -```json -{ - "products": [ - { "name": "Hammer", "sku": 738594937 }, - { }, - { "name": "Nail", "sku": 284758393, "color": "gray" } - ] -} -``` - -You can create nested arrays of tables as well. Just use the same double bracket -syntax on sub-tables. Each double-bracketed sub-table will belong to the most -recently defined table element. Normal sub-tables (not arrays) likewise belong -to the most recently defined table element. - -```toml -[[fruit]] - name = "apple" - - [fruit.physical] # subtable - color = "red" - shape = "round" - - [[fruit.variety]] # nested array of tables - name = "red delicious" - - [[fruit.variety]] - name = "granny smith" - -[[fruit]] - name = "banana" - - [[fruit.variety]] - name = "plantain" -``` - -The above TOML maps to the following JSON. - -```json -{ - "fruit": [ - { - "name": "apple", - "physical": { - "color": "red", - "shape": "round" - }, - "variety": [ - { "name": "red delicious" }, - { "name": "granny smith" } - ] - }, - { - "name": "banana", - "variety": [ - { "name": "plantain" } - ] - } - ] -} -``` - -If the parent of a table or array of tables is an array element, that element -must already have been defined before the child can be defined. Attempts to -reverse that ordering must produce an error at parse time. - -``` -# INVALID TOML DOC -[fruit.physical] # subtable, but to which parent element should it belong? - color = "red" - shape = "round" - -[[fruit]] # parser must throw an error upon discovering that "fruit" is - # an array rather than a table - name = "apple" -``` - -Attempting to append to a statically defined array, even if that array is empty -or of compatible type, must produce an error at parse time. - -``` -# INVALID TOML DOC -fruit = [] - -[[fruit]] # Not allowed -``` - -Attempting to define a normal table with the same name as an already established -array must produce an error at parse time. Attempting to redefine a normal table -as an array must likewise produce a parse-time error. - -``` -# INVALID TOML DOC -[[fruit]] - name = "apple" - - [[fruit.variety]] - name = "red delicious" - - # INVALID: This table conflicts with the previous array of tables - [fruit.variety] - name = "granny smith" - - [fruit.physical] - color = "red" - shape = "round" - - # INVALID: This array of tables conflicts with the previous table - [[fruit.physical]] - color = "green" -``` - -You may also use inline tables where appropriate: - -```toml -points = [ { x = 1, y = 2, z = 3 }, - { x = 7, y = 8, z = 9 }, - { x = 2, y = 4, z = 8 } ] -``` - -Filename Extension ------------------- - -TOML files should use the extension `.toml`. - -MIME Type ---------- - -When transferring TOML files over the internet, the appropriate MIME type is -`application/toml`. - -Comparison with Other Formats ------------------------------ - -TOML shares traits with other file formats used for application configuration -and data serialization, such as YAML and JSON. TOML and JSON both are simple and -use ubiquitous data types, making them easy to code for or parse with machines. -TOML and YAML both emphasize human readability features, like comments that make -it easier to understand the purpose of a given line. TOML differs in combining -these, allowing comments (unlike JSON) but preserving simplicity (unlike YAML). - -Because TOML is explicitly intended as a configuration file format, parsing it -is easy, but it is not intended for serializing arbitrary data structures. TOML -always has a hash table at the top level of the file, which can easily have data -nested inside its keys, but it doesn't permit top-level arrays or floats, so it -cannot directly serialize some data. There is also no standard identifying the -start or end of a TOML file, which can complicate sending it through a stream. -These details must be negotiated on the application layer. - -INI files are frequently compared to TOML for their similarities in syntax and -use as configuration files. However, there is no standardized format for INI -and they do not gracefully handle more than one or two levels of nesting. - -Further reading: - * YAML spec: https://yaml.org/spec/1.2/spec.html - * JSON spec: https://tools.ietf.org/html/rfc8259 - * Wikipedia on INI files: https://en.wikipedia.org/wiki/INI_file - -Get Involved ------------- - -Documentation, bug reports, pull requests, and all other contributions -are welcome! - -Wiki ----------------------------------------------------------------------- - -We have an [Official TOML Wiki](https://github.com/toml-lang/toml/wiki) that -catalogs the following: - -* Projects using TOML -* Implementations -* Validators -* Language agnostic test suite for TOML decoders and encoders -* Editor support -* Encoders -* Converters - -Please take a look if you'd like to view or add to that list. Thanks for being -a part of the TOML community! diff --git a/vendored_parsers/tree-sitter-toml/yarn.lock b/vendored_parsers/tree-sitter-toml/yarn.lock deleted file mode 100644 index 2d24017d7..000000000 --- a/vendored_parsers/tree-sitter-toml/yarn.lock +++ /dev/null @@ -1,1326 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -JSONStream@^1.0.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" - integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== - dependencies: - jsonparse "^1.2.0" - through ">=2.2.7 <3" - -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-styles@^3.2.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= - -array-ify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" - integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4= - -arrify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== - -camelcase-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" - integrity sha1-MIvur/3ygRkFHvodkyITyRuPkuc= - dependencies: - camelcase "^2.0.0" - map-obj "^1.0.0" - -camelcase-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" - integrity sha1-oqpfsa9oh1glnDLBQUJteJI7m3c= - dependencies: - camelcase "^4.1.0" - map-obj "^2.0.0" - quick-lru "^1.0.0" - -camelcase@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" - integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8= - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= - -camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -chalk@2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -commander@~2.20.3: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -compare-func@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648" - integrity sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg= - dependencies: - array-ify "^1.0.0" - dot-prop "^3.0.0" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -concat-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" - integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^3.0.2" - typedarray "^0.0.6" - -conventional-changelog-angular@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.3.tgz#299fdd43df5a1f095283ac16aeedfb0a682ecab0" - integrity sha512-YD1xzH7r9yXQte/HF9JBuEDfvjxxwDGGwZU1+ndanbY0oFgA+Po1T9JDSpPLdP0pZT6MhCAsdvFKC4TJ4MTJTA== - dependencies: - compare-func "^1.3.1" - q "^1.5.1" - -conventional-changelog-atom@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/conventional-changelog-atom/-/conventional-changelog-atom-2.0.1.tgz#dc88ce650ffa9ceace805cbe70f88bfd0cb2c13a" - integrity sha512-9BniJa4gLwL20Sm7HWSNXd0gd9c5qo49gCi8nylLFpqAHhkFTj7NQfROq3f1VpffRtzfTQp4VKU5nxbe2v+eZQ== - dependencies: - q "^1.5.1" - -conventional-changelog-codemirror@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.1.tgz#acc046bc0971460939a0cc2d390e5eafc5eb30da" - integrity sha512-23kT5IZWa+oNoUaDUzVXMYn60MCdOygTA2I+UjnOMiYVhZgmVwNd6ri/yDlmQGXHqbKhNR5NoXdBzSOSGxsgIQ== - dependencies: - q "^1.5.1" - -conventional-changelog-config-spec@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.0.0.tgz#a9e8c9225d4a922d25f4ac501e454274ae4ad0b3" - integrity sha512-zQmcBP/pR8tN5MSv+nXG9hOmy+Z6rgEquBerpoEbOKTFPLoxBy/adeUUpshrMpqdZ/ycqbT2AgdTtiIu/9IHGg== - -conventional-changelog-conventionalcommits@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.1.0.tgz#eb7d47a9c5f1a6f9846a649482294e4ac50d7683" - integrity sha512-J3xolGrH8PTxpCqueHOuZtv3Cp73SQOWiBQzlsaugZAZ+hZgcJBonmC+1bQbfGs2neC2S18p2L1Gx+nTEglJTQ== - dependencies: - compare-func "^1.3.1" - q "^1.5.1" - -conventional-changelog-core@^3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz#b31410856f431c847086a7dcb4d2ca184a7d88fb" - integrity sha512-LMMX1JlxPIq/Ez5aYAYS5CpuwbOk6QFp8O4HLAcZxe3vxoCtABkhfjetk8IYdRB9CDQGwJFLR3Dr55Za6XKgUQ== - dependencies: - conventional-changelog-writer "^4.0.6" - conventional-commits-parser "^3.0.3" - dateformat "^3.0.0" - get-pkg-repo "^1.0.0" - git-raw-commits "2.0.0" - git-remote-origin-url "^2.0.0" - git-semver-tags "^2.0.3" - lodash "^4.2.1" - normalize-package-data "^2.3.5" - q "^1.5.1" - read-pkg "^3.0.0" - read-pkg-up "^3.0.0" - through2 "^3.0.0" - -conventional-changelog-ember@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-2.0.2.tgz#284ffdea8c83ea8c210b65c5b4eb3e5cc0f4f51a" - integrity sha512-qtZbA3XefO/n6DDmkYywDYi6wDKNNc98MMl2F9PKSaheJ25Trpi3336W8fDlBhq0X+EJRuseceAdKLEMmuX2tg== - dependencies: - q "^1.5.1" - -conventional-changelog-eslint@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.2.tgz#e9eb088cda6be3e58b2de6a5aac63df0277f3cbe" - integrity sha512-Yi7tOnxjZLXlCYBHArbIAm8vZ68QUSygFS7PgumPRiEk+9NPUeucy5Wg9AAyKoBprSV3o6P7Oghh4IZSLtKCvQ== - dependencies: - q "^1.5.1" - -conventional-changelog-express@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/conventional-changelog-express/-/conventional-changelog-express-2.0.1.tgz#fea2231d99a5381b4e6badb0c1c40a41fcacb755" - integrity sha512-G6uCuCaQhLxdb4eEfAIHpcfcJ2+ao3hJkbLrw/jSK/eROeNfnxCJasaWdDAfFkxsbpzvQT4W01iSynU3OoPLIw== - dependencies: - q "^1.5.1" - -conventional-changelog-jquery@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.4.tgz#7eb598467b83db96742178e1e8d68598bffcd7ae" - integrity sha512-IVJGI3MseYoY6eybknnTf9WzeQIKZv7aNTm2KQsiFVJH21bfP2q7XVjfoMibdCg95GmgeFlaygMdeoDDa+ZbEQ== - dependencies: - q "^1.5.1" - -conventional-changelog-jshint@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.1.tgz#11c0e8283abf156a4ff78e89be6fdedf9bd72202" - integrity sha512-kRFJsCOZzPFm2tzRHULWP4tauGMvccOlXYf3zGeuSW4U0mZhk5NsjnRZ7xFWrTFPlCLV+PNmHMuXp5atdoZmEg== - dependencies: - compare-func "^1.3.1" - q "^1.5.1" - -conventional-changelog-preset-loader@^2.1.1, conventional-changelog-preset-loader@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.2.0.tgz#571e2b3d7b53d65587bea9eedf6e37faa5db4fcc" - integrity sha512-zXB+5vF7D5Y3Cb/rJfSyCCvFphCVmF8mFqOdncX3BmjZwAtGAPfYrBcT225udilCKvBbHgyzgxqz2GWDB5xShQ== - -conventional-changelog-writer@^4.0.6: - version "4.0.7" - resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.7.tgz#e4b7d9cbea902394ad671f67108a71fa90c7095f" - integrity sha512-p/wzs9eYaxhFbrmX/mCJNwJuvvHR+j4Fd0SQa2xyAhYed6KBiZ780LvoqUUvsayP4R1DtC27czalGUhKV2oabw== - dependencies: - compare-func "^1.3.1" - conventional-commits-filter "^2.0.2" - dateformat "^3.0.0" - handlebars "^4.1.2" - json-stringify-safe "^5.0.1" - lodash "^4.2.1" - meow "^4.0.0" - semver "^6.0.0" - split "^1.0.0" - through2 "^3.0.0" - -conventional-changelog@3.1.9: - version "3.1.9" - resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.9.tgz#5a6a19dadc1e4080c2db8dcddd00a6c0077c55a4" - integrity sha512-JbNVm1iGZ3aXxcFZjqKNDNfdgchQjSltWc8rvSniMrkHLsub9Wn20/JLdJNTBM74dt1IA2M+v/mzServ6N37YA== - dependencies: - conventional-changelog-angular "^5.0.3" - conventional-changelog-atom "^2.0.1" - conventional-changelog-codemirror "^2.0.1" - conventional-changelog-conventionalcommits "^4.0.0" - conventional-changelog-core "^3.2.3" - conventional-changelog-ember "^2.0.2" - conventional-changelog-eslint "^3.0.2" - conventional-changelog-express "^2.0.1" - conventional-changelog-jquery "^3.0.4" - conventional-changelog-jshint "^2.0.1" - conventional-changelog-preset-loader "^2.1.1" - -conventional-commits-filter@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz#f122f89fbcd5bb81e2af2fcac0254d062d1039c1" - integrity sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ== - dependencies: - lodash.ismatch "^4.4.0" - modify-values "^1.0.0" - -conventional-commits-parser@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.0.3.tgz#c3f972fd4e056aa8b9b4f5f3d0e540da18bf396d" - integrity sha512-KaA/2EeUkO4bKjinNfGUyqPTX/6w9JGshuQRik4r/wJz7rUw3+D3fDG6sZSEqJvKILzKXFQuFkpPLclcsAuZcg== - dependencies: - JSONStream "^1.0.4" - is-text-path "^2.0.0" - lodash "^4.2.1" - meow "^4.0.0" - split2 "^2.0.0" - through2 "^3.0.0" - trim-off-newlines "^1.0.0" - -conventional-recommended-bump@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.0.0.tgz#bdafad56bc32bc04d58dbbd8bd6b750375500edc" - integrity sha512-iIHkDOuWCC49J/E4WXvXBCCrO2NoGqwjfhm2iUOHPPEik8TVHxczt/hFaWY+4MXeZ/nC53BNfjmlr8+EXOrlvA== - dependencies: - concat-stream "^2.0.0" - conventional-changelog-preset-loader "^2.2.0" - conventional-commits-filter "^2.0.2" - conventional-commits-parser "^3.0.3" - git-raw-commits "2.0.0" - git-semver-tags "^3.0.0" - meow "^4.0.0" - q "^1.5.1" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= - dependencies: - array-find-index "^1.0.1" - -dargs@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17" - integrity sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc= - dependencies: - number-is-nan "^1.0.0" - -dateformat@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" - integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== - -decamelize-keys@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" - integrity sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk= - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= - -detect-indent@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" - integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA== - -detect-newline@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.0.0.tgz#8ae477c089e51872c264531cd6547719c0b86b2f" - integrity sha512-JAP22dVPAqvhdRFFxK1G5GViIokyUn0UWXRNW0ztK96fsqi9cuM8w8ESbSk+T2w5OVorcMcL6m7yUg1RrX+2CA== - -dot-prop@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" - integrity sha1-G3CK8JSknJoOfbyteQq6U52sEXc= - dependencies: - is-obj "^1.0.0" - -dotgitignore@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/dotgitignore/-/dotgitignore-2.1.0.tgz#a4b15a4e4ef3cf383598aaf1dfa4a04bcc089b7b" - integrity sha512-sCm11ak2oY6DglEPpCB8TixLjWAxd3kJTs6UIcSasNYxXdFPV+YKlye92c8H4kKFqV5qYMIh7d+cYecEg0dIkA== - dependencies: - find-up "^3.0.0" - minimatch "^3.0.4" - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -error-ex@^1.2.0, error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -figures@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.0.0.tgz#756275c964646163cc6f9197c7a0295dbfd04de9" - integrity sha512-HKri+WoWoUgr83pehn/SIgLOMZ9nAWC6dcGj26RY2R4F50u4+RTUz0RCrUlOV3nKRAICW1UGzyb+kcX2qK1S/g== - dependencies: - escape-string-regexp "^1.0.5" - -find-up@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" - integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8= - dependencies: - path-exists "^2.0.0" - pinkie-promise "^2.0.0" - -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= - dependencies: - locate-path "^2.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -fs-access@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a" - integrity sha1-1qh/JiJxzv6+wwxVNAf7mV2od3o= - dependencies: - null-check "^1.0.0" - -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-pkg-repo@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d" - integrity sha1-xztInAbYDMVTbCyFP54FIyBWly0= - dependencies: - hosted-git-info "^2.1.4" - meow "^3.3.0" - normalize-package-data "^2.3.0" - parse-github-repo-url "^1.3.0" - through2 "^2.0.0" - -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= - -git-raw-commits@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.0.tgz#d92addf74440c14bcc5c83ecce3fb7f8a79118b5" - integrity sha512-w4jFEJFgKXMQJ0H0ikBk2S+4KP2VEjhCvLCNqbNRQC8BgGWgLKNCO7a9K9LI+TVT7Gfoloje502sEnctibffgg== - dependencies: - dargs "^4.0.1" - lodash.template "^4.0.2" - meow "^4.0.0" - split2 "^2.0.0" - through2 "^2.0.0" - -git-remote-origin-url@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f" - integrity sha1-UoJlna4hBxRaERJhEq0yFuxfpl8= - dependencies: - gitconfiglocal "^1.0.0" - pify "^2.3.0" - -git-semver-tags@3.0.0, git-semver-tags@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-3.0.0.tgz#fe10147824657662c82efd9341f0fa59f74ddcba" - integrity sha512-T4C/gJ9k2Bnxz+PubtcyiMtUUKrC+Nh9Q4zaECcnmVMwJgPhrNyP/Rf+YpdRqsJbCV/+kYrCH24Xg+IeAmbOPg== - dependencies: - meow "^4.0.0" - semver "^6.0.0" - -git-semver-tags@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-2.0.3.tgz#48988a718acf593800f99622a952a77c405bfa34" - integrity sha512-tj4FD4ww2RX2ae//jSrXZzrocla9db5h0V7ikPl1P/WwoZar9epdUhwR7XHXSgc+ZkNq72BEEerqQuicoEQfzA== - dependencies: - meow "^4.0.0" - semver "^6.0.0" - -gitconfiglocal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b" - integrity sha1-QdBF84UaXqiPA/JMocYXgRRGS5s= - dependencies: - ini "^1.3.2" - -graceful-fs@^4.1.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" - integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== - -handlebars@^4.1.2: - version "4.5.3" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482" - integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA== - dependencies: - neo-async "^2.6.0" - optimist "^0.6.1" - source-map "^0.6.1" - optionalDependencies: - uglify-js "^3.1.4" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - integrity sha1-ji1INIdCEhtKghi3oTfppSBJ3IA= - dependencies: - repeating "^2.0.0" - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= - -inherits@^2.0.3, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ini@^1.3.2: - version "1.3.7" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" - integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ== - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= - -is-finite@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" - integrity sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko= - dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= - -is-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= - -is-text-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-2.0.0.tgz#b2484e2b720a633feb2e85b67dc193ff72c75636" - integrity sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw== - dependencies: - text-extensions "^2.0.0" - -is-utf8@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - -json-stringify-safe@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= - -jsonparse@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" - integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= - -load-json-file@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" - integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - pinkie-promise "^2.0.0" - strip-bom "^2.0.0" - -load-json-file@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" - integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= - dependencies: - graceful-fs "^4.1.2" - parse-json "^4.0.0" - pify "^3.0.0" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= - -lodash.ismatch@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" - integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc= - -lodash.template@^4.0.2: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" - -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" - -lodash@^4.2.1: - version "4.17.19" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" - integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== - -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - -map-obj@^1.0.0, map-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= - -map-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" - integrity sha1-plzSkIepJZi4eRJXpSPgISIqwfk= - -meow@^3.3.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" - integrity sha1-cstmi0JSKCkKu/qFaJJYcwioAfs= - dependencies: - camelcase-keys "^2.0.0" - decamelize "^1.1.2" - loud-rejection "^1.0.0" - map-obj "^1.0.1" - minimist "^1.1.3" - normalize-package-data "^2.3.4" - object-assign "^4.0.1" - read-pkg-up "^1.0.1" - redent "^1.0.0" - trim-newlines "^1.0.0" - -meow@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/meow/-/meow-4.0.1.tgz#d48598f6f4b1472f35bf6317a95945ace347f975" - integrity sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A== - dependencies: - camelcase-keys "^4.0.0" - decamelize-keys "^1.0.0" - loud-rejection "^1.0.0" - minimist "^1.1.3" - minimist-options "^3.0.1" - normalize-package-data "^2.3.4" - read-pkg-up "^3.0.0" - redent "^2.0.0" - trim-newlines "^2.0.0" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -minimist-options@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" - integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - -minimist@^1.1.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= - -minimist@~0.0.1: - version "0.0.10" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" - integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= - -modify-values@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" - integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== - -nan@^2.14.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" - integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== - -neo-async@^2.6.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" - integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== - -normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.3.5: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -null-check@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd" - integrity sha1-l33/1xdgErnsMNKjnbXPcqBDnt0= - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= - -object-assign@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -optimist@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" - integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= - dependencies: - minimist "~0.0.1" - wordwrap "~0.0.2" - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" - integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ== - dependencies: - p-try "^2.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= - dependencies: - p-limit "^1.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parse-github-repo-url@^1.3.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50" - integrity sha1-nn2LslKmy2ukJZUGC3v23z28H1A= - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= - dependencies: - error-ex "^1.2.0" - -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - -path-exists@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" - integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s= - dependencies: - pinkie-promise "^2.0.0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-parse@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" - integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== - -path-type@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" - integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= - dependencies: - graceful-fs "^4.1.2" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== - dependencies: - pify "^3.0.0" - -pify@^2.0.0, pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -q@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" - integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= - -quick-lru@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" - integrity sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g= - -read-pkg-up@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" - integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= - dependencies: - find-up "^1.0.0" - read-pkg "^1.0.0" - -read-pkg-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" - integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc= - dependencies: - find-up "^2.0.0" - read-pkg "^3.0.0" - -read-pkg@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" - integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= - dependencies: - load-json-file "^1.0.0" - normalize-package-data "^2.3.2" - path-type "^1.0.0" - -read-pkg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" - integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= - dependencies: - load-json-file "^4.0.0" - normalize-package-data "^2.3.2" - path-type "^3.0.0" - -"readable-stream@2 || 3", readable-stream@^3.0.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.4.0.tgz#a51c26754658e0a3c21dbf59163bd45ba6f447fc" - integrity sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readable-stream@~2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" - integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -redent@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" - integrity sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94= - dependencies: - indent-string "^2.1.0" - strip-indent "^1.0.1" - -redent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" - integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo= - dependencies: - indent-string "^3.0.0" - strip-indent "^2.0.0" - -regexp-util@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/regexp-util/-/regexp-util-1.2.2.tgz#5cf599134921eb0d776e41d41e9c0da33f0fa2fc" - integrity sha512-5/rl2UD18oAlLQEIuKBeiSIOp1hb5wCXcakl5yvHxlY1wyWI4D5cUKKzCibBeu741PA9JKvZhMqbkDQqPusX3w== - dependencies: - tslib "^1.9.0" - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= - dependencies: - is-finite "^1.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve@^1.10.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" - integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== - dependencies: - path-parse "^1.0.6" - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@~5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" - integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== - -"semver@2 || 3 || 4 || 5": - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@6.3.0, semver@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= - -source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -spdx-correct@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" - integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" - integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== - -spdx-expression-parse@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" - integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.5" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" - integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== - -split2@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" - integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== - dependencies: - through2 "^2.0.2" - -split@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" - integrity sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg== - dependencies: - through "2" - -standard-version@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-7.0.0.tgz#4ce10ea5d20270ed4a32b22d15cce5fd1f1a5bbb" - integrity sha512-pbFXM9vutnxTkSGkqSWQeYCMYqWmFBaLUNdEc/sJDQnMgwB0Csw3CZeeDhi62VoVS3P8mQiYbvXGZWyOBWxUbw== - dependencies: - chalk "2.4.2" - conventional-changelog "3.1.9" - conventional-changelog-config-spec "2.0.0" - conventional-recommended-bump "6.0.0" - detect-indent "6.0.0" - detect-newline "3.0.0" - dotgitignore "2.1.0" - figures "3.0.0" - find-up "4.1.0" - fs-access "1.0.1" - git-semver-tags "3.0.0" - semver "6.3.0" - stringify-package "1.0.0" - yargs "13.3.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -stringify-package@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/stringify-package/-/stringify-package-1.0.0.tgz#e02828089333d7d45cd8c287c30aa9a13375081b" - integrity sha512-JIQqiWmLiEozOC0b0BtxZ/AOUtdUZHCBPgqIZ2kSJJqGwgb9neo44XdTHUC4HZSGqi03hOeB7W/E8rAlKnGe9g== - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= - dependencies: - is-utf8 "^0.2.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= - -strip-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" - integrity sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI= - dependencies: - get-stdin "^4.0.1" - -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -text-extensions@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-2.0.0.tgz#43eabd1b495482fae4a2bf65e5f56c29f69220f6" - integrity sha512-F91ZqLgvi1E0PdvmxMgp+gcf6q8fMH7mhdwWfzXnl1k+GbpQDmi8l7DzLC5JTASKbwpY3TfxajAUzAXcv2NmsQ== - -through2@^2.0.0, through2@^2.0.2: - version "2.0.5" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" - integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== - dependencies: - readable-stream "~2.3.6" - xtend "~4.0.1" - -through2@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/through2/-/through2-3.0.1.tgz#39276e713c3302edf9e388dd9c812dd3b825bd5a" - integrity sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww== - dependencies: - readable-stream "2 || 3" - -through@2, "through@>=2.2.7 <3": - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= - -trim-newlines@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" - integrity sha1-WIeWa7WCpFA6QetST301ARgVphM= - -trim-newlines@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" - integrity sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA= - -trim-off-newlines@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" - integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= - -tslib@^1.9.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" - integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" - integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= - -uglify-js@^3.1.4: - version "3.7.3" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.3.tgz#f918fce9182f466d5140f24bb0ff35c2d32dcc6a" - integrity sha512-7tINm46/3puUA4hCkKYo4Xdts+JDaVC9ZPRcG8Xw9R4nhO/gZgUM3TENq8IF4Vatk8qCig4MzP/c8G4u2BkVQg== - dependencies: - commander "~2.20.3" - source-map "~0.6.1" - -util-deprecate@^1.0.1, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= - -wordwrap@~0.0.2: - version "0.0.3" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" - integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc= - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== - dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" - -xtend@~4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== - -y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== - -yargs-parser@^13.1.1: - version "13.1.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@13.3.0: - version "13.3.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" - integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.1"