Skip to content

Commit

Permalink
removing rules for tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Dec 22, 2023
1 parent 28e4ac8 commit a0a4875
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/sentenceLexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -826,14 +826,6 @@ and record_string openingpos buffer = parse
{ (* This escape sequence is recognized as such, but not decoded. *)
Buffer.add_string buffer sequence;
record_string openingpos buffer lexbuf }
| '\\' 'n'
(* We disallow this escape sequence in a token alias because we wish
to use this string (unescaped) when we print a concrete sentence
in a .messages file (see [Interpret]), and we want this sentence
to fit on a single line. *)
{ error2 lexbuf "'\\n' is not permitted in a token alias." }
| '\\' _
{ error2 lexbuf "illegal backslash escape in string." }
| newline
{ (print_endline "NL9"); error2 lexbuf "illegal newline in string." }
| eof
Expand Down

0 comments on commit a0a4875

Please sign in to comment.