Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - single and mult line comments
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

single and mult line comments

 Post Reply Post Reply
Author
Message
brian View Drop Down
Newbie
Newbie


Joined: 15 August 2014
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote brian Quote  Post ReplyReply Direct Link To This Post Topic: single and mult line comments
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.