Skip to content

Commit

Permalink
Merge pull request #20 from takluyver/latex-complete-docstring
Browse files Browse the repository at this point in the history
Add docstring for latex_matches method
  • Loading branch information
ellisonbg committed Sep 9, 2014
2 parents edc38c5 + 29419d5 commit 5005f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions IPython/core/completer.py
Expand Up @@ -969,6 +969,12 @@ def get_keys(obj):
return [leading + k + suf for k in matches]

def latex_matches(self, text):
u"""Match Latex syntax for unicode characters.
This does both \\alp -> \\alpha and \\alpha -> α
Used on Python 3 only.
"""
slashpos = text.rfind('\\')
if slashpos > -1:
s = text[slashpos:]
Expand Down

0 comments on commit 5005f7d

Please sign in to comment.