JCF2: Fix a range check error at the end of file.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46059 4005530d-fff6-0310-9dd1-cebe43e6787f
JCF: remove useless code. There already is an assertion for (pciUnit <> nil).

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46060 4005530d-fff6-0310-9dd1-cebe43e6787f
JCF2: Support nested curly comments. Issue #26610, extracted from patch by BrunoK.

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46061 4005530d-fff6-0310-9dd1-cebe43e6787f