Add Deoplete's input_patterns for cpp

This commit is contained in:
delphinus 2019-07-14 22:20:44 +09:00
parent 36a50111b9
commit 240bb8abae
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ class Source(Base):
'_': r'\.\w*$', '_': r'\.\w*$',
'rust': r'(\.|::)\w*$', 'rust': r'(\.|::)\w*$',
'typescript': r'(\.|\'|")\w*$', 'typescript': r'(\.|\'|")\w*$',
'cpp': r'(\.|::|->)\w*$',
} }
# Returns an integer for the start position, as with omnifunc. # Returns an integer for the start position, as with omnifunc.

View file

@ -45,6 +45,7 @@ class DeopleteSourceTest(unittest.TestCase):
'_': r'\.\w*$', '_': r'\.\w*$',
'rust': r'(\.|::)\w*$', 'rust': r'(\.|::)\w*$',
'typescript': r'(\.|\'|")\w*$', 'typescript': r'(\.|\'|")\w*$',
'cpp': r'(\.|::|->)\w*$',
}, },
'is_bytepos': True, 'is_bytepos': True,
'mark': '[L]', 'mark': '[L]',