Hallo,
I’m trying to write my one syntax to highlighting in a personalized way doxygen lines.
I created the file “doxygen_comments.sublime-syntax” and added it to my Packages/User dir.
The file is the following
%YAML 1.2
file_extensions: [c, h]
scope: doxygen.comments.c
contexts:
main:
# Comments begin with a ‘//!’ or ‘///’ and finish at the end of the line.
- match: \b(///||//!)
scope: doxygen.comments.line.c
push:
- meta_scope: doxygen.comments.line.end.c
- match: $\n?
pop: true
I then tried to add
{
"scope": "doxygen.comments",
"foreground": "var(red)"
}
into my Monokai.sublime-color-scheme but no changes are applied to the code, even changing the match pattern.
I’m surely doing sth wrong but I cannot pinpoint the error.
My sublime build is 3176
thanks