mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
feat(rust,lalrpop): @attribute for lifetimes
`@keyword` is only for language-defined keywords.
This commit is contained in:
parent
5d75359a9a
commit
8f5513a1f2
3 changed files with 17 additions and 6 deletions
|
|
@ -72,7 +72,14 @@
|
|||
] @punctuation.delimiter
|
||||
|
||||
(lifetime
|
||||
(identifier) @keyword.modifier)
|
||||
"'" @keyword.modifier)
|
||||
|
||||
(lifetime
|
||||
(identifier) @attribute)
|
||||
|
||||
(lifetime
|
||||
(identifier) @attribute.builtin
|
||||
(#any-of? @attribute.builtin "static" "_"))
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
|
|
|
|||
|
|
@ -285,10 +285,14 @@
|
|||
] @keyword.modifier
|
||||
|
||||
(lifetime
|
||||
[
|
||||
"'"
|
||||
(identifier)
|
||||
] @keyword.modifier)
|
||||
"'" @keyword.modifier)
|
||||
|
||||
(lifetime
|
||||
(identifier) @attribute)
|
||||
|
||||
(lifetime
|
||||
(identifier) @attribute.builtin
|
||||
(#any-of? @attribute.builtin "static" "_"))
|
||||
|
||||
"fn" @keyword.function
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue