1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

Fix rust comment end

This commit is contained in:
Ivan Tham 2020-06-05 11:06:49 +08:00
parent 74e16a0623
commit 7bd459f774
2 changed files with 14 additions and 1 deletions

View File

@ -39,7 +39,7 @@ add-highlighter shared/rust/line_doctest region ^\h*//[!/]\h*```($|should_panic|
add-highlighter shared/rust/line_doctest/marker region ```.* $ group
add-highlighter shared/rust/line_doctest/marker/fence regex ``` 0:meta
add-highlighter shared/rust/line_doctest/marker/keywords regex [\d\w] 0:meta # already matched above, just ignore comma
add-highlighter shared/rust/line_doctest/inner region '^\h*//[!/]( #(?= )|)' ' ' group
add-highlighter shared/rust/line_doctest/inner region '^\h*//[!/]( #(?= )|)' '$| ' group
add-highlighter shared/rust/line_doctest/inner/comment regex //[!/] 0:documentation
add-highlighter shared/rust/line_doctest/inner/hidden regex '#' 0:meta
add-highlighter shared/rust/line_doctest/code default-region ref rust

View File

@ -102,3 +102,16 @@ fn bar(s: &str) {
* ```
*/
/// ```
/// println!("empty line");
///
/// println!("continue line");
/// ```
/**
* ```
* println!("empty line");
*
* println!("continue line");
* ```
*/