Skip to content

Commit f8c1d6f

Browse files
committed
better highlight
1 parent fcf8d15 commit f8c1d6f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ repository = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
2222
commit = "d76023017f7485eae629cb60d406c7a1ca0f40c9"
2323
[grammars.emmyluadoc]
2424
repository = "https://github.com/EmmyLuaLs/tree-sitter-emmyluadoc"
25-
commit = "c35e457114a391bff05c65e893d4ee95d7d36835"
25+
commit = "ea755c0fd34c07e16597bd62a404d6eba2a3891e"

languages/emmyluadoc/highlights.scm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"@attribute" @keyword
2727
"@as" @keyword
2828

29+
; Other/unknown annotations
30+
(tag_name) @keyword
31+
2932
; Special annotation nodes
3033
(deprecated_annotation) @keyword
3134
(private_annotation) @keyword
@@ -148,6 +151,10 @@
148151
; Description
149152
(description) @comment
150153

154+
; Other annotation description (highlight differently for visibility)
155+
(other_annotation
156+
description: (description) @string.documentation)
157+
151158
; Continuation description
152159
(continuation_description) @comment
153160

0 commit comments

Comments
 (0)