mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
parseh understands simple character literal macro
This commit is contained in:
1 parent
923e78785d
commit
9b2ed1fac5
5 files changed
+111
-46
No files matched your search
@@ -1140,42 +1140,6 @@ void print_tokens(Buf *buf, ZigList<Token> *tokens) {
|
||||
}
|
||||
}
|
||||
|
||||
bool is_printable(uint8_t c) {
|
||||
switch (c) {
|
||||
default:
|
||||
return false;
|
||||
case DIGIT:
|
||||
case ALPHA:
|
||||
case '!':
|
||||
case '#':
|
||||
case '$':
|
||||
case '%':
|
||||
case '&':
|
||||
case '\'':
|
||||
case '(':
|
||||
case ')':
|
||||
case '*':
|
||||
case '+':
|
||||
case ',':
|
||||
case '-':
|
||||
case '.':
|
||||
case '/':
|
||||
case ':':
|
||||
case ';':
|
||||
case '<':
|
||||
case '=':
|
||||
case '>':
|
||||
case '?':
|
||||
case '@':
|
||||
case '^':
|
||||
case '_':
|
||||
case '`':
|
||||
case '~':
|
||||
case ' ':
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool valid_symbol_starter(uint8_t c) {
|
||||
switch (c) {
|
||||
case SYMBOL_START:
|
||||
|
||||
Reference in new issue
Block a user