Sublime Forum

Block comments inside triple quotes

#1

Trying to get a syntax highlight working for Sublime Text (via YAML) and so far so good until I try and include a block of comments similar to Python. So three single or double quotes should denote a multi-line set of comments:

Example:

"""
This is a comment block
"""

Everything outside this would be code and everything inside interpreted as comment (often indented as well and used in other ways by the interpreting application, but that’s by-the-by).

What I have so far is:

- comment: TPL Comments
  name: comment.block.tpl
  begin: \"\"\"(.*\n)*
  end: \"\"\"

And other variations on this theme, but sufficed to say, nothing works.

0 Likes

#2

Bump

0 Likes

#3

Another bump. :neutral_face:

0 Likes