├── .eslintrc.js ├── .gitattributes ├── .github └── workflows │ ├── ci.yml │ └── fuzz.yml ├── .gitignore ├── .npmignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── binding.gyp ├── bindings ├── node │ ├── binding.cc │ └── index.js └── rust │ ├── build.rs │ └── lib.rs ├── corpus ├── astro-doc-example.txt ├── attribute-backtick-strings.txt ├── basic.txt ├── case-should-be-preserved.txt ├── delimiter-index-should-resume-correctly.txt ├── delimiter-stress-test-easy.txt ├── delimiter-stress-test-hard.txt ├── eat-last-curly-brace-of-interpolated-attribute.txt ├── element-in-html-interpolation.txt ├── empty-frontmatter.txt ├── fragment-empty-tag.txt ├── interpolated-attribute-map.txt ├── interpolated-string-doesnt-need-to-have-balanced-braces.txt ├── less-than-greater-than-in-html-interpolations.txt ├── long-test.txt ├── permissible-text-marks-end-in-string-state.txt ├── self-closing-script-and-style-tags.txt ├── string-directly-before-frontmatter-end.txt ├── three-hyphens-in-frontmatter.txt ├── two-elements-in-html-interpolation.txt ├── unclosed-interpolation.txt └── void-tag-in-interpolation.txt ├── flake.lock ├── flake.nix ├── grammar.js ├── package.json ├── queries ├── highlights.scm └── injections.scm ├── script ├── known_failures.txt └── parse-examples └── src ├── grammar.json ├── node-types.json ├── parser.c ├── scanner.c ├── tag.h └── tree_sitter ├── alloc.h ├── array.h └── parser.h /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/fuzz.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/.github/workflows/fuzz.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /test 2 | /examples 3 | /build 4 | /script 5 | /target 6 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/README.md -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/binding.gyp -------------------------------------------------------------------------------- /bindings/node/binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/bindings/node/binding.cc -------------------------------------------------------------------------------- /bindings/node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/bindings/node/index.js -------------------------------------------------------------------------------- /bindings/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/bindings/rust/build.rs -------------------------------------------------------------------------------- /bindings/rust/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/bindings/rust/lib.rs -------------------------------------------------------------------------------- /corpus/astro-doc-example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/astro-doc-example.txt -------------------------------------------------------------------------------- /corpus/attribute-backtick-strings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/attribute-backtick-strings.txt -------------------------------------------------------------------------------- /corpus/basic.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/basic.txt -------------------------------------------------------------------------------- /corpus/case-should-be-preserved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/case-should-be-preserved.txt -------------------------------------------------------------------------------- /corpus/delimiter-index-should-resume-correctly.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/delimiter-index-should-resume-correctly.txt -------------------------------------------------------------------------------- /corpus/delimiter-stress-test-easy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/delimiter-stress-test-easy.txt -------------------------------------------------------------------------------- /corpus/delimiter-stress-test-hard.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/delimiter-stress-test-hard.txt -------------------------------------------------------------------------------- /corpus/eat-last-curly-brace-of-interpolated-attribute.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/eat-last-curly-brace-of-interpolated-attribute.txt -------------------------------------------------------------------------------- /corpus/element-in-html-interpolation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/element-in-html-interpolation.txt -------------------------------------------------------------------------------- /corpus/empty-frontmatter.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/empty-frontmatter.txt -------------------------------------------------------------------------------- /corpus/fragment-empty-tag.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/fragment-empty-tag.txt -------------------------------------------------------------------------------- /corpus/interpolated-attribute-map.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/interpolated-attribute-map.txt -------------------------------------------------------------------------------- /corpus/interpolated-string-doesnt-need-to-have-balanced-braces.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/interpolated-string-doesnt-need-to-have-balanced-braces.txt -------------------------------------------------------------------------------- /corpus/less-than-greater-than-in-html-interpolations.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/less-than-greater-than-in-html-interpolations.txt -------------------------------------------------------------------------------- /corpus/long-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/long-test.txt -------------------------------------------------------------------------------- /corpus/permissible-text-marks-end-in-string-state.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/permissible-text-marks-end-in-string-state.txt -------------------------------------------------------------------------------- /corpus/self-closing-script-and-style-tags.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/self-closing-script-and-style-tags.txt -------------------------------------------------------------------------------- /corpus/string-directly-before-frontmatter-end.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/string-directly-before-frontmatter-end.txt -------------------------------------------------------------------------------- /corpus/three-hyphens-in-frontmatter.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/three-hyphens-in-frontmatter.txt -------------------------------------------------------------------------------- /corpus/two-elements-in-html-interpolation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/two-elements-in-html-interpolation.txt -------------------------------------------------------------------------------- /corpus/unclosed-interpolation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/unclosed-interpolation.txt -------------------------------------------------------------------------------- /corpus/void-tag-in-interpolation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/corpus/void-tag-in-interpolation.txt -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/flake.nix -------------------------------------------------------------------------------- /grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/grammar.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/package.json -------------------------------------------------------------------------------- /queries/highlights.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/queries/highlights.scm -------------------------------------------------------------------------------- /queries/injections.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/queries/injections.scm -------------------------------------------------------------------------------- /script/known_failures.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/script/known_failures.txt -------------------------------------------------------------------------------- /script/parse-examples: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/script/parse-examples -------------------------------------------------------------------------------- /src/grammar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/grammar.json -------------------------------------------------------------------------------- /src/node-types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/node-types.json -------------------------------------------------------------------------------- /src/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/parser.c -------------------------------------------------------------------------------- /src/scanner.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/scanner.c -------------------------------------------------------------------------------- /src/tag.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/tag.h -------------------------------------------------------------------------------- /src/tree_sitter/alloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/tree_sitter/alloc.h -------------------------------------------------------------------------------- /src/tree_sitter/array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/tree_sitter/array.h -------------------------------------------------------------------------------- /src/tree_sitter/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/virchau13/tree-sitter-astro/HEAD/src/tree_sitter/parser.h --------------------------------------------------------------------------------