Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/typst/highlights.scm')
| -rw-r--r-- | runtime/queries/typst/highlights.scm | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/runtime/queries/typst/highlights.scm b/runtime/queries/typst/highlights.scm index 7b1b7c72..b422e05b 100644 --- a/runtime/queries/typst/highlights.scm +++ b/runtime/queries/typst/highlights.scm @@ -1,3 +1,11 @@ +(call + item: (ident) @function) +(call + item: (field field: (ident) @function.method)) +(tagged field: (ident) @tag) +(field field: (ident) @tag) +(comment) @comment + ; CONTROL (let "let" @keyword.storage.type) (branch ["if" "else"] @keyword.control.conditional) @@ -13,7 +21,6 @@ ; OPERATOR (in ["in" "not"] @keyword.operator) -(context "context" @keyword.control) (and "and" @keyword.operator) (or "or" @keyword.operator) (not "not" @keyword.operator) @@ -38,28 +45,17 @@ (string) @string (content ["[" "]"] @operator) (bool) @constant.builtin.boolean +(builtin) @constant.builtin (none) @constant.builtin (auto) @constant.builtin (ident) @variable - -; FUNCTIONS -(call - item: (ident) @function) (call - item: (field field: (ident) @function.method)) -(tagged field: (ident) @tag) -(field field: (ident) @tag) -(comment) @comment + item: (builtin) @function.builtin) ; MARKUP (item "-" @markup.list) (term ["/" ":"] @markup.list) -(heading "=" @markup.heading.marker) @markup.heading.1 -(heading "==" @markup.heading.marker) @markup.heading.2 -(heading "===" @markup.heading.marker) @markup.heading.3 -(heading "====" @markup.heading.marker) @markup.heading.4 -(heading "=====" @markup.heading.marker) @markup.heading.5 -(heading "======" @markup.heading.marker) @markup.heading.6 +(heading ["=" "==" "===" "====" "====="] @markup.heading.marker) @markup.heading (url) @tag (emph) @markup.italic (strong) @markup.bold |