From 9e1db77f818f913bf065620e58cfa2a753582613 Mon Sep 17 00:00:00 2001 From: rdipardo <59004801+rdipardo@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:22:05 -0500 Subject: [PATCH] Fix literals wrong style for server side JavaScript Add styles for SCE_HJ_TEMPLATELITERAL and SCE_HJA_TEMPLATELITERAL in styles.xml. Fixes #15821, close #15822 --- PowerEditor/installer/themes/Bespin.xml | 2 ++ PowerEditor/installer/themes/Black board.xml | 2 ++ PowerEditor/installer/themes/Choco.xml | 2 ++ PowerEditor/installer/themes/DansLeRuSH-Dark.xml | 2 ++ PowerEditor/installer/themes/DarkModeDefault.xml | 2 ++ PowerEditor/installer/themes/Deep Black.xml | 2 ++ PowerEditor/installer/themes/Hello Kitty.xml | 2 ++ PowerEditor/installer/themes/HotFudgeSundae.xml | 2 ++ PowerEditor/installer/themes/Mono Industrial.xml | 2 ++ PowerEditor/installer/themes/Monokai.xml | 2 ++ PowerEditor/installer/themes/MossyLawn.xml | 2 ++ PowerEditor/installer/themes/Navajo.xml | 2 ++ PowerEditor/installer/themes/Obsidian.xml | 2 ++ PowerEditor/installer/themes/Plastic Code Wrap.xml | 2 ++ PowerEditor/installer/themes/Ruby Blue.xml | 2 ++ PowerEditor/installer/themes/Solarized-light.xml | 2 ++ PowerEditor/installer/themes/Solarized.xml | 2 ++ PowerEditor/installer/themes/Twilight.xml | 2 ++ PowerEditor/installer/themes/Vibrant Ink.xml | 2 ++ PowerEditor/installer/themes/Zenburn.xml | 2 ++ PowerEditor/installer/themes/khaki.xml | 2 ++ PowerEditor/installer/themes/vim Dark Blue.xml | 2 ++ PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp | 2 ++ PowerEditor/src/stylers.model.xml | 2 ++ 24 files changed, 48 insertions(+) diff --git a/PowerEditor/installer/themes/Bespin.xml b/PowerEditor/installer/themes/Bespin.xml index f3f87095787a..343e13d09c30 100644 --- a/PowerEditor/installer/themes/Bespin.xml +++ b/PowerEditor/installer/themes/Bespin.xml @@ -304,6 +304,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/Black board.xml b/PowerEditor/installer/themes/Black board.xml index b83c7c619a08..eb723018553c 100644 --- a/PowerEditor/installer/themes/Black board.xml +++ b/PowerEditor/installer/themes/Black board.xml @@ -312,6 +312,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/Choco.xml b/PowerEditor/installer/themes/Choco.xml index f37058584c1f..01bf789d25c9 100644 --- a/PowerEditor/installer/themes/Choco.xml +++ b/PowerEditor/installer/themes/Choco.xml @@ -304,6 +304,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml index 3945443bf846..6273c926cda4 100644 --- a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml +++ b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml @@ -528,6 +528,8 @@ Installation : Copy this file to "%APPDATA%\Notepad++\themes" and in a portable XmlUtil loadXmlString TopologyXmlTree NotificationArea loadXmlFile debug + + diff --git a/PowerEditor/installer/themes/DarkModeDefault.xml b/PowerEditor/installer/themes/DarkModeDefault.xml index d5eb0431fe1a..5a5e651930f9 100644 --- a/PowerEditor/installer/themes/DarkModeDefault.xml +++ b/PowerEditor/installer/themes/DarkModeDefault.xml @@ -751,6 +751,8 @@ License: GPL2 + + diff --git a/PowerEditor/installer/themes/Deep Black.xml b/PowerEditor/installer/themes/Deep Black.xml index b430a8fbbfd4..768443ffa8de 100644 --- a/PowerEditor/installer/themes/Deep Black.xml +++ b/PowerEditor/installer/themes/Deep Black.xml @@ -306,6 +306,8 @@ https://notepad-plus-plus.org/donate/ + + diff --git a/PowerEditor/installer/themes/Hello Kitty.xml b/PowerEditor/installer/themes/Hello Kitty.xml index 8db9e63c7fff..a00f09ebaa93 100644 --- a/PowerEditor/installer/themes/Hello Kitty.xml +++ b/PowerEditor/installer/themes/Hello Kitty.xml @@ -435,6 +435,8 @@ so your enhanced file can be included in Notepad++ future release. + + diff --git a/PowerEditor/installer/themes/HotFudgeSundae.xml b/PowerEditor/installer/themes/HotFudgeSundae.xml index 261d6b8a1053..81872da9f304 100644 --- a/PowerEditor/installer/themes/HotFudgeSundae.xml +++ b/PowerEditor/installer/themes/HotFudgeSundae.xml @@ -537,6 +537,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/Mono Industrial.xml b/PowerEditor/installer/themes/Mono Industrial.xml index b273ed274267..83487ef24512 100644 --- a/PowerEditor/installer/themes/Mono Industrial.xml +++ b/PowerEditor/installer/themes/Mono Industrial.xml @@ -336,6 +336,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/Monokai.xml b/PowerEditor/installer/themes/Monokai.xml index dc31fc0c91c5..aca22c64bf39 100644 --- a/PowerEditor/installer/themes/Monokai.xml +++ b/PowerEditor/installer/themes/Monokai.xml @@ -336,6 +336,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/MossyLawn.xml b/PowerEditor/installer/themes/MossyLawn.xml index 98d013d3417c..cc41700cdd96 100644 --- a/PowerEditor/installer/themes/MossyLawn.xml +++ b/PowerEditor/installer/themes/MossyLawn.xml @@ -538,6 +538,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/Navajo.xml b/PowerEditor/installer/themes/Navajo.xml index 8a7de8eb45b6..8bd462dd9a0d 100644 --- a/PowerEditor/installer/themes/Navajo.xml +++ b/PowerEditor/installer/themes/Navajo.xml @@ -535,6 +535,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/Obsidian.xml b/PowerEditor/installer/themes/Obsidian.xml index 4b9531d1b79e..2299bee8f5f1 100644 --- a/PowerEditor/installer/themes/Obsidian.xml +++ b/PowerEditor/installer/themes/Obsidian.xml @@ -440,6 +440,8 @@ Notepad++ Custom Style + + diff --git a/PowerEditor/installer/themes/Plastic Code Wrap.xml b/PowerEditor/installer/themes/Plastic Code Wrap.xml index 4cf72c56cafe..7f75e3ef7e60 100644 --- a/PowerEditor/installer/themes/Plastic Code Wrap.xml +++ b/PowerEditor/installer/themes/Plastic Code Wrap.xml @@ -336,6 +336,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/Ruby Blue.xml b/PowerEditor/installer/themes/Ruby Blue.xml index 17ade4cd0c38..ba99dcf3ea2e 100644 --- a/PowerEditor/installer/themes/Ruby Blue.xml +++ b/PowerEditor/installer/themes/Ruby Blue.xml @@ -331,6 +331,8 @@ http://sourceforge.net/donate/index.php?group_id=95717 + + diff --git a/PowerEditor/installer/themes/Solarized-light.xml b/PowerEditor/installer/themes/Solarized-light.xml index af86c9508537..dfec96d0174b 100644 --- a/PowerEditor/installer/themes/Solarized-light.xml +++ b/PowerEditor/installer/themes/Solarized-light.xml @@ -546,6 +546,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/Solarized.xml b/PowerEditor/installer/themes/Solarized.xml index e2867dea2ba4..b8a5e35c93f4 100644 --- a/PowerEditor/installer/themes/Solarized.xml +++ b/PowerEditor/installer/themes/Solarized.xml @@ -718,6 +718,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/Twilight.xml b/PowerEditor/installer/themes/Twilight.xml index 8cc00ba64d41..529103d166b5 100644 --- a/PowerEditor/installer/themes/Twilight.xml +++ b/PowerEditor/installer/themes/Twilight.xml @@ -337,6 +337,8 @@ Credits: + + diff --git a/PowerEditor/installer/themes/Vibrant Ink.xml b/PowerEditor/installer/themes/Vibrant Ink.xml index c36f9c75a559..2266c911dbae 100644 --- a/PowerEditor/installer/themes/Vibrant Ink.xml +++ b/PowerEditor/installer/themes/Vibrant Ink.xml @@ -312,6 +312,8 @@ http://sourceforge.net/donate/index.php?group_id=95717 + + diff --git a/PowerEditor/installer/themes/Zenburn.xml b/PowerEditor/installer/themes/Zenburn.xml index 7b2d409c2df5..5dafb73d9266 100644 --- a/PowerEditor/installer/themes/Zenburn.xml +++ b/PowerEditor/installer/themes/Zenburn.xml @@ -731,6 +731,8 @@ License: GPL2 + + diff --git a/PowerEditor/installer/themes/khaki.xml b/PowerEditor/installer/themes/khaki.xml index 0e7fa5637816..b0860e6d2fd9 100644 --- a/PowerEditor/installer/themes/khaki.xml +++ b/PowerEditor/installer/themes/khaki.xml @@ -535,6 +535,8 @@ Installation: + + diff --git a/PowerEditor/installer/themes/vim Dark Blue.xml b/PowerEditor/installer/themes/vim Dark Blue.xml index 8717feef820c..0a5db61d5001 100644 --- a/PowerEditor/installer/themes/vim Dark Blue.xml +++ b/PowerEditor/installer/themes/vim Dark Blue.xml @@ -431,6 +431,8 @@ + + diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index d153a1e819f5..93a91a98a387 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -882,6 +882,8 @@ void ScintillaEditView::setEmbeddedJSLexer() execute(SCI_STYLESETEOLFILLED, SCE_HJ_DEFAULT, true); execute(SCI_STYLESETEOLFILLED, SCE_HJ_COMMENT, true); execute(SCI_STYLESETEOLFILLED, SCE_HJ_COMMENTDOC, true); + execute(SCI_STYLESETEOLFILLED, SCE_HJ_TEMPLATELITERAL, true); + execute(SCI_STYLESETEOLFILLED, SCE_HJA_TEMPLATELITERAL, true); } void ScintillaEditView::setJsonLexer(bool isJson5) diff --git a/PowerEditor/src/stylers.model.xml b/PowerEditor/src/stylers.model.xml index e56641aae1a3..983c5874f042 100644 --- a/PowerEditor/src/stylers.model.xml +++ b/PowerEditor/src/stylers.model.xml @@ -746,6 +746,8 @@ + +