From 50a2087413da02b5852dc76e32c75ca52a77b0d5 Mon Sep 17 00:00:00 2001 From: jonas Date: Sun, 7 Jan 2018 21:05:50 +0000 Subject: * increase comment nesting level when "(*" is followed by another '*' (mantis #32019) git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@37935 3ad0048d-3df7-0310-abae-a5850022a9f2 --- compiler/scanner.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compiler/scanner.pas') diff --git a/compiler/scanner.pas b/compiler/scanner.pas index b21753de84..7763890978 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -4548,7 +4548,11 @@ type if found=3 then found:=4 else - found:=1; + begin + if found=4 then + inc_comment_level; + found:=1; + end; end; ')' : begin -- cgit v1.2.1