Skip to content

Commit 8fa2986

Browse files
author
Raul E Rangel
committed
cherry-pick 561df1c
To make merging easier Signed-off-by: Raul E Rangel <rrangel@chromium.org>
1 parent d4329e8 commit 8fa2986

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

C++/C.sublime-syntax

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ contexts:
5656
- match: \*/
5757
scope: punctuation.definition.comment.c
5858
pop: true
59+
- match: ^\s*(\*)(?!/)
60+
captures:
61+
1: punctuation.definition.comment.c
5962
- match: \*/(?!\*)
6063
scope: invalid.illegal.stray-comment-end.c
6164
- match: ^// =(\s*.*?)\s*=\s*$\n?

C++/syntax_test_c.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ struct X
299299
/* <- meta.struct.body.c meta.block.c punctuation.section.block.end.c */
300300
/* <- punctuation.terminator.c - meta.struct.body.c - meta.block.c*/
301301

302+
/**
303+
*
304+
/* ^ comment.block.c punctuation.definition.comment.c */
305+
302306
/////////////////////////////////////////////
303307
// Preprocessor branches starting blocks
304308
/////////////////////////////////////////////

0 commit comments

Comments
 (0)