autocompete was matching import_foo as import keyword.

breaking autocomp. on import_scene_obj for eg.
This commit is contained in:
2010-02-14 12:23:25 +00:00
parent 39c04315e2
commit 3871cb78bc
2 changed files with 2 additions and 2 deletions

View File

@@ -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(

View File

@@ -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