File tree 2 files changed +5
-8
lines changed
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
53
53
In ` php-ts-mode ` , syntax elements are classified as follows.
54
54
55
55
* ** Level 1** : ` comment ` ` definition ` ` preprocessor `
56
- * ** Level 2** : ` keyword ` ` string ` ` type ` ` built-in `
56
+ * ** Level 2** : ` keyword ` ` string ` ` type `
57
57
* ** Level 3** : ` function ` ` constant ` ` label `
58
58
* ** Level 4** : ` bracket ` ` delimiter ` ` operator ` ` variables ` ` this `
59
59
Original file line number Diff line number Diff line change @@ -256,15 +256,12 @@ see https://www.php.net/manual/language.constants.predefined.php")
256
256
257
257
:language 'php
258
258
:feature 'keyword
259
+ :override t
259
260
`([,@php-ts-mode--keywords ] @php-keyword
260
261
(print_intrinsic " print" @php-keyword)
261
262
(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
268
265
function: (name) @php-keyword
269
266
(:match ,(rx-to-string
270
267
`(seq bol
@@ -372,7 +369,7 @@ Currently there are `php-mode' and `php-ts-mode'."
372
369
(setq-local treesit-font-lock-settings php-ts-mode--font-lock-settings)
373
370
(setq-local treesit-font-lock-feature-list
374
371
'((comment definition preprocessor)
375
- (keyword string type built-in )
372
+ (keyword string type)
376
373
(function constant label)
377
374
(bracket delimiter operator variables this)))
378
375
You can’t perform that action at this time.
0 commit comments