diff options
author | delphinus <me@delphinus.dev> | 2019-07-14 22:20:44 +0900 |
---|---|---|
committer | delphinus <me@delphinus.dev> | 2019-07-14 22:20:44 +0900 |
commit | 240bb8abae904cfa71dcaa50038f3bb8fa188ee3 (patch) | |
tree | 80d3be494e123db0355021dff46981444efcd0ed | |
parent | 36a50111b91d05afc4ed92a5b5415d0c5527dc6b (diff) | |
download | ale-240bb8abae904cfa71dcaa50038f3bb8fa188ee3.zip |
Add Deoplete's input_patterns for cpp
-rw-r--r-- | rplugin/python3/deoplete/sources/ale.py | 1 | ||||
-rw-r--r-- | test/python/test_deoplete_source.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py index 66a09551..3955ed2d 100644 --- a/rplugin/python3/deoplete/sources/ale.py +++ b/rplugin/python3/deoplete/sources/ale.py @@ -30,6 +30,7 @@ class Source(Base): '_': r'\.\w*$', 'rust': r'(\.|::)\w*$', 'typescript': r'(\.|\'|")\w*$', + 'cpp': r'(\.|::|->)\w*$', } # Returns an integer for the start position, as with omnifunc. diff --git a/test/python/test_deoplete_source.py b/test/python/test_deoplete_source.py index 280df2e3..9e56a10d 100644 --- a/test/python/test_deoplete_source.py +++ b/test/python/test_deoplete_source.py @@ -45,6 +45,7 @@ class DeopleteSourceTest(unittest.TestCase): '_': r'\.\w*$', 'rust': r'(\.|::)\w*$', 'typescript': r'(\.|\'|")\w*$', + 'cpp': r'(\.|::|->)\w*$', }, 'is_bytepos': True, 'mark': '[L]', |