Skip to content

Commit 69abc93

Browse files
committed
fix: matching stack vars
1 parent 13785aa commit 69abc93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/github/xepozz/php_opcodes_language/language/psi/impl/PHPOpPsiImplUtil.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ class PHPOpPsiImplUtil {
66
companion object {
77
@JvmStatic
88
fun isVariable(element: PHPOpParameter): Boolean = element.text.startsWith("$")
9+
fun isVariable(element: PHPOpParameter): Boolean = element.text.matches(Regex("[TV]\\d+"))
910
}
1011
}

0 commit comments

Comments
 (0)