Commit 1827453a authored by Guillaume Melquiond's avatar Guillaume Melquiond

Allow escaping in code embedded in comments.

parent 75be7eb6
......@@ -176,6 +176,10 @@ and scan_embedded fmt depth = parse
pp_print_char fmt ']';
scan_embedded fmt (depth - 1) lexbuf
end }
| "\\[" { pp_print_char fmt '[';
scan_embedded fmt depth lexbuf }
| "\\]" { pp_print_char fmt ']';
scan_embedded fmt depth lexbuf }
| "*)" { backtrack lexbuf }
| eof { () }
| ident as s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment