fix digit escapes in java & php highlights (#846)
This commit is contained in:
parent
e069fb9dea
commit
be428a295a
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#match? @constant "^_*[A-Z][A-Z\d_]+"))
|
(#match? @constant "^_*[A-Z][A-Z\\d_]+$"))
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
(relative_scope) @variable.builtin
|
(relative_scope) @variable.builtin
|
||||||
|
|
||||||
((name) @constant
|
((name) @constant
|
||||||
(#match? @constant "^_?[A-Z][A-Z\d_]+$"))
|
(#match? @constant "^_?[A-Z][A-Z\\d_]+$"))
|
||||||
|
|
||||||
((name) @constructor
|
((name) @constructor
|
||||||
(#match? @constructor "^[A-Z]"))
|
(#match? @constructor "^[A-Z]"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue