On 8/28/06, Yongwei Wu <[EMAIL PROTECTED]> wrote:
I am trying to implement the COMMENT directive in the MASM syntax file:

Treats all text between or on the same line as the delimiters as a comment.

COMMENT delimiter [[text]]
[[text]]
[[text]] delimiter [[text]]

The current way I deal with it is:

syn match masmComment           "COMMENT\s*\(\W\)\_.\{-}\1.*"

However, when the first line (containing `COMMENT') is not visible,
refreshing the page will immediately render the highlighting wrong:
the lines are no longer regarded as comments.

I tried using region, but 1) I do not know how to let `end' find
exactly the same delimiter as `start';

:help /\z(
:help /\z1

Yakov

Reply via email to