mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-05 15:07:49 +03:00
[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:
parent
8bf199ad72
commit
c04a38b39c
@ -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: [
|
||||
|
@ -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'
|
||||
|
@ -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)
|
||||
|
||||
[
|
||||
"=="
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user