MCPcopy
hub / github.com/ycm-core/YouCompleteMe / _AddSyntaxDataIfNeeded

Method _AddSyntaxDataIfNeeded

python/ycm/youcompleteme.py:982–992  ·  view source on GitHub ↗
( self, extra_data )

Source from the content-addressed store, hash-verified

980
981
982 def _AddSyntaxDataIfNeeded( self, extra_data ):
983 if not self._user_options[ 'seed_identifiers_with_syntax' ]:
984 return
985 filetype = vimsupport.CurrentFiletypes()[ 0 ]
986 if filetype in self._filetypes_with_keywords_loaded:
987 return
988
989 if self.IsServerReady():
990 self._filetypes_with_keywords_loaded.add( filetype )
991 extra_data[ 'syntax_keywords' ] = list(
992 syntax_parse.SyntaxKeywordsForCurrentBuffer() )
993
994
995 def _AddTagsFilesIfNeeded( self, extra_data ):

Callers 1

OnFileReadyToParseMethod · 0.95

Calls 1

IsServerReadyMethod · 0.95

Tested by

no test coverage detected