PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/ruby/rubykw.swg

#
Unknown | 72 lines | 64 code | 8 blank | 0 comment | 0 complexity | 9e08b045e72c78bf04e505c12d0335b0 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #ifndef RUBY_RUBYKW_SWG_
  2. #define RUBY_RUBYKW_SWG_
  3. /* Warnings for Ruby keywords */
  4. #define RUBYKW(x) %keywordwarn("'" `x` "' is a ruby keyword, renaming to 'C_" `x` "'",rename="C_%s",fullname=1) `x`
  5. /*
  6. from http://www.rubycentral.com/book/language.html
  7. */
  8. RUBYKW(BEGIN);
  9. RUBYKW(END);
  10. RUBYKW(alias);
  11. RUBYKW(and);
  12. RUBYKW(begin);
  13. RUBYKW(break);
  14. RUBYKW(case);
  15. RUBYKW(class);
  16. RUBYKW(def);
  17. RUBYKW("defined");
  18. RUBYKW(do);
  19. RUBYKW(else);
  20. RUBYKW(elsif);
  21. RUBYKW(end);
  22. RUBYKW(ensure);
  23. RUBYKW(false);
  24. RUBYKW(fatal);
  25. RUBYKW(for);
  26. RUBYKW(if);
  27. RUBYKW(in);
  28. RUBYKW(module);
  29. RUBYKW(next);
  30. RUBYKW(nil);
  31. RUBYKW(not);
  32. RUBYKW(or);
  33. RUBYKW(redo);
  34. RUBYKW(rescue);
  35. RUBYKW(retry);
  36. RUBYKW(return);
  37. RUBYKW(self);
  38. RUBYKW(super);
  39. RUBYKW(then);
  40. RUBYKW(true);
  41. RUBYKW(undef);
  42. RUBYKW(unless);
  43. RUBYKW(until);
  44. RUBYKW(when);
  45. RUBYKW(while);
  46. RUBYKW(yield);
  47. // RUBYKW(FalseClass);
  48. // RUBYKW(TrueClass);
  49. // RUBYKW(Numeric);
  50. // RUBYKW(Integer);
  51. // RUBYKW(Fixnum);
  52. // RUBYKW(Float);
  53. // RUBYKW(Range);
  54. // RUBYKW(Array);
  55. // RUBYKW(String);
  56. // RUBYKW(IO);
  57. // RUBYKW(File);
  58. // RUBYKW(FileUtils);
  59. // RUBYKW(Find);
  60. // RUBYKW(Struct);
  61. // RUBYKW(OpenStruct);
  62. // RUBYKW(Regexp);
  63. #undef RUBYKW
  64. #endif //RUBY_RUBYKW_SWG_