##// END OF EJS Templates
Add docstring for latex_matches method
Thomas Kluyver -
Show More
@@ -969,6 +969,12 b' class IPCompleter(Completer):'
969 return [leading + k + suf for k in matches]
969 return [leading + k + suf for k in matches]
970
970
971 def latex_matches(self, text):
971 def latex_matches(self, text):
972 u"""Match Latex syntax for unicode characters.
973
974 This does both \\alp -> \\alpha and \\alpha -> α
975
976 Used on Python 3 only.
977 """
972 slashpos = text.rfind('\\')
978 slashpos = text.rfind('\\')
973 if slashpos > -1:
979 if slashpos > -1:
974 s = text[slashpos:]
980 s = text[slashpos:]
General Comments 0
You need to be logged in to leave comments. Login now