[language-php] Update tree-sitter-php to latest…

…to gain support for type annotations on class constants, among other things.
This commit is contained in:
Andrew Dupont 2024-05-18 16:18:03 -07:00
parent 8bf199ad72
commit c04a38b39c
4 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ injectionRegex: 'php|PHP'
firstLineRegex: '^\\s*<\\?(?:php|PHP|=|\\s|$)|^\\#!.*(?:\\s|\\/)php\\d?'
treeSitter:
parserSource: 'github:tree-sitter/tree-sitter-php#b569a5f2c0d592e67430520d1a0e1f765d83ceb0'
parserSource: 'github:tree-sitter/tree-sitter-php#27afeb02e49ff30acd17b67897b1c0114561a38c'
grammar: 'tree-sitter/tree-sitter-php.wasm'
fileTypes: [

View File

@ -7,7 +7,7 @@ parser: 'tree-sitter-php'
injectionRegex: '^(internal-php)$'
treeSitter:
parserSource: 'github:tree-sitter/tree-sitter-php#b569a5f2c0d592e67430520d1a0e1f765d83ceb0'
parserSource: 'github:tree-sitter/tree-sitter-php#27afeb02e49ff30acd17b67897b1c0114561a38c'
grammar: 'tree-sitter/tree-sitter-php.wasm'
highlightsQuery: 'tree-sitter/queries/highlights.scm'
tagsQuery: 'tree-sitter/queries/tags.scm'

View File

@ -419,12 +419,12 @@
(string
"'" @punctuation.definition.string.begin.php
(string_value)?
(string_content)?
"'" @punctuation.definition.string.end.php) @string.quoted.single.php
(encapsed_string
"\"" @punctuation.definition.string.begin.php
(string_value)?
(string_content)?
"\"" @punctuation.definition.string.end.php) @string.quoted.double.php
(encapsed_string
@ -558,7 +558,7 @@
(conditional_expression
["?" ":"] @keyword.operator.ternary.php)
(unary_op_expression "@" @keyword.operator.error-control.php)
(error_suppression_expression "@" @keyword.operator.error-control.php)
[
"=="