mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 07:20:06 -04:00
perf: remove match where possible
This commit is contained in:
parent
654216eb04
commit
85330918f0
37 changed files with 104 additions and 113 deletions
|
|
@ -11,13 +11,13 @@
|
|||
|
||||
; Allow different highlighting for specific casings
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
(#lua-match? @type "^%u"))
|
||||
|
||||
((identifier) @symbol
|
||||
(#match? @symbol "^[a-z]"))
|
||||
(#lua-match? @symbol "^%l"))
|
||||
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
|
||||
(#lua-match? @constant "^%u[%u%d_]+$"))
|
||||
|
||||
;;; Punctuation ;;;;
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue