Blank to start line comment for zOS assembler

Blank to start line comment for zOS assembler

3
NewbieNewbie
3

    Jun 01, 2012#1

    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

    6,675585
    Grand MasterGrand Master
    6,675585

      Jun 02, 2012#2

      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.