Skip to content

Commit

Permalink
Update tree-sitter-php to latest upstream (#1521)
Browse files Browse the repository at this point in the history
Brings in PHP 8.1 features, like enums, union types and the like.
  • Loading branch information
EpocSquadron authored Jan 16, 2022
1 parent a7b0cc7 commit dd1f64d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion runtime/queries/php/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

(primitive_type) @type.builtin
(cast_type) @type.builtin
(type_name (name) @type)
(named_type (name) @type) @type
(named_type (qualified_name) @type) @type

; Functions

Expand Down Expand Up @@ -85,10 +86,12 @@
"endif" @keyword
"endswitch" @keyword
"endwhile" @keyword
"enum" @keyword
"extends" @keyword
"final" @keyword
"finally" @keyword
"foreach" @keyword
"fn" @keyword
"function" @keyword
"global" @keyword
"if" @keyword
Expand All @@ -97,6 +100,7 @@
"include" @keyword
"insteadof" @keyword
"interface" @keyword
"match" @keyword
"namespace" @keyword
"new" @keyword
"private" @keyword
Expand Down

0 comments on commit dd1f64d

Please sign in to comment.