syntax highlighting - Match everythin between tag as comment -
i highlight every thing between
!& explanation &!
as comment.
i know comment match with
- name: comment.line.exclamation-mark.fortran match: (?i)\!.*$
in fortran.yaml-tmlanguage
.
don't see how extend case above.
since comments multiline, need split regex 2 expressions, 1 called begin , 1 called end. allows parse multiple lines.
i dont use yaml, code c tmlanguage should started (comment style /* comment */
):
<dict> <key>begin</key> <string>\s*/\*</string> <key>captures</key> <dict> <key>0</key> <dict> <key>name</key> <string>punctuation.definition.comment.c</string> </dict> </dict> <key>end</key> <string>\*/</string> <key>name</key> <string>comment.block.c</string> </dict>
so use \s\!\&
begin-tag , \&\!
end-tag.