[PATCH] Support ANSI escape sequences in the Lexer
Richard Smith
richard at metafoo.co.uk
Tue Apr 1 17:00:47 PDT 2014
Add support for ANSI escape sequences in the Lexer. In most cases, this merely provides a superior error recovery experience (we diagnose and skip over them, as we do with Unicode whitespace), but for ANSI color codes, normalize them and include them in identifiers, as suggested on slides 52 and 53 of this presentation by Bjarne Stroustrup:
https://parasol.tamu.edu/people/bs/622-GP/C++11TAMU.pdf
http://llvm-reviews.chandlerc.com/D3257
Files:
lib/Lex/Lexer.cpp
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Lex/Lexer.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3257.1.patch
Type: text/x-patch
Size: 11596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140401/beb50ecd/attachment.bin>
More information about the cfe-commits
mailing list