From 7775180f090757cb05f3a855003658fe2f90965a Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 31 Mar 2016 09:52:53 +0200 Subject: [PATCH] fix, brace auto closing broken module includes token strings --- src/ce_synmemo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index 5e30e89d..e57c3b45 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -1197,7 +1197,7 @@ begin for i := 0 to fLexToks.Count-1 do begin tok := fLexToks[i]; - c += byte((tok^.kind = TLexTokenKind.ltkSymbol) and (tok^.Data = '{')); + c += byte((tok^.kind = TLexTokenKind.ltkSymbol) and (((tok^.Data = '{')) or (tok^.Data = 'q{'))); c -= byte((tok^.kind = TLexTokenKind.ltkSymbol) and (tok^.Data = '}')); end; if (tok <> nil) and (tok^.kind = ltkIllegal) then