mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: quiet unknown escape warnings
Auto-complete showed errors.
This commit is contained in:
parent
b5f77973a7
commit
bfa9ead12a
1 changed files with 6 additions and 6 deletions
|
|
@ -35,20 +35,20 @@ import re
|
|||
# regular expressions to find out which completer we need
|
||||
|
||||
# line which starts with an import statement
|
||||
RE_MODULE = re.compile('^import(\s|$)|from.+')
|
||||
RE_MODULE = re.compile(r'''^import(\s|$)|from.+''')
|
||||
|
||||
# The following regular expression means an 'unquoted' word
|
||||
RE_UNQUOTED_WORD = re.compile(
|
||||
# don't start with a quote
|
||||
'''(?:^|[^"'a-zA-Z0-9_])'''
|
||||
r'''(?:^|[^"'a-zA-Z0-9_])'''
|
||||
# start with a \w = [a-zA-Z0-9_]
|
||||
'''((?:\w+'''
|
||||
r'''((?:\w+'''
|
||||
# allow also dots and closed bracket pairs []
|
||||
'''(?:\w|[.]|\[.+?\])*'''
|
||||
r'''(?:\w|[.]|\[.+?\])*'''
|
||||
# allow empty string
|
||||
'''|)'''
|
||||
r'''|)'''
|
||||
# allow an unfinished index at the end (including quotes)
|
||||
'''(?:\[[^\]]*$)?)$''',
|
||||
r'''(?:\[[^\]]*$)?)$''',
|
||||
# allow unicode as theoretically this is possible
|
||||
re.UNICODE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue