@@ -44,16 +44,16 @@ class CursorEvalEvent(Event):
4444 """Evaluate the variable currently under the cursor.
4545 """
4646 char_regex = {
47- "default" : "a-zA-Z0-9_.\[ \]'\" " ,
48- "ruby" : "$@a-zA-Z0-9_.\[ \]'\" " ,
47+ "default" : "a-zA-Z0-9_.\\ [ \ \ ]'\" " ,
48+ "ruby" : "$@a-zA-Z0-9_.\\ [ \ \ ]'\" " ,
4949 "perl" : "$a-zA-Z0-9_{}'\" " ,
50- "php" : "$@%a-zA-Z0-9_\[\ ]'\" \-> "
50+ "php" : "$@%a-zA-Z0-9_\\ [ \\ ]'\" >- "
5151 }
5252
5353 var_regex = {
5454 "default" : "^[a-zA-Z_]" ,
5555 "ruby" : "^[$@a-zA-Z_]" ,
56- "php" : "^[\$A-Z]" ,
56+ "php" : r "^[\$A-Z]" ,
5757 "perl" : "^[$@%]"
5858 }
5959
@@ -559,7 +559,7 @@ def run(self):
559559 line = self .ui .windows .breakpoints ().line_at (lineno - 1 )
560560
561561 # Match on ID
562- id = re .findall ('^[\s][0-9]*[\s]' , line )
562+ id = re .findall ('^[\\ s][0-9]*[\ \ s]' , line )
563563 if not id :
564564 return False
565565
@@ -877,9 +877,9 @@ def _get_window_name():
877877 @staticmethod
878878 def _get_breakpoint_id_breakpoint_window (line ):
879879 # Match on ID
880- id = re .findall ('^[\s][0-9]*[\s]' , line )
880+ id = re .findall (r '^[\s][0-9]*[\s]' , line )
881881 if not id :
882- log .Log ("No breakpoint founr at current cursor position" ,
882+ log .Log ("No breakpoint found at current cursor position" ,
883883 log .Logger .DEBUG )
884884 return False
885885
0 commit comments