diff options
author | delphinus <me@delphinus.dev> | 2019-06-25 17:57:38 +0900 |
---|---|---|
committer | delphinus <me@delphinus.dev> | 2019-06-25 18:04:04 +0900 |
commit | a3521de64e8dfc2e8dbfc562fbc73502ba3e09ce (patch) | |
tree | 560d06bf77e7cecf111acc512c66761475acf572 /rplugin/python3/deoplete/sources | |
parent | 4e1c46947dca552d86cd49a80714237801e01998 (diff) | |
download | ale-a3521de64e8dfc2e8dbfc562fbc73502ba3e09ce.zip |
Use input_patterns & add comments for updating it
Diffstat (limited to 'rplugin/python3/deoplete/sources')
-rw-r--r-- | rplugin/python3/deoplete/sources/ale.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py index 653bc4fc..66a09551 100644 --- a/rplugin/python3/deoplete/sources/ale.py +++ b/rplugin/python3/deoplete/sources/ale.py @@ -24,7 +24,13 @@ class Source(Base): self.rank = 1000 self.is_bytepos = True self.min_pattern_length = 1 - self.input_pattern = r'(\.|::|->)\w*$' + # Do not forget to update s:trigger_character_map in completion.vim in + # updating entries in this map. + self.input_patterns = { + '_': r'\.\w*$', + 'rust': r'(\.|::)\w*$', + 'typescript': r'(\.|\'|")\w*$', + } # Returns an integer for the start position, as with omnifunc. def get_complete_position(self, context): |