diff options
| author | Dimitris Dimitropoulos <dimitris.dimitropoulos00@gmail.com> | 2025-02-01 21:45:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-01 20:45:10 +0100 |
| commit | 4988b7068001b3a772c7cc738708341e612e3c26 (patch) | |
| tree | cc9de965e9d38c12820f13ca15b039881eb0bf7b | |
| parent | feat(razor): add parser and queries (#7545) (diff) | |
| download | nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar.gz nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar.bz2 nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar.lz nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar.xz nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.tar.zst nvim-treesitter-4988b7068001b3a772c7cc738708341e612e3c26.zip | |
feat(typst): capture multilevel headings (#7595)
| -rw-r--r-- | queries/typst/highlights.scm | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/queries/typst/highlights.scm b/queries/typst/highlights.scm index e36105413..e23588421 100644 --- a/queries/typst/highlights.scm +++ b/queries/typst/highlights.scm @@ -84,8 +84,23 @@ ; text (text) @spell -; TODO: use multi level headings -(heading) @markup.heading +(heading + "=" @markup.heading.1) @markup.heading.1 + +(heading + "==" @markup.heading.2) @markup.heading.2 + +(heading + "===" @markup.heading.3) @markup.heading.3 + +(heading + "====" @markup.heading.4) @markup.heading.4 + +(heading + "=====" @markup.heading.5) @markup.heading.5 + +(heading + "======" @markup.heading.6) @markup.heading.6 (strong) @markup.strong |
