src/Pure/Thy/thy_scan.ML
changeset 5910 151ee1a5c09c
parent 5112 9e74cf11e4a4
child 6207 58e9f980bd4f
equal deleted inserted replaced
5909:3fc6497f1c7b 5910:151ee1a5c09c
    71       scan_ctrl || scan_dig ^^ scan_dig ^^ scan_dig) ||
    71       scan_ctrl || scan_dig ^^ scan_dig ^^ scan_dig) ||
    72       (Scan.repeat1 scan_blank >> implode) ^^ keep_line ($$ "\\"));
    72       (Scan.repeat1 scan_blank >> implode) ^^ keep_line ($$ "\\"));
    73 
    73 
    74 val scan_str =
    74 val scan_str =
    75   scan_esc ||
    75   scan_esc ||
    76   scan_blank >> K " " ||
    76   scan_blank >> K Symbol.space ||
    77   keep_line (Scan.one (not_equal "\"" andf Symbol.not_eof));
    77   keep_line (Scan.one (not_equal "\"" andf Symbol.not_eof));
    78 
    78 
    79 val scan_string =
    79 val scan_string =
    80   keep_line ($$ "\"") ^^
    80   keep_line ($$ "\"") ^^
    81   !! (fn ((n, _), _) => lex_err n "missing quote at end of string")
    81   !! (fn ((n, _), _) => lex_err n "missing quote at end of string")