From 3a6a20c466e96f1250bd3154657ce9cad4ffa061 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 10 Mar 2025 10:46:57 +0100 Subject: [PATCH] fix #144 - highlight D IES --- src/u_d2syn.pas | 4 ++-- src/u_dlangutils.pas | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/u_d2syn.pas b/src/u_d2syn.pas index 45e71a3d..6f6583d6 100644 --- a/src/u_d2syn.pas +++ b/src/u_d2syn.pas @@ -648,7 +648,7 @@ begin // double quoted strings | raw double quoted strings if (fCurrRange.notInExclusiveRange()) and readDelim(reader, fTokStop, stringPrefixes) then begin - if readerPrev^ in ['r','x'] then + if readerPrev^ in ['r','x','i'] then begin fCurrRange.rString := reader^ = 'r'; if not (readerNext^ = '"') then @@ -747,7 +747,7 @@ begin end; // token string - if readDelim(reader, fTokStop, 'q{') then + if readDelim(reader, fTokStop, 'q{') or readDelim(reader, fTokStop, 'iq{') then begin fTokKind := tkSymbl; StartCodeFoldBlock(nil, fkBrackets in fFoldKinds); diff --git a/src/u_dlangutils.pas b/src/u_dlangutils.pas index 5f393015..a870eaf0 100644 --- a/src/u_dlangutils.pas +++ b/src/u_dlangutils.pas @@ -12,7 +12,7 @@ type const stringPostfixes: TCharSet = ['c', 'w', 'd']; - stringPrefixes: TCharSet = ['r', 'x', '"']; + stringPrefixes: TCharSet = ['r', 'x', 'i', '"']; stringStopChecks: TCharSet = ['\', '"']; charStopChecks: TCharSet = ['\', #39]; symbChars: TCharSet = [';', '{', '}', '(', ')', '[', ']', ',', '.', ':', '?', '$', '"', #39];