mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -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)
|
(declaration)
|
||||||
(function_definition)
|
(function_definition)
|
||||||
]
|
]
|
||||||
(#match? @comment.documentation "/\\*\\*[\\s\\S]*?\\*/"))
|
(#lua-match? @comment.documentation "^/%*%*.*%*/$"))
|
||||||
|
|
||||||
(parameter_declaration
|
(parameter_declaration
|
||||||
declarator: [
|
declarator: [
|
||||||
|
|
@ -278,7 +278,7 @@
|
||||||
|
|
||||||
; assume all uppercase variables as constants
|
; assume all uppercase variables as constants
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
||||||
|
|
||||||
((identifier) @constant.builtin
|
((identifier) @constant.builtin
|
||||||
(#any-of? @constant.builtin
|
(#any-of? @constant.builtin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue