├── .clang-format ├── .eslintrc.json ├── .gitignore ├── .npmignore ├── Cargo.toml ├── LICENSE ├── binding.gyp ├── bindings ├── node │ ├── binding.cc │ └── index.js └── rust │ ├── build.rs │ └── lib.rs ├── default.nix ├── examples ├── coma.typ ├── compiler │ ├── array.typ │ ├── bench.typ │ ├── block.typ │ ├── break-continue.typ │ ├── call.typ │ ├── closure.typ │ ├── color.typ │ ├── comment.typ │ ├── construct.typ │ ├── content-field.typ │ ├── dict.typ │ ├── field.typ │ ├── for.typ │ ├── highlight.typ │ ├── if.typ │ ├── import.typ │ ├── include.typ │ ├── label.typ │ ├── let.typ │ ├── methods.typ │ ├── module.typ │ ├── modules │ │ ├── chap1.typ │ │ ├── chap2.typ │ │ ├── cycle1.typ │ │ └── cycle2.typ │ ├── ops-assoc.typ │ ├── ops-invalid.typ │ ├── ops-prec.typ │ ├── ops.typ │ ├── recursion.typ │ ├── repr.typ │ ├── return.typ │ ├── set.typ │ ├── shorthand.typ │ ├── show-bare.typ │ ├── show-node.typ │ ├── show-recursive.typ │ ├── show-selector.typ │ ├── show-text.typ │ ├── spread.typ │ ├── string.typ │ └── while.typ ├── compute │ ├── calc.typ │ ├── construct.typ │ ├── data.typ │ └── foundations.typ ├── empty.typ ├── layout │ ├── align.typ │ ├── block-sizing.typ │ ├── columns.typ │ ├── container-fill.typ │ ├── container.typ │ ├── enum-numbering.typ │ ├── enum.typ │ ├── flow-orphan.typ │ ├── grid-1.typ │ ├── grid-2.typ │ ├── grid-3.typ │ ├── grid-4.typ │ ├── grid-5.typ │ ├── grid-auto-shrink.typ │ ├── grid-rtl.typ │ ├── hide.typ │ ├── list-attach.typ │ ├── list-marker.typ │ ├── list.typ │ ├── pad.typ │ ├── page-margin.typ │ ├── page-marginals.typ │ ├── page-style.typ │ ├── page.typ │ ├── pagebreak.typ │ ├── par-bidi.typ │ ├── par-indent.typ │ ├── par-justify.typ │ ├── par-knuth.typ │ ├── par-simple.typ │ ├── par.typ │ ├── place-background.typ │ ├── place.typ │ ├── repeat.typ │ ├── spacing.typ │ ├── stack-1.typ │ ├── stack-2.typ │ ├── table.typ │ ├── terms.typ │ └── transform.typ ├── math │ ├── accent.typ │ ├── attach.typ │ ├── cases.typ │ ├── content.typ │ ├── delimited.typ │ ├── frac.typ │ ├── matrix.typ │ ├── multiline.typ │ ├── numbering.typ │ ├── op.typ │ ├── root.typ │ ├── spacing.typ │ ├── style.typ │ ├── syntax.typ │ ├── underover.typ │ └── vec.typ ├── meta │ ├── bibliography.typ │ ├── counter-page.typ │ ├── counter.typ │ ├── document.typ │ ├── figure.typ │ ├── heading.typ │ ├── link.typ │ ├── numbering.typ │ ├── outline.typ │ ├── query.typ │ ├── ref.typ │ └── state.typ ├── text │ ├── baseline.typ │ ├── case.typ │ ├── chinese.typ │ ├── deco.typ │ ├── edge.typ │ ├── em.typ │ ├── emoji.typ │ ├── emphasis.typ │ ├── escape.typ │ ├── fallback.typ │ ├── features.typ │ ├── font.typ │ ├── hyphenate.typ │ ├── lang.typ │ ├── linebreak.typ │ ├── lorem.typ │ ├── microtype.typ │ ├── quotes.typ │ ├── raw-code.typ │ ├── raw.typ │ ├── shaping.typ │ ├── shift.typ │ ├── space.typ │ ├── symbol.typ │ └── tracking-spacing.typ └── visualize │ ├── image.typ │ ├── line.typ │ ├── shape-aspect.typ │ ├── shape-circle.typ │ ├── shape-ellipse.typ │ ├── shape-fill-stroke.typ │ ├── shape-rect.typ │ ├── shape-rounded.typ │ └── shape-square.typ ├── flake.nix ├── grammar.js ├── grammar.md ├── justfile ├── package.json ├── readme.md ├── src ├── grammar.json ├── node-types.json ├── parser.c ├── scanner.c └── tree_sitter │ └── parser.h └── test └── corpus ├── code.txt ├── graphics.txt ├── literals.txt ├── markup.txt └── source_files.txt /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: LLVM 3 | IndentWidth: 2 4 | --- 5 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | corpus 2 | build 3 | script 4 | examples 5 | target 6 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/LICENSE -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/binding.gyp -------------------------------------------------------------------------------- /bindings/node/binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/bindings/node/binding.cc -------------------------------------------------------------------------------- /bindings/node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/bindings/node/index.js -------------------------------------------------------------------------------- /bindings/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/bindings/rust/build.rs -------------------------------------------------------------------------------- /bindings/rust/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/bindings/rust/lib.rs -------------------------------------------------------------------------------- /default.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/default.nix -------------------------------------------------------------------------------- /examples/coma.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/coma.typ -------------------------------------------------------------------------------- /examples/compiler/array.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/array.typ -------------------------------------------------------------------------------- /examples/compiler/bench.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/bench.typ -------------------------------------------------------------------------------- /examples/compiler/block.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/block.typ -------------------------------------------------------------------------------- /examples/compiler/break-continue.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/break-continue.typ -------------------------------------------------------------------------------- /examples/compiler/call.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/call.typ -------------------------------------------------------------------------------- /examples/compiler/closure.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/closure.typ -------------------------------------------------------------------------------- /examples/compiler/color.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/color.typ -------------------------------------------------------------------------------- /examples/compiler/comment.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/comment.typ -------------------------------------------------------------------------------- /examples/compiler/construct.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/construct.typ -------------------------------------------------------------------------------- /examples/compiler/content-field.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/content-field.typ -------------------------------------------------------------------------------- /examples/compiler/dict.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/dict.typ -------------------------------------------------------------------------------- /examples/compiler/field.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/field.typ -------------------------------------------------------------------------------- /examples/compiler/for.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/for.typ -------------------------------------------------------------------------------- /examples/compiler/highlight.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/highlight.typ -------------------------------------------------------------------------------- /examples/compiler/if.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/if.typ -------------------------------------------------------------------------------- /examples/compiler/import.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/import.typ -------------------------------------------------------------------------------- /examples/compiler/include.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/include.typ -------------------------------------------------------------------------------- /examples/compiler/label.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/label.typ -------------------------------------------------------------------------------- /examples/compiler/let.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/let.typ -------------------------------------------------------------------------------- /examples/compiler/methods.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/methods.typ -------------------------------------------------------------------------------- /examples/compiler/module.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/module.typ -------------------------------------------------------------------------------- /examples/compiler/modules/chap1.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/modules/chap1.typ -------------------------------------------------------------------------------- /examples/compiler/modules/chap2.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/modules/chap2.typ -------------------------------------------------------------------------------- /examples/compiler/modules/cycle1.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/modules/cycle1.typ -------------------------------------------------------------------------------- /examples/compiler/modules/cycle2.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/modules/cycle2.typ -------------------------------------------------------------------------------- /examples/compiler/ops-assoc.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/ops-assoc.typ -------------------------------------------------------------------------------- /examples/compiler/ops-invalid.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/ops-invalid.typ -------------------------------------------------------------------------------- /examples/compiler/ops-prec.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/ops-prec.typ -------------------------------------------------------------------------------- /examples/compiler/ops.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/ops.typ -------------------------------------------------------------------------------- /examples/compiler/recursion.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/recursion.typ -------------------------------------------------------------------------------- /examples/compiler/repr.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/repr.typ -------------------------------------------------------------------------------- /examples/compiler/return.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/return.typ -------------------------------------------------------------------------------- /examples/compiler/set.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/set.typ -------------------------------------------------------------------------------- /examples/compiler/shorthand.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/shorthand.typ -------------------------------------------------------------------------------- /examples/compiler/show-bare.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/show-bare.typ -------------------------------------------------------------------------------- /examples/compiler/show-node.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/show-node.typ -------------------------------------------------------------------------------- /examples/compiler/show-recursive.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/show-recursive.typ -------------------------------------------------------------------------------- /examples/compiler/show-selector.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/show-selector.typ -------------------------------------------------------------------------------- /examples/compiler/show-text.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/show-text.typ -------------------------------------------------------------------------------- /examples/compiler/spread.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/spread.typ -------------------------------------------------------------------------------- /examples/compiler/string.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/string.typ -------------------------------------------------------------------------------- /examples/compiler/while.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compiler/while.typ -------------------------------------------------------------------------------- /examples/compute/calc.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compute/calc.typ -------------------------------------------------------------------------------- /examples/compute/construct.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compute/construct.typ -------------------------------------------------------------------------------- /examples/compute/data.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compute/data.typ -------------------------------------------------------------------------------- /examples/compute/foundations.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/compute/foundations.typ -------------------------------------------------------------------------------- /examples/empty.typ: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/layout/align.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/align.typ -------------------------------------------------------------------------------- /examples/layout/block-sizing.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/block-sizing.typ -------------------------------------------------------------------------------- /examples/layout/columns.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/columns.typ -------------------------------------------------------------------------------- /examples/layout/container-fill.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/container-fill.typ -------------------------------------------------------------------------------- /examples/layout/container.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/container.typ -------------------------------------------------------------------------------- /examples/layout/enum-numbering.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/enum-numbering.typ -------------------------------------------------------------------------------- /examples/layout/enum.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/enum.typ -------------------------------------------------------------------------------- /examples/layout/flow-orphan.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/flow-orphan.typ -------------------------------------------------------------------------------- /examples/layout/grid-1.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-1.typ -------------------------------------------------------------------------------- /examples/layout/grid-2.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-2.typ -------------------------------------------------------------------------------- /examples/layout/grid-3.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-3.typ -------------------------------------------------------------------------------- /examples/layout/grid-4.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-4.typ -------------------------------------------------------------------------------- /examples/layout/grid-5.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-5.typ -------------------------------------------------------------------------------- /examples/layout/grid-auto-shrink.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-auto-shrink.typ -------------------------------------------------------------------------------- /examples/layout/grid-rtl.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/grid-rtl.typ -------------------------------------------------------------------------------- /examples/layout/hide.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/hide.typ -------------------------------------------------------------------------------- /examples/layout/list-attach.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/list-attach.typ -------------------------------------------------------------------------------- /examples/layout/list-marker.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/list-marker.typ -------------------------------------------------------------------------------- /examples/layout/list.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/list.typ -------------------------------------------------------------------------------- /examples/layout/pad.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/pad.typ -------------------------------------------------------------------------------- /examples/layout/page-margin.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/page-margin.typ -------------------------------------------------------------------------------- /examples/layout/page-marginals.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/page-marginals.typ -------------------------------------------------------------------------------- /examples/layout/page-style.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/page-style.typ -------------------------------------------------------------------------------- /examples/layout/page.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/page.typ -------------------------------------------------------------------------------- /examples/layout/pagebreak.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/pagebreak.typ -------------------------------------------------------------------------------- /examples/layout/par-bidi.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par-bidi.typ -------------------------------------------------------------------------------- /examples/layout/par-indent.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par-indent.typ -------------------------------------------------------------------------------- /examples/layout/par-justify.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par-justify.typ -------------------------------------------------------------------------------- /examples/layout/par-knuth.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par-knuth.typ -------------------------------------------------------------------------------- /examples/layout/par-simple.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par-simple.typ -------------------------------------------------------------------------------- /examples/layout/par.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/par.typ -------------------------------------------------------------------------------- /examples/layout/place-background.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/place-background.typ -------------------------------------------------------------------------------- /examples/layout/place.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/place.typ -------------------------------------------------------------------------------- /examples/layout/repeat.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/repeat.typ -------------------------------------------------------------------------------- /examples/layout/spacing.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/spacing.typ -------------------------------------------------------------------------------- /examples/layout/stack-1.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/stack-1.typ -------------------------------------------------------------------------------- /examples/layout/stack-2.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/stack-2.typ -------------------------------------------------------------------------------- /examples/layout/table.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/table.typ -------------------------------------------------------------------------------- /examples/layout/terms.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/terms.typ -------------------------------------------------------------------------------- /examples/layout/transform.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/layout/transform.typ -------------------------------------------------------------------------------- /examples/math/accent.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/accent.typ -------------------------------------------------------------------------------- /examples/math/attach.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/attach.typ -------------------------------------------------------------------------------- /examples/math/cases.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/cases.typ -------------------------------------------------------------------------------- /examples/math/content.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/content.typ -------------------------------------------------------------------------------- /examples/math/delimited.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/delimited.typ -------------------------------------------------------------------------------- /examples/math/frac.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/frac.typ -------------------------------------------------------------------------------- /examples/math/matrix.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/matrix.typ -------------------------------------------------------------------------------- /examples/math/multiline.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/multiline.typ -------------------------------------------------------------------------------- /examples/math/numbering.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/numbering.typ -------------------------------------------------------------------------------- /examples/math/op.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/op.typ -------------------------------------------------------------------------------- /examples/math/root.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/root.typ -------------------------------------------------------------------------------- /examples/math/spacing.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/spacing.typ -------------------------------------------------------------------------------- /examples/math/style.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/style.typ -------------------------------------------------------------------------------- /examples/math/syntax.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/syntax.typ -------------------------------------------------------------------------------- /examples/math/underover.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/underover.typ -------------------------------------------------------------------------------- /examples/math/vec.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/math/vec.typ -------------------------------------------------------------------------------- /examples/meta/bibliography.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/bibliography.typ -------------------------------------------------------------------------------- /examples/meta/counter-page.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/counter-page.typ -------------------------------------------------------------------------------- /examples/meta/counter.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/counter.typ -------------------------------------------------------------------------------- /examples/meta/document.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/document.typ -------------------------------------------------------------------------------- /examples/meta/figure.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/figure.typ -------------------------------------------------------------------------------- /examples/meta/heading.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/heading.typ -------------------------------------------------------------------------------- /examples/meta/link.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/link.typ -------------------------------------------------------------------------------- /examples/meta/numbering.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/numbering.typ -------------------------------------------------------------------------------- /examples/meta/outline.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/outline.typ -------------------------------------------------------------------------------- /examples/meta/query.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/query.typ -------------------------------------------------------------------------------- /examples/meta/ref.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/ref.typ -------------------------------------------------------------------------------- /examples/meta/state.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/meta/state.typ -------------------------------------------------------------------------------- /examples/text/baseline.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/baseline.typ -------------------------------------------------------------------------------- /examples/text/case.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/case.typ -------------------------------------------------------------------------------- /examples/text/chinese.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/chinese.typ -------------------------------------------------------------------------------- /examples/text/deco.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/deco.typ -------------------------------------------------------------------------------- /examples/text/edge.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/edge.typ -------------------------------------------------------------------------------- /examples/text/em.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/em.typ -------------------------------------------------------------------------------- /examples/text/emoji.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/emoji.typ -------------------------------------------------------------------------------- /examples/text/emphasis.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/emphasis.typ -------------------------------------------------------------------------------- /examples/text/escape.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/escape.typ -------------------------------------------------------------------------------- /examples/text/fallback.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/fallback.typ -------------------------------------------------------------------------------- /examples/text/features.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/features.typ -------------------------------------------------------------------------------- /examples/text/font.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/font.typ -------------------------------------------------------------------------------- /examples/text/hyphenate.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/hyphenate.typ -------------------------------------------------------------------------------- /examples/text/lang.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/lang.typ -------------------------------------------------------------------------------- /examples/text/linebreak.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/linebreak.typ -------------------------------------------------------------------------------- /examples/text/lorem.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/lorem.typ -------------------------------------------------------------------------------- /examples/text/microtype.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/microtype.typ -------------------------------------------------------------------------------- /examples/text/quotes.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/quotes.typ -------------------------------------------------------------------------------- /examples/text/raw-code.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/raw-code.typ -------------------------------------------------------------------------------- /examples/text/raw.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/raw.typ -------------------------------------------------------------------------------- /examples/text/shaping.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/shaping.typ -------------------------------------------------------------------------------- /examples/text/shift.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/shift.typ -------------------------------------------------------------------------------- /examples/text/space.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/space.typ -------------------------------------------------------------------------------- /examples/text/symbol.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/symbol.typ -------------------------------------------------------------------------------- /examples/text/tracking-spacing.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/text/tracking-spacing.typ -------------------------------------------------------------------------------- /examples/visualize/image.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/image.typ -------------------------------------------------------------------------------- /examples/visualize/line.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/line.typ -------------------------------------------------------------------------------- /examples/visualize/shape-aspect.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-aspect.typ -------------------------------------------------------------------------------- /examples/visualize/shape-circle.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-circle.typ -------------------------------------------------------------------------------- /examples/visualize/shape-ellipse.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-ellipse.typ -------------------------------------------------------------------------------- /examples/visualize/shape-fill-stroke.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-fill-stroke.typ -------------------------------------------------------------------------------- /examples/visualize/shape-rect.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-rect.typ -------------------------------------------------------------------------------- /examples/visualize/shape-rounded.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-rounded.typ -------------------------------------------------------------------------------- /examples/visualize/shape-square.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/examples/visualize/shape-square.typ -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/flake.nix -------------------------------------------------------------------------------- /grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/grammar.js -------------------------------------------------------------------------------- /grammar.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/grammar.md -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/justfile -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/readme.md -------------------------------------------------------------------------------- /src/grammar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/src/grammar.json -------------------------------------------------------------------------------- /src/node-types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/src/node-types.json -------------------------------------------------------------------------------- /src/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/src/parser.c -------------------------------------------------------------------------------- /src/scanner.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/src/scanner.c -------------------------------------------------------------------------------- /src/tree_sitter/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/src/tree_sitter/parser.h -------------------------------------------------------------------------------- /test/corpus/code.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/test/corpus/code.txt -------------------------------------------------------------------------------- /test/corpus/graphics.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/test/corpus/graphics.txt -------------------------------------------------------------------------------- /test/corpus/literals.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/test/corpus/literals.txt -------------------------------------------------------------------------------- /test/corpus/markup.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/test/corpus/markup.txt -------------------------------------------------------------------------------- /test/corpus/source_files.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/HEAD/test/corpus/source_files.txt --------------------------------------------------------------------------------