##// END OF EJS Templates
prefilter: magics on multiline structuress now work again
vivainio -
Show More
@@ -71,7 +71,8 b' class LineInfo(object):'
71 71 if not self._oinfo:
72 72 self._oinfo = ip._ofind(self.iFun)
73 73 return self._oinfo
74
74 def __str__(self):
75 return "Lineinfo [%s|%s|%s]" %(self.pre,self.iFun,self.theRest)
75 76
76 77 def splitUserInput(line, pattern=None):
77 78 """Split user input into pre-char/whitespace, function part and rest.
@@ -182,11 +183,13 b' def checkMultiLineShell(l_info,ip):'
182 183 "Allow ! and !! in multi-line statements if multi_line_specials is on"
183 184 # Note that this one of the only places we check the first character of
184 185 # iFun and *not* the preChar. Also note that the below test matches
185 # both ! and !!.
186 # both ! and !!.
186 187 if l_info.continue_prompt \
187 and ip.rc.multi_line_specials \
188 and l_info.iFun.startswith(ip.ESC_SHELL):
189 return ip.handle_shell_escape
188 and ip.rc.multi_line_specials:
189 if l_info.iFun.startswith(ip.ESC_SHELL):
190 return ip.handle_shell_escape
191 if l_info.iFun.startswith(ip.ESC_MAGIC):
192 return ip.handle_magic
190 193 else:
191 194 return None
192 195
General Comments 0
You need to be logged in to leave comments. Login now