diff --git a/C++/C.sublime-syntax b/C++/C.sublime-syntax index acc62185b19..8c313daa48b 100644 --- a/C++/C.sublime-syntax +++ b/C++/C.sublime-syntax @@ -106,6 +106,9 @@ contexts: - match: \*/ scope: punctuation.definition.comment.end.c pop: true + - match: ^\s*(\*)(?!\**/) + captures: + 1: punctuation.definition.comment.c line-comments: - match: ^(//) =\s*(.*?)\s*=\s*$\n? diff --git a/C++/syntax_test_c.c b/C++/syntax_test_c.c index 97745de0ce5..35693991e52 100644 --- a/C++/syntax_test_c.c +++ b/C++/syntax_test_c.c @@ -70,6 +70,14 @@ /* ^^^ comment.block.documentation.c punctuation.definition.comment.begin.c */ /* ^^^^^ comment.block.documentation.c punctuation.definition.comment.end.c */ + /*! + * docstring +/* ^ comment.block.c punctuation.definition.comment.c */ + + /* + * docstring +/* ^ comment.block.c punctuation.definition.comment.c */ + /*! * docstring **/