Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 2545302

Browse files
using namespaces
1 parent 2b0c936 commit 2545302

2 files changed

Lines changed: 562 additions & 2 deletions

File tree

grammars/tree-sitter-php.cson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,19 @@ scopes:
6666
'* > qualified_name > name': 'support.class.php'
6767

6868
'namespace_use_declaration': 'meta.use.php'
69+
'namespace_use_declaration > namespace_name': 'support.other.namespace.php'
70+
'namespace_use_declaration > "const"': 'storage.type.const.php'
71+
'namespace_use_group > "{"': 'punctuation.definition.use.begin.bracket.curly.php'
72+
'namespace_use_group > "}"': 'punctuation.definition.use.end.bracket.curly.php'
73+
'namespace_use_group_clause > namespace_name > name': 'support.class.php'
6974
'namespace_aliasing_clause > "as"': 'keyword.other.use-as.php'
7075
'namespace_aliasing_clause > name': 'entity.other.alias.php'
7176

7277
'use_declaration': 'meta.use.php'
7378
'use_instead_of_clause > "insteadof"': 'keyword.other.use-insteadof.php'
7479
'use_instead_of_clause > name': 'support.class.php'
7580
'use_list > "{"': 'punctuation.definition.use.begin.bracket.curly.php'
81+
'use_list > "}"': 'punctuation.definition.use.end.bracket.curly.php'
7682
'use_as_clause > name:nth-child(0)': 'support.class.php'
7783
'use_as_clause > "as"': 'keyword.other.use-as.php'
7884
'use_as_clause > name': 'entity.other.alias.php'

0 commit comments

Comments
 (0)