Skip to content

Commit 25ebfba

Browse files
committed
Fix rx call
1 parent 866a202 commit 25ebfba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php-ts-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ the available version of Tree-sitter for PHP."
152152
`((relative_scope) @font-lock-builtin-face
153153

154154
((name) @font-lock-constant-face
155-
(:match ,(rx-to-string '(: bos (? "_") (in "A-Z") (or (in "A-Z") digit "_") eos))
155+
(:match ,(rx bos (? "_") (in "A-Z") (in "0-9A-Z_") eos)
156156
@font-lock-constant-face))
157157
((name) @font-lock-builtin-face
158158
(:match ,(rx-to-string `(: bos (or ,@php-ts-mode--magical-constants) eos))
@@ -170,7 +170,7 @@ the available version of Tree-sitter for PHP."
170170
:language 'php
171171
:feature 'comment
172172
`(((comment) @font-lock-doc-face
173-
(:match ,(rx-to-string '(: bos "/**"))
173+
(:match ,(rx bos "/**")
174174
@font-lock-doc-face))
175175
(comment) @font-lock-comment-face)
176176

0 commit comments

Comments
 (0)