sedlex icon indicating copy to clipboard operation
sedlex copied to clipboard

The _ catch-all branch does not set up lexeme correctly

Open whitequark opened this issue 11 years ago • 0 comments

I.e.:

# let lexbuf = Sedlexing.Utf8.from_string "x";;
val lexbuf : Sedlexing.lexbuf = <abstr>
# match%sedlex lexbuf with _ -> Sedlexing.Utf8.lexeme lexbuf;;
# print_endline (match%sedlex lexbuf with _ -> Sedlexing.Utf8.lexeme lexbuf);;

Expected output: x.

whitequark avatar Dec 09 '14 09:12 whitequark