File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Running `M-x treesit-install-language-grammar [RET] php` will compile and instal
5353In ` php-ts-mode ` , syntax elements are classified as follows.
5454
5555 * ** Level 1** : ` comment ` ` definition ` ` preprocessor `
56- * ** Level 2** : ` keyword ` ` string ` ` type ` ` built-in `
56+ * ** Level 2** : ` keyword ` ` string ` ` type `
5757 * ** Level 3** : ` function ` ` constant ` ` label `
5858 * ** Level 4** : ` bracket ` ` delimiter ` ` operator ` ` variables ` ` this `
5959
Original file line number Diff line number Diff line change @@ -256,15 +256,12 @@ see https://www.php.net/manual/language.constants.predefined.php")
256256
257257 :language 'php
258258 :feature 'keyword
259+ :override t
259260 `([,@php-ts-mode--keywords ] @php-keyword
260261 (print_intrinsic " print" @php-keyword)
261262 (goto_statement " goto" @php-keyword)
262- (yield_expression " from" @php-keyword))
263-
264- :language 'php
265- :feature 'built-in
266- :override t
267- `((function_call_expression
263+ (yield_expression " from" @php-keyword)
264+ (function_call_expression
268265 function: (name) @php-keyword
269266 (:match ,(rx-to-string
270267 `(seq bol
@@ -372,7 +369,7 @@ Currently there are `php-mode' and `php-ts-mode'."
372369 (setq-local treesit-font-lock-settings php-ts-mode--font-lock-settings)
373370 (setq-local treesit-font-lock-feature-list
374371 '((comment definition preprocessor)
375- (keyword string type built-in )
372+ (keyword string type)
376373 (function constant label)
377374 (bracket delimiter operator variables this)))
378375
You can’t perform that action at this time.
0 commit comments