mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat: standardize and document export keywords
Many export keywords are captured as `@keyword.import`. This commit makes it so they are all captured like that, and mentions it in the documentation.
This commit is contained in:
parent
0d2c80b4d0
commit
d5a1c2b0c8
11 changed files with 22 additions and 29 deletions
|
|
@ -139,7 +139,10 @@ field_constant: (IDENTIFIER) @constant
|
|||
"continue"
|
||||
] @keyword.repeat
|
||||
|
||||
"usingnamespace" @keyword.import
|
||||
[
|
||||
"usingnamespace"
|
||||
"export"
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
"try"
|
||||
|
|
@ -168,7 +171,6 @@ field_constant: (IDENTIFIER) @constant
|
|||
|
||||
[
|
||||
"comptime"
|
||||
"export"
|
||||
"extern"
|
||||
"inline"
|
||||
"noinline"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue