From 19267aa0ea7bdbb9be76619b277a45ad00ea4b1f Mon Sep 17 00:00:00 2001
From: rdipardo <59004801+rdipardo@users.noreply.github.com>
Date: Sat, 31 May 2025 23:12:42 -0400
Subject: [PATCH] Make raw string syntax highlighting work for Golang
Enable the raw string lexer property for Golang.
Also: add a new 'STRING RAW' style to all Golang themes.
Fix #16609, close #16615
---
PowerEditor/installer/themes/Bespin.xml | 1 +
PowerEditor/installer/themes/Black board.xml | 1 +
PowerEditor/installer/themes/Choco.xml | 1 +
PowerEditor/installer/themes/DansLeRuSH-Dark.xml | 1 +
PowerEditor/installer/themes/DarkModeDefault.xml | 1 +
PowerEditor/installer/themes/Deep Black.xml | 1 +
PowerEditor/installer/themes/Hello Kitty.xml | 1 +
PowerEditor/installer/themes/HotFudgeSundae.xml | 1 +
PowerEditor/installer/themes/Mono Industrial.xml | 1 +
PowerEditor/installer/themes/Monokai.xml | 1 +
PowerEditor/installer/themes/MossyLawn.xml | 1 +
PowerEditor/installer/themes/Navajo.xml | 1 +
PowerEditor/installer/themes/Obsidian.xml | 1 +
PowerEditor/installer/themes/Plastic Code Wrap.xml | 1 +
PowerEditor/installer/themes/Ruby Blue.xml | 1 +
PowerEditor/installer/themes/Solarized-light.xml | 1 +
PowerEditor/installer/themes/Solarized.xml | 1 +
PowerEditor/installer/themes/Twilight.xml | 1 +
PowerEditor/installer/themes/Vibrant Ink.xml | 1 +
PowerEditor/installer/themes/Zenburn.xml | 1 +
PowerEditor/installer/themes/khaki.xml | 1 +
PowerEditor/installer/themes/vim Dark Blue.xml | 1 +
PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp | 5 +++++
PowerEditor/src/stylers.model.xml | 1 +
24 files changed, 28 insertions(+)
diff --git a/PowerEditor/installer/themes/Bespin.xml b/PowerEditor/installer/themes/Bespin.xml
index 46585f6d2..3639f2dc6 100644
--- a/PowerEditor/installer/themes/Bespin.xml
+++ b/PowerEditor/installer/themes/Bespin.xml
@@ -102,6 +102,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/Black board.xml b/PowerEditor/installer/themes/Black board.xml
index 253af3600..2ae7c022a 100644
--- a/PowerEditor/installer/themes/Black board.xml
+++ b/PowerEditor/installer/themes/Black board.xml
@@ -104,6 +104,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/Choco.xml b/PowerEditor/installer/themes/Choco.xml
index 33b314951..eae236957 100644
--- a/PowerEditor/installer/themes/Choco.xml
+++ b/PowerEditor/installer/themes/Choco.xml
@@ -104,6 +104,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml
index a99ef7eec..d018310ef 100644
--- a/PowerEditor/installer/themes/DansLeRuSH-Dark.xml
+++ b/PowerEditor/installer/themes/DansLeRuSH-Dark.xml
@@ -442,6 +442,7 @@ Installation : Copy this file to "%APPDATA%\Notepad++\themes" and in a portable
+
diff --git a/PowerEditor/installer/themes/DarkModeDefault.xml b/PowerEditor/installer/themes/DarkModeDefault.xml
index 2b1c59cbe..09ce71e0d 100644
--- a/PowerEditor/installer/themes/DarkModeDefault.xml
+++ b/PowerEditor/installer/themes/DarkModeDefault.xml
@@ -627,6 +627,7 @@ License: GPL2
+
diff --git a/PowerEditor/installer/themes/Deep Black.xml b/PowerEditor/installer/themes/Deep Black.xml
index 0fd9071a2..f5fad2e04 100644
--- a/PowerEditor/installer/themes/Deep Black.xml
+++ b/PowerEditor/installer/themes/Deep Black.xml
@@ -73,6 +73,7 @@ https://notepad-plus-plus.org/donate/
+
diff --git a/PowerEditor/installer/themes/Hello Kitty.xml b/PowerEditor/installer/themes/Hello Kitty.xml
index 00b108757..d3e0955f5 100644
--- a/PowerEditor/installer/themes/Hello Kitty.xml
+++ b/PowerEditor/installer/themes/Hello Kitty.xml
@@ -363,6 +363,7 @@ 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 848ed15f3..b905f786a 100644
--- a/PowerEditor/installer/themes/HotFudgeSundae.xml
+++ b/PowerEditor/installer/themes/HotFudgeSundae.xml
@@ -453,6 +453,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/Mono Industrial.xml b/PowerEditor/installer/themes/Mono Industrial.xml
index e1ed0255e..04364a1ac 100644
--- a/PowerEditor/installer/themes/Mono Industrial.xml
+++ b/PowerEditor/installer/themes/Mono Industrial.xml
@@ -104,6 +104,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/Monokai.xml b/PowerEditor/installer/themes/Monokai.xml
index 3fbe407d5..f801b9df3 100644
--- a/PowerEditor/installer/themes/Monokai.xml
+++ b/PowerEditor/installer/themes/Monokai.xml
@@ -104,6 +104,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/MossyLawn.xml b/PowerEditor/installer/themes/MossyLawn.xml
index deb52f072..4c02ad756 100644
--- a/PowerEditor/installer/themes/MossyLawn.xml
+++ b/PowerEditor/installer/themes/MossyLawn.xml
@@ -454,6 +454,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/Navajo.xml b/PowerEditor/installer/themes/Navajo.xml
index 7a107811b..c48e93663 100644
--- a/PowerEditor/installer/themes/Navajo.xml
+++ b/PowerEditor/installer/themes/Navajo.xml
@@ -451,6 +451,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/Obsidian.xml b/PowerEditor/installer/themes/Obsidian.xml
index d41368811..cb3777442 100644
--- a/PowerEditor/installer/themes/Obsidian.xml
+++ b/PowerEditor/installer/themes/Obsidian.xml
@@ -368,6 +368,7 @@ Notepad++ Custom Style
+
diff --git a/PowerEditor/installer/themes/Plastic Code Wrap.xml b/PowerEditor/installer/themes/Plastic Code Wrap.xml
index 6544766bb..9bea31bed 100644
--- a/PowerEditor/installer/themes/Plastic Code Wrap.xml
+++ b/PowerEditor/installer/themes/Plastic Code Wrap.xml
@@ -104,6 +104,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/Ruby Blue.xml b/PowerEditor/installer/themes/Ruby Blue.xml
index de0636928..f27a1f219 100644
--- a/PowerEditor/installer/themes/Ruby Blue.xml
+++ b/PowerEditor/installer/themes/Ruby Blue.xml
@@ -99,6 +99,7 @@ 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 b75741e68..90f7057ff 100644
--- a/PowerEditor/installer/themes/Solarized-light.xml
+++ b/PowerEditor/installer/themes/Solarized-light.xml
@@ -462,6 +462,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/Solarized.xml b/PowerEditor/installer/themes/Solarized.xml
index 2f17a1479..f82b6ea0a 100644
--- a/PowerEditor/installer/themes/Solarized.xml
+++ b/PowerEditor/installer/themes/Solarized.xml
@@ -596,6 +596,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/Twilight.xml b/PowerEditor/installer/themes/Twilight.xml
index 862733f3e..412fd728c 100644
--- a/PowerEditor/installer/themes/Twilight.xml
+++ b/PowerEditor/installer/themes/Twilight.xml
@@ -105,6 +105,7 @@ Credits:
+
diff --git a/PowerEditor/installer/themes/Vibrant Ink.xml b/PowerEditor/installer/themes/Vibrant Ink.xml
index 05c6ae7cc..132dc1d3e 100644
--- a/PowerEditor/installer/themes/Vibrant Ink.xml
+++ b/PowerEditor/installer/themes/Vibrant Ink.xml
@@ -80,6 +80,7 @@ http://sourceforge.net/donate/index.php?group_id=95717
+
diff --git a/PowerEditor/installer/themes/Zenburn.xml b/PowerEditor/installer/themes/Zenburn.xml
index 68fb73e73..411fccc01 100644
--- a/PowerEditor/installer/themes/Zenburn.xml
+++ b/PowerEditor/installer/themes/Zenburn.xml
@@ -607,6 +607,7 @@ License: GPL2
+
diff --git a/PowerEditor/installer/themes/khaki.xml b/PowerEditor/installer/themes/khaki.xml
index 88c29e431..579a6eee7 100644
--- a/PowerEditor/installer/themes/khaki.xml
+++ b/PowerEditor/installer/themes/khaki.xml
@@ -451,6 +451,7 @@ Installation:
+
diff --git a/PowerEditor/installer/themes/vim Dark Blue.xml b/PowerEditor/installer/themes/vim Dark Blue.xml
index 5b46f9c21..44a5b4502 100644
--- a/PowerEditor/installer/themes/vim Dark Blue.xml
+++ b/PowerEditor/installer/themes/vim Dark Blue.xml
@@ -359,6 +359,7 @@
+
diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
index 02032503a..8ecfbd00a 100644
--- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
+++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
@@ -1148,6 +1148,11 @@ void ScintillaEditView::setCppLexer(LangType langType)
setLexerFromLangID(L_CPP);
+ if (langType == L_GOLANG)
+ {
+ execute(SCI_SETPROPERTY, reinterpret_cast("lexer.cpp.backquoted.strings"), reinterpret_cast("1"));
+ }
+
if (langType != L_RC)
{
if (doxygenKeyWords)
diff --git a/PowerEditor/src/stylers.model.xml b/PowerEditor/src/stylers.model.xml
index a4c76e771..abeb73bc2 100644
--- a/PowerEditor/src/stylers.model.xml
+++ b/PowerEditor/src/stylers.model.xml
@@ -622,6 +622,7 @@
+