{"id":13523196,"url":"https://github.com/frozolotl/tree-sitter-typst","last_synced_at":"2025-10-23T20:32:24.413Z","repository":{"id":151641542,"uuid":"621953342","full_name":"frozolotl/tree-sitter-typst","owner":"frozolotl","description":"A tree-sitter grammar for the typst typesetting language with a focus on correctness","archived":false,"fork":false,"pushed_at":"2024-01-29T12:57:45.000Z","size":7263,"stargazers_count":76,"open_issues_count":14,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-27T10:41:15.697Z","etag":null,"topics":["parser","tree-sitter","typst"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frozolotl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-31T18:52:00.000Z","updated_at":"2024-07-11T14:21:56.000Z","dependencies_parsed_at":"2024-09-21T16:31:11.430Z","dependency_job_id":"a9009efc-cf2d-4c66-a56e-cbefae0e47c9","html_url":"https://github.com/frozolotl/tree-sitter-typst","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozolotl%2Ftree-sitter-typst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozolotl%2Ftree-sitter-typst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozolotl%2Ftree-sitter-typst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozolotl%2Ftree-sitter-typst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frozolotl","download_url":"https://codeload.github.com/frozolotl/tree-sitter-typst/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867845,"owners_count":16555812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","tree-sitter","typst"],"created_at":"2024-08-01T06:00:56.865Z","updated_at":"2025-10-23T20:32:18.856Z","avatar_url":"https://github.com/frozolotl.png","language":"C","funding_links":[],"categories":["Integrations \u0026 Tools","编辑器集成插件"],"sub_categories":["Editor Integrations","通用"],"readme":"# tree-sitter-typst\nA tree-sitter grammar for the [typst](https://typst.app/) typesetting language with a focus on correctness.\n\n## Goals\n* This grammar will be kept as close as possible to the official parser.\n  Visual inaccuracies should be considered a bug.\n  It is however not a goal to produce the exact same syntax trees.\n* Everything should be tested.\n* I try to keep the grammar up-to-date. The future will show if I manage to keep that promise.\n\n## Missing Features\n- [ ] Code\n- [ ] Lists\n- [ ] Enums\n- [ ] Terms\n\n## Usage\n### Helix\nFirst, clone this repository to a path to your liking.\n\nAppend the following configuration to your `~/.config/helix/languages.toml` or `%AppData%\\helix\\config.toml`.\nMake sure you have replaced the path on the last line with the correct one.\n```toml\n[[language]]\nname = \"typst\"\nscope = \"source.typst\"\ninjection-regex = \"^typ(st)?$\"\nfile-types = [\"typ\"]\ncomment-token = \"//\"\nindent = { tab-width = 2, unit = \"  \" }\nroots = [\"typst.toml\"]\n\n[language.auto-pairs]\n'(' = ')'\n'{' = '}'\n'[' = ']'\n'\"' = '\"'\n'`' = '`'\n'$' = '$'\n\n[[grammar]]\nname = \"typst\"\nsource = { path = \"\u003cpath to tree-sitter-typst\u003e\" }\n```\n\nNow, symlink your query files.\nAlternatively, you can copy them to the correct folder, but that would make updating the grammar more difficult.\n```sh\n$ mkdir -p ~/.config/helix/runtime/queries/\n$ ln -s \u003cpath to tree-sitter-typst\u003e/queries/ ~/.config/helix/runtime/queries/typst\n```\n\nRun the following commands to fetch and build the grammar:\n```sh\n$ hx --grammar fetch\n$ hx --grammar build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozolotl%2Ftree-sitter-typst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrozolotl%2Ftree-sitter-typst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozolotl%2Ftree-sitter-typst/lists"}