Merge pull request #2643 from delphinus/feature/update-deoplete-for-cpp

Add Deoplete's input_patterns for cpp
This commit is contained in:
w0rp 2019-07-14 15:05:00 +01:00 committed by GitHub
commit bafa1c619d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

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