File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/main/kotlin/com/github/xepozz/php_opcodes_language Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ enum class Primitives {
66 `false `,
77 int,
88 long,
9- string,
109 double,
1110 float,
11+ string,
1212 `null `,
1313 array,
14- global,
1514 `object `,
1615 resource,
16+ global,
17+ parent,
18+ exception,
1719}
Original file line number Diff line number Diff line change @@ -42,7 +42,13 @@ class PHPOpReferenceContributor : PsiReferenceContributor() {
4242 PlatformPatterns .and (
4343 PlatformPatterns .psiElement(PHPOpParameter ::class .java),
4444 PlatformPatterns .not (
45- PlatformPatterns .psiElement(PHPOpParameter ::class .java).withName(Opcodes .THIS .name)
45+ PlatformPatterns .psiElement(PHPOpParameter ::class .java)
46+ .withName(
47+ Opcodes .THIS .name,
48+ * Primitives .entries
49+ .map { it.name }
50+ .toTypedArray(),
51+ )
4652 )
4753 ),
4854 PlatformPatterns .psiElement(PHPOpParenParameter ::class .java),
You can’t perform that action at this time.
0 commit comments