aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md1
-rw-r--r--doc/nvim-treesitter.txt4
-rw-r--r--lua/nvim-treesitter/highlight.lua1
-rw-r--r--queries/html_tags/highlights.scm2
-rw-r--r--queries/jsx/highlights.scm1
5 files changed, 8 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b89e13ae1..b5e214386 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -185,6 +185,7 @@ Used for xml-like tags
```
@tag
+@tag.attribute
@tag.delimiter
```
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 120831993..fc0ff6a29 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -616,6 +616,10 @@ For identifiers referring to symbols or atoms.
`TSTag`
Tags like html tag names.
+ *hl-TSTagAttribute*
+`TSTagAttribute`
+For html tag attributes.
+
*hl-TSTagDelimiter*
`TSTagDelimiter`
Tag delimiter like `<` `>` `/`
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua