Blank to start line comment for zOS assembler

Syntax highlighting, code folding, brace matching, code indenting, and function list

Blank to start line comment for zOS assembler

Postby coder03 » Fri Jun 01, 2012 1:06 pm

How can I set the alternate comment to be started by the first blank character after a given column?

In zOS assembler I would like to have comments as follows:

* starts standard comment
.* started non expanded comment
the first blank after column 15 starts inline comment

Is there a way to highlight all three types of comments?

tkx -- coder03
coder03
Newbie
 
Posts: 3
Joined: Fri Sep 18, 2009 8:07 am

Re: Blank to start line comment for zOS assembler

Postby Mofi » Sat Jun 02, 2012 4:25 am

I think the following definition should work:

Code: Select all
/L20"zOS ASM" Nocase Line Comment Num = 1  Line Comment Valid Columns = [16-256] Line Comment Alt = .* Block Comment On = * File Extensions = ASM

Note: There are 2 spaces after Line Comment Num = 1

With this definition any space character (not the tab character) in column 16 or later (up to 256) is interpreted as beginning of a line comment.

An asterisk found anywhere in a line is also interpreted as beginning of a line comment.

And .* found anywhere in a line is also interpreted as line comment.

For details on what can be used to define line and block comments see Template for Language File.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3937
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting