aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-03-12 11:21:46 -0500
committerGitHub <noreply@github.com>2021-03-12 11:21:46 -0500
commite4083fc8e11e6585f53d62eb71778cc2af464fad (patch)
tree347c6f8cd36ce9d786c817697e8ac59c0a6bd4a5 /lua
parentchore: create ecma base for use in js and ts which fixes jsx issues (diff)
downloadnvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar.gz
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar.bz2
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar.lz
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar.xz
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.tar.zst
nvim-treesitter-e4083fc8e11e6585f53d62eb71778cc2af464fad.zip
Add comment parser to highlight comment tags (#893)
Closes #236
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/highlight.lua4
-rw-r--r--lua/nvim-treesitter/parsers.lua8
2 files changed, 12 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index a0c6ee61b..8db1a3ab3 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -85,6 +85,10 @@ hlmap["text.title"] = "TSTitle"
hlmap["text.literal"] = "TSLiteral"
hlmap["text.uri"] = "TSURI"
+hlmap["text.note"] = "TSNote"
+hlmap["text.warning"] = "TSWarning"
+hlmap["text.danger"] = "TSDanger"
+
hlmap["type"] = "TSType"
hlmap["type.builtin"] = "TSTypeBuiltin"
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 8ce9552f5..a1727fc10 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -403,6 +403,14 @@ list.regex = {
maintainers = {"@theHamsta"},
}
+list.comment = {
+ install_info = {
+ url = "https://github.com/stsewd/tree-sitter-comment",
+ files = { "src/parser.c", "src/scanner.c" },
+ },
+ maintainers = {"@stsewd"},
+}
+
list.jsdoc = {
install_info = {
url = "https://github.com/tree-sitter/tree-sitter-jsdoc",