aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-20 23:06:04 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-06-20 23:06:04 -0400
commitedea7a46e5484e30c338699207c8f4b4d8370c97 (patch)
treeaf5d6b5650fe48c56d22a38e54db74e3871c98a8 /lib/std/c
parent5229f6ec68708c3e66393a50ad9f9032ee7f4257 (diff)
parentfaf783e5959a09fb2a1680f8bb7558db96dcbed9 (diff)
downloadzig-edea7a46e5484e30c338699207c8f4b4d8370c97.tar.gz
zig-edea7a46e5484e30c338699207c8f4b4d8370c97.zip
Merge branch 'DrDeano-master'
closes #5648
Diffstat (limited to 'lib/std/c')
-rw-r--r--lib/std/c/tokenizer.zig100
1 files changed, 50 insertions, 50 deletions
diff --git a/lib/std/c/tokenizer.zig b/lib/std/c/tokenizer.zig
index 198c69e2a7..f3fc8b8107 100644
--- a/lib/std/c/tokenizer.zig
+++ b/lib/std/c/tokenizer.zig
@@ -278,62 +278,62 @@ pub const Token = struct {
// TODO extensions
pub const keywords = std.ComptimeStringMap(Id, .{
- .{"auto", .Keyword_auto},
- .{"break", .Keyword_break},
- .{"case", .Keyword_case},
- .{"char", .Keyword_char},
- .{"const", .Keyword_const},
- .{"continue", .Keyword_continue},
- .{"default", .Keyword_default},
- .{"do", .Keyword_do},
- .{"double", .Keyword_double},
- .{"else", .Keyword_else},
- .{"enum", .Keyword_enum},
- .{"extern", .Keyword_extern},
- .{"float", .Keyword_float},
- .{"for", .Keyword_for},
- .{"goto", .Keyword_goto},
- .{"if", .Keyword_if},
- .{"int", .Keyword_int},
- .{"long", .Keyword_long},
- .{"register", .Keyword_register},
- .{"return", .Keyword_return},
- .{"short", .Keyword_short},
- .{"signed", .Keyword_signed},
- .{"sizeof", .Keyword_sizeof},
- .{"static", .Keyword_static},
- .{"struct", .Keyword_struct},
- .{"switch", .Keyword_switch},
- .{"typedef", .Keyword_typedef},
- .{"union", .Keyword_union},
- .{"unsigned", .Keyword_unsigned},
- .{"void", .Keyword_void},
- .{"volatile", .Keyword_volatile},
- .{"while", .Keyword_while},
+ .{ "auto", .Keyword_auto },
+ .{ "break", .Keyword_break },
+ .{ "case", .Keyword_case },
+ .{ "char", .Keyword_char },
+ .{ "const", .Keyword_const },
+ .{ "continue", .Keyword_continue },
+ .{ "default", .Keyword_default },
+ .{ "do", .Keyword_do },
+ .{ "double", .Keyword_double },
+ .{ "else", .Keyword_else },
+ .{ "enum", .Keyword_enum },
+ .{ "extern", .Keyword_extern },
+ .{ "float", .Keyword_float },
+ .{ "for", .Keyword_for },
+ .{ "goto", .Keyword_goto },
+ .{ "if", .Keyword_if },
+ .{ "int", .Keyword_int },
+ .{ "long", .Keyword_long },
+ .{ "register", .Keyword_register },
+ .{ "return", .Keyword_return },
+ .{ "short", .Keyword_short },
+ .{ "signed", .Keyword_signed },
+ .{ "sizeof", .Keyword_sizeof },
+ .{ "static", .Keyword_static },
+ .{ "struct", .Keyword_struct },
+ .{ "switch", .Keyword_switch },
+ .{ "typedef", .Keyword_typedef },
+ .{ "union", .Keyword_union },
+ .{ "unsigned", .Keyword_unsigned },
+ .{ "void", .Keyword_void },
+ .{ "volatile", .Keyword_volatile },
+ .{ "while", .Keyword_while },
// ISO C99
- .{"_Bool", .Keyword_bool},
- .{"_Complex", .Keyword_complex},
- .{"_Imaginary", .Keyword_imaginary},
- .{"inline", .Keyword_inline},
- .{"restrict", .Keyword_restrict},
+ .{ "_Bool", .Keyword_bool },
+ .{ "_Complex", .Keyword_complex },
+ .{ "_Imaginary", .Keyword_imaginary },
+ .{ "inline", .Keyword_inline },
+ .{ "restrict", .Keyword_restrict },
// ISO C11
- .{"_Alignas", .Keyword_alignas},
- .{"_Alignof", .Keyword_alignof},
- .{"_Atomic", .Keyword_atomic},
- .{"_Generic", .Keyword_generic},
- .{"_Noreturn", .Keyword_noreturn},
- .{"_Static_assert", .Keyword_static_assert},
- .{"_Thread_local", .Keyword_thread_local},
+ .{ "_Alignas", .Keyword_alignas },
+ .{ "_Alignof", .Keyword_alignof },
+ .{ "_Atomic", .Keyword_atomic },
+ .{ "_Generic", .Keyword_generic },
+ .{ "_Noreturn", .Keyword_noreturn },
+ .{ "_Static_assert", .Keyword_static_assert },
+ .{ "_Thread_local", .Keyword_thread_local },
// Preprocessor directives
- .{"include", .Keyword_include},
- .{"define", .Keyword_define},
- .{"ifdef", .Keyword_ifdef},
- .{"ifndef", .Keyword_ifndef},
- .{"error", .Keyword_error},
- .{"pragma", .Keyword_pragma},
+ .{ "include", .Keyword_include },
+ .{ "define", .Keyword_define },
+ .{ "ifdef", .Keyword_ifdef },
+ .{ "ifndef", .Keyword_ifndef },
+ .{ "error", .Keyword_error },
+ .{ "pragma", .Keyword_pragma },
});
// TODO do this in the preprocessor