Skip to content

Commit 2c20fe5

Browse files
committed
Add :feature 'operator to font-lock-settings
1 parent 08b837c commit 2c20fe5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

php-ts-mode.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"+" "++" "+=" "," "-" "-" "--" "-=" "->" "."
8888
".=" "/" "/=" ":" "::" "<" "<<" "<<=" "<=" "<=>"
8989
"<>" "=" "==" "===" "=>" ">" ">=" ">>" ">>=" "?"
90-
"?:" "??" "??=" "?->" "@" "\\" "^" "^=" "|" "|=" "||"))
90+
"??" "??=" "?->" "@" "\\" "^" "^=" "|" "|=" "||"))
9191
"PHP operators for tree-sitter font-locking.")
9292

9393
(defconst php-ts-mode--magical-constants
@@ -190,6 +190,10 @@ the available version of Tree-sitter for PHP."
190190
`((interpolation "${" @font-lock-misc-punctuation-face)
191191
(interpolation "}" @font-lock-misc-punctuation-face))
192192

193+
:language 'php
194+
:feature 'operator
195+
`([,@php-ts-mode--operators] @font-lock-operator-face)
196+
193197
:language 'php
194198
:feature 'string
195199
`((string) @font-lock-string-face)

0 commit comments

Comments
 (0)