Show More
@@ -52,6 +52,11 b' class CompletionLexer(object):' | |||||
52 | # in C++. This is why we have to build up an operator from |
|
52 | # in C++. This is why we have to build up an operator from | |
53 | # potentially several tokens. |
|
53 | # potentially several tokens. | |
54 | elif token is Token.Operator or token is Token.Punctuation: |
|
54 | elif token is Token.Operator or token is Token.Punctuation: | |
|
55 | # Handle a trailing separator, e.g 'foo.bar.' | |||
|
56 | if current_op in self._name_separators: | |||
|
57 | if not context: | |||
|
58 | context.insert(0, '') | |||
|
59 | else: | |||
55 | current_op = text + current_op |
|
60 | current_op = text + current_op | |
56 |
|
61 | |||
57 | # Break on anything that is not a Operator, Punctuation, or Name. |
|
62 | # Break on anything that is not a Operator, Punctuation, or Name. |
General Comments 0
You need to be logged in to leave comments.
Login now