about summary refs log tree commit diff
path: root/src/test/compile-fail/lex-hex-float-lit.rs
AgeCommit message (Collapse)AuthorLines
2014-07-09testsuite: merge some lexer testcasesCorey Richardson-13/+0
Now that the lexer is more robust, these tests don't need to be in separate files. Yay!
2013-09-19lexer: show correct span on lexical errorsBenjamin Herr-0/+13
Previously, the lexer calling `rdr.fatal(...)` would report the span of the last complete token, instead of a span within the erroneous token (besides one span fixed in 1ac90bb). This commit adds a wrapper around `rdr.fatal(...)` that sets the span explicilty, so that all fatal errors in `libsyntax/parse/lexer.rs` now report the offending code more precisely. A number of tests try to verify that, though the `compile-fail` testing setup can only check that the spans are on the right lines, and the "unterminated string/block comment" errors can't have the line marked at all, so that's incomplete. Closes #9149.