diff --git a/Scanner.pas b/Scanner.pas index 5d558c8..b93dd4e 100644 --- a/Scanner.pas +++ b/Scanner.pas @@ -4282,6 +4282,8 @@ case charKinds[ord(ch)] of token.isDigraph := true; if (ch = '%') and (chPtr <> eofPtr) and (chr(chPtr^) = ':') then begin token.kind := poundpoundop; {%:%: digraph} + if charKinds[ord('#')] = illegal then + Error(1); NextCh; NextCh; end