File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ language = "PHP"
2424
2525[grammars .php ]
2626repository = " https://github.com/tree-sitter/tree-sitter-php"
27- commit = " 8ab93274065cbaf529ea15c24360cfa3348ec9e4 "
27+ commit = " 5b5627faaa290d89eb3d01b9bf47c3bb9e797dea "
2828path = " php"
2929
3030[grammars .phpdoc ]
3131repository = " https://github.com/claytonrcarter/tree-sitter-phpdoc"
32- commit = " 03bb10330704b0b371b044e937d5cc7cd40b4999 "
32+ commit = " 488198e61f49fc74ee54069a4126b556665a57cc "
Original file line number Diff line number Diff line change 11(php_tag) @tag
2- "?>" @tag
2+ (php_end_tag) @tag
33
44; Types
55
8080; Basic tokens
8181[
8282 (string)
83- (string_value )
83+ (string_content )
8484 (encapsed_string)
8585 (heredoc)
8686 (heredoc_body)
170170"and" @keyword
171171"as" @keyword
172172"break" @keyword
173- "callable" @keyword
174173"case" @keyword
175174"catch" @keyword
176175"class" @keyword
197196"for" @keyword
198197"foreach" @keyword
199198"fn" @keyword
200- "from" @keyword
201199"function" @keyword
202200"global" @keyword
203201"goto" @keyword
229227"while" @keyword
230228"xor" @keyword
231229"yield" @keyword
230+ "yield from" @keyword
Original file line number Diff line number Diff line change 3636 .
3737 (argument
3838 [
39- (encapsed_string (string_value ) @name )
40- (string (string_value ) @name )
39+ (encapsed_string (string_content ) @name )
40+ (string (string_content ) @name )
4141 ]
4242 )
4343 )
Original file line number Diff line number Diff line change 44; and the method is public
55(
66 (class_declaration
7- modifier: (_)? @_modifier
8- (#not-eq? @_modifier "abstract")
7+ (_)* @_modifier
8+ (#not-any-eq? @_modifier "abstract")
9+ .
910 name: (_) @_name
1011 (#match? @_name ".*Test$")
1112 body: (declaration_list
2627; and the method is public
2728(
2829 (class_declaration
29- modifier: (_)? @_modifier
30- (#not-eq? @_modifier "abstract")
30+ (_)* @_modifier
31+ (#not-any-eq? @_modifier "abstract")
32+ .
3133 name: (_) @_name
3234 (#match? @_name ".*Test$")
3335 body: (declaration_list
5153; and the method is public
5254(
5355 (class_declaration
54- modifier: (_)? @_modifier
55- (#not-eq? @_modifier "abstract")
56+ (_)* @_modifier
57+ (#not-any-eq? @_modifier "abstract")
58+ .
5659 name: (_) @_name
5760 (#match? @_name ".*Test$")
5861 body: (declaration_list
7780; and that doesn't have the abstract modifier
7881(
7982 (class_declaration
80- modifier: (_)? @_modifier
81- (#not-eq? @_modifier "abstract")
83+ (_)* @_modifier
84+ (#not-any-eq? @_modifier "abstract")
85+ .
8286 name: (_) @run
8387 (#match? @run ".*Test$")
8488 ) @_phpunit -test
9599 .
96100 (argument
97101 [
98- (encapsed_string (string_value ) @run )
99- (string (string_value ) @run )
102+ (encapsed_string (string_content ) @run )
103+ (string (string_content ) @run )
100104 ]
101105 )
102106 )
You can’t perform that action at this time.
0 commit comments