mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(lalrpop): highlight annotation macros
Lalrpop support putting annotation like `#[precedence(level = "1")]`. This commit aims to highlight `precedence` with the `function.macro` highlight group, like rust does with its proc macros.
This commit is contained in:
parent
f6342874b1
commit
7e9139db68
1 changed files with 3 additions and 0 deletions
|
|
@ -77,3 +77,6 @@
|
|||
(string_literal) @string
|
||||
|
||||
(regex_literal) @string
|
||||
|
||||
(annotation
|
||||
(id) @function.macro)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue