mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(nu): new attribute syntax and add folds.scm (#7650)
This commit is contained in:
parent
b08ae25c47
commit
2cade9e3d1
2 changed files with 18 additions and 9 deletions
10
queries/nu/folds.scm
Normal file
10
queries/nu/folds.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
(attribute_list)
|
||||
(block)
|
||||
(command_list)
|
||||
(parameter_bracks)
|
||||
(record_body)
|
||||
(val_list)
|
||||
(val_table)
|
||||
(val_closure)
|
||||
] @fold
|
||||
|
|
@ -275,16 +275,15 @@ key: (identifier) @property
|
|||
(param_cmd
|
||||
(cmd_identifier) @string)
|
||||
|
||||
(param_long_flag
|
||||
(long_flag_identifier) @attribute)
|
||||
(attribute
|
||||
"@" @attribute)
|
||||
|
||||
(param_short_flag
|
||||
(param_short_flag_identifier) @attribute)
|
||||
|
||||
(short_flag
|
||||
(short_flag_identifier) @attribute)
|
||||
|
||||
(long_flag_identifier) @attribute
|
||||
[
|
||||
(attribute_identifier)
|
||||
(long_flag_identifier)
|
||||
(param_short_flag_identifier)
|
||||
(short_flag_identifier)
|
||||
] @attribute
|
||||
|
||||
(scope_pattern
|
||||
(wild_card) @function)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue