mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Add Deoplete's input_patterns for cpp
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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]',
|
||||||
|
|||||||
Reference in New Issue
Block a user