MCPcopy Create free account
hub / github.com/SpartanJ/eepp / resetSyntaxDefinition

Method resetSyntaxDefinition

src/eepp/ui/uicodeeditor.cpp:3222–3232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3220}
3221
3222void UICodeEditor::resetSyntaxDefinition() {
3223 std::string oldLang( mDoc->getSyntaxDefinition().getLanguageName() );
3224 mDoc->resetSyntax();
3225 if ( oldLang != mDoc->getSyntaxDefinition().getLanguageName() ) {
3226 mDoc->getHighlighter()->reset();
3227 invalidateDraw();
3228 DocSyntaxDefEvent event( this, mDoc.get(), Event::OnDocumentSyntaxDefinitionChange, oldLang,
3229 mDoc->getSyntaxDefinition().getLanguageName() );
3230 sendEvent( &event );
3231 }
3232}
3233
3234const SyntaxDefinition& UICodeEditor::getSyntaxDefinition() const {
3235 return mDoc->getSyntaxDefinition();

Callers 1

createProjectMenuMethod · 0.80

Calls 4

resetSyntaxMethod · 0.80
getHighlighterMethod · 0.80
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected