diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2017-07-06 17:41:10 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2017-07-06 17:41:10 +0800 |
commit | 48e2c4973d5401c9f7d0ee2bac22ac6015744961 (patch) | |
tree | b93fb21b85343633e2d0c00c42ea7a388bb6f883 /src/parse/lex.cpp | |
parent | ce3d36a90b9efd11c94f9084b5e727d65b6509a7 (diff) | |
parent | c4e88b3c49736e71534c918a83956885c052beb8 (diff) | |
download | mrust-48e2c4973d5401c9f7d0ee2bac22ac6015744961.tar.gz |
Merge branch 'master' of https://github.com/thepowersgang/mrustc
# Conflicts:
# src/trans/codegen_c.cpp
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r-- | src/parse/lex.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index 0587e443..9388fca4 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -223,8 +223,8 @@ signed int Lexer::getSymbol() bool issym(Codepoint ch) { - if('0' <= ch.v && ch.v <= '9') - return true; + if('0' <= ch.v && ch.v <= '9') + return true; if( ::std::isalpha(ch.v) ) return true; if( ch == '_' ) @@ -668,7 +668,7 @@ Token Lexer::getTokenInt() { return Token(TOK_EOF); } - throw "Fell off the end of getTokenInt"; + throw "Fell off the end of getTokenInt"; } Token Lexer::getTokenInt_RawString(bool is_byte) @@ -983,7 +983,7 @@ bool Codepoint::isspace() const { case ' ': case 0xC: // ^L case 0x85: - case 0x200E: case 0x200F: // LTR / RTL markers + case 0x200E: case 0x200F: // LTR / RTL markers case 0x2028: // Line Separator case 0x2029: // Paragrah Separator return true; |