Skip to content

Commit b211884

Browse files
committed
Allow PHP constants to be evaluated under cursor, fix #80
1 parent 716d7d9 commit b211884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/python/vdebug/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class CursorEvalEvent(Event):
7777
var_regex = {
7878
"default" : "^[a-zA-Z_]",
7979
"ruby" : "^[$@a-zA-Z_]",
80-
"php" : "^\$",
80+
"php" : "^[\$A-Z]",
8181
"perl" : "^[$@%]"
8282
}
8383

@@ -231,7 +231,7 @@ def execute(self,runner):
231231
else:
232232
runner.get_context(context_id)
233233
return True
234-
234+
235235
def __get_word_end(self,line,column):
236236
tab_end_pos = -1
237237
line_len = len(line)

0 commit comments

Comments
 (0)