Cobol comment syntax highlight
Posted: Wed Nov 20, 2013 8:39 am
Hi,
Currently we are evaluating Zeus as our future editor for writing Cobol (and Delta) programs. So far we have managed to define the Cobol and Delta language for Syntax highlighting. One problem we still have is comment recognition in 'free format' COBOL and ANSI Cobol.
For 'free format' COBOL a comment will start on the first column and in ANSI Cobol format it starts on column 7.
Until now we are not able to define the language recognize both.
The settings in Cobol.zki for comments are as follows:
LineComment01=0:*
CommentStart02=
CommentEnd02=
NestsComments02=No
LineComment02=7:*
These setting will result in correct syntax highlighting for ANSI Cobol format:
000022 INPUT-OUTPUT SECTION. 01000283
000023 FILE-CONTROL. 01000286
000024* ------------------------------------------------> SELECT 01000287
000025 SELECT IVP0001P ASSIGN TO "SFB_IVP0001P". 08000180
000026 DATA DIVISION. 01000303
000027 FILE SECTION. 01000305
000028* ------------------------------------------------> FD 01000306
But for the 'free format' COBOL syntax hihlighting only shows for lines having a "*" at colum 7:
/
********************************************************************************
* CALL_TPINITIALIZE
********************************************************************************
call_tpinitialize SECTION.
begin.
MOVE SPACES TO usrname IN tpinfdef-rec.
Is there a setting possible that both situations will have correct syntax highlighting?
Kind regards,
Peter
[/img]
Currently we are evaluating Zeus as our future editor for writing Cobol (and Delta) programs. So far we have managed to define the Cobol and Delta language for Syntax highlighting. One problem we still have is comment recognition in 'free format' COBOL and ANSI Cobol.
For 'free format' COBOL a comment will start on the first column and in ANSI Cobol format it starts on column 7.
Until now we are not able to define the language recognize both.
The settings in Cobol.zki for comments are as follows:
LineComment01=0:*
CommentStart02=
CommentEnd02=
NestsComments02=No
LineComment02=7:*
These setting will result in correct syntax highlighting for ANSI Cobol format:
000022 INPUT-OUTPUT SECTION. 01000283
000023 FILE-CONTROL. 01000286
000024* ------------------------------------------------> SELECT 01000287
000025 SELECT IVP0001P ASSIGN TO "SFB_IVP0001P". 08000180
000026 DATA DIVISION. 01000303
000027 FILE SECTION. 01000305
000028* ------------------------------------------------> FD 01000306
But for the 'free format' COBOL syntax hihlighting only shows for lines having a "*" at colum 7:
/
********************************************************************************
* CALL_TPINITIALIZE
********************************************************************************
call_tpinitialize SECTION.
begin.
MOVE SPACES TO usrname IN tpinfdef-rec.
Is there a setting possible that both situations will have correct syntax highlighting?
Kind regards,
Peter
[/img]