File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -263,8 +263,6 @@ let horizontal_space =
263263 [' ' '\t' ]
264264let newline =
265265 '\n' | " \r\n "
266- let whitespace =
267- horizontal_space | newline
268266
269267let reference_start =
270268 " {!" | " {{!" | " {:" | " {{:"
@@ -611,14 +609,17 @@ and code_span buffer nesting_level start_offset input = parse
611609 { Buffer. add_char buffer c;
612610 code_span buffer nesting_level start_offset input lexbuf }
613611
614- | newline whitespace + as sp
612+ | newline horizontal_space * (newline horizontal_space * ) +
615613 { warning
616614 input
617615 (Parse_error. not_allowed
618- ~what: (Token. describe (`Blank_line sp ))
616+ ~what: (Token. describe (`Blank_line " \n\n " ))
619617 ~in_what: (Token. describe (`Code_span " " )));
620618 Buffer. add_char buffer ' ' ;
621619 code_span buffer nesting_level start_offset input lexbuf }
620+ | newline horizontal_space+
621+ { Buffer. add_char buffer ' ' ;
622+ code_span buffer nesting_level start_offset input lexbuf }
622623
623624 | eof
624625 { warning
You can’t perform that action at this time.
0 commit comments