Fix Objective-C highlighter.

Added Objective-C++ highlighter (SpartanJ/ecode#616).
Replaced "Treat .h file as C++" in favor of "Treat .h files as..." with multiple options, including auto-detection (SpartanJ/ecode#614).
Refresh semantic-highlighting after syntax highlighter change.
This commit is contained in:
Martín Lucas Golini
2025-08-17 16:56:12 -03:00
parent cb9f6420ba
commit dbb36cdcf4
23 changed files with 713 additions and 94 deletions

View File

@@ -2577,7 +2577,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
UITab* tab = (UITab*)editor->getData();
tab->setIcon( icon->getSize( mMenuIconSize ) );
}
editor->getDocument().setHAsCpp( mProjectDocConfig.hAsCPP );
editor->getDocument().setHExtLanguageType( mProjectDocConfig.hExtLanguageType );
auto ext = editor->getDocument().getFileInfo().getExtension();
if ( SyntaxDefinitionManager::instance()->extensionCanRepresentManyLanguages( ext ) ) {