about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer/unicode_chars.rs
AgeCommit message (Collapse)AuthorLines
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-392/+0
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-07syntax::parser::token -> syntax::tokenMazdak Farrokhzad-1/+1
2019-08-15syntax_pos: `NO_EXPANSION`/`SyntaxContext::empty()` -> `SyntaxContext::root()`Vadim Petrochenkov-4/+3
For consistency with `ExpnId::root`. Also introduce a helper `Span::with_root_ctxt` for creating spans with `SyntaxContext::root()` context
2019-07-25review comments: add FIXME comments and formattingEsteban Küber-4/+10
2019-07-24Allow lexer to recover from some homoglyphsEsteban Küber-32/+33
2019-07-21Fix typo in Unicode character nameAndrew Dassonville-1/+1
2019-07-20Introduce rustc_lexerAleksey Kladov-24/+17
The idea here is to make a reusable library out of the existing rust-lexer, by separating out pure lexing and rustc-specific concerns, like spans, error reporting an interning. So, rustc_lexer operates directly on `&str`, produces simple tokens which are a pair of type-tag and a bit of original text, and does not report errors, instead storing them as flags on the token.
2019-07-02refactor check_for_substitutionAleksey Kladov-45/+72
No behavior change, just flatter and simpler code
2019-02-16help suggestion when trying to delimit string literals with directed unicode ↵Patrick McCarter-9/+22
quotes #58436
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-07libsyntax => 2018Taiki Endo-1/+1
2019-01-26remove `_with_applicability` from suggestion fnsAndy Russell-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-04cleanup: remove static lifetimes from constsljedrz-1/+1
2018-08-20Set applicability for more suggestions.Sébastien Duquette-2/+6
2018-08-13A few cleanups and minor improvements for the lexerljedrz-1/+1
2018-06-09Crate-ify and delete unused code in syntax::parseMark Simulacrum-1/+1
2018-05-26Fix testEsteban Küber-2/+4
2018-05-25in which we check for confusable Unicodepoints in float literal exponentZack M. Davis-2/+2
The `FatalError.raise()` might seem unmotivated (in most places in the compiler, `err.emit()` suffices), but it's actually used to maintain behavior (viz., stop lexing, don't emit potentially spurious errors looking for the next token after the bad Unicodepoint in the exponent): the previous revision's `self.err_span_` ultimately calls `Handler::emit`, which aborts if the `Handler`'s continue_after_error flag is set, which seems to typically be true during lexing (see `phase_1_parse_input` and and how `CompileController::basic` has `continue_parse_after_error: false` in librustc_driver). Also, let's avoid apostrophes in error messages (the present author would argue that users expect a reassuringly detached, formal, above-it-all tone from a Serious tool like a compiler), and use an RLS-friendly structured suggestion. Resolves #49746.
2017-10-13Fix typo in libsyntax/parse/lexer/unicode_chars.rskennytm-1/+1
` (U+0060) should be the "grave" accent, not "Greek" accent.
2017-08-30Make fields of `Span` privateVadim Petrochenkov-1/+1
2017-08-11Rollup merge of #43779 - mattico:fix-unicode-typo, r=aidanhsGuillaume Gomez-1/+1
Fix typo in unicode char definition Reference: http://www.fileformat.info/info/unicode/char/16ed/index.htm
2017-08-09Fix typo in unicode char definitionMatt Ickstadt-1/+1
2017-08-09fix a typonicole mazzuca-1/+1
(this should not have been merged with this typo)
2017-08-06Fix typo in unicode_chars.rsMalo Jaffré-1/+1
2017-08-06Update the list of confusable charactersMalo Jaffré-19/+125
Also reorder and space the list to make it clearer for futures updates and to come closer to the original list. Thanks @est31 for the instructions. Fixes #43629. r? @est31
2017-05-20remove "much" from unicode diagnosticAndy Russell-1/+1
2017-03-29Refactor how spans are combined in the parser.Jeffrey Seyfried-2/+2
2017-01-17Give the `StringReader` a `sess: &ParseSess`.Jeffrey Seyfried-4/+2
2016-10-05Rename StringReader::last_pos as pos.Nicholas Nethercote-1/+1
This is a [breaking-change] for libsyntax.
2016-10-05Rename StringReader::pos as next_pos.Nicholas Nethercote-1/+1
This is a [breaking-change] for libsyntax.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-04-21add more confusable CJK square bracket aliasesWang Xuerui-0/+12
2016-04-21correct aliases for square bracketsWang Xuerui-6/+8
2016-04-21add confusable space charactersWang Xuerui-0/+17
2016-04-21add more characters easily inputtable with CJK IMEsWang Xuerui-0/+16
2015-12-30use structured errorsNick Cameron-2/+5
2015-11-18Add some unicode aliases for ".Huon Wilson-0/+17
2015-11-17Detect confusing unicode characters and show the alternativeRavi Shankar-0/+186