spgennard / vscode_cobol

Visual Studio Code Extension for COBOL, JCL and MF Directive Files
MIT License
36 stars 16 forks source link

Code coloring issue with REMARKS keyword in variable #327

Closed innerskyone closed 1 year ago

innerskyone commented 1 year ago

When a source contains REMARKS anywhere in the code, it will color everything starting from that line in green as comments. For example if in working-storage there is a variable 01 REMARKS-W0, everything below is seen as comment lines.

Easy to reproduce by using any variable that has "remarks" in it.

Expected behavior It should not treat a variable that contains "remarks" as comment section.

Can be worked around by adding a single commented line with END-REMARKS in it below each variable...

image

Desktop (please complete the following information):

spgennard commented 1 year ago

Just to let know I am looking into this issue

innerskyone commented 1 year ago

Thank you, love your extension!

spgennard commented 1 year ago

Thanks @innerskyone Free free to leave a review.