Skip to content

Commit e6604d2

Browse files
committed
Fix highlighting keyword
1 parent 8dd0163 commit e6604d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

php-ts-mode.el

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
"elseif" "enddeclare" "endforeach" "endif" "endswitch"
7777
"endwhile" "enum" "extends" "final" "finally" "for" "foreach"
7878
"fn" "function" "global" "if" "implements" "include_once"
79-
"include" "insteadof" "interface" "namespace" "never" "new"
79+
"include" "insteadof" "interface" "namespace" "new"
8080
"private" "protected" "public" "readonly" "require_once" "require"
8181
"return" "static" "switch" "throw" "trait" "try" "use"
82-
"while" "yield" "yield from")
82+
"while" "yield")
8383
"PHP keywords for tree-sitter font-locking.")
8484

8585
(defvar php-ts-mode--operators
@@ -208,7 +208,9 @@ the available version of Tree-sitter for PHP."
208208

209209
:language 'php
210210
:feature 'keyword
211-
`([,@php-ts-mode--keywords] @font-lock-keyword-face)
211+
`([,@php-ts-mode--keywords] @font-lock-keyword-face
212+
;; TODO: Add "yield from"
213+
)
212214

213215
:language 'php
214216
:feature 'bracket

0 commit comments

Comments
 (0)