diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-01-07 21:05:50 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-01-07 21:05:50 +0000 |
commit | 50a2087413da02b5852dc76e32c75ca52a77b0d5 (patch) | |
tree | c5001073d4ab3a2be6f085245dc4aa70059256e6 /compiler/scanner.pas | |
parent | 26243a83f6a000f67e991fed7d7b1574148a6379 (diff) | |
download | fpc-50a2087413da02b5852dc76e32c75ca52a77b0d5.tar.gz |
* 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
Diffstat (limited to 'compiler/scanner.pas')
-rw-r--r-- | compiler/scanner.pas | 6 |
1 files changed, 5 insertions, 1 deletions
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 |