From 0408b6dd00e99abd74102bba4df3700a87a903c9 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 17 Nov 2020 06:36:09 +0100 Subject: [PATCH] fix, highlighting of q"()" strings --- CHANGELOG.md | 1 + src/u_d2syn.pas | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index db64a50a..f30b64dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ See [LDC announcement](https://forum.dlang.org/post/ssvxmrdpklhsrqlgrzas@forum.d ## Bugs fixed - Messages, when selected, the recently added _Search Results_ category could not be emptied. +- Highlighter, `q"()"`, `q"[]"`, `q"<>"`, `q"{}>"` strings highlighting was broken. # v3.9.8 diff --git a/src/u_d2syn.pas b/src/u_d2syn.pas index 2b86612a..196189da 100644 --- a/src/u_d2syn.pas +++ b/src/u_d2syn.pas @@ -143,6 +143,7 @@ begin nestedQGeStrings:= rng.nestedQGeStrings; nestedQParensStrings := rng.nestedQParensStrings; nestedQSquareStrings := rng.nestedQSquareStrings; + nestedQCurlyStrings := rng.nestedQCurlyStrings; end; end; @@ -176,6 +177,10 @@ begin inherited; nestedCommentsCount := 0; namedRegionCount := 0; + nestedQGeStrings:= 0; + nestedQParensStrings := 0; + nestedQSquareStrings := 0; + nestedQCurlyStrings := 0; rangeKinds := []; rString := false; end; @@ -187,6 +192,10 @@ begin nestedCommentsCount := source.nestedCommentsCount; namedRegionCount := source.namedRegionCount; rangeKinds := source.rangeKinds; + nestedQGeStrings:= source.nestedQGeStrings; + nestedQParensStrings := source.nestedQParensStrings; + nestedQSquareStrings := source.nestedQSquareStrings; + nestedQCurlyStrings := source.nestedQCurlyStrings; rString := source.rString; end; end;