replace match with lua match

This commit is contained in:
Tayfun Bocek 2025-10-30 00:27:56 +03:00
parent fef0bad017
commit 86741e4c2f

View file

@ -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