Print Page | Close Window

single and mult line comments

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=22387
Printed Date: 25 April 2024 at 3:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: single and mult line comments
Posted By: brian
Subject: single and mult line comments
Date Posted: 15 August 2014 at 2:53pm
Hi, I'm fighting with a Syntax Edit problem that occurs if a single line comment is used to comment out the ending of a multi-line comment block. The multi-line comment block should not end, but does.

In our syntax, # denotes single-line comments and .DATA OFF and .DATA ON start and end multi line comments.

For example...

.DATA OFF
#this is in the multi-line comment block
#.DATA ON
#this should still be in the multi-line comment block
.DATA ON


This should reformat and collapse all 5 lines, but currently our application ends the multi-line comment block at the 3rd line.

Here is a snippet from our schema file:
lexClass: 
     name          = c_DAT     
     parent:file     = <*.DAT|*.GPS>     
     caseSensitive     = 0
     DisplayName     = 'Normal Text'

lexClass:     
     name          = c_DATCommentSL
     DisplayName     = 'Comment (Single-Line)'
     parent:dyn     = c_DAT
     children     = 0           
     start:tag     ='#'
     end:tag          = @eol
     txt:colorFG     = 0x008800
     txt:Italic     = 1     
     
lexClass:
     name          = c_DATCommentML     
     DisplayName     = 'Comment (Multi-Line)'
     parent:dyn     = c_DAT
     children     = 0          
     start:tag     = '.DATA OFF'
     end:tag          = '.DATA ON'
     Collapsable     = 1
     CollapsedText     = '...'
     txt:colorFG     = 0x008800
     txt:Italic     = 1


Thanks in advance for any suggestions!
-Brian



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net