[colorer/Colorer-schemes] master: cmake: fix escaping strings (a4ecbff)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Oct 6, 2025, 3:01:02 PMOct 6
to farco...@googlegroups.com
Repository : https://github.com/colorer/Colorer-schemes
On branch : master
Link : https://github.com/colorer/Colorer-schemes/commit/a4ecbffae05766cf92482444ba276032b8949f90

>---------------------------------------------------------------

commit a4ecbffae05766cf92482444ba276032b8949f90
Author: Aleksey Dobrunov <cta...@ctapmex.com>
Date: Mon Oct 6 23:38:51 2025 +0500

cmake: fix escaping strings

https://github.com/elfmz/far2l/issues/2960


>---------------------------------------------------------------

a4ecbffae05766cf92482444ba276032b8949f90
CHANGELOG.md | 1 +
base/hrc/scripts/gen/cmake/cmake.hrc | 2 ++
2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9080022..5e9cfa0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -53,6 +53,7 @@
- [black.hrd] fix colors for cross
- [yml] fix error in generated scheme; update scheme to 2.4.0
- [verilog] add define, include, timescale support
+- [cmake] fix escaping strings

### Added
- New package type of base - all packed. Hrc and hrd files in one archive. Directory 'auto' not in archive.
diff --git a/base/hrc/scripts/gen/cmake/cmake.hrc b/base/hrc/scripts/gen/cmake/cmake.hrc
index c85f9b8..f15a0f7 100644
--- a/base/hrc/scripts/gen/cmake/cmake.hrc
+++ b/base/hrc/scripts/gen/cmake/cmake.hrc
@@ -52,6 +52,8 @@
</scheme>

<scheme name="Strings">
+ <regexp match="/(\\&#34;).*(\\&#34;)/" region="def:StringContent" region1="def:PairStart" region2="def:PairEnd"/>
+
<block start="/(?{def:StringEdge}[Ll]?&#34;)/" end="/(?{def:StringEdge}&#34;)/" scheme="StringContent" region="def:String" inner-region="yes"
region00="def:PairStart" region10="def:PairEnd" />



Reply all
Reply to author
Forward
0 new messages