autocompete was matching import_foo as import keyword.
breaking autocomp. on import_scene_obj for eg.
This commit is contained in:
@@ -30,7 +30,7 @@ import re
|
|||||||
# regular expressions to find out which completer we need
|
# regular expressions to find out which completer we need
|
||||||
|
|
||||||
# line which starts with an import statement
|
# line which starts with an import statement
|
||||||
RE_MODULE = re.compile('^import|from.+')
|
RE_MODULE = re.compile('^import(\s|$)|from.+')
|
||||||
|
|
||||||
# The following regular expression means an 'unquoted' word
|
# The following regular expression means an 'unquoted' word
|
||||||
RE_UNQUOTED_WORD = re.compile(
|
RE_UNQUOTED_WORD = re.compile(
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ def autocomplete(context):
|
|||||||
line=current_line.line,
|
line=current_line.line,
|
||||||
cursor=current_line.current_character,
|
cursor=current_line.current_character,
|
||||||
namespace=console.locals,
|
namespace=console.locals,
|
||||||
private='-d' in sys.argv)
|
private=bpy.app.debug)
|
||||||
|
|
||||||
# Now we need to copy back the line from blender back into the
|
# Now we need to copy back the line from blender back into the
|
||||||
# text editor. This will change when we dont use the text editor
|
# text editor. This will change when we dont use the text editor
|
||||||
|
|||||||
Reference in New Issue
Block a user