mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
replace match with lua match
This commit is contained in:
parent
fef0bad017
commit
86741e4c2f
1 changed files with 2 additions and 2 deletions
|
|
@ -229,7 +229,7 @@
|
|||
(declaration)
|
||||
(function_definition)
|
||||
]
|
||||
(#match? @comment.documentation "/\\*\\*[\\s\\S]*?\\*/"))
|
||||
(#lua-match? @comment.documentation "^/%*%*.*%*/$"))
|
||||
|
||||
(parameter_declaration
|
||||
declarator: [
|
||||
|
|
@ -278,7 +278,7 @@
|
|||
|
||||
; assume all uppercase variables as constants
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
||||
|
||||
((identifier) @constant.builtin
|
||||
(#any-of? @constant.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue