1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Introjucer: added hack to enable c++ syntax highlighting in the editor for extensionless libc++ header files.

This commit is contained in:
jules 2015-09-14 19:52:37 +01:00
parent 3af553e34f
commit 2877653cc3
3 changed files with 17 additions and 1 deletions

View file

@ -120,7 +120,7 @@ SourceCodeEditor::SourceCodeEditor (OpenDocumentManager::Document* doc, CodeDocu
GenericCodeEditorComponent* ed = nullptr;
const File file (document->getFile());
if (file.hasFileExtension (sourceOrHeaderFileExtensions))
if (fileNeedsCppSyntaxHighlighting (file))
{
ed = new CppCodeEditorComponent (file, codeDocument);
}