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.
pull/2938/head
Michael Davis 2 years ago committed by Blaž Hrastnik
parent 78c944ebc3
commit 7cf88f2bac

@ -39,9 +39,9 @@
; could be @constant.numeric.integer but this looks similar to a capture ; could be @constant.numeric.integer but this looks similar to a capture
(arity) @operator (arity) @operator
[":" "/"] @operator (expression [":" "/"] @operator)
["(" ")"] @punctuation.delimiter (expression ["(" ")"] @punctuation.delimiter)
["{" "}"] @function.macro (macro ["{" "}"] @function.macro)
[ [
(quote_marker) (quote_marker)

Loading…
Cancel
Save