diff --git a/C++/C.sublime-syntax b/C++/C.sublime-syntax index acc62185b1..8c313daa48 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 97745de0ce..44874b80cd 100644 --- a/C++/syntax_test_c.c +++ b/C++/syntax_test_c.c @@ -427,7 +427,7 @@ struct X /* * -/* ^ comment.block.c - punctuation */ +/* ^ comment.block.c punctuation.definition.comment.c */ ///////////////////////////////////////////// // Preprocessor branches starting blocks