edoc: prevent rogue punctuation highlights
Punctuation highlights would show up outside of where they were valid, for example using parentheses in some text. This change prevents that by gating the captures to being under the named nodes in which they are valid.
This commit is contained in:
parent
78c944ebc3
commit
7cf88f2bac
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@
|
|||
; could be @constant.numeric.integer but this looks similar to a capture
|
||||
(arity) @operator
|
||||
|
||||
[":" "/"] @operator
|
||||
["(" ")"] @punctuation.delimiter
|
||||
["{" "}"] @function.macro
|
||||
(expression [":" "/"] @operator)
|
||||
(expression ["(" ")"] @punctuation.delimiter)
|
||||
(macro ["{" "}"] @function.macro)
|
||||
|
||||
[
|
||||
(quote_marker)
|
||||
|
|
Loading…
Reference in a new issue