From 356820577e7b04664058ede2877b76733f6ac4d0 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Wed, 11 Mar 2026 14:53:19 +0200 Subject: [PATCH] chore: update packages --- .editorconfig | 3 + .gitattributes | 39 +- .gitignore | 10 + CMakeLists.txt | 32 +- Cargo.lock | 96 - Cargo.toml | 19 +- Makefile | 11 +- Package.swift | 14 +- binding.gyp | 7 +- bindings/c/tree-sitter-bruno.pc.in | 1 - .../c/{ => tree_sitter}/tree-sitter-bruno.h | 0 bindings/go/binding.go | 2 + bindings/go/binding_test.go | 2 +- bindings/node/binding.cc | 1 - bindings/node/binding_test.js | 6 +- bindings/node/index.d.ts | 1 - bindings/node/index.js | 6 +- bindings/python/tests/test_binding.py | 5 +- bindings/python/tree_sitter_bruno/__init__.py | 33 +- .../python/tree_sitter_bruno/__init__.pyi | 6 +- bindings/python/tree_sitter_bruno/binding.c | 14 +- bindings/rust/build.rs | 6 +- bindings/rust/lib.rs | 24 +- go.mod | 4 +- package-lock.json | 392 -- package.json | 23 +- pyproject.toml | 64 +- setup.py | 54 +- src/grammar.json | 919 ---- src/node-types.json | 955 ---- src/parser.c | 4528 ----------------- src/scanner.c | 50 - src/tree_sitter/alloc.h | 54 - src/tree_sitter/array.h | 290 -- src/tree_sitter/parser.h | 266 - test/corpus/assert.txt | 47 - test/corpus/auth.txt | 57 - test/corpus/body.txt | 192 - test/corpus/bruno.txt | 31 - test/corpus/methods.txt | 239 - test/corpus/real.txt | 197 - test/corpus/scripts.txt | 60 - uv.lock | 96 - 43 files changed, 207 insertions(+), 8649 deletions(-) delete mode 100644 Cargo.lock rename bindings/c/{ => tree_sitter}/tree-sitter-bruno.h (100%) delete mode 100644 package-lock.json delete mode 100644 src/grammar.json delete mode 100644 src/node-types.json delete mode 100644 src/parser.c delete mode 100644 src/scanner.c delete mode 100644 src/tree_sitter/alloc.h delete mode 100644 src/tree_sitter/array.h delete mode 100644 src/tree_sitter/parser.h delete mode 100644 test/corpus/assert.txt delete mode 100644 test/corpus/auth.txt delete mode 100644 test/corpus/body.txt delete mode 100644 test/corpus/bruno.txt delete mode 100644 test/corpus/methods.txt delete mode 100644 test/corpus/real.txt delete mode 100644 test/corpus/scripts.txt delete mode 100644 uv.lock diff --git a/.editorconfig b/.editorconfig index 7756ee9..65330c4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -41,3 +41,6 @@ indent_size = 8 [parser.c] indent_size = 2 + +[{alloc,array,parser}.h] +indent_size = 2 diff --git a/.gitattributes b/.gitattributes index 9d5c5d4..7772c94 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,13 +1,42 @@ * text=auto eol=lf +# Generated source files src/*.json linguist-generated src/parser.c linguist-generated src/tree_sitter/* linguist-generated -bindings/** linguist-generated -binding.gyp linguist-generated -setup.py linguist-generated -Makefile linguist-generated +# C bindings +bindings/c/** linguist-generated CMakeLists.txt linguist-generated -Package.swift linguist-generated +Makefile linguist-generated + +# Rust bindings +bindings/rust/* linguist-generated +Cargo.toml linguist-generated +Cargo.lock linguist-generated + +# Node.js bindings +bindings/node/* linguist-generated +binding.gyp linguist-generated +package.json linguist-generated +package-lock.json linguist-generated + +# Python bindings +bindings/python/** linguist-generated +setup.py linguist-generated +pyproject.toml linguist-generated + +# Go bindings +bindings/go/* linguist-generated go.mod linguist-generated +go.sum linguist-generated + +# Swift bindings +bindings/swift/** linguist-generated +Package.swift linguist-generated +Package.resolved linguist-generated + +# Zig bindings +bindings/zig/* linguist-generated +build.zig linguist-generated +build.zig.zon linguist-generated diff --git a/.gitignore b/.gitignore index 308fcab..87a0c80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,16 @@ # Rust artifacts target/ +Cargo.lock # Node artifacts build/ prebuilds/ node_modules/ +package-lock.json # Swift artifacts .build/ +Package.resolved # Go artifacts _obj/ @@ -25,6 +28,13 @@ dist/ *.dylib *.dll *.pc +*.exp +*.lib + +# Zig artifacts +.zig-cache/ +zig-cache/ +zig-out/ # Example dirs /examples/*/ diff --git a/CMakeLists.txt b/CMakeLists.txt index e3efb34..4d9b696 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,19 +2,21 @@ cmake_minimum_required(VERSION 3.13) project(tree-sitter-bruno VERSION "0.1.0" - DESCRIPTION " Bruno grammar for tree-sitter" - HOMEPAGE_URL "https://github.com/kristoferssolo/tree-sitter-bruno" + DESCRIPTION "Bruno grammar for tree-sitter" + HOMEPAGE_URL "https://codeberg.org/kristoferssolo/tree-sitter-bruno" LANGUAGES C) option(BUILD_SHARED_LIBS "Build using shared libraries" ON) option(TREE_SITTER_REUSE_ALLOCATOR "Reuse the library allocator" OFF) -set(TREE_SITTER_ABI_VERSION 14 CACHE STRING "Tree-sitter ABI version") +set(TREE_SITTER_ABI_VERSION 15 CACHE STRING "Tree-sitter ABI version") if(NOT ${TREE_SITTER_ABI_VERSION} MATCHES "^[0-9]+$") unset(TREE_SITTER_ABI_VERSION CACHE) message(FATAL_ERROR "TREE_SITTER_ABI_VERSION must be an integer") endif() +include(GNUInstallDirs) + find_program(TREE_SITTER_CLI tree-sitter DOC "Tree-sitter CLI") add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/src/parser.c" @@ -25,10 +27,13 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/src/parser.c" COMMENT "Generating parser.c") add_library(tree-sitter-bruno src/parser.c) -if(EXISTS src/scanner.c) +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/scanner.c) target_sources(tree-sitter-bruno PRIVATE src/scanner.c) endif() -target_include_directories(tree-sitter-bruno PRIVATE src) +target_include_directories(tree-sitter-bruno + PRIVATE src + INTERFACE $ + $) target_compile_definitions(tree-sitter-bruno PRIVATE $<$:TREE_SITTER_REUSE_ALLOCATOR> @@ -44,17 +49,18 @@ set_target_properties(tree-sitter-bruno configure_file(bindings/c/tree-sitter-bruno.pc.in "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-bruno.pc" @ONLY) -include(GNUInstallDirs) - -install(FILES bindings/c/tree-sitter-bruno.h - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/tree_sitter") +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree_sitter" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + FILES_MATCHING PATTERN "*.h") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-bruno.pc" - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig") + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") install(TARGETS tree-sitter-bruno LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") -add_custom_target(test "${TREE_SITTER_CLI}" test +file(GLOB QUERIES queries/*.scm) +install(FILES ${QUERIES} + DESTINATION "${CMAKE_INSTALL_DATADIR}/tree-sitter/queries/bruno") + +add_custom_target(ts-test "${TREE_SITTER_CLI}" test WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" COMMENT "tree-sitter test") - -# vim:ft=cmake: diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 40f4777..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,96 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "cc" -version = "1.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" -dependencies = [ - "shlex", -] - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "regex" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "streaming-iterator" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" - -[[package]] -name = "tree-sitter" -version = "0.24.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ac95b18f0f727aaaa012bd5179a1916706ee3ed071920fdbda738750b0c0bf5" -dependencies = [ - "cc", - "regex", - "regex-syntax", - "streaming-iterator", - "tree-sitter-language", -] - -[[package]] -name = "tree-sitter-bruno" -version = "0.1.0" -dependencies = [ - "cc", - "tree-sitter", - "tree-sitter-language", -] - -[[package]] -name = "tree-sitter-language" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c199356c799a8945965bb5f2c55b2ad9d9aa7c4b4f6e587fe9dea0bc715e5f9c" diff --git a/Cargo.toml b/Cargo.toml index dfe9562..db47ae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,25 @@ [package] name = "tree-sitter-bruno" -description = " Bruno grammar for tree-sitter" +description = "Bruno grammar for tree-sitter" version = "0.1.0" authors = ["Kristofers Solo "] license = "MIT" readme = "README.md" keywords = ["incremental", "parsing", "tree-sitter", "bruno"] -categories = ["parsing", "text-editors"] -repository = "https://github.com/kristoferssolo/tree-sitter-bruno" +categories = ["parser-implementations", "parsing", "text-editors"] +repository = "https://codeberg.org/kristoferssolo/tree-sitter-bruno" edition = "2021" autoexamples = false build = "bindings/rust/build.rs" -include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] +include = [ + "bindings/rust/*", + "grammar.js", + "queries/*", + "src/*", + "tree-sitter.json", + "/LICENSE", +] [lib] path = "bindings/rust/lib.rs" @@ -21,7 +28,7 @@ path = "bindings/rust/lib.rs" tree-sitter-language = "0.1" [build-dependencies] -cc = "1.1.22" +cc = "1.2" [dev-dependencies] -tree-sitter = "0.24.3" +tree-sitter = "0.25.10" diff --git a/Makefile b/Makefile index f748a64..d2c6d5c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ $(error Windows is not supported) endif LANGUAGE_NAME := tree-sitter-bruno -HOMEPAGE_URL := https://github.com/kristoferssolo/tree-sitter-bruno +HOMEPAGE_URL := https://codeberg.org/kristoferssolo/tree-sitter-bruno VERSION := 0.1.0 # repository @@ -13,6 +13,7 @@ TS ?= tree-sitter # install directory layout PREFIX ?= /usr/local +DATADIR ?= $(PREFIX)/share INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib PCLIBDIR ?= $(LIBDIR)/pkgconfig @@ -69,13 +70,16 @@ $(PARSER): $(SRC_DIR)/grammar.json $(TS) generate $^ install: all - install -d '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter '$(DESTDIR)$(PCLIBDIR)' '$(DESTDIR)$(LIBDIR)' - install -m644 bindings/c/$(LANGUAGE_NAME).h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/$(LANGUAGE_NAME).h + install -d '$(DESTDIR)$(DATADIR)'/tree-sitter/queries/bruno '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter '$(DESTDIR)$(PCLIBDIR)' '$(DESTDIR)$(LIBDIR)' + install -m644 bindings/c/tree_sitter/$(LANGUAGE_NAME).h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/$(LANGUAGE_NAME).h install -m644 $(LANGUAGE_NAME).pc '$(DESTDIR)$(PCLIBDIR)'/$(LANGUAGE_NAME).pc install -m644 lib$(LANGUAGE_NAME).a '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).a install -m755 lib$(LANGUAGE_NAME).$(SOEXT) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXTVER) ln -sf lib$(LANGUAGE_NAME).$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXTVER_MAJOR) ln -sf lib$(LANGUAGE_NAME).$(SOEXTVER_MAJOR) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXT) +ifneq ($(wildcard queries/*.scm),) + install -m644 queries/*.scm '$(DESTDIR)$(DATADIR)'/tree-sitter/queries/bruno +endif uninstall: $(RM) '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).a \ @@ -84,6 +88,7 @@ uninstall: '$(DESTDIR)$(LIBDIR)'/lib$(LANGUAGE_NAME).$(SOEXT) \ '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/$(LANGUAGE_NAME).h \ '$(DESTDIR)$(PCLIBDIR)'/$(LANGUAGE_NAME).pc + $(RM) -r '$(DESTDIR)$(DATADIR)'/tree-sitter/queries/bruno clean: $(RM) $(OBJS) $(LANGUAGE_NAME).pc lib$(LANGUAGE_NAME).a lib$(LANGUAGE_NAME).$(SOEXT) diff --git a/Package.swift b/Package.swift index 1d0b725..4a39a7c 100644 --- a/Package.swift +++ b/Package.swift @@ -1,23 +1,27 @@ // swift-tools-version:5.3 + +import Foundation import PackageDescription +var sources = ["src/parser.c"] +if FileManager.default.fileExists(atPath: "src/scanner.c") { + sources.append("src/scanner.c") +} + let package = Package( name: "TreeSitterBruno", products: [ .library(name: "TreeSitterBruno", targets: ["TreeSitterBruno"]), ], dependencies: [ - .package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", from: "0.8.0"), + .package(name: "SwiftTreeSitter", url: "https://github.com/tree-sitter/swift-tree-sitter", from: "0.9.0"), ], targets: [ .target( name: "TreeSitterBruno", dependencies: [], path: ".", - sources: [ - "src/parser.c", - "src/scanner.c", - ], + sources: sources, resources: [ .copy("queries") ], diff --git a/binding.gyp b/binding.gyp index c636173..459da60 100644 --- a/binding.gyp +++ b/binding.gyp @@ -11,9 +11,14 @@ "sources": [ "bindings/node/binding.cc", "src/parser.c", - "src/scanner.c", ], + "variables": { + "has_scanner": "::New(env, tree_sitter_bruno()); language.TypeTag(&LANGUAGE_TYPE_TAG); exports["language"] = language; diff --git a/bindings/node/binding_test.js b/bindings/node/binding_test.js index afede30..55becac 100644 --- a/bindings/node/binding_test.js +++ b/bindings/node/binding_test.js @@ -1,9 +1,9 @@ -/// - const assert = require("node:assert"); const { test } = require("node:test"); +const Parser = require("tree-sitter"); + test("can load grammar", () => { - const parser = new (require("tree-sitter"))(); + const parser = new Parser(); assert.doesNotThrow(() => parser.setLanguage(require("."))); }); diff --git a/bindings/node/index.d.ts b/bindings/node/index.d.ts index efe259e..528e060 100644 --- a/bindings/node/index.d.ts +++ b/bindings/node/index.d.ts @@ -19,7 +19,6 @@ type NodeInfo = }); type Language = { - name: string; language: unknown; nodeTypeInfo: NodeInfo[]; }; diff --git a/bindings/node/index.js b/bindings/node/index.js index 6657bcf..e421ba3 100644 --- a/bindings/node/index.js +++ b/bindings/node/index.js @@ -1,6 +1,10 @@ const root = require("path").join(__dirname, "..", ".."); -module.exports = require("node-gyp-build")(root); +module.exports = + typeof process.versions.bun === "string" + // Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time + ? require(`../../prebuilds/${process.platform}-${process.arch}/tree-sitter-bruno.node`) + : require("node-gyp-build")(root); try { module.exports.nodeTypeInfo = require("../../src/node-types.json"); diff --git a/bindings/python/tests/test_binding.py b/bindings/python/tests/test_binding.py index 99c0314..69b2bcf 100644 --- a/bindings/python/tests/test_binding.py +++ b/bindings/python/tests/test_binding.py @@ -1,13 +1,12 @@ from unittest import TestCase +from tree_sitter import Language, Parser import tree_sitter_bruno -import tree_sitter - class TestLanguage(TestCase): def test_can_load_grammar(self): try: - tree_sitter.Language(tree_sitter_bruno.language()) + Parser(Language(tree_sitter_bruno.language())) except Exception: self.fail("Error loading Bruno grammar") diff --git a/bindings/python/tree_sitter_bruno/__init__.py b/bindings/python/tree_sitter_bruno/__init__.py index ab704f5..15e9219 100644 --- a/bindings/python/tree_sitter_bruno/__init__.py +++ b/bindings/python/tree_sitter_bruno/__init__.py @@ -6,7 +6,7 @@ from ._binding import language def _get_query(name, file): - query = _files(f"{__package__}.queries") / "bruno" / file + query = _files(f"{__package__}.queries") / file globals()[name] = query.read_text() return globals()[name] @@ -14,14 +14,14 @@ def _get_query(name, file): def __getattr__(name): # NOTE: uncomment these to include any queries that this grammar contains: - if name == "HIGHLIGHTS_QUERY": - return _get_query("HIGHLIGHTS_QUERY", "highlights.scm") - if name == "INJECTIONS_QUERY": - return _get_query("INJECTIONS_QUERY", "injections.scm") + # if name == "HIGHLIGHTS_QUERY": + # return _get_query("HIGHLIGHTS_QUERY", "highlights.scm") + # if name == "INJECTIONS_QUERY": + # return _get_query("INJECTIONS_QUERY", "injections.scm") # if name == "LOCALS_QUERY": # return _get_query("LOCALS_QUERY", "locals.scm") - if name == "TAGS_QUERY": - return _get_query("TAGS_QUERY", "tags.scm") + # if name == "TAGS_QUERY": + # return _get_query("TAGS_QUERY", "tags.scm") raise AttributeError(f"module {__name__!r} has no attribute {name!r}") @@ -36,18 +36,7 @@ __all__ = [ def __dir__(): - return sorted( - __all__ - + [ - "__all__", - "__builtins__", - "__cached__", - "__doc__", - "__file__", - "__loader__", - "__name__", - "__package__", - "__path__", - "__spec__", - ] - ) + return sorted(__all__ + [ + "__all__", "__builtins__", "__cached__", "__doc__", "__file__", + "__loader__", "__name__", "__package__", "__path__", "__spec__", + ]) diff --git a/bindings/python/tree_sitter_bruno/__init__.pyi b/bindings/python/tree_sitter_bruno/__init__.pyi index 249ee53..abf6633 100644 --- a/bindings/python/tree_sitter_bruno/__init__.pyi +++ b/bindings/python/tree_sitter_bruno/__init__.pyi @@ -2,9 +2,9 @@ from typing import Final # NOTE: uncomment these to include any queries that this grammar contains: -HIGHLIGHTS_QUERY: Final[str] -INJECTIONS_QUERY: Final[str] +# HIGHLIGHTS_QUERY: Final[str] +# INJECTIONS_QUERY: Final[str] # LOCALS_QUERY: Final[str] -TAGS_QUERY: Final[str] +# TAGS_QUERY: Final[str] def language() -> object: ... diff --git a/bindings/python/tree_sitter_bruno/binding.c b/bindings/python/tree_sitter_bruno/binding.c index 62be54b..d2e268e 100644 --- a/bindings/python/tree_sitter_bruno/binding.c +++ b/bindings/python/tree_sitter_bruno/binding.c @@ -8,6 +8,13 @@ static PyObject* _binding_language(PyObject *Py_UNUSED(self), PyObject *Py_UNUSE return PyCapsule_New(tree_sitter_bruno(), "tree_sitter.Language", NULL); } +static struct PyModuleDef_Slot slots[] = { +#ifdef Py_GIL_DISABLED + {Py_mod_gil, Py_MOD_GIL_NOT_USED}, +#endif + {0, NULL} +}; + static PyMethodDef methods[] = { {"language", _binding_language, METH_NOARGS, "Get the tree-sitter language for this grammar."}, @@ -18,10 +25,11 @@ static struct PyModuleDef module = { .m_base = PyModuleDef_HEAD_INIT, .m_name = "_binding", .m_doc = NULL, - .m_size = -1, - .m_methods = methods + .m_size = 0, + .m_methods = methods, + .m_slots = slots, }; PyMODINIT_FUNC PyInit__binding(void) { - return PyModule_Create(&module); + return PyModuleDef_Init(&module); } diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 5c38431..385b054 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -12,8 +12,10 @@ fn main() { println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap()); let scanner_path = src_dir.join("scanner.c"); - c_config.file(&scanner_path); - println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap()); + if scanner_path.exists() { + c_config.file(&scanner_path); + println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap()); + } c_config.compile("tree-sitter-bruno"); } diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 48f8251..439aa91 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -1,7 +1,7 @@ -//! This crate provides Bruno language support for the [tree-sitter][] parsing library. +//! This crate provides Bruno language support for the [tree-sitter] parsing library. //! -//! Typically, you will use the [LANGUAGE][] constant to add this language to a -//! tree-sitter [Parser][], and then use the parser to parse some code: +//! Typically, you will use the [`LANGUAGE`] constant to add this language to a +//! tree-sitter [`Parser`], and then use the parser to parse some code: //! //! ``` //! let code = r#" @@ -15,7 +15,7 @@ //! assert!(!tree.root_node().has_error()); //! ``` //! -//! [Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html +//! [`Parser`]: https://docs.rs/tree-sitter/0.25.10/tree_sitter/struct.Parser.html //! [tree-sitter]: https://tree-sitter.github.io/ use tree_sitter_language::LanguageFn; @@ -24,22 +24,20 @@ extern "C" { fn tree_sitter_bruno() -> *const (); } -/// The tree-sitter [`LanguageFn`][LanguageFn] for this grammar. -/// -/// [LanguageFn]: https://docs.rs/tree-sitter-language/*/tree_sitter_language/struct.LanguageFn.html +/// The tree-sitter [`LanguageFn`] for this grammar. pub const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_bruno) }; -/// The content of the [`node-types.json`][] file for this grammar. +/// The content of the [`node-types.json`] file for this grammar. /// -/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types +/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types pub const NODE_TYPES: &str = include_str!("../../src/node-types.json"); // NOTE: uncomment these to include any queries that this grammar contains: -pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/bruno/highlights.scm"); -pub const INJECTIONS_QUERY: &str = include_str!("../../queries/bruno/injections.scm"); -// pub const LOCALS_QUERY: &str = include_str!("../../queries/bruno/locals.scm"); -pub const TAGS_QUERY: &str = include_str!("../../queries/bruno/tags.scm"); +// pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm"); +// pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm"); +// pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm"); +// pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm"); #[cfg(test)] mod tests { diff --git a/go.mod b/go.mod index bbb1f60..2e5a009 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module github.com/kristoferssolo/tree-sitter-bruno +module codeberg.org/kristoferssolo/tree-sitter-bruno go 1.22 -require github.com/tree-sitter/go-tree-sitter v0.23.1 +require github.com/tree-sitter/go-tree-sitter v0.24.0 diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 532a4cd..0000000 --- a/package-lock.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "name": "tree-sitter-bruno", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "tree-sitter-bruno", - "version": "0.1.0", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node": "^23.4.0", - "node-addon-api": "^8.1.0", - "node-gyp-build": "^4.8.2" - }, - "devDependencies": { - "prebuildify": "^6.0.1", - "tree-sitter-cli": "^0.24.3" - }, - "peerDependencies": { - "tree-sitter": "^0.21.1" - }, - "peerDependenciesMeta": { - "tree-sitter": { - "optional": true - } - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true, - "license": "ISC" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true, - "license": "MIT" - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true, - "license": "MIT" - }, - "node_modules/node": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/node/-/node-23.4.0.tgz", - "integrity": "sha512-uzDNv0OyY8xC7x1/CuYx2c9G3g33GznkhPFs89Q2trrk7M9JzYFj8nlEbv9E666ihJdop+WaeCQST2Hbm/iKuw==", - "hasInstallScript": true, - "license": "ISC", - "dependencies": { - "node-bin-setup": "^1.0.0" - }, - "bin": { - "node": "bin/node" - }, - "engines": { - "npm": ">=5.0.0" - } - }, - "node_modules/node-abi": { - "version": "3.71.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.71.0.tgz", - "integrity": "sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-addon-api": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.3.0.tgz", - "integrity": "sha512-8VOpLHFrOQlAH+qA0ZzuGRlALRA6/LVh8QJldbrC4DY0hXoMP0l4Acq8TzFC018HztWiRqyCEj2aTWY2UvnJUg==", - "license": "MIT", - "engines": { - "node": "^18 || ^20 || >= 21" - } - }, - "node_modules/node-bin-setup": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.1.3.tgz", - "integrity": "sha512-opgw9iSCAzT2+6wJOETCpeRYAQxSopqQ2z+N6BXwIMsQQ7Zj5M8MaafQY8JMlolRR6R1UXg2WmhKp0p9lSOivg==", - "license": "ISC" - }, - "node_modules/node-gyp-build": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", - "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", - "license": "MIT", - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - } - }, - "node_modules/npm-run-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz", - "integrity": "sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/prebuildify": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/prebuildify/-/prebuildify-6.0.1.tgz", - "integrity": "sha512-8Y2oOOateom/s8dNBsGIcnm6AxPmLH4/nanQzL5lQMU+sC0CMhzARZHizwr36pUPLdvBnOkCNQzxg4djuFSgIw==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5", - "mkdirp-classic": "^0.5.3", - "node-abi": "^3.3.0", - "npm-run-path": "^3.1.0", - "pump": "^3.0.0", - "tar-fs": "^2.1.0" - }, - "bin": { - "prebuildify": "bin.js" - } - }, - "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "dev": true, - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "dev": true, - "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tree-sitter-cli": { - "version": "0.24.5", - "resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.24.5.tgz", - "integrity": "sha512-8EIgV/ERQlpvk1rPSCCjxveAb6Sba8tMiBpeeL68Mueuuqr0wNfhps/I1nFm2OTnpPCUV2PS9nbzzAMoyxSQUg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "tree-sitter": "cli.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" - } - } -} diff --git a/package.json b/package.json index 4e52bff..698461b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "tree-sitter-bruno", "version": "0.1.0", - "description": " Bruno grammar for tree-sitter", - "repository": "github:tree-sitter/tree-sitter-bruno", + "description": "Bruno grammar for tree-sitter", + "repository": "https://codeberg.org/kristoferssolo/tree-sitter-bruno", "license": "MIT", "author": { "name": "Kristofers Solo", @@ -18,6 +18,7 @@ ], "files": [ "grammar.js", + "tree-sitter.json", "binding.gyp", "prebuilds/**", "bindings/node/*", @@ -26,16 +27,16 @@ "*.wasm" ], "dependencies": { - "node": "^23.4.0", - "node-addon-api": "^8.1.0", - "node-gyp-build": "^4.8.2" + "node-addon-api": "^8.5.0", + "node-gyp-build": "^4.8.4" }, "devDependencies": { "prebuildify": "^6.0.1", - "tree-sitter-cli": "^0.24.3" + "tree-sitter": "^0.22.4", + "tree-sitter-cli": "^0.25.10" }, "peerDependencies": { - "tree-sitter": "^0.21.1" + "tree-sitter": "^0.22.4" }, "peerDependenciesMeta": { "tree-sitter": { @@ -47,11 +48,5 @@ "prestart": "tree-sitter build --wasm", "start": "tree-sitter playground", "test": "node --test bindings/node/*_test.js" - }, - "tree-sitter": [ - { - "scope": "source.bruno", - "injection-regex": "^bruno$" - } - ] + } } diff --git a/pyproject.toml b/pyproject.toml index b18e3e4..c97b365 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,81 +1,29 @@ [build-system] -requires = ["setuptools>=42", "wheel"] +requires = ["setuptools>=62.4.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "tree-sitter-bruno" -description = " Bruno grammar for tree-sitter" +description = "Bruno grammar for tree-sitter" version = "0.1.0" keywords = ["incremental", "parsing", "tree-sitter", "bruno"] classifiers = [ "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Compilers", "Topic :: Text Processing :: Linguistic", "Typing :: Typed", ] authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }] -requires-python = ">=3.9" +requires-python = ">=3.10" license.text = "MIT" readme = "README.md" [project.urls] -Homepage = "https://github.com/kristoferssolo/tree-sitter-bruno" +Homepage = "https://codeberg.org/kristoferssolo/tree-sitter-bruno" [project.optional-dependencies] -core = ["tree-sitter~=0.22"] +core = ["tree-sitter~=0.24"] [tool.cibuildwheel] -build = "cp39-*" +build = "cp310-*" build-frontend = "build" - -[dependency-groups] -dev = ["ruff>=0.8.3"] - -[tool.ruff] -show-fixes = true -line-length = 120 -indent-width = 4 -target-version = "py39" - -[tool.ruff.lint] -extend-select = [ - "B", - "BLE", - "C", - "C4", - "E", - "ERA", - "F", - "I", - "ICN", - "INP", - "N", - "PL", - "PGH", - "PIE", - "Q", - "RET", - "RSE", - "RUF", - "S", - "SIM", - "T20", - "TCH", - "TID", - "PT", - "UP", - "DJ", - "W", -] -ignore = [] -preview = true -fixable = ["ALL"] - -[tool.ruff.format] -quote-style = "double" -indent-style = "space" -skip-magic-trailing-comma = false -line-ending = "lf" -docstring-code-format = true -docstring-code-line-length = 40 diff --git a/setup.py b/setup.py index 066b39a..10489e9 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,49 @@ -from os.path import isdir, join -from platform import system +from os import path +from sysconfig import get_config_var from setuptools import Extension, find_packages, setup from setuptools.command.build import build +from setuptools.command.build_ext import build_ext +from setuptools.command.egg_info import egg_info from wheel.bdist_wheel import bdist_wheel class Build(build): def run(self): - if isdir("queries"): - dest = join(self.build_lib, "tree_sitter_bruno", "queries") + if path.isdir("queries"): + dest = path.join(self.build_lib, "tree_sitter_bruno", "queries") self.copy_tree("queries", dest) super().run() +class BuildExt(build_ext): + def build_extension(self, ext: Extension): + if self.compiler.compiler_type != "msvc": + ext.extra_compile_args = ["-std=c11", "-fvisibility=hidden"] + else: + ext.extra_compile_args = ["/std:c11", "/utf-8"] + if path.exists("src/scanner.c"): + ext.sources.append("src/scanner.c") + if ext.py_limited_api: + ext.define_macros.append(("Py_LIMITED_API", "0x030A0000")) + super().build_extension(ext) + + class BdistWheel(bdist_wheel): def get_tag(self): python, abi, platform = super().get_tag() if python.startswith("cp"): - python, abi = "cp39", "abi3" + python, abi = "cp310", "abi3" return python, abi, platform +class EggInfo(egg_info): + def find_sources(self): + super().find_sources() + self.filelist.recursive_include("queries", "*.scm") + self.filelist.include("src/tree_sitter/*.h") + + setup( packages=find_packages("bindings/python"), package_dir={"": "bindings/python"}, @@ -36,26 +58,20 @@ setup( sources=[ "bindings/python/tree_sitter_bruno/binding.c", "src/parser.c", - "src/scanner.c", - ], - extra_compile_args=[ - "-std=c11", - "-fvisibility=hidden", - ] - if system() != "Windows" - else [ - "/std:c11", - "/utf-8", ], define_macros=[ - ("Py_LIMITED_API", "0x03090000"), ("PY_SSIZE_T_CLEAN", None), ("TREE_SITTER_HIDE_SYMBOLS", None), ], include_dirs=["src"], - py_limited_api=True, + py_limited_api=not get_config_var("Py_GIL_DISABLED"), ) ], - cmdclass={"build": Build, "bdist_wheel": BdistWheel}, - zip_safe=False, + cmdclass={ + "build": Build, + "build_ext": BuildExt, + "bdist_wheel": BdistWheel, + "egg_info": EggInfo, + }, + zip_safe=False ) diff --git a/src/grammar.json b/src/grammar.json deleted file mode 100644 index ff4fc91..0000000 --- a/src/grammar.json +++ /dev/null @@ -1,919 +0,0 @@ -{ - "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json", - "name": "bruno", - "rules": { - "source_file": { - "type": "REPEAT", - "content": { - "type": "FIELD", - "name": "tag", - "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "meta" - }, - { - "type": "SYMBOL", - "name": "http" - }, - { - "type": "SYMBOL", - "name": "query" - }, - { - "type": "SYMBOL", - "name": "headers" - }, - { - "type": "SYMBOL", - "name": "auths" - }, - { - "type": "SYMBOL", - "name": "bodies" - }, - { - "type": "SYMBOL", - "name": "varsandassert" - }, - { - "type": "SYMBOL", - "name": "script" - }, - { - "type": "SYMBOL", - "name": "tests" - }, - { - "type": "SYMBOL", - "name": "docs" - } - ] - } - } - }, - "meta": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "meta" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "http": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "http_verb" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "http_verb": { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "get" - }, - { - "type": "STRING", - "value": "post" - }, - { - "type": "STRING", - "value": "put" - }, - { - "type": "STRING", - "value": "delete" - }, - { - "type": "STRING", - "value": "patch" - }, - { - "type": "STRING", - "value": "options" - }, - { - "type": "STRING", - "value": "head" - }, - { - "type": "STRING", - "value": "connect" - }, - { - "type": "STRING", - "value": "trace" - } - ] - }, - "query": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "query" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "headers": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "headers" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "auths": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "authawsv4" - }, - { - "type": "SYMBOL", - "name": "authbasic" - }, - { - "type": "SYMBOL", - "name": "authbearer" - }, - { - "type": "SYMBOL", - "name": "authdigest" - }, - { - "type": "SYMBOL", - "name": "authoauth2" - } - ] - }, - "authawsv4": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "auth:awsv4" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "authbasic": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "auth:basic" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "authbearer": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "auth:bearer" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "authdigest": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "auth:digest" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "authoauth2": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "auth:oauth2" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "bodies": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "bodyjson" - }, - { - "type": "SYMBOL", - "name": "bodytext" - }, - { - "type": "SYMBOL", - "name": "bodyxml" - }, - { - "type": "SYMBOL", - "name": "bodysparql" - }, - { - "type": "SYMBOL", - "name": "bodygraphql" - }, - { - "type": "SYMBOL", - "name": "bodygraphqlvars" - }, - { - "type": "SYMBOL", - "name": "bodyforms" - }, - { - "type": "SYMBOL", - "name": "body" - } - ] - }, - "bodyforms": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "bodyformurlencoded" - }, - { - "type": "SYMBOL", - "name": "bodyformmultipart" - } - ] - }, - "body": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodyjson": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:json" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodytext": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:text" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodyxml": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:xml" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodysparql": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:sparql" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodygraphql": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:graphql" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodygraphqlvars": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:graphql:vars" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "bodyformurlencoded": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:form-urlencoded" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "bodyformmultipart": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "body:multipart-form" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "varsandassert": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "vars" - }, - { - "type": "SYMBOL", - "name": "vars_secret" - }, - { - "type": "SYMBOL", - "name": "varsreq" - }, - { - "type": "SYMBOL", - "name": "varsres" - }, - { - "type": "SYMBOL", - "name": "assert" - }, - { - "type": "SYMBOL", - "name": "params" - } - ] - }, - "vars": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "vars" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "vars_secret": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "vars:secret" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "array" - } - ] - }, - "varsreq": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "vars:pre-request" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "varsres": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "vars:post-response" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "assert": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "assert" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "assert_dictionary" - } - ] - }, - "script": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "scriptreq" - }, - { - "type": "SYMBOL", - "name": "scriptres" - } - ] - }, - "scriptreq": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "script:pre-request" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "scriptres": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "script:post-response" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "params": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "params_path" - }, - { - "type": "SYMBOL", - "name": "params_query" - } - ] - }, - "params_query": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "params:query" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "params_path": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "params:path" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "dictionary" - } - ] - }, - "tests": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "tests" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "docs": { - "type": "SEQ", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "docs" - }, - "named": true, - "value": "keyword" - }, - { - "type": "SYMBOL", - "name": "textblock" - } - ] - }, - "textblock": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "{" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "rawtext" - }, - { - "type": "BLANK" - } - ] - }, - { - "type": "STRING", - "value": "}" - } - ] - }, - "array": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "[" - }, - { - "type": "REPEAT", - "content": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "array_value" - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "BLANK" - } - ] - } - ] - } - }, - { - "type": "STRING", - "value": "]" - } - ] - }, - "array_value": { - "type": "PATTERN", - "value": "[^\\r\\n\\s\\t\\[\\],]+" - }, - "dictionary": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "{" - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "dictionary_pair" - } - }, - { - "type": "STRING", - "value": "}" - } - ] - }, - "dictionary_pair": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "key" - }, - { - "type": "STRING", - "value": ":" - }, - { - "type": "SYMBOL", - "name": "value" - } - ] - }, - "assert_dictionary": { - "type": "SEQ", - "members": [ - { - "type": "STRING", - "value": "{" - }, - { - "type": "REPEAT", - "content": { - "type": "SYMBOL", - "name": "assert_dictionary_pair" - } - }, - { - "type": "STRING", - "value": "}" - } - ] - }, - "assert_dictionary_pair": { - "type": "SEQ", - "members": [ - { - "type": "SYMBOL", - "name": "assert_key" - }, - { - "type": "STRING", - "value": ":" - }, - { - "type": "SYMBOL", - "name": "value" - } - ] - }, - "assert_key": { - "type": "PATTERN", - "value": "[^\\r\\n:]+" - }, - "key": { - "type": "PATTERN", - "value": "[^\\s\\r\\n:]+" - }, - "value": { - "type": "PATTERN", - "value": "[^\\r\\n]*" - } - }, - "extras": [ - { - "type": "PATTERN", - "value": "\\s+|(\\r?\\n)" - } - ], - "conflicts": [], - "precedences": [], - "externals": [ - { - "type": "SYMBOL", - "name": "rawtext" - } - ], - "inline": [], - "supertypes": [] -} diff --git a/src/node-types.json b/src/node-types.json deleted file mode 100644 index d489ef7..0000000 --- a/src/node-types.json +++ /dev/null @@ -1,955 +0,0 @@ -[ - { - "type": "array", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "array_value", - "named": true - } - ] - } - }, - { - "type": "assert", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "assert_dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "assert_dictionary", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "assert_dictionary_pair", - "named": true - } - ] - } - }, - { - "type": "assert_dictionary_pair", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "assert_key", - "named": true - }, - { - "type": "value", - "named": true - } - ] - } - }, - { - "type": "authawsv4", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "authbasic", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "authbearer", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "authdigest", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "authoauth2", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "auths", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "authawsv4", - "named": true - }, - { - "type": "authbasic", - "named": true - }, - { - "type": "authbearer", - "named": true - }, - { - "type": "authdigest", - "named": true - }, - { - "type": "authoauth2", - "named": true - } - ] - } - }, - { - "type": "bodies", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "body", - "named": true - }, - { - "type": "bodyforms", - "named": true - }, - { - "type": "bodygraphql", - "named": true - }, - { - "type": "bodygraphqlvars", - "named": true - }, - { - "type": "bodyjson", - "named": true - }, - { - "type": "bodysparql", - "named": true - }, - { - "type": "bodytext", - "named": true - }, - { - "type": "bodyxml", - "named": true - } - ] - } - }, - { - "type": "body", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodyformmultipart", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "bodyforms", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "bodyformmultipart", - "named": true - }, - { - "type": "bodyformurlencoded", - "named": true - } - ] - } - }, - { - "type": "bodyformurlencoded", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "bodygraphql", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodygraphqlvars", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodyjson", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodysparql", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodytext", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "bodyxml", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "dictionary", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "dictionary_pair", - "named": true - } - ] - } - }, - { - "type": "dictionary_pair", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "key", - "named": true - }, - { - "type": "value", - "named": true - } - ] - } - }, - { - "type": "docs", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "headers", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "http", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "keyword", - "named": true, - "fields": {} - }, - { - "type": "meta", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "params", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "params_path", - "named": true - }, - { - "type": "params_query", - "named": true - } - ] - } - }, - { - "type": "params_path", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "params_query", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "query", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "script", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "scriptreq", - "named": true - }, - { - "type": "scriptres", - "named": true - } - ] - } - }, - { - "type": "scriptreq", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "scriptres", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "source_file", - "named": true, - "root": true, - "fields": { - "tag": { - "multiple": true, - "required": false, - "types": [ - { - "type": "auths", - "named": true - }, - { - "type": "bodies", - "named": true - }, - { - "type": "docs", - "named": true - }, - { - "type": "headers", - "named": true - }, - { - "type": "http", - "named": true - }, - { - "type": "meta", - "named": true - }, - { - "type": "query", - "named": true - }, - { - "type": "script", - "named": true - }, - { - "type": "tests", - "named": true - }, - { - "type": "varsandassert", - "named": true - } - ] - } - } - }, - { - "type": "tests", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "keyword", - "named": true - }, - { - "type": "textblock", - "named": true - } - ] - } - }, - { - "type": "textblock", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": false, - "types": [ - { - "type": "rawtext", - "named": true - } - ] - } - }, - { - "type": "vars", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "vars_secret", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "array", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "varsandassert", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "assert", - "named": true - }, - { - "type": "params", - "named": true - }, - { - "type": "vars", - "named": true - }, - { - "type": "vars_secret", - "named": true - }, - { - "type": "varsreq", - "named": true - }, - { - "type": "varsres", - "named": true - } - ] - } - }, - { - "type": "varsreq", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": "varsres", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": true, - "types": [ - { - "type": "dictionary", - "named": true - }, - { - "type": "keyword", - "named": true - } - ] - } - }, - { - "type": ",", - "named": false - }, - { - "type": ":", - "named": false - }, - { - "type": "[", - "named": false - }, - { - "type": "]", - "named": false - }, - { - "type": "array_value", - "named": true - }, - { - "type": "assert_key", - "named": true - }, - { - "type": "connect", - "named": false - }, - { - "type": "delete", - "named": false - }, - { - "type": "get", - "named": false - }, - { - "type": "head", - "named": false - }, - { - "type": "key", - "named": true - }, - { - "type": "options", - "named": false - }, - { - "type": "patch", - "named": false - }, - { - "type": "post", - "named": false - }, - { - "type": "put", - "named": false - }, - { - "type": "rawtext", - "named": true - }, - { - "type": "trace", - "named": false - }, - { - "type": "value", - "named": true - }, - { - "type": "{", - "named": false - }, - { - "type": "}", - "named": false - } -] \ No newline at end of file diff --git a/src/parser.c b/src/parser.c deleted file mode 100644 index c335210..0000000 --- a/src/parser.c +++ /dev/null @@ -1,4528 +0,0 @@ -#include "tree_sitter/parser.h" - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -#define LANGUAGE_VERSION 14 -#define STATE_COUNT 98 -#define LARGE_STATE_COUNT 4 -#define SYMBOL_COUNT 96 -#define ALIAS_COUNT 0 -#define TOKEN_COUNT 49 -#define EXTERNAL_TOKEN_COUNT 1 -#define FIELD_COUNT 1 -#define MAX_ALIAS_SEQUENCE_LENGTH 3 -#define PRODUCTION_ID_COUNT 4 - -enum ts_symbol_identifiers { - anon_sym_meta = 1, - anon_sym_get = 2, - anon_sym_post = 3, - anon_sym_put = 4, - anon_sym_delete = 5, - anon_sym_patch = 6, - anon_sym_options = 7, - anon_sym_head = 8, - anon_sym_connect = 9, - anon_sym_trace = 10, - anon_sym_query = 11, - anon_sym_headers = 12, - anon_sym_auth_COLONawsv4 = 13, - anon_sym_auth_COLONbasic = 14, - anon_sym_auth_COLONbearer = 15, - anon_sym_auth_COLONdigest = 16, - anon_sym_auth_COLONoauth2 = 17, - anon_sym_body = 18, - anon_sym_body_COLONjson = 19, - anon_sym_body_COLONtext = 20, - anon_sym_body_COLONxml = 21, - anon_sym_body_COLONsparql = 22, - anon_sym_body_COLONgraphql = 23, - anon_sym_body_COLONgraphql_COLONvars = 24, - anon_sym_body_COLONform_DASHurlencoded = 25, - anon_sym_body_COLONmultipart_DASHform = 26, - anon_sym_vars = 27, - anon_sym_vars_COLONsecret = 28, - anon_sym_vars_COLONpre_DASHrequest = 29, - anon_sym_vars_COLONpost_DASHresponse = 30, - anon_sym_assert = 31, - anon_sym_script_COLONpre_DASHrequest = 32, - anon_sym_script_COLONpost_DASHresponse = 33, - anon_sym_params_COLONquery = 34, - anon_sym_params_COLONpath = 35, - anon_sym_tests = 36, - anon_sym_docs = 37, - anon_sym_LBRACE = 38, - anon_sym_RBRACE = 39, - anon_sym_LBRACK = 40, - anon_sym_COMMA = 41, - anon_sym_RBRACK = 42, - sym_array_value = 43, - anon_sym_COLON = 44, - sym_assert_key = 45, - sym_key = 46, - sym_value = 47, - sym_rawtext = 48, - sym_source_file = 49, - sym_meta = 50, - sym_http = 51, - sym_http_verb = 52, - sym_query = 53, - sym_headers = 54, - sym_auths = 55, - sym_authawsv4 = 56, - sym_authbasic = 57, - sym_authbearer = 58, - sym_authdigest = 59, - sym_authoauth2 = 60, - sym_bodies = 61, - sym_bodyforms = 62, - sym_body = 63, - sym_bodyjson = 64, - sym_bodytext = 65, - sym_bodyxml = 66, - sym_bodysparql = 67, - sym_bodygraphql = 68, - sym_bodygraphqlvars = 69, - sym_bodyformurlencoded = 70, - sym_bodyformmultipart = 71, - sym_varsandassert = 72, - sym_vars = 73, - sym_vars_secret = 74, - sym_varsreq = 75, - sym_varsres = 76, - sym_assert = 77, - sym_script = 78, - sym_scriptreq = 79, - sym_scriptres = 80, - sym_params = 81, - sym_params_query = 82, - sym_params_path = 83, - sym_tests = 84, - sym_docs = 85, - sym_textblock = 86, - sym_array = 87, - sym_dictionary = 88, - sym_dictionary_pair = 89, - sym_assert_dictionary = 90, - sym_assert_dictionary_pair = 91, - aux_sym_source_file_repeat1 = 92, - aux_sym_array_repeat1 = 93, - aux_sym_dictionary_repeat1 = 94, - aux_sym_assert_dictionary_repeat1 = 95, -}; - -static const char * const ts_symbol_names[] = { - [ts_builtin_sym_end] = "end", - [anon_sym_meta] = "keyword", - [anon_sym_get] = "get", - [anon_sym_post] = "post", - [anon_sym_put] = "put", - [anon_sym_delete] = "delete", - [anon_sym_patch] = "patch", - [anon_sym_options] = "options", - [anon_sym_head] = "head", - [anon_sym_connect] = "connect", - [anon_sym_trace] = "trace", - [anon_sym_query] = "keyword", - [anon_sym_headers] = "keyword", - [anon_sym_auth_COLONawsv4] = "keyword", - [anon_sym_auth_COLONbasic] = "keyword", - [anon_sym_auth_COLONbearer] = "keyword", - [anon_sym_auth_COLONdigest] = "keyword", - [anon_sym_auth_COLONoauth2] = "keyword", - [anon_sym_body] = "keyword", - [anon_sym_body_COLONjson] = "keyword", - [anon_sym_body_COLONtext] = "keyword", - [anon_sym_body_COLONxml] = "keyword", - [anon_sym_body_COLONsparql] = "keyword", - [anon_sym_body_COLONgraphql] = "keyword", - [anon_sym_body_COLONgraphql_COLONvars] = "keyword", - [anon_sym_body_COLONform_DASHurlencoded] = "keyword", - [anon_sym_body_COLONmultipart_DASHform] = "keyword", - [anon_sym_vars] = "keyword", - [anon_sym_vars_COLONsecret] = "keyword", - [anon_sym_vars_COLONpre_DASHrequest] = "keyword", - [anon_sym_vars_COLONpost_DASHresponse] = "keyword", - [anon_sym_assert] = "keyword", - [anon_sym_script_COLONpre_DASHrequest] = "keyword", - [anon_sym_script_COLONpost_DASHresponse] = "keyword", - [anon_sym_params_COLONquery] = "keyword", - [anon_sym_params_COLONpath] = "keyword", - [anon_sym_tests] = "keyword", - [anon_sym_docs] = "keyword", - [anon_sym_LBRACE] = "{", - [anon_sym_RBRACE] = "}", - [anon_sym_LBRACK] = "[", - [anon_sym_COMMA] = ",", - [anon_sym_RBRACK] = "]", - [sym_array_value] = "array_value", - [anon_sym_COLON] = ":", - [sym_assert_key] = "assert_key", - [sym_key] = "key", - [sym_value] = "value", - [sym_rawtext] = "rawtext", - [sym_source_file] = "source_file", - [sym_meta] = "meta", - [sym_http] = "http", - [sym_http_verb] = "keyword", - [sym_query] = "query", - [sym_headers] = "headers", - [sym_auths] = "auths", - [sym_authawsv4] = "authawsv4", - [sym_authbasic] = "authbasic", - [sym_authbearer] = "authbearer", - [sym_authdigest] = "authdigest", - [sym_authoauth2] = "authoauth2", - [sym_bodies] = "bodies", - [sym_bodyforms] = "bodyforms", - [sym_body] = "body", - [sym_bodyjson] = "bodyjson", - [sym_bodytext] = "bodytext", - [sym_bodyxml] = "bodyxml", - [sym_bodysparql] = "bodysparql", - [sym_bodygraphql] = "bodygraphql", - [sym_bodygraphqlvars] = "bodygraphqlvars", - [sym_bodyformurlencoded] = "bodyformurlencoded", - [sym_bodyformmultipart] = "bodyformmultipart", - [sym_varsandassert] = "varsandassert", - [sym_vars] = "vars", - [sym_vars_secret] = "vars_secret", - [sym_varsreq] = "varsreq", - [sym_varsres] = "varsres", - [sym_assert] = "assert", - [sym_script] = "script", - [sym_scriptreq] = "scriptreq", - [sym_scriptres] = "scriptres", - [sym_params] = "params", - [sym_params_query] = "params_query", - [sym_params_path] = "params_path", - [sym_tests] = "tests", - [sym_docs] = "docs", - [sym_textblock] = "textblock", - [sym_array] = "array", - [sym_dictionary] = "dictionary", - [sym_dictionary_pair] = "dictionary_pair", - [sym_assert_dictionary] = "assert_dictionary", - [sym_assert_dictionary_pair] = "assert_dictionary_pair", - [aux_sym_source_file_repeat1] = "source_file_repeat1", - [aux_sym_array_repeat1] = "array_repeat1", - [aux_sym_dictionary_repeat1] = "dictionary_repeat1", - [aux_sym_assert_dictionary_repeat1] = "assert_dictionary_repeat1", -}; - -static const TSSymbol ts_symbol_map[] = { - [ts_builtin_sym_end] = ts_builtin_sym_end, - [anon_sym_meta] = anon_sym_meta, - [anon_sym_get] = anon_sym_get, - [anon_sym_post] = anon_sym_post, - [anon_sym_put] = anon_sym_put, - [anon_sym_delete] = anon_sym_delete, - [anon_sym_patch] = anon_sym_patch, - [anon_sym_options] = anon_sym_options, - [anon_sym_head] = anon_sym_head, - [anon_sym_connect] = anon_sym_connect, - [anon_sym_trace] = anon_sym_trace, - [anon_sym_query] = anon_sym_meta, - [anon_sym_headers] = anon_sym_meta, - [anon_sym_auth_COLONawsv4] = anon_sym_meta, - [anon_sym_auth_COLONbasic] = anon_sym_meta, - [anon_sym_auth_COLONbearer] = anon_sym_meta, - [anon_sym_auth_COLONdigest] = anon_sym_meta, - [anon_sym_auth_COLONoauth2] = anon_sym_meta, - [anon_sym_body] = anon_sym_meta, - [anon_sym_body_COLONjson] = anon_sym_meta, - [anon_sym_body_COLONtext] = anon_sym_meta, - [anon_sym_body_COLONxml] = anon_sym_meta, - [anon_sym_body_COLONsparql] = anon_sym_meta, - [anon_sym_body_COLONgraphql] = anon_sym_meta, - [anon_sym_body_COLONgraphql_COLONvars] = anon_sym_meta, - [anon_sym_body_COLONform_DASHurlencoded] = anon_sym_meta, - [anon_sym_body_COLONmultipart_DASHform] = anon_sym_meta, - [anon_sym_vars] = anon_sym_meta, - [anon_sym_vars_COLONsecret] = anon_sym_meta, - [anon_sym_vars_COLONpre_DASHrequest] = anon_sym_meta, - [anon_sym_vars_COLONpost_DASHresponse] = anon_sym_meta, - [anon_sym_assert] = anon_sym_meta, - [anon_sym_script_COLONpre_DASHrequest] = anon_sym_meta, - [anon_sym_script_COLONpost_DASHresponse] = anon_sym_meta, - [anon_sym_params_COLONquery] = anon_sym_meta, - [anon_sym_params_COLONpath] = anon_sym_meta, - [anon_sym_tests] = anon_sym_meta, - [anon_sym_docs] = anon_sym_meta, - [anon_sym_LBRACE] = anon_sym_LBRACE, - [anon_sym_RBRACE] = anon_sym_RBRACE, - [anon_sym_LBRACK] = anon_sym_LBRACK, - [anon_sym_COMMA] = anon_sym_COMMA, - [anon_sym_RBRACK] = anon_sym_RBRACK, - [sym_array_value] = sym_array_value, - [anon_sym_COLON] = anon_sym_COLON, - [sym_assert_key] = sym_assert_key, - [sym_key] = sym_key, - [sym_value] = sym_value, - [sym_rawtext] = sym_rawtext, - [sym_source_file] = sym_source_file, - [sym_meta] = sym_meta, - [sym_http] = sym_http, - [sym_http_verb] = anon_sym_meta, - [sym_query] = sym_query, - [sym_headers] = sym_headers, - [sym_auths] = sym_auths, - [sym_authawsv4] = sym_authawsv4, - [sym_authbasic] = sym_authbasic, - [sym_authbearer] = sym_authbearer, - [sym_authdigest] = sym_authdigest, - [sym_authoauth2] = sym_authoauth2, - [sym_bodies] = sym_bodies, - [sym_bodyforms] = sym_bodyforms, - [sym_body] = sym_body, - [sym_bodyjson] = sym_bodyjson, - [sym_bodytext] = sym_bodytext, - [sym_bodyxml] = sym_bodyxml, - [sym_bodysparql] = sym_bodysparql, - [sym_bodygraphql] = sym_bodygraphql, - [sym_bodygraphqlvars] = sym_bodygraphqlvars, - [sym_bodyformurlencoded] = sym_bodyformurlencoded, - [sym_bodyformmultipart] = sym_bodyformmultipart, - [sym_varsandassert] = sym_varsandassert, - [sym_vars] = sym_vars, - [sym_vars_secret] = sym_vars_secret, - [sym_varsreq] = sym_varsreq, - [sym_varsres] = sym_varsres, - [sym_assert] = sym_assert, - [sym_script] = sym_script, - [sym_scriptreq] = sym_scriptreq, - [sym_scriptres] = sym_scriptres, - [sym_params] = sym_params, - [sym_params_query] = sym_params_query, - [sym_params_path] = sym_params_path, - [sym_tests] = sym_tests, - [sym_docs] = sym_docs, - [sym_textblock] = sym_textblock, - [sym_array] = sym_array, - [sym_dictionary] = sym_dictionary, - [sym_dictionary_pair] = sym_dictionary_pair, - [sym_assert_dictionary] = sym_assert_dictionary, - [sym_assert_dictionary_pair] = sym_assert_dictionary_pair, - [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1, - [aux_sym_array_repeat1] = aux_sym_array_repeat1, - [aux_sym_dictionary_repeat1] = aux_sym_dictionary_repeat1, - [aux_sym_assert_dictionary_repeat1] = aux_sym_assert_dictionary_repeat1, -}; - -static const TSSymbolMetadata ts_symbol_metadata[] = { - [ts_builtin_sym_end] = { - .visible = false, - .named = true, - }, - [anon_sym_meta] = { - .visible = true, - .named = true, - }, - [anon_sym_get] = { - .visible = true, - .named = false, - }, - [anon_sym_post] = { - .visible = true, - .named = false, - }, - [anon_sym_put] = { - .visible = true, - .named = false, - }, - [anon_sym_delete] = { - .visible = true, - .named = false, - }, - [anon_sym_patch] = { - .visible = true, - .named = false, - }, - [anon_sym_options] = { - .visible = true, - .named = false, - }, - [anon_sym_head] = { - .visible = true, - .named = false, - }, - [anon_sym_connect] = { - .visible = true, - .named = false, - }, - [anon_sym_trace] = { - .visible = true, - .named = false, - }, - [anon_sym_query] = { - .visible = true, - .named = true, - }, - [anon_sym_headers] = { - .visible = true, - .named = true, - }, - [anon_sym_auth_COLONawsv4] = { - .visible = true, - .named = true, - }, - [anon_sym_auth_COLONbasic] = { - .visible = true, - .named = true, - }, - [anon_sym_auth_COLONbearer] = { - .visible = true, - .named = true, - }, - [anon_sym_auth_COLONdigest] = { - .visible = true, - .named = true, - }, - [anon_sym_auth_COLONoauth2] = { - .visible = true, - .named = true, - }, - [anon_sym_body] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONjson] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONtext] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONxml] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONsparql] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONgraphql] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONgraphql_COLONvars] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONform_DASHurlencoded] = { - .visible = true, - .named = true, - }, - [anon_sym_body_COLONmultipart_DASHform] = { - .visible = true, - .named = true, - }, - [anon_sym_vars] = { - .visible = true, - .named = true, - }, - [anon_sym_vars_COLONsecret] = { - .visible = true, - .named = true, - }, - [anon_sym_vars_COLONpre_DASHrequest] = { - .visible = true, - .named = true, - }, - [anon_sym_vars_COLONpost_DASHresponse] = { - .visible = true, - .named = true, - }, - [anon_sym_assert] = { - .visible = true, - .named = true, - }, - [anon_sym_script_COLONpre_DASHrequest] = { - .visible = true, - .named = true, - }, - [anon_sym_script_COLONpost_DASHresponse] = { - .visible = true, - .named = true, - }, - [anon_sym_params_COLONquery] = { - .visible = true, - .named = true, - }, - [anon_sym_params_COLONpath] = { - .visible = true, - .named = true, - }, - [anon_sym_tests] = { - .visible = true, - .named = true, - }, - [anon_sym_docs] = { - .visible = true, - .named = true, - }, - [anon_sym_LBRACE] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACE] = { - .visible = true, - .named = false, - }, - [anon_sym_LBRACK] = { - .visible = true, - .named = false, - }, - [anon_sym_COMMA] = { - .visible = true, - .named = false, - }, - [anon_sym_RBRACK] = { - .visible = true, - .named = false, - }, - [sym_array_value] = { - .visible = true, - .named = true, - }, - [anon_sym_COLON] = { - .visible = true, - .named = false, - }, - [sym_assert_key] = { - .visible = true, - .named = true, - }, - [sym_key] = { - .visible = true, - .named = true, - }, - [sym_value] = { - .visible = true, - .named = true, - }, - [sym_rawtext] = { - .visible = true, - .named = true, - }, - [sym_source_file] = { - .visible = true, - .named = true, - }, - [sym_meta] = { - .visible = true, - .named = true, - }, - [sym_http] = { - .visible = true, - .named = true, - }, - [sym_http_verb] = { - .visible = true, - .named = true, - }, - [sym_query] = { - .visible = true, - .named = true, - }, - [sym_headers] = { - .visible = true, - .named = true, - }, - [sym_auths] = { - .visible = true, - .named = true, - }, - [sym_authawsv4] = { - .visible = true, - .named = true, - }, - [sym_authbasic] = { - .visible = true, - .named = true, - }, - [sym_authbearer] = { - .visible = true, - .named = true, - }, - [sym_authdigest] = { - .visible = true, - .named = true, - }, - [sym_authoauth2] = { - .visible = true, - .named = true, - }, - [sym_bodies] = { - .visible = true, - .named = true, - }, - [sym_bodyforms] = { - .visible = true, - .named = true, - }, - [sym_body] = { - .visible = true, - .named = true, - }, - [sym_bodyjson] = { - .visible = true, - .named = true, - }, - [sym_bodytext] = { - .visible = true, - .named = true, - }, - [sym_bodyxml] = { - .visible = true, - .named = true, - }, - [sym_bodysparql] = { - .visible = true, - .named = true, - }, - [sym_bodygraphql] = { - .visible = true, - .named = true, - }, - [sym_bodygraphqlvars] = { - .visible = true, - .named = true, - }, - [sym_bodyformurlencoded] = { - .visible = true, - .named = true, - }, - [sym_bodyformmultipart] = { - .visible = true, - .named = true, - }, - [sym_varsandassert] = { - .visible = true, - .named = true, - }, - [sym_vars] = { - .visible = true, - .named = true, - }, - [sym_vars_secret] = { - .visible = true, - .named = true, - }, - [sym_varsreq] = { - .visible = true, - .named = true, - }, - [sym_varsres] = { - .visible = true, - .named = true, - }, - [sym_assert] = { - .visible = true, - .named = true, - }, - [sym_script] = { - .visible = true, - .named = true, - }, - [sym_scriptreq] = { - .visible = true, - .named = true, - }, - [sym_scriptres] = { - .visible = true, - .named = true, - }, - [sym_params] = { - .visible = true, - .named = true, - }, - [sym_params_query] = { - .visible = true, - .named = true, - }, - [sym_params_path] = { - .visible = true, - .named = true, - }, - [sym_tests] = { - .visible = true, - .named = true, - }, - [sym_docs] = { - .visible = true, - .named = true, - }, - [sym_textblock] = { - .visible = true, - .named = true, - }, - [sym_array] = { - .visible = true, - .named = true, - }, - [sym_dictionary] = { - .visible = true, - .named = true, - }, - [sym_dictionary_pair] = { - .visible = true, - .named = true, - }, - [sym_assert_dictionary] = { - .visible = true, - .named = true, - }, - [sym_assert_dictionary_pair] = { - .visible = true, - .named = true, - }, - [aux_sym_source_file_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_array_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_dictionary_repeat1] = { - .visible = false, - .named = false, - }, - [aux_sym_assert_dictionary_repeat1] = { - .visible = false, - .named = false, - }, -}; - -enum ts_field_identifiers { - field_tag = 1, -}; - -static const char * const ts_field_names[] = { - [0] = NULL, - [field_tag] = "tag", -}; - -static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { - [1] = {.index = 0, .length = 1}, - [2] = {.index = 1, .length = 1}, - [3] = {.index = 2, .length = 2}, -}; - -static const TSFieldMapEntry ts_field_map_entries[] = { - [0] = - {field_tag, 0}, - [1] = - {field_tag, 0, .inherited = true}, - [2] = - {field_tag, 0, .inherited = true}, - {field_tag, 1, .inherited = true}, -}; - -static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = { - [0] = {0}, -}; - -static const uint16_t ts_non_terminal_alias_map[] = { - 0, -}; - -static const TSStateId ts_primary_state_ids[STATE_COUNT] = { - [0] = 0, - [1] = 1, - [2] = 2, - [3] = 3, - [4] = 4, - [5] = 5, - [6] = 6, - [7] = 7, - [8] = 8, - [9] = 9, - [10] = 10, - [11] = 11, - [12] = 12, - [13] = 13, - [14] = 14, - [15] = 15, - [16] = 16, - [17] = 17, - [18] = 18, - [19] = 19, - [20] = 20, - [21] = 21, - [22] = 22, - [23] = 23, - [24] = 24, - [25] = 25, - [26] = 26, - [27] = 27, - [28] = 28, - [29] = 29, - [30] = 30, - [31] = 31, - [32] = 32, - [33] = 33, - [34] = 34, - [35] = 35, - [36] = 36, - [37] = 37, - [38] = 38, - [39] = 39, - [40] = 40, - [41] = 41, - [42] = 42, - [43] = 43, - [44] = 44, - [45] = 45, - [46] = 46, - [47] = 47, - [48] = 48, - [49] = 49, - [50] = 50, - [51] = 51, - [52] = 52, - [53] = 53, - [54] = 54, - [55] = 55, - [56] = 56, - [57] = 57, - [58] = 58, - [59] = 59, - [60] = 60, - [61] = 61, - [62] = 62, - [63] = 63, - [64] = 64, - [65] = 65, - [66] = 66, - [67] = 67, - [68] = 68, - [69] = 69, - [70] = 70, - [71] = 71, - [72] = 72, - [73] = 73, - [74] = 74, - [75] = 75, - [76] = 76, - [77] = 77, - [78] = 78, - [79] = 79, - [80] = 80, - [81] = 81, - [82] = 82, - [83] = 83, - [84] = 84, - [85] = 85, - [86] = 86, - [87] = 87, - [88] = 88, - [89] = 89, - [90] = 90, - [91] = 91, - [92] = 92, - [93] = 93, - [94] = 94, - [95] = 95, - [96] = 96, - [97] = 97, -}; - -static bool ts_lex(TSLexer *lexer, TSStateId state) { - START_LEXER(); - eof = lexer->eof(lexer); - switch (state) { - case 0: - if (eof) ADVANCE(206); - if (lookahead == '\n') SKIP(0); - if (lookahead == '\r') SKIP(0); - if (lookahead == ',') ADVANCE(249); - if (lookahead == ':') ADVANCE(252); - if (lookahead == '[') ADVANCE(248); - if (lookahead == ']') ADVANCE(250); - if (lookahead == 'a') ADVANCE(147); - if (lookahead == 'b') ADVANCE(101); - if (lookahead == 'c') ADVANCE(102); - if (lookahead == 'd') ADVANCE(42); - if (lookahead == 'g') ADVANCE(50); - if (lookahead == 'h') ADVANCE(49); - if (lookahead == 'm') ADVANCE(52); - if (lookahead == 'o') ADVANCE(113); - if (lookahead == 'p') ADVANCE(15); - if (lookahead == 'q') ADVANCE(193); - if (lookahead == 's') ADVANCE(30); - if (lookahead == 't') ADVANCE(64); - if (lookahead == 'v') ADVANCE(20); - if (lookahead == '{') ADVANCE(244); - if (lookahead == '}') ADVANCE(245); - if (('\t' <= lookahead && lookahead <= '\f') || - lookahead == ' ') SKIP(0); - END_STATE(); - case 1: - if (lookahead == '\n') SKIP(1); - if (lookahead == '\r') SKIP(1); - if (lookahead == '}') ADVANCE(246); - if (('\t' <= lookahead && lookahead <= '\f') || - lookahead == ' ') SKIP(1); - if (lookahead != 0 && - lookahead != ':') ADVANCE(255); - END_STATE(); - case 2: - if (lookahead == '\n') SKIP(2); - if (lookahead == '\r') SKIP(2); - if (lookahead == '}') ADVANCE(247); - if (('\t' <= lookahead && lookahead <= '\f') || - lookahead == ' ') ADVANCE(253); - if (lookahead != 0 && - lookahead != ':') ADVANCE(254); - END_STATE(); - case 3: - if (lookahead == '\n') SKIP(3); - if (lookahead == '\r') SKIP(3); - if (lookahead == ',') ADVANCE(249); - if (lookahead == ']') ADVANCE(250); - if (('\t' <= lookahead && lookahead <= '\f') || - lookahead == ' ') SKIP(3); - if (lookahead != 0 && - lookahead != '[') ADVANCE(251); - END_STATE(); - case 4: - if (lookahead == '-') ADVANCE(72); - END_STATE(); - case 5: - if (lookahead == '-') ADVANCE(194); - END_STATE(); - case 6: - if (lookahead == '-') ADVANCE(139); - END_STATE(); - case 7: - if (lookahead == '-') ADVANCE(140); - END_STATE(); - case 8: - if (lookahead == '-') ADVANCE(146); - END_STATE(); - case 9: - if (lookahead == '-') ADVANCE(145); - END_STATE(); - case 10: - if (lookahead == '2') ADVANCE(223); - END_STATE(); - case 11: - if (lookahead == '4') ADVANCE(219); - END_STATE(); - case 12: - if (lookahead == ':') ADVANCE(18); - END_STATE(); - case 13: - if (lookahead == ':') ADVANCE(115); - END_STATE(); - case 14: - if (lookahead == ':') ADVANCE(121); - END_STATE(); - case 15: - if (lookahead == 'a') ADVANCE(134); - if (lookahead == 'o') ADVANCE(158); - if (lookahead == 'u') ADVANCE(173); - END_STATE(); - case 16: - if (lookahead == 'a') ADVANCE(207); - END_STATE(); - case 17: - if (lookahead == 'a') ADVANCE(93); - END_STATE(); - case 18: - if (lookahead == 'a') ADVANCE(201); - if (lookahead == 'b') ADVANCE(26); - if (lookahead == 'd') ADVANCE(79); - if (lookahead == 'o') ADVANCE(21); - END_STATE(); - case 19: - if (lookahead == 'a') ADVANCE(39); - END_STATE(); - case 20: - if (lookahead == 'a') ADVANCE(132); - END_STATE(); - case 21: - if (lookahead == 'a') ADVANCE(195); - END_STATE(); - case 22: - if (lookahead == 'a') ADVANCE(114); - END_STATE(); - case 23: - if (lookahead == 'a') ADVANCE(34); - END_STATE(); - case 24: - if (lookahead == 'a') ADVANCE(143); - END_STATE(); - case 25: - if (lookahead == 'a') ADVANCE(126); - END_STATE(); - case 26: - if (lookahead == 'a') ADVANCE(156); - if (lookahead == 'e') ADVANCE(24); - END_STATE(); - case 27: - if (lookahead == 'a') ADVANCE(142); - END_STATE(); - case 28: - if (lookahead == 'a') ADVANCE(187); - END_STATE(); - case 29: - if (lookahead == 'a') ADVANCE(141); - END_STATE(); - case 30: - if (lookahead == 'c') ADVANCE(129); - END_STATE(); - case 31: - if (lookahead == 'c') ADVANCE(220); - END_STATE(); - case 32: - if (lookahead == 'c') ADVANCE(75); - END_STATE(); - case 33: - if (lookahead == 'c') ADVANCE(148); - END_STATE(); - case 34: - if (lookahead == 'c') ADVANCE(43); - END_STATE(); - case 35: - if (lookahead == 'c') ADVANCE(144); - END_STATE(); - case 36: - if (lookahead == 'c') ADVANCE(176); - END_STATE(); - case 37: - if (lookahead == 'c') ADVANCE(103); - END_STATE(); - case 38: - if (lookahead == 'd') ADVANCE(203); - END_STATE(); - case 39: - if (lookahead == 'd') ADVANCE(214); - END_STATE(); - case 40: - if (lookahead == 'd') ADVANCE(231); - END_STATE(); - case 41: - if (lookahead == 'd') ADVANCE(54); - END_STATE(); - case 42: - if (lookahead == 'e') ADVANCE(89); - if (lookahead == 'o') ADVANCE(33); - END_STATE(); - case 43: - if (lookahead == 'e') ADVANCE(216); - END_STATE(); - case 44: - if (lookahead == 'e') ADVANCE(211); - END_STATE(); - case 45: - if (lookahead == 'e') ADVANCE(202); - END_STATE(); - case 46: - if (lookahead == 'e') ADVANCE(6); - END_STATE(); - case 47: - if (lookahead == 'e') ADVANCE(236); - END_STATE(); - case 48: - if (lookahead == 'e') ADVANCE(239); - END_STATE(); - case 49: - if (lookahead == 'e') ADVANCE(19); - END_STATE(); - case 50: - if (lookahead == 'e') ADVANCE(171); - END_STATE(); - case 51: - if (lookahead == 'e') ADVANCE(124); - END_STATE(); - case 52: - if (lookahead == 'e') ADVANCE(185); - END_STATE(); - case 53: - if (lookahead == 'e') ADVANCE(128); - END_STATE(); - case 54: - if (lookahead == 'e') ADVANCE(40); - END_STATE(); - case 55: - if (lookahead == 'e') ADVANCE(138); - END_STATE(); - case 56: - if (lookahead == 'e') ADVANCE(36); - END_STATE(); - case 57: - if (lookahead == 'e') ADVANCE(97); - END_STATE(); - case 58: - if (lookahead == 'e') ADVANCE(189); - END_STATE(); - case 59: - if (lookahead == 'e') ADVANCE(127); - END_STATE(); - case 60: - if (lookahead == 'e') ADVANCE(157); - END_STATE(); - case 61: - if (lookahead == 'e') ADVANCE(130); - END_STATE(); - case 62: - if (lookahead == 'e') ADVANCE(179); - END_STATE(); - case 63: - if (lookahead == 'e') ADVANCE(35); - END_STATE(); - case 64: - if (lookahead == 'e') ADVANCE(159); - if (lookahead == 'r') ADVANCE(23); - END_STATE(); - case 65: - if (lookahead == 'e') ADVANCE(162); - END_STATE(); - case 66: - if (lookahead == 'e') ADVANCE(164); - END_STATE(); - case 67: - if (lookahead == 'e') ADVANCE(165); - END_STATE(); - case 68: - if (lookahead == 'e') ADVANCE(168); - END_STATE(); - case 69: - if (lookahead == 'e') ADVANCE(125); - END_STATE(); - case 70: - if (lookahead == 'e') ADVANCE(9); - END_STATE(); - case 71: - if (lookahead == 'f') ADVANCE(107); - if (lookahead == 'g') ADVANCE(136); - if (lookahead == 'j') ADVANCE(166); - if (lookahead == 'm') ADVANCE(192); - if (lookahead == 's') ADVANCE(117); - if (lookahead == 't') ADVANCE(45); - if (lookahead == 'x') ADVANCE(92); - END_STATE(); - case 72: - if (lookahead == 'f') ADVANCE(108); - END_STATE(); - case 73: - if (lookahead == 'g') ADVANCE(65); - END_STATE(); - case 74: - if (lookahead == 'h') ADVANCE(12); - END_STATE(); - case 75: - if (lookahead == 'h') ADVANCE(212); - END_STATE(); - case 76: - if (lookahead == 'h') ADVANCE(10); - END_STATE(); - case 77: - if (lookahead == 'h') ADVANCE(241); - END_STATE(); - case 78: - if (lookahead == 'h') ADVANCE(123); - END_STATE(); - case 79: - if (lookahead == 'i') ADVANCE(73); - END_STATE(); - case 80: - if (lookahead == 'i') ADVANCE(104); - END_STATE(); - case 81: - if (lookahead == 'i') ADVANCE(31); - END_STATE(); - case 82: - if (lookahead == 'i') ADVANCE(116); - END_STATE(); - case 83: - if (lookahead == 'i') ADVANCE(119); - END_STATE(); - case 84: - if (lookahead == 'l') ADVANCE(227); - END_STATE(); - case 85: - if (lookahead == 'l') ADVANCE(228); - END_STATE(); - case 86: - if (lookahead == 'l') ADVANCE(229); - END_STATE(); - case 87: - if (lookahead == 'l') ADVANCE(188); - END_STATE(); - case 88: - if (lookahead == 'l') ADVANCE(57); - END_STATE(); - case 89: - if (lookahead == 'l') ADVANCE(58); - END_STATE(); - case 90: - if (lookahead == 'm') ADVANCE(232); - END_STATE(); - case 91: - if (lookahead == 'm') ADVANCE(5); - END_STATE(); - case 92: - if (lookahead == 'm') ADVANCE(84); - END_STATE(); - case 93: - if (lookahead == 'm') ADVANCE(155); - END_STATE(); - case 94: - if (lookahead == 'n') ADVANCE(225); - END_STATE(); - case 95: - if (lookahead == 'n') ADVANCE(96); - END_STATE(); - case 96: - if (lookahead == 'n') ADVANCE(56); - END_STATE(); - case 97: - if (lookahead == 'n') ADVANCE(37); - END_STATE(); - case 98: - if (lookahead == 'n') ADVANCE(152); - END_STATE(); - case 99: - if (lookahead == 'n') ADVANCE(160); - END_STATE(); - case 100: - if (lookahead == 'n') ADVANCE(163); - END_STATE(); - case 101: - if (lookahead == 'o') ADVANCE(38); - END_STATE(); - case 102: - if (lookahead == 'o') ADVANCE(95); - END_STATE(); - case 103: - if (lookahead == 'o') ADVANCE(41); - END_STATE(); - case 104: - if (lookahead == 'o') ADVANCE(98); - END_STATE(); - case 105: - if (lookahead == 'o') ADVANCE(94); - END_STATE(); - case 106: - if (lookahead == 'o') ADVANCE(99); - END_STATE(); - case 107: - if (lookahead == 'o') ADVANCE(131); - END_STATE(); - case 108: - if (lookahead == 'o') ADVANCE(133); - END_STATE(); - case 109: - if (lookahead == 'o') ADVANCE(161); - if (lookahead == 'r') ADVANCE(46); - END_STATE(); - case 110: - if (lookahead == 'o') ADVANCE(100); - END_STATE(); - case 111: - if (lookahead == 'o') ADVANCE(169); - if (lookahead == 'r') ADVANCE(70); - END_STATE(); - case 112: - if (lookahead == 'p') ADVANCE(109); - if (lookahead == 's') ADVANCE(63); - END_STATE(); - case 113: - if (lookahead == 'p') ADVANCE(172); - END_STATE(); - case 114: - if (lookahead == 'p') ADVANCE(78); - END_STATE(); - case 115: - if (lookahead == 'p') ADVANCE(28); - if (lookahead == 'q') ADVANCE(196); - END_STATE(); - case 116: - if (lookahead == 'p') ADVANCE(183); - END_STATE(); - case 117: - if (lookahead == 'p') ADVANCE(25); - END_STATE(); - case 118: - if (lookahead == 'p') ADVANCE(106); - END_STATE(); - case 119: - if (lookahead == 'p') ADVANCE(27); - END_STATE(); - case 120: - if (lookahead == 'p') ADVANCE(110); - END_STATE(); - case 121: - if (lookahead == 'p') ADVANCE(111); - END_STATE(); - case 122: - if (lookahead == 'q') ADVANCE(85); - END_STATE(); - case 123: - if (lookahead == 'q') ADVANCE(86); - END_STATE(); - case 124: - if (lookahead == 'q') ADVANCE(197); - END_STATE(); - case 125: - if (lookahead == 'q') ADVANCE(198); - END_STATE(); - case 126: - if (lookahead == 'r') ADVANCE(122); - END_STATE(); - case 127: - if (lookahead == 'r') ADVANCE(221); - END_STATE(); - case 128: - if (lookahead == 'r') ADVANCE(204); - END_STATE(); - case 129: - if (lookahead == 'r') ADVANCE(82); - END_STATE(); - case 130: - if (lookahead == 'r') ADVANCE(205); - END_STATE(); - case 131: - if (lookahead == 'r') ADVANCE(91); - END_STATE(); - case 132: - if (lookahead == 'r') ADVANCE(149); - END_STATE(); - case 133: - if (lookahead == 'r') ADVANCE(90); - END_STATE(); - case 134: - if (lookahead == 'r') ADVANCE(17); - if (lookahead == 't') ADVANCE(32); - END_STATE(); - case 135: - if (lookahead == 'r') ADVANCE(88); - END_STATE(); - case 136: - if (lookahead == 'r') ADVANCE(22); - END_STATE(); - case 137: - if (lookahead == 'r') ADVANCE(151); - END_STATE(); - case 138: - if (lookahead == 'r') ADVANCE(175); - END_STATE(); - case 139: - if (lookahead == 'r') ADVANCE(51); - END_STATE(); - case 140: - if (lookahead == 'r') ADVANCE(60); - END_STATE(); - case 141: - if (lookahead == 'r') ADVANCE(154); - END_STATE(); - case 142: - if (lookahead == 'r') ADVANCE(184); - END_STATE(); - case 143: - if (lookahead == 'r') ADVANCE(59); - END_STATE(); - case 144: - if (lookahead == 'r') ADVANCE(62); - END_STATE(); - case 145: - if (lookahead == 'r') ADVANCE(69); - END_STATE(); - case 146: - if (lookahead == 'r') ADVANCE(68); - END_STATE(); - case 147: - if (lookahead == 's') ADVANCE(167); - if (lookahead == 'u') ADVANCE(170); - END_STATE(); - case 148: - if (lookahead == 's') ADVANCE(243); - END_STATE(); - case 149: - if (lookahead == 's') ADVANCE(233); - END_STATE(); - case 150: - if (lookahead == 's') ADVANCE(242); - END_STATE(); - case 151: - if (lookahead == 's') ADVANCE(218); - END_STATE(); - case 152: - if (lookahead == 's') ADVANCE(213); - END_STATE(); - case 153: - if (lookahead == 's') ADVANCE(199); - END_STATE(); - case 154: - if (lookahead == 's') ADVANCE(230); - END_STATE(); - case 155: - if (lookahead == 's') ADVANCE(13); - END_STATE(); - case 156: - if (lookahead == 's') ADVANCE(81); - END_STATE(); - case 157: - if (lookahead == 's') ADVANCE(118); - END_STATE(); - case 158: - if (lookahead == 's') ADVANCE(174); - END_STATE(); - case 159: - if (lookahead == 's') ADVANCE(186); - END_STATE(); - case 160: - if (lookahead == 's') ADVANCE(47); - END_STATE(); - case 161: - if (lookahead == 's') ADVANCE(190); - END_STATE(); - case 162: - if (lookahead == 's') ADVANCE(178); - END_STATE(); - case 163: - if (lookahead == 's') ADVANCE(48); - END_STATE(); - case 164: - if (lookahead == 's') ADVANCE(180); - END_STATE(); - case 165: - if (lookahead == 's') ADVANCE(181); - END_STATE(); - case 166: - if (lookahead == 's') ADVANCE(105); - END_STATE(); - case 167: - if (lookahead == 's') ADVANCE(55); - END_STATE(); - case 168: - if (lookahead == 's') ADVANCE(120); - END_STATE(); - case 169: - if (lookahead == 's') ADVANCE(191); - END_STATE(); - case 170: - if (lookahead == 't') ADVANCE(74); - END_STATE(); - case 171: - if (lookahead == 't') ADVANCE(208); - END_STATE(); - case 172: - if (lookahead == 't') ADVANCE(80); - END_STATE(); - case 173: - if (lookahead == 't') ADVANCE(210); - END_STATE(); - case 174: - if (lookahead == 't') ADVANCE(209); - END_STATE(); - case 175: - if (lookahead == 't') ADVANCE(237); - END_STATE(); - case 176: - if (lookahead == 't') ADVANCE(215); - END_STATE(); - case 177: - if (lookahead == 't') ADVANCE(226); - END_STATE(); - case 178: - if (lookahead == 't') ADVANCE(222); - END_STATE(); - case 179: - if (lookahead == 't') ADVANCE(234); - END_STATE(); - case 180: - if (lookahead == 't') ADVANCE(235); - END_STATE(); - case 181: - if (lookahead == 't') ADVANCE(238); - END_STATE(); - case 182: - if (lookahead == 't') ADVANCE(76); - END_STATE(); - case 183: - if (lookahead == 't') ADVANCE(14); - END_STATE(); - case 184: - if (lookahead == 't') ADVANCE(4); - END_STATE(); - case 185: - if (lookahead == 't') ADVANCE(16); - END_STATE(); - case 186: - if (lookahead == 't') ADVANCE(150); - END_STATE(); - case 187: - if (lookahead == 't') ADVANCE(77); - END_STATE(); - case 188: - if (lookahead == 't') ADVANCE(83); - END_STATE(); - case 189: - if (lookahead == 't') ADVANCE(44); - END_STATE(); - case 190: - if (lookahead == 't') ADVANCE(7); - END_STATE(); - case 191: - if (lookahead == 't') ADVANCE(8); - END_STATE(); - case 192: - if (lookahead == 'u') ADVANCE(87); - END_STATE(); - case 193: - if (lookahead == 'u') ADVANCE(53); - END_STATE(); - case 194: - if (lookahead == 'u') ADVANCE(135); - END_STATE(); - case 195: - if (lookahead == 'u') ADVANCE(182); - END_STATE(); - case 196: - if (lookahead == 'u') ADVANCE(61); - END_STATE(); - case 197: - if (lookahead == 'u') ADVANCE(66); - END_STATE(); - case 198: - if (lookahead == 'u') ADVANCE(67); - END_STATE(); - case 199: - if (lookahead == 'v') ADVANCE(11); - END_STATE(); - case 200: - if (lookahead == 'v') ADVANCE(29); - END_STATE(); - case 201: - if (lookahead == 'w') ADVANCE(153); - END_STATE(); - case 202: - if (lookahead == 'x') ADVANCE(177); - END_STATE(); - case 203: - if (lookahead == 'y') ADVANCE(224); - END_STATE(); - case 204: - if (lookahead == 'y') ADVANCE(217); - END_STATE(); - case 205: - if (lookahead == 'y') ADVANCE(240); - END_STATE(); - case 206: - ACCEPT_TOKEN(ts_builtin_sym_end); - END_STATE(); - case 207: - ACCEPT_TOKEN(anon_sym_meta); - END_STATE(); - case 208: - ACCEPT_TOKEN(anon_sym_get); - END_STATE(); - case 209: - ACCEPT_TOKEN(anon_sym_post); - END_STATE(); - case 210: - ACCEPT_TOKEN(anon_sym_put); - END_STATE(); - case 211: - ACCEPT_TOKEN(anon_sym_delete); - END_STATE(); - case 212: - ACCEPT_TOKEN(anon_sym_patch); - END_STATE(); - case 213: - ACCEPT_TOKEN(anon_sym_options); - END_STATE(); - case 214: - ACCEPT_TOKEN(anon_sym_head); - if (lookahead == 'e') ADVANCE(137); - END_STATE(); - case 215: - ACCEPT_TOKEN(anon_sym_connect); - END_STATE(); - case 216: - ACCEPT_TOKEN(anon_sym_trace); - END_STATE(); - case 217: - ACCEPT_TOKEN(anon_sym_query); - END_STATE(); - case 218: - ACCEPT_TOKEN(anon_sym_headers); - END_STATE(); - case 219: - ACCEPT_TOKEN(anon_sym_auth_COLONawsv4); - END_STATE(); - case 220: - ACCEPT_TOKEN(anon_sym_auth_COLONbasic); - END_STATE(); - case 221: - ACCEPT_TOKEN(anon_sym_auth_COLONbearer); - END_STATE(); - case 222: - ACCEPT_TOKEN(anon_sym_auth_COLONdigest); - END_STATE(); - case 223: - ACCEPT_TOKEN(anon_sym_auth_COLONoauth2); - END_STATE(); - case 224: - ACCEPT_TOKEN(anon_sym_body); - if (lookahead == ':') ADVANCE(71); - END_STATE(); - case 225: - ACCEPT_TOKEN(anon_sym_body_COLONjson); - END_STATE(); - case 226: - ACCEPT_TOKEN(anon_sym_body_COLONtext); - END_STATE(); - case 227: - ACCEPT_TOKEN(anon_sym_body_COLONxml); - END_STATE(); - case 228: - ACCEPT_TOKEN(anon_sym_body_COLONsparql); - END_STATE(); - case 229: - ACCEPT_TOKEN(anon_sym_body_COLONgraphql); - if (lookahead == ':') ADVANCE(200); - END_STATE(); - case 230: - ACCEPT_TOKEN(anon_sym_body_COLONgraphql_COLONvars); - END_STATE(); - case 231: - ACCEPT_TOKEN(anon_sym_body_COLONform_DASHurlencoded); - END_STATE(); - case 232: - ACCEPT_TOKEN(anon_sym_body_COLONmultipart_DASHform); - END_STATE(); - case 233: - ACCEPT_TOKEN(anon_sym_vars); - if (lookahead == ':') ADVANCE(112); - END_STATE(); - case 234: - ACCEPT_TOKEN(anon_sym_vars_COLONsecret); - END_STATE(); - case 235: - ACCEPT_TOKEN(anon_sym_vars_COLONpre_DASHrequest); - END_STATE(); - case 236: - ACCEPT_TOKEN(anon_sym_vars_COLONpost_DASHresponse); - END_STATE(); - case 237: - ACCEPT_TOKEN(anon_sym_assert); - END_STATE(); - case 238: - ACCEPT_TOKEN(anon_sym_script_COLONpre_DASHrequest); - END_STATE(); - case 239: - ACCEPT_TOKEN(anon_sym_script_COLONpost_DASHresponse); - END_STATE(); - case 240: - ACCEPT_TOKEN(anon_sym_params_COLONquery); - END_STATE(); - case 241: - ACCEPT_TOKEN(anon_sym_params_COLONpath); - END_STATE(); - case 242: - ACCEPT_TOKEN(anon_sym_tests); - END_STATE(); - case 243: - ACCEPT_TOKEN(anon_sym_docs); - END_STATE(); - case 244: - ACCEPT_TOKEN(anon_sym_LBRACE); - END_STATE(); - case 245: - ACCEPT_TOKEN(anon_sym_RBRACE); - END_STATE(); - case 246: - ACCEPT_TOKEN(anon_sym_RBRACE); - if (lookahead != 0 && - (lookahead < '\t' || '\r' < lookahead) && - lookahead != ' ' && - lookahead != ':') ADVANCE(255); - END_STATE(); - case 247: - ACCEPT_TOKEN(anon_sym_RBRACE); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ':') ADVANCE(254); - END_STATE(); - case 248: - ACCEPT_TOKEN(anon_sym_LBRACK); - END_STATE(); - case 249: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 250: - ACCEPT_TOKEN(anon_sym_RBRACK); - END_STATE(); - case 251: - ACCEPT_TOKEN(sym_array_value); - if (lookahead != 0 && - (lookahead < '\t' || '\r' < lookahead) && - lookahead != ' ' && - lookahead != ',' && - lookahead != '[' && - lookahead != ']') ADVANCE(251); - END_STATE(); - case 252: - ACCEPT_TOKEN(anon_sym_COLON); - END_STATE(); - case 253: - ACCEPT_TOKEN(sym_assert_key); - if (lookahead == '}') ADVANCE(247); - if (lookahead == '\t' || - lookahead == 0x0b || - lookahead == '\f' || - lookahead == ' ') ADVANCE(253); - if (lookahead != 0 && - (lookahead < '\t' || '\r' < lookahead) && - lookahead != ':') ADVANCE(254); - END_STATE(); - case 254: - ACCEPT_TOKEN(sym_assert_key); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ':') ADVANCE(254); - END_STATE(); - case 255: - ACCEPT_TOKEN(sym_key); - if (lookahead != 0 && - (lookahead < '\t' || '\r' < lookahead) && - lookahead != ' ' && - lookahead != ':') ADVANCE(255); - END_STATE(); - case 256: - ACCEPT_TOKEN(sym_value); - if (lookahead == '\t' || - lookahead == 0x0b || - lookahead == '\f' || - lookahead == ' ') ADVANCE(256); - if (lookahead != 0 && - (lookahead < '\t' || '\r' < lookahead)) ADVANCE(257); - END_STATE(); - case 257: - ACCEPT_TOKEN(sym_value); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '\r') ADVANCE(257); - END_STATE(); - default: - return false; - } -} - -static const TSLexMode ts_lex_modes[STATE_COUNT] = { - [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 0}, - [2] = {.lex_state = 0}, - [3] = {.lex_state = 0}, - [4] = {.lex_state = 0}, - [5] = {.lex_state = 0}, - [6] = {.lex_state = 0}, - [7] = {.lex_state = 0}, - [8] = {.lex_state = 0}, - [9] = {.lex_state = 0}, - [10] = {.lex_state = 0}, - [11] = {.lex_state = 0}, - [12] = {.lex_state = 0}, - [13] = {.lex_state = 0}, - [14] = {.lex_state = 0}, - [15] = {.lex_state = 0}, - [16] = {.lex_state = 0}, - [17] = {.lex_state = 0}, - [18] = {.lex_state = 0}, - [19] = {.lex_state = 0}, - [20] = {.lex_state = 0}, - [21] = {.lex_state = 0}, - [22] = {.lex_state = 0}, - [23] = {.lex_state = 0}, - [24] = {.lex_state = 0}, - [25] = {.lex_state = 0}, - [26] = {.lex_state = 0}, - [27] = {.lex_state = 0}, - [28] = {.lex_state = 0}, - [29] = {.lex_state = 0}, - [30] = {.lex_state = 0}, - [31] = {.lex_state = 0}, - [32] = {.lex_state = 0}, - [33] = {.lex_state = 0}, - [34] = {.lex_state = 0}, - [35] = {.lex_state = 0}, - [36] = {.lex_state = 0}, - [37] = {.lex_state = 0}, - [38] = {.lex_state = 0}, - [39] = {.lex_state = 0}, - [40] = {.lex_state = 0}, - [41] = {.lex_state = 0}, - [42] = {.lex_state = 0}, - [43] = {.lex_state = 0}, - [44] = {.lex_state = 0}, - [45] = {.lex_state = 0}, - [46] = {.lex_state = 0}, - [47] = {.lex_state = 0}, - [48] = {.lex_state = 1}, - [49] = {.lex_state = 2}, - [50] = {.lex_state = 2}, - [51] = {.lex_state = 2}, - [52] = {.lex_state = 1}, - [53] = {.lex_state = 1}, - [54] = {.lex_state = 3}, - [55] = {.lex_state = 3}, - [56] = {.lex_state = 3}, - [57] = {.lex_state = 3}, - [58] = {.lex_state = 0}, - [59] = {.lex_state = 0}, - [60] = {.lex_state = 0}, - [61] = {.lex_state = 0}, - [62] = {.lex_state = 0}, - [63] = {.lex_state = 0}, - [64] = {.lex_state = 0}, - [65] = {.lex_state = 0}, - [66] = {.lex_state = 0}, - [67] = {.lex_state = 0}, - [68] = {.lex_state = 0}, - [69] = {.lex_state = 0}, - [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, - [72] = {.lex_state = 0, .external_lex_state = 1}, - [73] = {.lex_state = 0}, - [74] = {.lex_state = 0}, - [75] = {.lex_state = 0}, - [76] = {.lex_state = 0}, - [77] = {.lex_state = 0}, - [78] = {.lex_state = 0}, - [79] = {.lex_state = 0}, - [80] = {.lex_state = 0}, - [81] = {.lex_state = 0}, - [82] = {.lex_state = 0}, - [83] = {.lex_state = 3}, - [84] = {.lex_state = 0}, - [85] = {.lex_state = 0}, - [86] = {.lex_state = 0}, - [87] = {.lex_state = 0}, - [88] = {.lex_state = 1}, - [89] = {.lex_state = 2}, - [90] = {.lex_state = 0}, - [91] = {.lex_state = 0}, - [92] = {.lex_state = 256}, - [93] = {.lex_state = 256}, - [94] = {.lex_state = 0}, - [95] = {.lex_state = 0}, - [96] = {.lex_state = 0}, - [97] = {.lex_state = 0}, -}; - -static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { - [0] = { - [ts_builtin_sym_end] = ACTIONS(1), - [anon_sym_meta] = ACTIONS(1), - [anon_sym_get] = ACTIONS(1), - [anon_sym_post] = ACTIONS(1), - [anon_sym_put] = ACTIONS(1), - [anon_sym_delete] = ACTIONS(1), - [anon_sym_patch] = ACTIONS(1), - [anon_sym_options] = ACTIONS(1), - [anon_sym_head] = ACTIONS(1), - [anon_sym_connect] = ACTIONS(1), - [anon_sym_trace] = ACTIONS(1), - [anon_sym_query] = ACTIONS(1), - [anon_sym_headers] = ACTIONS(1), - [anon_sym_auth_COLONawsv4] = ACTIONS(1), - [anon_sym_auth_COLONbasic] = ACTIONS(1), - [anon_sym_auth_COLONbearer] = ACTIONS(1), - [anon_sym_auth_COLONdigest] = ACTIONS(1), - [anon_sym_auth_COLONoauth2] = ACTIONS(1), - [anon_sym_body] = ACTIONS(1), - [anon_sym_body_COLONjson] = ACTIONS(1), - [anon_sym_body_COLONtext] = ACTIONS(1), - [anon_sym_body_COLONxml] = ACTIONS(1), - [anon_sym_body_COLONsparql] = ACTIONS(1), - [anon_sym_body_COLONgraphql] = ACTIONS(1), - [anon_sym_body_COLONgraphql_COLONvars] = ACTIONS(1), - [anon_sym_body_COLONform_DASHurlencoded] = ACTIONS(1), - [anon_sym_body_COLONmultipart_DASHform] = ACTIONS(1), - [anon_sym_vars] = ACTIONS(1), - [anon_sym_vars_COLONsecret] = ACTIONS(1), - [anon_sym_vars_COLONpre_DASHrequest] = ACTIONS(1), - [anon_sym_vars_COLONpost_DASHresponse] = ACTIONS(1), - [anon_sym_assert] = ACTIONS(1), - [anon_sym_script_COLONpre_DASHrequest] = ACTIONS(1), - [anon_sym_script_COLONpost_DASHresponse] = ACTIONS(1), - [anon_sym_params_COLONquery] = ACTIONS(1), - [anon_sym_params_COLONpath] = ACTIONS(1), - [anon_sym_tests] = ACTIONS(1), - [anon_sym_docs] = ACTIONS(1), - [anon_sym_LBRACE] = ACTIONS(1), - [anon_sym_RBRACE] = ACTIONS(1), - [anon_sym_LBRACK] = ACTIONS(1), - [anon_sym_COMMA] = ACTIONS(1), - [anon_sym_RBRACK] = ACTIONS(1), - [anon_sym_COLON] = ACTIONS(1), - [sym_rawtext] = ACTIONS(1), - }, - [1] = { - [sym_source_file] = STATE(94), - [sym_meta] = STATE(24), - [sym_http] = STATE(24), - [sym_http_verb] = STATE(66), - [sym_query] = STATE(24), - [sym_headers] = STATE(24), - [sym_auths] = STATE(24), - [sym_authawsv4] = STATE(7), - [sym_authbasic] = STATE(7), - [sym_authbearer] = STATE(7), - [sym_authdigest] = STATE(7), - [sym_authoauth2] = STATE(7), - [sym_bodies] = STATE(24), - [sym_bodyforms] = STATE(37), - [sym_body] = STATE(37), - [sym_bodyjson] = STATE(37), - [sym_bodytext] = STATE(37), - [sym_bodyxml] = STATE(37), - [sym_bodysparql] = STATE(37), - [sym_bodygraphql] = STATE(37), - [sym_bodygraphqlvars] = STATE(37), - [sym_bodyformurlencoded] = STATE(41), - [sym_bodyformmultipart] = STATE(41), - [sym_varsandassert] = STATE(24), - [sym_vars] = STATE(43), - [sym_vars_secret] = STATE(43), - [sym_varsreq] = STATE(43), - [sym_varsres] = STATE(43), - [sym_assert] = STATE(43), - [sym_script] = STATE(24), - [sym_scriptreq] = STATE(5), - [sym_scriptres] = STATE(5), - [sym_params] = STATE(43), - [sym_params_query] = STATE(6), - [sym_params_path] = STATE(6), - [sym_tests] = STATE(24), - [sym_docs] = STATE(24), - [aux_sym_source_file_repeat1] = STATE(2), - [ts_builtin_sym_end] = ACTIONS(3), - [anon_sym_meta] = ACTIONS(5), - [anon_sym_get] = ACTIONS(7), - [anon_sym_post] = ACTIONS(7), - [anon_sym_put] = ACTIONS(7), - [anon_sym_delete] = ACTIONS(7), - [anon_sym_patch] = ACTIONS(7), - [anon_sym_options] = ACTIONS(7), - [anon_sym_head] = ACTIONS(9), - [anon_sym_connect] = ACTIONS(7), - [anon_sym_trace] = ACTIONS(7), - [anon_sym_query] = ACTIONS(11), - [anon_sym_headers] = ACTIONS(13), - [anon_sym_auth_COLONawsv4] = ACTIONS(15), - [anon_sym_auth_COLONbasic] = ACTIONS(17), - [anon_sym_auth_COLONbearer] = ACTIONS(19), - [anon_sym_auth_COLONdigest] = ACTIONS(21), - [anon_sym_auth_COLONoauth2] = ACTIONS(23), - [anon_sym_body] = ACTIONS(25), - [anon_sym_body_COLONjson] = ACTIONS(27), - [anon_sym_body_COLONtext] = ACTIONS(29), - [anon_sym_body_COLONxml] = ACTIONS(31), - [anon_sym_body_COLONsparql] = ACTIONS(33), - [anon_sym_body_COLONgraphql] = ACTIONS(35), - [anon_sym_body_COLONgraphql_COLONvars] = ACTIONS(37), - [anon_sym_body_COLONform_DASHurlencoded] = ACTIONS(39), - [anon_sym_body_COLONmultipart_DASHform] = ACTIONS(41), - [anon_sym_vars] = ACTIONS(43), - [anon_sym_vars_COLONsecret] = ACTIONS(45), - [anon_sym_vars_COLONpre_DASHrequest] = ACTIONS(47), - [anon_sym_vars_COLONpost_DASHresponse] = ACTIONS(49), - [anon_sym_assert] = ACTIONS(51), - [anon_sym_script_COLONpre_DASHrequest] = ACTIONS(53), - [anon_sym_script_COLONpost_DASHresponse] = ACTIONS(55), - [anon_sym_params_COLONquery] = ACTIONS(57), - [anon_sym_params_COLONpath] = ACTIONS(59), - [anon_sym_tests] = ACTIONS(61), - [anon_sym_docs] = ACTIONS(63), - }, - [2] = { - [sym_meta] = STATE(24), - [sym_http] = STATE(24), - [sym_http_verb] = STATE(66), - [sym_query] = STATE(24), - [sym_headers] = STATE(24), - [sym_auths] = STATE(24), - [sym_authawsv4] = STATE(7), - [sym_authbasic] = STATE(7), - [sym_authbearer] = STATE(7), - [sym_authdigest] = STATE(7), - [sym_authoauth2] = STATE(7), - [sym_bodies] = STATE(24), - [sym_bodyforms] = STATE(37), - [sym_body] = STATE(37), - [sym_bodyjson] = STATE(37), - [sym_bodytext] = STATE(37), - [sym_bodyxml] = STATE(37), - [sym_bodysparql] = STATE(37), - [sym_bodygraphql] = STATE(37), - [sym_bodygraphqlvars] = STATE(37), - [sym_bodyformurlencoded] = STATE(41), - [sym_bodyformmultipart] = STATE(41), - [sym_varsandassert] = STATE(24), - [sym_vars] = STATE(43), - [sym_vars_secret] = STATE(43), - [sym_varsreq] = STATE(43), - [sym_varsres] = STATE(43), - [sym_assert] = STATE(43), - [sym_script] = STATE(24), - [sym_scriptreq] = STATE(5), - [sym_scriptres] = STATE(5), - [sym_params] = STATE(43), - [sym_params_query] = STATE(6), - [sym_params_path] = STATE(6), - [sym_tests] = STATE(24), - [sym_docs] = STATE(24), - [aux_sym_source_file_repeat1] = STATE(3), - [ts_builtin_sym_end] = ACTIONS(65), - [anon_sym_meta] = ACTIONS(5), - [anon_sym_get] = ACTIONS(7), - [anon_sym_post] = ACTIONS(7), - [anon_sym_put] = ACTIONS(7), - [anon_sym_delete] = ACTIONS(7), - [anon_sym_patch] = ACTIONS(7), - [anon_sym_options] = ACTIONS(7), - [anon_sym_head] = ACTIONS(9), - [anon_sym_connect] = ACTIONS(7), - [anon_sym_trace] = ACTIONS(7), - [anon_sym_query] = ACTIONS(11), - [anon_sym_headers] = ACTIONS(13), - [anon_sym_auth_COLONawsv4] = ACTIONS(15), - [anon_sym_auth_COLONbasic] = ACTIONS(17), - [anon_sym_auth_COLONbearer] = ACTIONS(19), - [anon_sym_auth_COLONdigest] = ACTIONS(21), - [anon_sym_auth_COLONoauth2] = ACTIONS(23), - [anon_sym_body] = ACTIONS(25), - [anon_sym_body_COLONjson] = ACTIONS(27), - [anon_sym_body_COLONtext] = ACTIONS(29), - [anon_sym_body_COLONxml] = ACTIONS(31), - [anon_sym_body_COLONsparql] = ACTIONS(33), - [anon_sym_body_COLONgraphql] = ACTIONS(35), - [anon_sym_body_COLONgraphql_COLONvars] = ACTIONS(37), - [anon_sym_body_COLONform_DASHurlencoded] = ACTIONS(39), - [anon_sym_body_COLONmultipart_DASHform] = ACTIONS(41), - [anon_sym_vars] = ACTIONS(43), - [anon_sym_vars_COLONsecret] = ACTIONS(45), - [anon_sym_vars_COLONpre_DASHrequest] = ACTIONS(47), - [anon_sym_vars_COLONpost_DASHresponse] = ACTIONS(49), - [anon_sym_assert] = ACTIONS(51), - [anon_sym_script_COLONpre_DASHrequest] = ACTIONS(53), - [anon_sym_script_COLONpost_DASHresponse] = ACTIONS(55), - [anon_sym_params_COLONquery] = ACTIONS(57), - [anon_sym_params_COLONpath] = ACTIONS(59), - [anon_sym_tests] = ACTIONS(61), - [anon_sym_docs] = ACTIONS(63), - }, - [3] = { - [sym_meta] = STATE(24), - [sym_http] = STATE(24), - [sym_http_verb] = STATE(66), - [sym_query] = STATE(24), - [sym_headers] = STATE(24), - [sym_auths] = STATE(24), - [sym_authawsv4] = STATE(7), - [sym_authbasic] = STATE(7), - [sym_authbearer] = STATE(7), - [sym_authdigest] = STATE(7), - [sym_authoauth2] = STATE(7), - [sym_bodies] = STATE(24), - [sym_bodyforms] = STATE(37), - [sym_body] = STATE(37), - [sym_bodyjson] = STATE(37), - [sym_bodytext] = STATE(37), - [sym_bodyxml] = STATE(37), - [sym_bodysparql] = STATE(37), - [sym_bodygraphql] = STATE(37), - [sym_bodygraphqlvars] = STATE(37), - [sym_bodyformurlencoded] = STATE(41), - [sym_bodyformmultipart] = STATE(41), - [sym_varsandassert] = STATE(24), - [sym_vars] = STATE(43), - [sym_vars_secret] = STATE(43), - [sym_varsreq] = STATE(43), - [sym_varsres] = STATE(43), - [sym_assert] = STATE(43), - [sym_script] = STATE(24), - [sym_scriptreq] = STATE(5), - [sym_scriptres] = STATE(5), - [sym_params] = STATE(43), - [sym_params_query] = STATE(6), - [sym_params_path] = STATE(6), - [sym_tests] = STATE(24), - [sym_docs] = STATE(24), - [aux_sym_source_file_repeat1] = STATE(3), - [ts_builtin_sym_end] = ACTIONS(67), - [anon_sym_meta] = ACTIONS(69), - [anon_sym_get] = ACTIONS(72), - [anon_sym_post] = ACTIONS(72), - [anon_sym_put] = ACTIONS(72), - [anon_sym_delete] = ACTIONS(72), - [anon_sym_patch] = ACTIONS(72), - [anon_sym_options] = ACTIONS(72), - [anon_sym_head] = ACTIONS(75), - [anon_sym_connect] = ACTIONS(72), - [anon_sym_trace] = ACTIONS(72), - [anon_sym_query] = ACTIONS(78), - [anon_sym_headers] = ACTIONS(81), - [anon_sym_auth_COLONawsv4] = ACTIONS(84), - [anon_sym_auth_COLONbasic] = ACTIONS(87), - [anon_sym_auth_COLONbearer] = ACTIONS(90), - [anon_sym_auth_COLONdigest] = ACTIONS(93), - [anon_sym_auth_COLONoauth2] = ACTIONS(96), - [anon_sym_body] = ACTIONS(99), - [anon_sym_body_COLONjson] = ACTIONS(102), - [anon_sym_body_COLONtext] = ACTIONS(105), - [anon_sym_body_COLONxml] = ACTIONS(108), - [anon_sym_body_COLONsparql] = ACTIONS(111), - [anon_sym_body_COLONgraphql] = ACTIONS(114), - [anon_sym_body_COLONgraphql_COLONvars] = ACTIONS(117), - [anon_sym_body_COLONform_DASHurlencoded] = ACTIONS(120), - [anon_sym_body_COLONmultipart_DASHform] = ACTIONS(123), - [anon_sym_vars] = ACTIONS(126), - [anon_sym_vars_COLONsecret] = ACTIONS(129), - [anon_sym_vars_COLONpre_DASHrequest] = ACTIONS(132), - [anon_sym_vars_COLONpost_DASHresponse] = ACTIONS(135), - [anon_sym_assert] = ACTIONS(138), - [anon_sym_script_COLONpre_DASHrequest] = ACTIONS(141), - [anon_sym_script_COLONpost_DASHresponse] = ACTIONS(144), - [anon_sym_params_COLONquery] = ACTIONS(147), - [anon_sym_params_COLONpath] = ACTIONS(150), - [anon_sym_tests] = ACTIONS(153), - [anon_sym_docs] = ACTIONS(156), - }, -}; - -static const uint16_t ts_small_parse_table[] = { - [0] = 2, - ACTIONS(161), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(159), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [43] = 2, - ACTIONS(165), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(163), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [86] = 2, - ACTIONS(169), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(167), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [129] = 2, - ACTIONS(173), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(171), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [172] = 2, - ACTIONS(177), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(175), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [215] = 2, - ACTIONS(181), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(179), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [258] = 2, - ACTIONS(185), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(183), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [301] = 2, - ACTIONS(189), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(187), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [344] = 2, - ACTIONS(193), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(191), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [387] = 2, - ACTIONS(197), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(195), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [430] = 2, - ACTIONS(201), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(199), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [473] = 2, - ACTIONS(205), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(203), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [516] = 2, - ACTIONS(209), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(207), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [559] = 2, - ACTIONS(213), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(211), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [602] = 2, - ACTIONS(217), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(215), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [645] = 2, - ACTIONS(221), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(219), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [688] = 2, - ACTIONS(225), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(223), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [731] = 2, - ACTIONS(229), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(227), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [774] = 2, - ACTIONS(233), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(231), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [817] = 2, - ACTIONS(237), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(235), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [860] = 2, - ACTIONS(241), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(239), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [903] = 2, - ACTIONS(245), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(243), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [946] = 2, - ACTIONS(249), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(247), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [989] = 2, - ACTIONS(253), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(251), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1032] = 2, - ACTIONS(257), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(255), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1075] = 2, - ACTIONS(261), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(259), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1118] = 2, - ACTIONS(265), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(263), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1161] = 2, - ACTIONS(269), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(267), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1204] = 2, - ACTIONS(273), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(271), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1247] = 2, - ACTIONS(277), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(275), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1290] = 2, - ACTIONS(281), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(279), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1333] = 2, - ACTIONS(285), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(283), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1376] = 2, - ACTIONS(289), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(287), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1419] = 2, - ACTIONS(293), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(291), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1462] = 2, - ACTIONS(297), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(295), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1505] = 2, - ACTIONS(301), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(299), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1548] = 2, - ACTIONS(305), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(303), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1591] = 2, - ACTIONS(309), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(307), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1634] = 2, - ACTIONS(313), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(311), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1677] = 2, - ACTIONS(317), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(315), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1720] = 2, - ACTIONS(321), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(319), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1763] = 2, - ACTIONS(325), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(323), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1806] = 2, - ACTIONS(329), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(327), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1849] = 2, - ACTIONS(333), 4, - anon_sym_head, - anon_sym_body, - anon_sym_body_COLONgraphql, - anon_sym_vars, - ACTIONS(331), 34, - ts_builtin_sym_end, - anon_sym_meta, - anon_sym_get, - anon_sym_post, - anon_sym_put, - anon_sym_delete, - anon_sym_patch, - anon_sym_options, - anon_sym_connect, - anon_sym_trace, - anon_sym_query, - anon_sym_headers, - anon_sym_auth_COLONawsv4, - anon_sym_auth_COLONbasic, - anon_sym_auth_COLONbearer, - anon_sym_auth_COLONdigest, - anon_sym_auth_COLONoauth2, - anon_sym_body_COLONjson, - anon_sym_body_COLONtext, - anon_sym_body_COLONxml, - anon_sym_body_COLONsparql, - anon_sym_body_COLONgraphql_COLONvars, - anon_sym_body_COLONform_DASHurlencoded, - anon_sym_body_COLONmultipart_DASHform, - anon_sym_vars_COLONsecret, - anon_sym_vars_COLONpre_DASHrequest, - anon_sym_vars_COLONpost_DASHresponse, - anon_sym_assert, - anon_sym_script_COLONpre_DASHrequest, - anon_sym_script_COLONpost_DASHresponse, - anon_sym_params_COLONquery, - anon_sym_params_COLONpath, - anon_sym_tests, - anon_sym_docs, - [1892] = 3, - ACTIONS(335), 1, - anon_sym_RBRACE, - ACTIONS(337), 1, - sym_key, - STATE(48), 2, - sym_dictionary_pair, - aux_sym_dictionary_repeat1, - [1903] = 3, - ACTIONS(340), 1, - anon_sym_RBRACE, - ACTIONS(342), 1, - sym_assert_key, - STATE(49), 2, - sym_assert_dictionary_pair, - aux_sym_assert_dictionary_repeat1, - [1914] = 3, - ACTIONS(345), 1, - anon_sym_RBRACE, - ACTIONS(347), 1, - sym_assert_key, - STATE(49), 2, - sym_assert_dictionary_pair, - aux_sym_assert_dictionary_repeat1, - [1925] = 3, - ACTIONS(347), 1, - sym_assert_key, - ACTIONS(349), 1, - anon_sym_RBRACE, - STATE(50), 2, - sym_assert_dictionary_pair, - aux_sym_assert_dictionary_repeat1, - [1936] = 3, - ACTIONS(351), 1, - anon_sym_RBRACE, - ACTIONS(353), 1, - sym_key, - STATE(48), 2, - sym_dictionary_pair, - aux_sym_dictionary_repeat1, - [1947] = 3, - ACTIONS(353), 1, - sym_key, - ACTIONS(355), 1, - anon_sym_RBRACE, - STATE(52), 2, - sym_dictionary_pair, - aux_sym_dictionary_repeat1, - [1958] = 2, - ACTIONS(357), 1, - anon_sym_COMMA, - ACTIONS(359), 2, - anon_sym_RBRACK, - sym_array_value, - [1966] = 3, - ACTIONS(361), 1, - anon_sym_RBRACK, - ACTIONS(363), 1, - sym_array_value, - STATE(57), 1, - aux_sym_array_repeat1, - [1976] = 3, - ACTIONS(363), 1, - sym_array_value, - ACTIONS(365), 1, - anon_sym_RBRACK, - STATE(55), 1, - aux_sym_array_repeat1, - [1986] = 3, - ACTIONS(367), 1, - anon_sym_RBRACK, - ACTIONS(369), 1, - sym_array_value, - STATE(57), 1, - aux_sym_array_repeat1, - [1996] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(12), 1, - sym_dictionary, - [2003] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(32), 1, - sym_dictionary, - [2010] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(23), 1, - sym_dictionary, - [2017] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(33), 1, - sym_dictionary, - [2024] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(34), 1, - sym_textblock, - [2031] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(35), 1, - sym_textblock, - [2038] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(47), 1, - sym_dictionary, - [2045] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(8), 1, - sym_dictionary, - [2052] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(36), 1, - sym_dictionary, - [2059] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(9), 1, - sym_dictionary, - [2066] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(10), 1, - sym_dictionary, - [2073] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(11), 1, - sym_dictionary, - [2080] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(22), 1, - sym_textblock, - [2087] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(13), 1, - sym_dictionary, - [2094] = 2, - ACTIONS(376), 1, - anon_sym_RBRACE, - ACTIONS(378), 1, - sym_rawtext, - [2101] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(25), 1, - sym_dictionary, - [2108] = 2, - ACTIONS(380), 1, - anon_sym_LBRACK, - STATE(26), 1, - sym_array, - [2115] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(15), 1, - sym_dictionary, - [2122] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(27), 1, - sym_dictionary, - [2129] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(28), 1, - sym_dictionary, - [2136] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(16), 1, - sym_textblock, - [2143] = 2, - ACTIONS(382), 1, - anon_sym_LBRACE, - STATE(29), 1, - sym_assert_dictionary, - [2150] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(17), 1, - sym_textblock, - [2157] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(18), 1, - sym_textblock, - [2164] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(19), 1, - sym_textblock, - [2171] = 1, - ACTIONS(367), 2, - anon_sym_RBRACK, - sym_array_value, - [2176] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(20), 1, - sym_textblock, - [2183] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(30), 1, - sym_textblock, - [2190] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(21), 1, - sym_textblock, - [2197] = 2, - ACTIONS(374), 1, - anon_sym_LBRACE, - STATE(31), 1, - sym_textblock, - [2204] = 1, - ACTIONS(384), 2, - anon_sym_RBRACE, - sym_key, - [2209] = 1, - ACTIONS(386), 2, - anon_sym_RBRACE, - sym_assert_key, - [2214] = 2, - ACTIONS(372), 1, - anon_sym_LBRACE, - STATE(14), 1, - sym_dictionary, - [2221] = 1, - ACTIONS(388), 1, - anon_sym_COLON, - [2225] = 1, - ACTIONS(390), 1, - sym_value, - [2229] = 1, - ACTIONS(392), 1, - sym_value, - [2233] = 1, - ACTIONS(394), 1, - ts_builtin_sym_end, - [2237] = 1, - ACTIONS(396), 1, - anon_sym_RBRACE, - [2241] = 1, - ACTIONS(398), 1, - anon_sym_LBRACE, - [2245] = 1, - ACTIONS(400), 1, - anon_sym_COLON, -}; - -static const uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(4)] = 0, - [SMALL_STATE(5)] = 43, - [SMALL_STATE(6)] = 86, - [SMALL_STATE(7)] = 129, - [SMALL_STATE(8)] = 172, - [SMALL_STATE(9)] = 215, - [SMALL_STATE(10)] = 258, - [SMALL_STATE(11)] = 301, - [SMALL_STATE(12)] = 344, - [SMALL_STATE(13)] = 387, - [SMALL_STATE(14)] = 430, - [SMALL_STATE(15)] = 473, - [SMALL_STATE(16)] = 516, - [SMALL_STATE(17)] = 559, - [SMALL_STATE(18)] = 602, - [SMALL_STATE(19)] = 645, - [SMALL_STATE(20)] = 688, - [SMALL_STATE(21)] = 731, - [SMALL_STATE(22)] = 774, - [SMALL_STATE(23)] = 817, - [SMALL_STATE(24)] = 860, - [SMALL_STATE(25)] = 903, - [SMALL_STATE(26)] = 946, - [SMALL_STATE(27)] = 989, - [SMALL_STATE(28)] = 1032, - [SMALL_STATE(29)] = 1075, - [SMALL_STATE(30)] = 1118, - [SMALL_STATE(31)] = 1161, - [SMALL_STATE(32)] = 1204, - [SMALL_STATE(33)] = 1247, - [SMALL_STATE(34)] = 1290, - [SMALL_STATE(35)] = 1333, - [SMALL_STATE(36)] = 1376, - [SMALL_STATE(37)] = 1419, - [SMALL_STATE(38)] = 1462, - [SMALL_STATE(39)] = 1505, - [SMALL_STATE(40)] = 1548, - [SMALL_STATE(41)] = 1591, - [SMALL_STATE(42)] = 1634, - [SMALL_STATE(43)] = 1677, - [SMALL_STATE(44)] = 1720, - [SMALL_STATE(45)] = 1763, - [SMALL_STATE(46)] = 1806, - [SMALL_STATE(47)] = 1849, - [SMALL_STATE(48)] = 1892, - [SMALL_STATE(49)] = 1903, - [SMALL_STATE(50)] = 1914, - [SMALL_STATE(51)] = 1925, - [SMALL_STATE(52)] = 1936, - [SMALL_STATE(53)] = 1947, - [SMALL_STATE(54)] = 1958, - [SMALL_STATE(55)] = 1966, - [SMALL_STATE(56)] = 1976, - [SMALL_STATE(57)] = 1986, - [SMALL_STATE(58)] = 1996, - [SMALL_STATE(59)] = 2003, - [SMALL_STATE(60)] = 2010, - [SMALL_STATE(61)] = 2017, - [SMALL_STATE(62)] = 2024, - [SMALL_STATE(63)] = 2031, - [SMALL_STATE(64)] = 2038, - [SMALL_STATE(65)] = 2045, - [SMALL_STATE(66)] = 2052, - [SMALL_STATE(67)] = 2059, - [SMALL_STATE(68)] = 2066, - [SMALL_STATE(69)] = 2073, - [SMALL_STATE(70)] = 2080, - [SMALL_STATE(71)] = 2087, - [SMALL_STATE(72)] = 2094, - [SMALL_STATE(73)] = 2101, - [SMALL_STATE(74)] = 2108, - [SMALL_STATE(75)] = 2115, - [SMALL_STATE(76)] = 2122, - [SMALL_STATE(77)] = 2129, - [SMALL_STATE(78)] = 2136, - [SMALL_STATE(79)] = 2143, - [SMALL_STATE(80)] = 2150, - [SMALL_STATE(81)] = 2157, - [SMALL_STATE(82)] = 2164, - [SMALL_STATE(83)] = 2171, - [SMALL_STATE(84)] = 2176, - [SMALL_STATE(85)] = 2183, - [SMALL_STATE(86)] = 2190, - [SMALL_STATE(87)] = 2197, - [SMALL_STATE(88)] = 2204, - [SMALL_STATE(89)] = 2209, - [SMALL_STATE(90)] = 2214, - [SMALL_STATE(91)] = 2221, - [SMALL_STATE(92)] = 2225, - [SMALL_STATE(93)] = 2229, - [SMALL_STATE(94)] = 2233, - [SMALL_STATE(95)] = 2237, - [SMALL_STATE(96)] = 2241, - [SMALL_STATE(97)] = 2245, -}; - -static const TSParseActionEntry ts_parse_actions[] = { - [0] = {.entry = {.count = 0, .reusable = false}}, - [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0, 0, 0), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(96), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(78), - [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [35] = {.entry = {.count = 1, .reusable = false}}, SHIFT(86), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [43] = {.entry = {.count = 1, .reusable = false}}, SHIFT(73), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [49] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 2), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), - [69] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(65), - [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(96), - [75] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(96), - [78] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(67), - [81] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(68), - [84] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(69), - [87] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(58), - [90] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(71), - [93] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(90), - [96] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(75), - [99] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(78), - [102] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(80), - [105] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(81), - [108] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(82), - [111] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(84), - [114] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(86), - [117] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(70), - [120] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(60), - [123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(64), - [126] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(73), - [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(74), - [132] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(76), - [135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(77), - [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(79), - [141] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(85), - [144] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(87), - [147] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(59), - [150] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(61), - [153] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(62), - [156] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 3), SHIFT_REPEAT(63), - [159] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assert_dictionary, 2, 0, 0), - [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assert_dictionary, 2, 0, 0), - [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script, 1, 0, 0), - [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script, 1, 0, 0), - [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params, 1, 0, 0), - [169] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params, 1, 0, 0), - [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_auths, 1, 0, 0), - [173] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_auths, 1, 0, 0), - [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta, 2, 0, 0), - [177] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_meta, 2, 0, 0), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_query, 2, 0, 0), - [181] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_query, 2, 0, 0), - [183] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_headers, 2, 0, 0), - [185] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_headers, 2, 0, 0), - [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_authawsv4, 2, 0, 0), - [189] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_authawsv4, 2, 0, 0), - [191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_authbasic, 2, 0, 0), - [193] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_authbasic, 2, 0, 0), - [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_authbearer, 2, 0, 0), - [197] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_authbearer, 2, 0, 0), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_authdigest, 2, 0, 0), - [201] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_authdigest, 2, 0, 0), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_authoauth2, 2, 0, 0), - [205] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_authoauth2, 2, 0, 0), - [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_body, 2, 0, 0), - [209] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_body, 2, 0, 0), - [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodyjson, 2, 0, 0), - [213] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodyjson, 2, 0, 0), - [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodytext, 2, 0, 0), - [217] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodytext, 2, 0, 0), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodyxml, 2, 0, 0), - [221] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodyxml, 2, 0, 0), - [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodysparql, 2, 0, 0), - [225] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodysparql, 2, 0, 0), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodygraphql, 2, 0, 0), - [229] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodygraphql, 2, 0, 0), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodygraphqlvars, 2, 0, 0), - [233] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodygraphqlvars, 2, 0, 0), - [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodyformurlencoded, 2, 0, 0), - [237] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodyformurlencoded, 2, 0, 0), - [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 1), - [241] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 1, 0, 1), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_vars, 2, 0, 0), - [245] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_vars, 2, 0, 0), - [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_vars_secret, 2, 0, 0), - [249] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_vars_secret, 2, 0, 0), - [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_varsreq, 2, 0, 0), - [253] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_varsreq, 2, 0, 0), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_varsres, 2, 0, 0), - [257] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_varsres, 2, 0, 0), - [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assert, 2, 0, 0), - [261] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assert, 2, 0, 0), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_scriptreq, 2, 0, 0), - [265] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_scriptreq, 2, 0, 0), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_scriptres, 2, 0, 0), - [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_scriptres, 2, 0, 0), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params_query, 2, 0, 0), - [273] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params_query, 2, 0, 0), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_params_path, 2, 0, 0), - [277] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_params_path, 2, 0, 0), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_tests, 2, 0, 0), - [281] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_tests, 2, 0, 0), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_docs, 2, 0, 0), - [285] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_docs, 2, 0, 0), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_http, 2, 0, 0), - [289] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_http, 2, 0, 0), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodies, 1, 0, 0), - [293] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodies, 1, 0, 0), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dictionary, 2, 0, 0), - [297] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dictionary, 2, 0, 0), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_textblock, 2, 0, 0), - [301] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_textblock, 2, 0, 0), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 2, 0, 0), - [305] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 2, 0, 0), - [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodyforms, 1, 0, 0), - [309] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodyforms, 1, 0, 0), - [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dictionary, 3, 0, 0), - [313] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dictionary, 3, 0, 0), - [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_varsandassert, 1, 0, 0), - [317] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_varsandassert, 1, 0, 0), - [319] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_textblock, 3, 0, 0), - [321] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_textblock, 3, 0, 0), - [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0), - [325] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 3, 0, 0), - [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assert_dictionary, 3, 0, 0), - [329] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assert_dictionary, 3, 0, 0), - [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bodyformmultipart, 2, 0, 0), - [333] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bodyformmultipart, 2, 0, 0), - [335] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_dictionary_repeat1, 2, 0, 0), - [337] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_dictionary_repeat1, 2, 0, 0), SHIFT_REPEAT(91), - [340] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_assert_dictionary_repeat1, 2, 0, 0), - [342] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_assert_dictionary_repeat1, 2, 0, 0), SHIFT_REPEAT(97), - [345] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), - [347] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), - [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(4), - [351] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42), - [353] = {.entry = {.count = 1, .reusable = false}}, SHIFT(91), - [355] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), - [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [359] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 1, 0, 0), - [361] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [363] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [365] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [367] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), - [369] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(54), - [372] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [374] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [376] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [378] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [380] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [382] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [384] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dictionary_pair, 3, 0, 0), - [386] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assert_dictionary_pair, 3, 0, 0), - [388] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [390] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [392] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), - [394] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [396] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [398] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_http_verb, 1, 0, 0), - [400] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), -}; - -enum ts_external_scanner_symbol_identifiers { - ts_external_token_rawtext = 0, -}; - -static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { - [ts_external_token_rawtext] = sym_rawtext, -}; - -static const bool ts_external_scanner_states[2][EXTERNAL_TOKEN_COUNT] = { - [1] = { - [ts_external_token_rawtext] = true, - }, -}; - -#ifdef __cplusplus -extern "C" { -#endif -void *tree_sitter_bruno_external_scanner_create(void); -void tree_sitter_bruno_external_scanner_destroy(void *); -bool tree_sitter_bruno_external_scanner_scan(void *, TSLexer *, const bool *); -unsigned tree_sitter_bruno_external_scanner_serialize(void *, char *); -void tree_sitter_bruno_external_scanner_deserialize(void *, const char *, unsigned); - -#ifdef TREE_SITTER_HIDE_SYMBOLS -#define TS_PUBLIC -#elif defined(_WIN32) -#define TS_PUBLIC __declspec(dllexport) -#else -#define TS_PUBLIC __attribute__((visibility("default"))) -#endif - -TS_PUBLIC const TSLanguage *tree_sitter_bruno(void) { - static const TSLanguage language = { - .version = LANGUAGE_VERSION, - .symbol_count = SYMBOL_COUNT, - .alias_count = ALIAS_COUNT, - .token_count = TOKEN_COUNT, - .external_token_count = EXTERNAL_TOKEN_COUNT, - .state_count = STATE_COUNT, - .large_state_count = LARGE_STATE_COUNT, - .production_id_count = PRODUCTION_ID_COUNT, - .field_count = FIELD_COUNT, - .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH, - .parse_table = &ts_parse_table[0][0], - .small_parse_table = ts_small_parse_table, - .small_parse_table_map = ts_small_parse_table_map, - .parse_actions = ts_parse_actions, - .symbol_names = ts_symbol_names, - .field_names = ts_field_names, - .field_map_slices = ts_field_map_slices, - .field_map_entries = ts_field_map_entries, - .symbol_metadata = ts_symbol_metadata, - .public_symbol_map = ts_symbol_map, - .alias_map = ts_non_terminal_alias_map, - .alias_sequences = &ts_alias_sequences[0][0], - .lex_modes = ts_lex_modes, - .lex_fn = ts_lex, - .external_scanner = { - &ts_external_scanner_states[0][0], - ts_external_scanner_symbol_map, - tree_sitter_bruno_external_scanner_create, - tree_sitter_bruno_external_scanner_destroy, - tree_sitter_bruno_external_scanner_scan, - tree_sitter_bruno_external_scanner_serialize, - tree_sitter_bruno_external_scanner_deserialize, - }, - .primary_state_ids = ts_primary_state_ids, - }; - return &language; -} -#ifdef __cplusplus -} -#endif diff --git a/src/scanner.c b/src/scanner.c deleted file mode 100644 index 0953495..0000000 --- a/src/scanner.c +++ /dev/null @@ -1,50 +0,0 @@ -#include "tree_sitter/parser.h" - -enum TokenType { - RAW_TEXT, -}; - -void *tree_sitter_bruno_external_scanner_create() { - return NULL; -} - -void tree_sitter_bruno_external_scanner_destroy(void *p) { -} - -void tree_sitter_bruno_external_scanner_reset(void *p) { -} - -unsigned tree_sitter_bruno_external_scanner_serialize(void *p, char *buffer) { - return 0; -} - -void tree_sitter_bruno_external_scanner_deserialize(void *p, const char *b, unsigned n) { -} - -static void advance(TSLexer *lexer) { - lexer->advance(lexer, false); -} - -bool tree_sitter_bruno_external_scanner_scan(void *payload, TSLexer *lexer, const bool *valid_symbols) { - if (valid_symbols[RAW_TEXT]) { - // Scanning raw text follows the rules of the official Bruno language grammar - // (refer to https://github.com/usebruno/bruno/blob/main/packages/bruno-lang/v2/src/bruToJson.js). - // A raw text block ends if a closing angle bracket is found right after a newline. - - lexer->result_symbol = RAW_TEXT; - for (bool has_content = false;; has_content = true) { - lexer->mark_end(lexer); - - switch (lexer->lookahead) { - case '\n': - advance(lexer); - if (lexer->lookahead == '}') return has_content; - break; - case '\0': return false; - default: advance(lexer); - } - } - } - - return false; -} diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h deleted file mode 100644 index 1abdd12..0000000 --- a/src/tree_sitter/alloc.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef TREE_SITTER_ALLOC_H_ -#define TREE_SITTER_ALLOC_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -// Allow clients to override allocation functions -#ifdef TREE_SITTER_REUSE_ALLOCATOR - -extern void *(*ts_current_malloc)(size_t size); -extern void *(*ts_current_calloc)(size_t count, size_t size); -extern void *(*ts_current_realloc)(void *ptr, size_t size); -extern void (*ts_current_free)(void *ptr); - -#ifndef ts_malloc -#define ts_malloc ts_current_malloc -#endif -#ifndef ts_calloc -#define ts_calloc ts_current_calloc -#endif -#ifndef ts_realloc -#define ts_realloc ts_current_realloc -#endif -#ifndef ts_free -#define ts_free ts_current_free -#endif - -#else - -#ifndef ts_malloc -#define ts_malloc malloc -#endif -#ifndef ts_calloc -#define ts_calloc calloc -#endif -#ifndef ts_realloc -#define ts_realloc realloc -#endif -#ifndef ts_free -#define ts_free free -#endif - -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TREE_SITTER_ALLOC_H_ diff --git a/src/tree_sitter/array.h b/src/tree_sitter/array.h deleted file mode 100644 index 15a3b23..0000000 --- a/src/tree_sitter/array.h +++ /dev/null @@ -1,290 +0,0 @@ -#ifndef TREE_SITTER_ARRAY_H_ -#define TREE_SITTER_ARRAY_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "./alloc.h" - -#include -#include -#include -#include -#include - -#ifdef _MSC_VER -#pragma warning(disable : 4101) -#elif defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-variable" -#endif - -#define Array(T) \ - struct { \ - T *contents; \ - uint32_t size; \ - uint32_t capacity; \ - } - -/// Initialize an array. -#define array_init(self) \ - ((self)->size = 0, (self)->capacity = 0, (self)->contents = NULL) - -/// Create an empty array. -#define array_new() \ - { NULL, 0, 0 } - -/// Get a pointer to the element at a given `index` in the array. -#define array_get(self, _index) \ - (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index]) - -/// Get a pointer to the first element in the array. -#define array_front(self) array_get(self, 0) - -/// Get a pointer to the last element in the array. -#define array_back(self) array_get(self, (self)->size - 1) - -/// Clear the array, setting its size to zero. Note that this does not free any -/// memory allocated for the array's contents. -#define array_clear(self) ((self)->size = 0) - -/// Reserve `new_capacity` elements of space in the array. If `new_capacity` is -/// less than the array's current capacity, this function has no effect. -#define array_reserve(self, new_capacity) \ - _array__reserve((Array *)(self), array_elem_size(self), new_capacity) - -/// Free any memory allocated for this array. Note that this does not free any -/// memory allocated for the array's contents. -#define array_delete(self) _array__delete((Array *)(self)) - -/// Push a new `element` onto the end of the array. -#define array_push(self, element) \ - (_array__grow((Array *)(self), 1, array_elem_size(self)), \ - (self)->contents[(self)->size++] = (element)) - -/// Increase the array's size by `count` elements. -/// New elements are zero-initialized. -#define array_grow_by(self, count) \ - do { \ - if ((count) == 0) break; \ - _array__grow((Array *)(self), count, array_elem_size(self)); \ - memset((self)->contents + (self)->size, 0, (count) * array_elem_size(self)); \ - (self)->size += (count); \ - } while (0) - -/// Append all elements from one array to the end of another. -#define array_push_all(self, other) \ - array_extend((self), (other)->size, (other)->contents) - -/// Append `count` elements to the end of the array, reading their values from the -/// `contents` pointer. -#define array_extend(self, count, contents) \ - _array__splice( \ - (Array *)(self), array_elem_size(self), (self)->size, \ - 0, count, contents \ - ) - -/// Remove `old_count` elements from the array starting at the given `index`. At -/// the same index, insert `new_count` new elements, reading their values from the -/// `new_contents` pointer. -#define array_splice(self, _index, old_count, new_count, new_contents) \ - _array__splice( \ - (Array *)(self), array_elem_size(self), _index, \ - old_count, new_count, new_contents \ - ) - -/// Insert one `element` into the array at the given `index`. -#define array_insert(self, _index, element) \ - _array__splice((Array *)(self), array_elem_size(self), _index, 0, 1, &(element)) - -/// Remove one element from the array at the given `index`. -#define array_erase(self, _index) \ - _array__erase((Array *)(self), array_elem_size(self), _index) - -/// Pop the last element off the array, returning the element by value. -#define array_pop(self) ((self)->contents[--(self)->size]) - -/// Assign the contents of one array to another, reallocating if necessary. -#define array_assign(self, other) \ - _array__assign((Array *)(self), (const Array *)(other), array_elem_size(self)) - -/// Swap one array with another -#define array_swap(self, other) \ - _array__swap((Array *)(self), (Array *)(other)) - -/// Get the size of the array contents -#define array_elem_size(self) (sizeof *(self)->contents) - -/// Search a sorted array for a given `needle` value, using the given `compare` -/// callback to determine the order. -/// -/// If an existing element is found to be equal to `needle`, then the `index` -/// out-parameter is set to the existing value's index, and the `exists` -/// out-parameter is set to true. Otherwise, `index` is set to an index where -/// `needle` should be inserted in order to preserve the sorting, and `exists` -/// is set to false. -#define array_search_sorted_with(self, compare, needle, _index, _exists) \ - _array__search_sorted(self, 0, compare, , needle, _index, _exists) - -/// Search a sorted array for a given `needle` value, using integer comparisons -/// of a given struct field (specified with a leading dot) to determine the order. -/// -/// See also `array_search_sorted_with`. -#define array_search_sorted_by(self, field, needle, _index, _exists) \ - _array__search_sorted(self, 0, _compare_int, field, needle, _index, _exists) - -/// Insert a given `value` into a sorted array, using the given `compare` -/// callback to determine the order. -#define array_insert_sorted_with(self, compare, value) \ - do { \ - unsigned _index, _exists; \ - array_search_sorted_with(self, compare, &(value), &_index, &_exists); \ - if (!_exists) array_insert(self, _index, value); \ - } while (0) - -/// Insert a given `value` into a sorted array, using integer comparisons of -/// a given struct field (specified with a leading dot) to determine the order. -/// -/// See also `array_search_sorted_by`. -#define array_insert_sorted_by(self, field, value) \ - do { \ - unsigned _index, _exists; \ - array_search_sorted_by(self, field, (value) field, &_index, &_exists); \ - if (!_exists) array_insert(self, _index, value); \ - } while (0) - -// Private - -typedef Array(void) Array; - -/// This is not what you're looking for, see `array_delete`. -static inline void _array__delete(Array *self) { - if (self->contents) { - ts_free(self->contents); - self->contents = NULL; - self->size = 0; - self->capacity = 0; - } -} - -/// This is not what you're looking for, see `array_erase`. -static inline void _array__erase(Array *self, size_t element_size, - uint32_t index) { - assert(index < self->size); - char *contents = (char *)self->contents; - memmove(contents + index * element_size, contents + (index + 1) * element_size, - (self->size - index - 1) * element_size); - self->size--; -} - -/// This is not what you're looking for, see `array_reserve`. -static inline void _array__reserve(Array *self, size_t element_size, uint32_t new_capacity) { - if (new_capacity > self->capacity) { - if (self->contents) { - self->contents = ts_realloc(self->contents, new_capacity * element_size); - } else { - self->contents = ts_malloc(new_capacity * element_size); - } - self->capacity = new_capacity; - } -} - -/// This is not what you're looking for, see `array_assign`. -static inline void _array__assign(Array *self, const Array *other, size_t element_size) { - _array__reserve(self, element_size, other->size); - self->size = other->size; - memcpy(self->contents, other->contents, self->size * element_size); -} - -/// This is not what you're looking for, see `array_swap`. -static inline void _array__swap(Array *self, Array *other) { - Array swap = *other; - *other = *self; - *self = swap; -} - -/// This is not what you're looking for, see `array_push` or `array_grow_by`. -static inline void _array__grow(Array *self, uint32_t count, size_t element_size) { - uint32_t new_size = self->size + count; - if (new_size > self->capacity) { - uint32_t new_capacity = self->capacity * 2; - if (new_capacity < 8) new_capacity = 8; - if (new_capacity < new_size) new_capacity = new_size; - _array__reserve(self, element_size, new_capacity); - } -} - -/// This is not what you're looking for, see `array_splice`. -static inline void _array__splice(Array *self, size_t element_size, - uint32_t index, uint32_t old_count, - uint32_t new_count, const void *elements) { - uint32_t new_size = self->size + new_count - old_count; - uint32_t old_end = index + old_count; - uint32_t new_end = index + new_count; - assert(old_end <= self->size); - - _array__reserve(self, element_size, new_size); - - char *contents = (char *)self->contents; - if (self->size > old_end) { - memmove( - contents + new_end * element_size, - contents + old_end * element_size, - (self->size - old_end) * element_size - ); - } - if (new_count > 0) { - if (elements) { - memcpy( - (contents + index * element_size), - elements, - new_count * element_size - ); - } else { - memset( - (contents + index * element_size), - 0, - new_count * element_size - ); - } - } - self->size += new_count - old_count; -} - -/// A binary search routine, based on Rust's `std::slice::binary_search_by`. -/// This is not what you're looking for, see `array_search_sorted_with` or `array_search_sorted_by`. -#define _array__search_sorted(self, start, compare, suffix, needle, _index, _exists) \ - do { \ - *(_index) = start; \ - *(_exists) = false; \ - uint32_t size = (self)->size - *(_index); \ - if (size == 0) break; \ - int comparison; \ - while (size > 1) { \ - uint32_t half_size = size / 2; \ - uint32_t mid_index = *(_index) + half_size; \ - comparison = compare(&((self)->contents[mid_index] suffix), (needle)); \ - if (comparison <= 0) *(_index) = mid_index; \ - size -= half_size; \ - } \ - comparison = compare(&((self)->contents[*(_index)] suffix), (needle)); \ - if (comparison == 0) *(_exists) = true; \ - else if (comparison < 0) *(_index) += 1; \ - } while (0) - -/// Helper macro for the `_sorted_by` routines below. This takes the left (existing) -/// parameter by reference in order to work with the generic sorting function above. -#define _compare_int(a, b) ((int)*(a) - (int)(b)) - -#ifdef _MSC_VER -#pragma warning(default : 4101) -#elif defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TREE_SITTER_ARRAY_H_ diff --git a/src/tree_sitter/parser.h b/src/tree_sitter/parser.h deleted file mode 100644 index 799f599..0000000 --- a/src/tree_sitter/parser.h +++ /dev/null @@ -1,266 +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 - -#ifndef TREE_SITTER_API_H_ -typedef uint16_t TSStateId; -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 *); - void (*log)(const TSLexer *, const char *, ...); -}; - -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; - -typedef struct { - int32_t start; - int32_t end; -} TSCharacterRange; - -struct TSLanguage { - uint32_t version; - uint32_t symbol_count; - uint32_t alias_count; - uint32_t token_count; - uint32_t external_token_count; - uint32_t state_count; - uint32_t large_state_count; - uint32_t production_id_count; - uint32_t field_count; - uint16_t max_alias_sequence_length; - const uint16_t *parse_table; - const uint16_t *small_parse_table; - const uint32_t *small_parse_table_map; - const TSParseActionEntry *parse_actions; - const char * const *symbol_names; - const char * const *field_names; - const TSFieldMapSlice *field_map_slices; - const TSFieldMapEntry *field_map_entries; - const TSSymbolMetadata *symbol_metadata; - const TSSymbol *public_symbol_map; - const uint16_t *alias_map; - const TSSymbol *alias_sequences; - const TSLexMode *lex_modes; - bool (*lex_fn)(TSLexer *, TSStateId); - bool (*keyword_lex_fn)(TSLexer *, TSStateId); - TSSymbol keyword_capture_token; - struct { - const bool *states; - const TSSymbol *symbol_map; - void *(*create)(void); - void (*destroy)(void *); - bool (*scan)(void *, TSLexer *, const bool *symbol_whitelist); - unsigned (*serialize)(void *, char *); - void (*deserialize)(void *, const char *, unsigned); - } external_scanner; - const TSStateId *primary_state_ids; -}; - -static inline bool set_contains(TSCharacterRange *ranges, uint32_t len, int32_t lookahead) { - uint32_t index = 0; - uint32_t size = len - index; - while (size > 1) { - uint32_t half_size = size / 2; - uint32_t mid_index = index + half_size; - TSCharacterRange *range = &ranges[mid_index]; - if (lookahead >= range->start && lookahead <= range->end) { - return true; - } else if (lookahead > range->end) { - index = mid_index; - } - size -= half_size; - } - TSCharacterRange *range = &ranges[index]; - return (lookahead >= range->start && lookahead <= range->end); -} - -/* - * Lexer Macros - */ - -#ifdef _MSC_VER -#define UNUSED __pragma(warning(suppress : 4101)) -#else -#define UNUSED __attribute__((unused)) -#endif - -#define START_LEXER() \ - bool result = false; \ - bool skip = false; \ - UNUSED \ - 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 ADVANCE_MAP(...) \ - { \ - static const uint16_t map[] = { __VA_ARGS__ }; \ - for (uint32_t i = 0; i < sizeof(map) / sizeof(map[0]); i += 2) { \ - if (map[i] == lookahead) { \ - state = map[i + 1]; \ - goto next_state; \ - } \ - } \ - } - -#define SKIP(state_value) \ - { \ - skip = true; \ - 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_name, children, precedence, prod_id) \ - {{ \ - .reduce = { \ - .type = TSParseActionTypeReduce, \ - .symbol = symbol_name, \ - .child_count = children, \ - .dynamic_precedence = precedence, \ - .production_id = prod_id \ - }, \ - }} - -#define RECOVER() \ - {{ \ - .type = TSParseActionTypeRecover \ - }} - -#define ACCEPT_INPUT() \ - {{ \ - .type = TSParseActionTypeAccept \ - }} - -#ifdef __cplusplus -} -#endif - -#endif // TREE_SITTER_PARSER_H_ diff --git a/test/corpus/assert.txt b/test/corpus/assert.txt deleted file mode 100644 index 3319422..0000000 --- a/test/corpus/assert.txt +++ /dev/null @@ -1,47 +0,0 @@ -======================= -Assert res.status = 200 -======================= - -assert { - res.status: eq 200 -} - ---- - -(source_file - (varsandassert - (assert - (keyword) - (assert_dictionary - (assert_dictionary_pair - (assert_key) - (value) - ) - ) - ) - ) -) - -======================= -Assert with empty value -======================= - -assert { - res.status: -} - ---- - -(source_file - (varsandassert - (assert - (keyword) - (assert_dictionary - (assert_dictionary_pair - (assert_key) - (value) - ) - ) - ) - ) -) diff --git a/test/corpus/auth.txt b/test/corpus/auth.txt deleted file mode 100644 index e5d1a13..0000000 --- a/test/corpus/auth.txt +++ /dev/null @@ -1,57 +0,0 @@ -=========== -Auth Oauth2 -=========== - -auth:oauth2 { - grant_type: authorization_code - scope: read write -} - ---- - -(source_file - (auths - (authoauth2 - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) - ) -) - -=========================================== -Auth Basic with empty username and password -=========================================== - -auth:basic { - username: - password: -} - ---- - -(source_file - (auths - (authbasic - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) - ) -) diff --git a/test/corpus/body.txt b/test/corpus/body.txt deleted file mode 100644 index 854418b..0000000 --- a/test/corpus/body.txt +++ /dev/null @@ -1,192 +0,0 @@ -========== -JSON Body -========== - -body:json { - { - "apiKey": "secret", - "numbers": "9988776655", - "message": "Woof! lets play with some apis" - } -} - ---- - -(source_file - (bodies - (bodyjson - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -========== -Text Body -========== - -body:text { - This is a text body -} - ---- - -(source_file - (bodies - (bodytext - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -========= -XML Body -========= - -body:xml { - - John - 30 - -} - ---- - -(source_file - (bodies - (bodyxml - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -============= -GraphQL Body -============= - -body:graphql { - { - launchesPast { - launch_site { - site_name - } - launch_success - } - } -} - ---- - -(source_file - (bodies - (bodygraphql - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -================== -GraphQL Vars Body -================== - -body:graphql:vars { - { - "limit": 5 - } -} - ---- - -(source_file - (bodies - (bodygraphqlvars - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -===================== -Form URLEncoded Body -===================== - -body:form-urlencoded { - apikey: secret - numbers: +91998877665 - ~message: hello -} - ---- - -(source_file - (bodies - (bodyforms - (bodyformurlencoded - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) - ) - ) -) - -===================== -Form Multipart Body -===================== - -body:multipart-form { - apikey: secret - numbers: +91998877665 - ~message: hello -} - ---- - -(source_file - (bodies - (bodyforms - (bodyformmultipart - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) - ) - ) -) diff --git a/test/corpus/bruno.txt b/test/corpus/bruno.txt deleted file mode 100644 index c3eab3f..0000000 --- a/test/corpus/bruno.txt +++ /dev/null @@ -1,31 +0,0 @@ -================ -META Tag -================ - -meta { - name: Get users - type: http - seq: 1 -} - ---- - -(source_file - tag: (meta - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) diff --git a/test/corpus/methods.txt b/test/corpus/methods.txt deleted file mode 100644 index 0949a64..0000000 --- a/test/corpus/methods.txt +++ /dev/null @@ -1,239 +0,0 @@ -===================== -Query Parameters Tag -===================== - -query { - apiKey: secret - numbers: 9988776655 - message: hello -} - ---- - -(source_file - tag: (query - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -============ -Headers Tag -============ - -headers { - content-type: application/json - Authorization: Bearer topsecret -} - ---- - -(source_file - tag: (headers - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -=============== -GET Method Tag -=============== - -get { - url: https://github.com/Scalamando/tree-sitter-bruno - body: JSON -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -================ -POST Method Tag -================ - -post { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -=============== -PUT Method Tag -=============== - -put { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -================== -DELETE Method Tag -================== - -delete { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -=================== -OPTIONS Method Tag -=================== - -options { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -================= -TRACE Method Tag -================= - -trace { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -=================== -CONNECT Method Tag -=================== - -connect { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -================ -HEAD Method Tag -================ - -head { - url: https://api.github.com/users/usebruno -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) -) diff --git a/test/corpus/real.txt b/test/corpus/real.txt deleted file mode 100644 index 2ec7a25..0000000 --- a/test/corpus/real.txt +++ /dev/null @@ -1,197 +0,0 @@ -================= -GET with headers -================= - -get { - url: https://api.textlocal.in/send?apiKey=secret&numbers=9988776655&message=hello -} - -headers { - content-type: application/json - Authorization: Bearer topsecret -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) - tag: (headers - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -=============== -POST with body -=============== - -post { - url: https://api.textlocal.in/send -} - -body { - { - "apiKey": "secret", - "numbers": "9988776655", - "message": "Woof! lets play with some apis" - } -} - -headers { - content-type: application/json - Authorization: Bearer topsecret -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) - tag: (bodies - (body - (keyword) - (textblock - (rawtext) - ) - ) - ) - tag: (headers - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - (dictionary_pair - (key) - (value) - ) - ) - ) -) - -========== -Scripting -========== - -post { - url: https://api.textlocal.in/login -} - -body { - { - "username": "johnnash", - "password": "governingdynamics" - } -} - -script:post-response { - bru.setVar("token", res.body.token); -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) - tag: (bodies - (body - (keyword) - (textblock - (rawtext) - ) - ) - ) - tag: (script - (scriptres - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -======== -Testing -======== - -post { - url: https://api.textlocal.in/login -} - -body { - { - "username": "johnnash", - "password": "governingdynamics" - } -} - -tests { - test("should be able to login", function() { - expect(res.status).to.equal(201); - }); - - test("should receive the token", function() { - expect(res.body.token).to.be.a('string'); - }); -} - ---- - -(source_file - tag: (http - (keyword) - (dictionary - (dictionary_pair - (key) - (value) - ) - ) - ) - tag: (bodies - (body - (keyword) - (textblock - (rawtext) - ) - ) - ) - tag: (tests - (keyword) - (textblock - (rawtext) - ) - ) -) diff --git a/test/corpus/scripts.txt b/test/corpus/scripts.txt deleted file mode 100644 index 49bc8df..0000000 --- a/test/corpus/scripts.txt +++ /dev/null @@ -1,60 +0,0 @@ -======================== -Script Pre-Request Tags -======================== - -script:pre-request { - req.setHeader("Authorization", "{{token}}"); -} - ---- - -(source_file - tag: (script - (scriptreq - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -======================== -Script Post-Response Tags -======================== - -script:post-response { - bru.setVar("token", res.body.token); -} - ---- - -(source_file - tag: (script - (scriptres - (keyword) - (textblock - (rawtext) - ) - ) - ) -) - -======================== -Test Tags -======================== - -tests { - expect(res.status).to.equal(200); -} - ---- - -(source_file - tag: (tests - (keyword) - (textblock - (rawtext) - ) - ) -) diff --git a/uv.lock b/uv.lock deleted file mode 100644 index 1bff86f..0000000 --- a/uv.lock +++ /dev/null @@ -1,96 +0,0 @@ -version = 1 -requires-python = ">=3.9" - -[[package]] -name = "ruff" -version = "0.8.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/bf/5e/683c7ef7a696923223e7d95ca06755d6e2acbc5fd8382b2912a28008137c/ruff-0.8.3.tar.gz", hash = "sha256:5e7558304353b84279042fc584a4f4cb8a07ae79b2bf3da1a7551d960b5626d3", size = 3378522 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f8/c4/bfdbb8b9c419ff3b52479af8581026eeaac3764946fdb463dec043441b7d/ruff-0.8.3-py3-none-linux_armv6l.whl", hash = "sha256:8d5d273ffffff0acd3db5bf626d4b131aa5a5ada1276126231c4174543ce20d6", size = 10535860 }, - { url = "https://files.pythonhosted.org/packages/ef/c5/0aabdc9314b4b6f051168ac45227e2aa8e1c6d82718a547455e40c9c9faa/ruff-0.8.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e4d66a21de39f15c9757d00c50c8cdd20ac84f55684ca56def7891a025d7e939", size = 10346327 }, - { url = "https://files.pythonhosted.org/packages/1a/78/4843a59e7e7b398d6019cf91ab06502fd95397b99b2b858798fbab9151f5/ruff-0.8.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c356e770811858bd20832af696ff6c7e884701115094f427b64b25093d6d932d", size = 9942585 }, - { url = "https://files.pythonhosted.org/packages/91/5a/642ed8f1ba23ffc2dd347697e01eef3c42fad6ac76603be4a8c3a9d6311e/ruff-0.8.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c0a60a825e3e177116c84009d5ebaa90cf40dfab56e1358d1df4e29a9a14b13", size = 10797597 }, - { url = "https://files.pythonhosted.org/packages/30/25/2e654bc7226da09a49730a1a2ea6e89f843b362db80b4b2a7a4f948ac986/ruff-0.8.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:75fb782f4db39501210ac093c79c3de581d306624575eddd7e4e13747e61ba18", size = 10307244 }, - { url = "https://files.pythonhosted.org/packages/c0/2d/a224d56bcd4383583db53c2b8f410ebf1200866984aa6eb9b5a70f04e71f/ruff-0.8.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7f26bc76a133ecb09a38b7868737eded6941b70a6d34ef53a4027e83913b6502", size = 11362439 }, - { url = "https://files.pythonhosted.org/packages/82/01/03e2857f9c371b8767d3e909f06a33bbdac880df17f17f93d6f6951c3381/ruff-0.8.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:01b14b2f72a37390c1b13477c1c02d53184f728be2f3ffc3ace5b44e9e87b90d", size = 12078538 }, - { url = "https://files.pythonhosted.org/packages/af/ae/ff7f97b355da16d748ceec50e1604a8215d3659b36b38025a922e0612e9b/ruff-0.8.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:53babd6e63e31f4e96ec95ea0d962298f9f0d9cc5990a1bbb023a6baf2503a82", size = 11616172 }, - { url = "https://files.pythonhosted.org/packages/6a/d0/6156d4d1e53ebd17747049afe801c5d7e3014d9b2f398b9236fe36ba4320/ruff-0.8.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1ae441ce4cf925b7f363d33cd6570c51435972d697e3e58928973994e56e1452", size = 12919886 }, - { url = "https://files.pythonhosted.org/packages/4e/84/affcb30bacb94f6036a128ad5de0e29f543d3f67ee42b490b17d68e44b8a/ruff-0.8.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c65bc0cadce32255e93c57d57ecc2cca23149edd52714c0c5d6fa11ec328cd", size = 11212599 }, - { url = "https://files.pythonhosted.org/packages/60/b9/5694716bdefd8f73df7c0104334156c38fb0f77673d2966a5a1345bab94d/ruff-0.8.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5be450bb18f23f0edc5a4e5585c17a56ba88920d598f04a06bd9fd76d324cb20", size = 10784637 }, - { url = "https://files.pythonhosted.org/packages/24/7e/0e8f835103ac7da81c3663eedf79dec8359e9ae9a3b0d704bae50be59176/ruff-0.8.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8faeae3827eaa77f5721f09b9472a18c749139c891dbc17f45e72d8f2ca1f8fc", size = 10390591 }, - { url = "https://files.pythonhosted.org/packages/27/da/180ec771fc01c004045962ce017ca419a0281f4bfaf867ed0020f555b56e/ruff-0.8.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:db503486e1cf074b9808403991663e4277f5c664d3fe237ee0d994d1305bb060", size = 10894298 }, - { url = "https://files.pythonhosted.org/packages/6d/f8/29f241742ed3954eb2222314b02db29f531a15cab3238d1295e8657c5f18/ruff-0.8.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6567be9fb62fbd7a099209257fef4ad2c3153b60579818b31a23c886ed4147ea", size = 11275965 }, - { url = "https://files.pythonhosted.org/packages/79/e9/5b81dc9afc8a80884405b230b9429efeef76d04caead904bd213f453b973/ruff-0.8.3-py3-none-win32.whl", hash = "sha256:19048f2f878f3ee4583fc6cb23fb636e48c2635e30fb2022b3a1cd293402f964", size = 8807651 }, - { url = "https://files.pythonhosted.org/packages/ea/67/7291461066007617b59a707887b90e319b6a043c79b4d19979f86b7a20e7/ruff-0.8.3-py3-none-win_amd64.whl", hash = "sha256:f7df94f57d7418fa7c3ffb650757e0c2b96cf2501a0b192c18e4fb5571dfada9", size = 9625289 }, - { url = "https://files.pythonhosted.org/packages/03/8f/e4fa95288b81233356d9a9dcaed057e5b0adc6399aa8fd0f6d784041c9c3/ruff-0.8.3-py3-none-win_arm64.whl", hash = "sha256:fe2756edf68ea79707c8d68b78ca9a58ed9af22e430430491ee03e718b5e4936", size = 9078754 }, -] - -[[package]] -name = "tree-sitter" -version = "0.23.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0f/50/fd5fafa42b884f741b28d9e6fd366c3f34e15d2ed3aa9633b34e388379e2/tree-sitter-0.23.2.tar.gz", hash = "sha256:66bae8dd47f1fed7bdef816115146d3a41c39b5c482d7bad36d9ba1def088450", size = 166800 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/91/04/2068a7b725265ecfcbf63ecdae038f1d4124ebccd55b8a7ce145b70e2b6a/tree_sitter-0.23.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3a937f5d8727bc1c74c4bf2a9d1c25ace049e8628273016ad0d45914ae904e10", size = 139289 }, - { url = "https://files.pythonhosted.org/packages/a8/07/a5b943121f674fe1ac77694a698e71ce95353830c1f3f4ce45da7ef3e406/tree_sitter-0.23.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2c7eae7fe2af215645a38660d2d57d257a4c461fe3ec827cca99a79478284e80", size = 132379 }, - { url = "https://files.pythonhosted.org/packages/d4/96/fcc72c33d464a2d722db1e95b74a53ced771a47b3cfde60aced29764a783/tree_sitter-0.23.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a71d607595270b6870eaf778a1032d146b2aa79bfcfa60f57a82a7b7584a4c7", size = 552884 }, - { url = "https://files.pythonhosted.org/packages/d0/af/b0e787a52767155b4643a55d6de03c1e4ae77abb61e1dc1629ad983e0a40/tree_sitter-0.23.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fe9b9ea7a0aa23b52fd97354da95d1b2580065bc12a4ac868f9164a127211d6", size = 566561 }, - { url = "https://files.pythonhosted.org/packages/65/fd/05e966b5317b1c6679c071c5b0203f28af9d26c9363700cb9682e1bcf343/tree_sitter-0.23.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d74d00a8021719eae14d10d1b1e28649e15d8b958c01c2b2c3dad7a2ebc4dbae", size = 558273 }, - { url = "https://files.pythonhosted.org/packages/60/bc/19145efdf3f47711aa3f1bf06f0b50593f97f1108550d38694841fd97b7c/tree_sitter-0.23.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:6de18d8d8a7f67ab71f472d1fcb01cc506e080cbb5e13d52929e4b6fdce6bbee", size = 569176 }, - { url = "https://files.pythonhosted.org/packages/32/08/3553d8e488ae9284a0762effafb7d2639a306e184963b7f99853923084d6/tree_sitter-0.23.2-cp310-cp310-win_amd64.whl", hash = "sha256:12b60dca70d2282af942b650a6d781be487485454668c7c956338a367b98cdee", size = 117902 }, - { url = "https://files.pythonhosted.org/packages/1d/39/836fa485e985c33e8aa1cc3abbf7a84be1c2c382e69547a765631fdd7ce3/tree_sitter-0.23.2-cp310-cp310-win_arm64.whl", hash = "sha256:3346a4dd0447a42aabb863443b0fd8c92b909baf40ed2344fae4b94b625d5955", size = 102644 }, - { url = "https://files.pythonhosted.org/packages/55/8d/2d4fb04408772be0919441d66f700673ce7cb76b9ab6682e226d740fb88d/tree_sitter-0.23.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:91fda41d4f8824335cc43c64e2c37d8089c8c563bd3900a512d2852d075af719", size = 139142 }, - { url = "https://files.pythonhosted.org/packages/32/52/b8a44bfff7b0203256e5dbc8d3a372ee8896128b8ed7d3a89e1ef17b2065/tree_sitter-0.23.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:92b2b489d5ce54b41f94c6f23fbaf592bd6e84dc2877048fd1cb060480fa53f7", size = 132198 }, - { url = "https://files.pythonhosted.org/packages/5d/54/746f2ee5acf6191a4a0be7f5843329f0d713bfe5196f5fc6fe2ea69cb44c/tree_sitter-0.23.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64859bd4aa1567d0d6016a811b2b49c59d4a4427d096e3d8c84b2521455f62b7", size = 554303 }, - { url = "https://files.pythonhosted.org/packages/2f/5a/3169d9933be813776a9b4b3f2e671d3d50fa27e589dee5578f6ecef7ff6d/tree_sitter-0.23.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:614590611636044e071d3a0b748046d52676dbda3bc9fa431216231e11dd98f7", size = 567626 }, - { url = "https://files.pythonhosted.org/packages/32/0d/23f363b3b0bc3fa0e7a4a294bf119957ac1ab02737d57815e1e8b7b3e196/tree_sitter-0.23.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:08466953c78ae57be61057188fb88c89791b0a562856010228e0ccf60e2ac453", size = 559803 }, - { url = "https://files.pythonhosted.org/packages/6f/b3/1ffba0f17a7ff2c9114d91a1ecc15e0748f217817797564d31fbb61d7458/tree_sitter-0.23.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:8a33f03a562de91f7fd05eefcedd8994a06cd44c62f7aabace811ad82bc11cbd", size = 570987 }, - { url = "https://files.pythonhosted.org/packages/59/4b/085bcb8a11ea18003aacc4dbc91c301d1536c5e2deedb95393e8ef26f1f7/tree_sitter-0.23.2-cp311-cp311-win_amd64.whl", hash = "sha256:03b70296b569ef64f7b92b42ca5da9bf86d81bee2afd480bea35092687f51dae", size = 117771 }, - { url = "https://files.pythonhosted.org/packages/4b/e5/90adc4081f49ccb6bea89a800dc9b0dcc5b6953b0da423e8eff28f63fddf/tree_sitter-0.23.2-cp311-cp311-win_arm64.whl", hash = "sha256:7cb4bb953ea7c0b50eeafc4454783e030357179d2a93c3dd5ebed2da5588ddd0", size = 102555 }, - { url = "https://files.pythonhosted.org/packages/07/a7/57e0fe87b49a78c670a7b4483f70e44c000c65c29b138001096b22e7dd87/tree_sitter-0.23.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a014498b6a9e6003fae8c6eb72f5927d62da9dcb72b28b3ce8cd15c6ff6a6572", size = 139259 }, - { url = "https://files.pythonhosted.org/packages/b4/b9/bc8513d818ffb54993a017a36c8739300bc5739a13677acf90b54995e7db/tree_sitter-0.23.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:04f8699b131d4bcbe3805c37e4ef3d159ee9a82a0e700587625623999ba0ea53", size = 131951 }, - { url = "https://files.pythonhosted.org/packages/d7/6a/eab01bb6b1ce3c9acf16d72922ffc29a904af485eb3e60baf3a3e04edd30/tree_sitter-0.23.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4471577df285059c71686ecb208bc50fb472099b38dcc8e849b0e86652891e87", size = 557952 }, - { url = "https://files.pythonhosted.org/packages/bd/95/f2f73332623cf63200d57800f85273170bc5f99d28ea3f234afd5b0048df/tree_sitter-0.23.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f342c925290dd4e20ecd5787ef7ae8749981597ab364783a1eb73173efe65226", size = 571199 }, - { url = "https://files.pythonhosted.org/packages/04/ac/bd6e6cfdd0421156e86f5c93848629af1c7323083077e1a95b27d32d5811/tree_sitter-0.23.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a4e9e53d07dd076bede72e4f7d3a0173d7b9ad6576572dd86da008a740a9bb22", size = 562129 }, - { url = "https://files.pythonhosted.org/packages/7b/bd/8a9edcbcf8a76b0bf58e3b927ed291e3598e063d56667367762833cc8709/tree_sitter-0.23.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8caebe65bc358759dac2500d8f8feed3aed939c4ade9a684a1783fe07bc7d5db", size = 574307 }, - { url = "https://files.pythonhosted.org/packages/0c/c2/3fb2c6c0ae2f59a7411dc6d3e7945e3cb6f34c8552688708acc8b2b13f83/tree_sitter-0.23.2-cp312-cp312-win_amd64.whl", hash = "sha256:fc5a72eb50d43485000dbbb309acb350467b7467e66dc747c6bb82ce63041582", size = 117858 }, - { url = "https://files.pythonhosted.org/packages/e2/18/4ca2c0f4a0c802ebcb3a92264cc436f1d54b394fa24dfa76bf57cdeaca9e/tree_sitter-0.23.2-cp312-cp312-win_arm64.whl", hash = "sha256:a0320eb6c7993359c5f7b371d22719ccd273f440d41cf1bd65dac5e9587f2046", size = 102496 }, - { url = "https://files.pythonhosted.org/packages/ba/c6/4ead9ce3113a7c27f37a2bdef163c09757efbaa85adbdfe7b3fbf0317c57/tree_sitter-0.23.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:eff630dddee7ba05accb439b17e559e15ce13f057297007c246237ceb6306332", size = 139266 }, - { url = "https://files.pythonhosted.org/packages/76/c9/b4197c5b0c1d6ba648202a547846ac910a53163b69a459504b2aa6cdb76e/tree_sitter-0.23.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4780ba8f3894f2dea869fad2995c2aceab3fd5ab9e6a27c45475d2acd7f7e84e", size = 131959 }, - { url = "https://files.pythonhosted.org/packages/99/94/0f7c5580d2adff3b57d36f1998725b0caf6cf1af50ceafc00c6cdbc2fef6/tree_sitter-0.23.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f0b609460b8e3e256361fb12e94fae5b728cb835b16f0f9d590b5aadbf9d109b", size = 557582 }, - { url = "https://files.pythonhosted.org/packages/97/8a/f73ff06959d43fd47fc283cbcc4d8efa6550b2cc431d852b184504992447/tree_sitter-0.23.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78d070d8eaeaeb36cf535f55e5578fddbfc3bf53c1980f58bf1a99d57466b3b5", size = 570891 }, - { url = "https://files.pythonhosted.org/packages/b8/86/bbda5ad09b88051ff7bf3275622a2f79bc4f728b4c283ff8b93b8fcdf36d/tree_sitter-0.23.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:878580b2ad5054c410ba3418edca4d34c81cc26706114d8f5b5541688bc2d785", size = 562343 }, - { url = "https://files.pythonhosted.org/packages/ca/55/b404fa49cb5c2926ad6fe1cac033dd486ef69f1afeb7828452d21e1e05c1/tree_sitter-0.23.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:29224bdc2a3b9af535b7725e249d3ee291b2e90708e82832e73acc175e40dc48", size = 574407 }, - { url = "https://files.pythonhosted.org/packages/c2/c8/eea2104443ab973091107ef3e730683bd8e6cb51dd025cef853d3fff9dae/tree_sitter-0.23.2-cp313-cp313-win_amd64.whl", hash = "sha256:c58d89348162fbc3aea1fe6511a66ee189fc0e4e4bbe937026f29e4ecef17763", size = 117854 }, - { url = "https://files.pythonhosted.org/packages/89/4d/1728d9ce32a1d851081911b7e47830f5e740431f2bb920f54bb8c26175bc/tree_sitter-0.23.2-cp313-cp313-win_arm64.whl", hash = "sha256:0ff2037be5edab7801de3f6a721b9cf010853f612e2008ee454e0e0badb225a6", size = 102492 }, - { url = "https://files.pythonhosted.org/packages/cb/ab/b39173a47d498cc6276e303c865f4a222134ceae890bd3c1b29427489805/tree_sitter-0.23.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a5db8e585205faef8bf219da77d8993e2ef04d08eda2e3c8ad7e4df8297ee344", size = 139550 }, - { url = "https://files.pythonhosted.org/packages/4c/34/fa8f5b862dd7a6014fd5578810178e8f7601830cabb6d65d2aba050c2df1/tree_sitter-0.23.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9dbd110a30cf28be5da734ae4cd0e9031768228dbf6a79f2973962aa51de4ec7", size = 132686 }, - { url = "https://files.pythonhosted.org/packages/98/b9/ccdddf35705fc23395caa71557f767e0753d38afe4b5bb99efddbf62bb22/tree_sitter-0.23.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569514b9a996a0fd458b3a891c46ca125298be0c03cf82f2b6f0c13d5d8f25dc", size = 554958 }, - { url = "https://files.pythonhosted.org/packages/8d/ba/20ae9079bdfc5cfac28b39d945a6c354c8e1385e73aec8142db6c53b635c/tree_sitter-0.23.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a357ed98a74e47787b812df99a74a2c35c0fe11e55c2095cc01d1cad144ef552", size = 568162 }, - { url = "https://files.pythonhosted.org/packages/40/00/b16bf6cf88c47c1b6c8e1cce1eb9e90badb5db9e5252ae0970d858d02592/tree_sitter-0.23.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c2dfb8e8f760f4cc67888d03ef9e2dbd3353245f67f5efba375c2a14d944ac0e", size = 560278 }, - { url = "https://files.pythonhosted.org/packages/7a/8f/27ab9b96cc0261af78b080ec8a9846a38e216360ec38774ea27eba35bd3c/tree_sitter-0.23.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:3ead958df87a21d706903987e665e9e0e5df7b2c5021ff69ea349826840adc6a", size = 571255 }, - { url = "https://files.pythonhosted.org/packages/44/e0/95a3d66a7e5bb229574484ab10c6dc99d1c7a32972b890d194076e30dc4f/tree_sitter-0.23.2-cp39-cp39-win_amd64.whl", hash = "sha256:611cae16be332213c0e6ece72c0bfca202e30ff320a8b309b1526c6cb79ee4ba", size = 118232 }, - { url = "https://files.pythonhosted.org/packages/10/b5/9eaf794fc71490573ab14a366affca415bc1ddbf86a14d78e54583db4254/tree_sitter-0.23.2-cp39-cp39-win_arm64.whl", hash = "sha256:b848e0fdd522fbb8888cdb4f4d93f8fad97ae10d70c122fb922e51363c7febcd", size = 102787 }, -] - -[[package]] -name = "tree-sitter-bruno" -version = "0.1.0" -source = { editable = "." } - -[package.optional-dependencies] -core = [ - { name = "tree-sitter" }, -] - -[package.dev-dependencies] -dev = [ - { name = "ruff" }, -] - -[package.metadata] -requires-dist = [{ name = "tree-sitter", marker = "extra == 'core'", specifier = "~=0.22" }] - -[package.metadata.requires-dev] -dev = [{ name = "ruff", specifier = ">=0.8.3" }]