Skip to content

Commit

Permalink
Fix include file regex
Browse files Browse the repository at this point in the history
Fixes #985

Of course the backslash has to be escaped doubly.
Before this commit the regex actually read a "\i" escape sequence,
which is unknown and raises an error starting with Python 3.6
  • Loading branch information
uliska committed Jul 13, 2017
1 parent da90b6a commit c27a9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frescobaldi_app/open_file_at_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import browseriface

# regular expression for finding \include expressions
incl_regex = re.compile('(\\include\s*\")(.*)(\")')
incl_regex = re.compile('(\\\\include\s*\")(.*)(\")')

def includeTarget(cursor):
"""Given a cursor determine an absolute path to an include file present below the cursor.
Expand Down

0 comments on commit c27a9c2

Please sign in to comment.