summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-07-14 15:05:00 +0100
committerGitHub <noreply@github.com>2019-07-14 15:05:00 +0100
commitbafa1c619def32a1c6785ba2bce8fa24bb773700 (patch)
tree80d3be494e123db0355021dff46981444efcd0ed
parent36a50111b91d05afc4ed92a5b5415d0c5527dc6b (diff)
parent240bb8abae904cfa71dcaa50038f3bb8fa188ee3 (diff)
downloadale-bafa1c619def32a1c6785ba2bce8fa24bb773700.zip
Merge pull request #2643 from delphinus/feature/update-deoplete-for-cpp
Add Deoplete's input_patterns for cpp
-rw-r--r--rplugin/python3/deoplete/sources/ale.py1
-rw-r--r--test/python/test_deoplete_source.py1
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]',