#58 string append character (+) not parsed correctly

open
nobody
None
5
2006-12-21
2006-12-21
David Dombrowsky
No

This code will not parse in pas2dox:

const FieldList =
'PROCEDURES.PATIENTRECORDNUMBER,'+
'PROCEDURES.REFERRINGPHYSICIAN,'+
'PROCEDURES.ENDOSCOPIST,'+
'PROCEDURES.DATEOFPROCEDURE,'+
'PROCEDURES.TIMEOFPROCEDURE,'+
'PROCEDURES.PROCEDUREPROPOSED,'+
'PROCEDURES.INSTRUMENTS,'+
'PROCEDURES.ROOM,'+
'PROCEDURES.ADDENDUM_PROC,'+
'PROCEDURES.ACCESSIONNUM,'+
'PROCEDURES.PROCEDURENUMBER,'+
'PROCEDURES.PROCSTATUS,'+
'PROCEDURES.SPECIALINS,'+
'PROCEDURES.NURSE,'+
'PROCEDURES.ASSISTANT,'+
'PROCEDURES.ENCOUNTERNUM,'+
'PATIENTS.LASTNAME,'+
'PATIENTS.FIRSTNAME,'+
'PATIENTS.ACTNUM,'
;

It turns into:

/*
//const
FieldList =
'*/
,'+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ ','+ '
PATIENTS::ACTNUM ()

and breaks everything after it.

Discussion