Advertisement
Guest User

Untitled

a guest
May 31st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1.  
  2. return {
  3. keywords = {
  4. ["if"] = "Keyword.Control.If";
  5. ["else"] = "Keyword.Control.Else";
  6. ["elseif"] = "Keyword.Control.Elseif";
  7.  
  8. ["repeat"] = "Keyword.Loop.Repeat";
  9. ["while"] = "Keyword.Loop.While";
  10.  
  11. ["for"] = "Keyword.Loop.For";
  12. ["in"] = "Keyword";
  13.  
  14. ["and"] = "Operator.And";
  15. ["or"] = "Operator.Or";
  16. ["not"] = "Operator.Not";
  17.  
  18. ["break"] = "Keyword.Control.Break";
  19. ["return"] = "Keyword.Control.Return";
  20.  
  21. ["do"] = "Keyword";
  22. ["then"] = "Keyword";
  23. ["until"] = "Keyword";
  24. ["end"] = "Keyword.Control";
  25.  
  26. ["function"] = "Keyword.Function";
  27.  
  28. ["local"] = "Keyword.Declare";
  29.  
  30. ["true"] = "Constant.Boolean";
  31. ["false"] = "Constant.Boolean";
  32. ["nil"] = "Constant.Null";
  33. };
  34.  
  35. symbols = {
  36. ["="] = "Symbol";
  37.  
  38. ["["] = "Symbol.Bracket.Square";
  39. ["]"] = "Symbol.Bracket.Square";
  40. ["("] = "Symbol.Bracket.Round";
  41. [")"] = "Symbol.Bracket.Round";
  42. ["{"] = "Symbol.Bracket.Curly";
  43. ["}"] = "Symbol.Bracket.Curly";
  44.  
  45. ["+"] = "Operator.Math.Add";
  46. ["-"] = "Operator.Math.Sub";
  47. ["*"] = "Operator.Math.Mul";
  48. ["/"] = "Operator.Math.Div";
  49. ["%"] = "Operator.Math.Mod";
  50. ["^"] = "Operator.Math.Pow";
  51.  
  52. ["=="] = "Operator.Compare.Eq";
  53. ["~="] = "Operator.Compare.Neq";
  54. [">="] = "Operator.Compare.Gte";
  55. ["<="] = "Operator.Compare.Lte";
  56. [">"] = "Operator.Compare.Gt";
  57. ["<"] = "Operator.Compare.Lt";
  58.  
  59. ["#"] = "Operator.Len";
  60.  
  61. ["."] = "Symbol.Index";
  62. [":"] = "Symbol.Index";
  63.  
  64. [","] = "Symbol.Sep";
  65. [";"] = "Symbol.Sep";
  66. };
  67.  
  68. comments = {
  69. start = {
  70. line = "%-%-";
  71. multiline = "%-%-%[(=*)%[";
  72. };
  73. finish = {
  74. line = "$";
  75. multiline = "%]%1%]";
  76. };
  77. };
  78.  
  79. strings = {
  80. start = {
  81. line = "[\"\']";
  82. multiline = "%[(=*)%[";
  83. };
  84. finish = {
  85. line = "%1";
  86. multiline = "%]%1%]";
  87. };
  88. escape = {
  89. line = "\\";
  90. multiline = nil;
  91. };
  92. };
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement