summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2019-07-14 22:20:44 +0900
committerdelphinus <me@delphinus.dev>2019-07-14 22:20:44 +0900
commit240bb8abae904cfa71dcaa50038f3bb8fa188ee3 (patch)
tree80d3be494e123db0355021dff46981444efcd0ed
parent36a50111b91d05afc4ed92a5b5415d0c5527dc6b (diff)
downloadale-240bb8abae904cfa71dcaa50038f3bb8fa188ee3.zip
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]',