PageRenderTime 55ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Lib/go/gokw.swg

#
Unknown | 33 lines | 29 code | 4 blank | 0 comment | 0 complexity | 6f04660e318144340a59fac8bd0ad9e5 MD5 | raw file
 1/* Rename keywords.  */
 2
 3#define GOKW(x) %keywordwarn("'" `x` "' is a Go keyword, renaming to 'X"`x`"'",rename="X%s")  `x`
 4#define GOBN(x) %builtinwarn("'" `x` "' conflicts with a built-in name in Go")  "::"`x`
 5
 6GOKW(break);
 7GOKW(case);
 8GOKW(chan);
 9GOKW(const);
10GOKW(continue);
11GOKW(default);
12GOKW(defer);
13GOKW(else);
14GOKW(fallthrough);
15GOKW(for);
16GOKW(func);
17GOKW(go);
18GOKW(goto);
19GOKW(if);
20GOKW(import);
21GOKW(interface);
22GOKW(package);
23GOKW(range);
24GOKW(return);
25GOKW(select);
26GOKW(struct);
27GOKW(switch);
28GOKW(type);
29GOKW(var);
30
31GOBN(map);
32
33#undef GOKW