Skip to content

Commit

Permalink
[C/C++/ObjC/ObjC++] Fix javadoc comment word wrap
Browse files Browse the repository at this point in the history
This was broken by e4e5273
  • Loading branch information
Benjamin Schaaf committed Oct 19, 2023
1 parent 92b4c0b commit a712fd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions C++/C.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
8 changes: 8 additions & 0 deletions C++/syntax_test_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
**/
Expand Down

0 comments on commit a712fd1

Please sign in to comment.