summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-09 16:48:28 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-09 16:48:28 +0200
commitf41cd808de781b0a4b02943cc116b7422692d5f5 (patch)
tree28131759b365ccb29c3fe46814c0a140d8367d06 /Applications
parent3422019e35a7d810566cbafc0d0d9607aac2e116 (diff)
downloadserenity-f41cd808de781b0a4b02943cc116b7422692d5f5.zip
TextEditor: Use JS syntax highlighting for .json files :^)
Diffstat (limited to 'Applications')
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index 14cc7034e0..3fb924f793 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/Applications/TextEditor/TextEditorWidget.cpp
@@ -473,7 +473,7 @@ void TextEditorWidget::set_path(const FileSystemPath& file)
if (m_extension == "cpp" || m_extension == "h") {
m_cpp_highlight->activate();
- } else if (m_extension == "js") {
+ } else if (m_extension == "js" || m_extension == "json") {
m_js_highlight->activate();
} else if (m_extension == "ini") {
m_ini_highlight->activate();