Преглед изворни кода

HackStudio: Show .h files with C++ syntax highlighting

Andreas Kling пре 5 година
родитељ
комит
fe83d5087b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      DevTools/HackStudio/main.cpp

+ 1 - 1
DevTools/HackStudio/main.cpp

@@ -308,7 +308,7 @@ void open_file(const String& filename)
     auto file = g_project->get_file(filename);
     current_editor().set_document(const_cast<GTextDocument&>(file->document()));
 
-    if (filename.ends_with(".cpp")) {
+    if (filename.ends_with(".cpp") || filename.ends_with(".h")) {
         current_editor().on_change = [] { rehighlight(); };
         rehighlight();
     } else {