aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMunif Tanjim <muniftanjim@gmail.com>2021-04-24 20:41:34 +0600
committerThomas Vigouroux <tomvig38@gmail.com>2021-04-24 16:52:37 +0200
commit4a802282207cea3bc54c5e182c063739cdcda736 (patch)
tree9fde75aed7cade2db66d9553486442c000fef444 /doc
parenthighlight: add 'comment' to hlmap (diff)
downloadnvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar.gz
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar.bz2
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar.lz
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar.xz
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.tar.zst
nvim-treesitter-4a802282207cea3bc54c5e182c063739cdcda736.zip
docs: update nvim-treesitter-highlights
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt30
1 files changed, 25 insertions, 5 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 3ee7eee14..778f4567c 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -451,10 +451,6 @@ For characters.
`TSComment`
For comment blocks.
- *hl-TSConstructor*
-`TSConstructor`
-For constructor calls and definitions: `{}` in Lua, and Java constructors.
-
*hl-TSConditional*
`TSConditional`
For keywords related to conditionnals.
@@ -471,6 +467,10 @@ For constant that are built in the language: `nil` in Lua.
`TSConstMacro`
For constants that are defined by macros: `NULL` in C.
+ *hl-TSConstructor*
+`TSConstructor`
+For constructor calls and definitions: `{}` in Lua, and Java constructors.
+
*hl-TSError*
`TSError`
For syntax/parser errors.
@@ -513,6 +513,10 @@ For keywords that don't fall in previous categories.
`TSKeywordFunction`
For keywords used to define a fuction.
+ *hl-TSKeywordOperator*
+`TSKeywordOperator`
+for operators that are English words, e.g. `and`, `as`, `or`.
+
*hl-TSLabel*
`TSLabel`
For labels: `label:` in C and `:label:` in Lua.
@@ -527,7 +531,7 @@ For identifiers referring to modules and namespaces.
*hl-None*
`TSNone`
-TODO: docs
+For no highlighting.
*hl-TSNumber*
`TSNumber`
@@ -621,6 +625,22 @@ Literal text.
`TSURI`
Any URI like a link or email.
+ *hl-TSMath*
+`TSMath`
+For LaTex-like math environments.
+
+ *hl-TSTextReference*
+`TSTextReference`
+For footnotes, text references, citations.
+
+ *hl-TSEnviroment*
+`TSEnviroment`
+For text environments of markup languages.
+
+ *hl-TSEnviromentName*
+`TSEnviromentName`
+For the name/the string indicating the type of text environment.
+
*hl-TSNote*
`TSNote`
Text representation of an informational note.