|
89 | 89 | ((parent-is "switch_block") parent-bol ,offset) |
90 | 90 | ((parent-is "case_statement") parent-bol ,offset) |
91 | 91 | ((parent-is "default_statement") parent-bol ,offset) |
| 92 | + ((parent-is "match_block") parent-bol ,offset) |
92 | 93 | ((parent-is "assignment_expression") parent-bol ,offset) |
93 | 94 | ((parent-is "return_statement") parent-bol ,offset)))) |
94 | 95 | "Tree-sitter indent rules.") |
|
99 | 100 | "elseif" "enddeclare" "endforeach" "endif" "endswitch" |
100 | 101 | "endwhile" "enum" "extends" "final" "finally" "for" "foreach" |
101 | 102 | "fn" "function" "global" "if" "implements" "include_once" |
102 | | - "include" "insteadof" "interface" "namespace" "new" |
| 103 | + "include" "insteadof" "interface" "match" "namespace" "new" |
103 | 104 | "private" "protected" "public" "readonly" "require_once" "require" |
104 | 105 | "return" "static" "switch" "throw" "trait" "try" "use" |
105 | 106 | "while" "yield") |
106 | 107 | "PHP keywords for tree-sitter font-locking.") |
107 | 108 |
|
108 | 109 | (defvar php-ts-mode--built-in-functions |
109 | | - '("die" "echo" "empty" "isset") |
| 110 | + '("die" "empty" "isset") |
110 | 111 | "PHP built-in functions for tree-sitter font-locking.") |
111 | 112 |
|
112 | 113 | (defvar php-ts-mode--operators |
@@ -266,7 +267,8 @@ see https://www.php.net/manual/language.constants.predefined.php") |
266 | 267 | (:match ,(rx-to-string |
267 | 268 | `(seq bol |
268 | 269 | (or ,@php-ts-mode--built-in-functions) |
269 | | - eol)) @php-keyword))) |
| 270 | + eol)) @php-keyword)) |
| 271 | + (unset_statement "unset" @php-keyword)) |
270 | 272 |
|
271 | 273 | :language 'php |
272 | 274 | :feature 'label |
|
0 commit comments