Facebook
From AAA, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 27
  1. <?xml version="1.0"?>
  2.  
  3. -<SyntaxDefinition xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008" extensions=".lua" name="Lua">
  4.  
  5. <Color name="Comment" foreground="#69676c"/>
  6.  
  7. <Color name="String" foreground="#fce566"/>
  8.  
  9. <Color name="Foreground" foreground="#8b888f"/>
  10.  
  11. <Color name="Punctuation" foreground="#fc618d"/>
  12.  
  13. <Color name="MethodCall" foreground="#7bd88f" fontWeight="bold"/>
  14.  
  15. <Color name="Literals" foreground="#948ae3"/>
  16.  
  17. <Color name="Keywords" foreground="#fc618d" fontWeight="bold"/>
  18.  
  19. <Color name="Escapes" foreground="#948ae3"/>
  20.  
  21.  
  22. -<RuleSet>
  23.  
  24. <!-- Mark previous rule-->
  25.  
  26.  
  27. <Rule color="MethodCall">\b[\d\w_]+ # an identifier(?=\s*\() # followed by ( </Rule>
  28.  
  29. <Rule color="MethodCall">\b[\d\w_]+ # an identifier(?=\s*\{) # followed by { </Rule>
  30.  
  31. <Rule color="Punctuation">[\)\(*\&\^\%\$\#@!\\\]\[;':",./<>?\{\}\|\-\=\+]+ </Rule>
  32.  
  33.  
  34. -<Span color="Comment" multiline="true">
  35.  
  36. <Begin>--\[[=]*\[</Begin>
  37.  
  38. <End>\][=]*\]</End>
  39.  
  40. </Span>
  41.  
  42.  
  43. -<Span color="Comment">
  44.  
  45. <Begin>--</Begin>
  46.  
  47. </Span>
  48.  
  49.  
  50. -<Span color="String">
  51.  
  52. <Begin color="Foreground">"</Begin>
  53.  
  54. <End color="Foreground">"</End>
  55.  
  56.  
  57. -<RuleSet>
  58.  
  59. <Rule color="Escapes">\\\d{1,3}|\\.</Rule>
  60.  
  61. </RuleSet>
  62.  
  63. </Span>
  64.  
  65.  
  66. -<Span color="String">
  67.  
  68. <Begin color="Foreground">'</Begin>
  69.  
  70. <End color="Foreground">'</End>
  71.  
  72.  
  73. -<RuleSet>
  74.  
  75. <Rule color="Escapes">\\\d\d?\d?|\\.</Rule>
  76.  
  77. </RuleSet>
  78.  
  79. </Span>
  80.  
  81.  
  82. -<Span color="String" multiline="true">
  83.  
  84. <Begin color="Foreground">\[[=]*\[</Begin>
  85.  
  86. <End color="Foreground">\][=]*]</End>
  87.  
  88. </Span>
  89.  
  90.  
  91. -<Keywords color="Literals">
  92.  
  93. <Word>true</Word>
  94.  
  95. <Word>false</Word>
  96.  
  97. </Keywords>
  98.  
  99.  
  100. -<Keywords color="Keywords">
  101.  
  102. <Word>and</Word>
  103.  
  104. <Word>break</Word>
  105.  
  106. <Word>continue</Word>
  107.  
  108. <Word>do</Word>
  109.  
  110. <Word>else</Word>
  111.  
  112. <Word>elseif</Word>
  113.  
  114. <Word>end</Word>
  115.  
  116. <Word>false</Word>
  117.  
  118. <Word>for</Word>
  119.  
  120. <Word>function</Word>
  121.  
  122. <Word>if</Word>
  123.  
  124. <Word>in</Word>
  125.  
  126. <Word>local</Word>
  127.  
  128. <Word>not</Word>
  129.  
  130. <Word>or</Word>
  131.  
  132. <Word>repeat</Word>
  133.  
  134. <Word>return</Word>
  135.  
  136. <Word>then</Word>
  137.  
  138. <Word>true</Word>
  139.  
  140. <Word>until</Word>
  141.  
  142. <Word>while</Word>
  143.  
  144. </Keywords>
  145.  
  146.  
  147. -<Keywords color="MethodCall">
  148.  
  149. <Word>print</Word>
  150.  
  151. <Word>warn</Word>
  152.  
  153. <Word>error</Word>
  154.  
  155. <Word>isreadonly</Word>
  156.  
  157. <Word>XPROTECT</Word>
  158.  
  159. <Word>LUAPROTECT</Word>
  160.  
  161. <Word>setreadonly</Word>
  162.  
  163. <Word>readfile</Word>
  164.  
  165. <Word>writefile</Word>
  166.  
  167. <Word>getrawmetatable</Word>
  168.  
  169. <Word>setmetatable</Word>
  170.  
  171. <Word>setclipboard</Word>
  172.  
  173. <Word>luaformat</Word>
  174.  
  175. <Word>RandomString</Word>
  176.  
  177. <Word>ReplaceString</Word>
  178.  
  179. <Word>HttpPost</Word>
  180.  
  181. <Word>queue_on_teleport</Word>
  182.  
  183. <Word>GetObjects</Word>
  184.  
  185. <Word>gethwid</Word>
  186.  
  187. <Word>getnilinstances</Word>
  188.  
  189. <Word>getgenv</Word>
  190.  
  191. <Word>getrenv</Word>
  192.  
  193. <Word>getreg</Word>
  194.  
  195. <Word>getgc</Word>
  196.  
  197. <Word>checkcaller</Word>
  198.  
  199. <Word>getloadedmodules</Word>
  200.  
  201. <Word>getconnections</Word>
  202.  
  203. </Keywords>
  204.  
  205.  
  206. -<Keywords color="Literals">
  207.  
  208. <Word>nil</Word>
  209.  
  210. </Keywords>
  211.  
  212. <!-- Digits -->
  213.  
  214.  
  215. <Rule color="Literals">\b0[xX][0-9a-fA-F]+ # hex number|( \b\d+(\.[0-9]+)? #number with optional floating point| \.[0-9]+ #or just starting with floating point)([eE][+-]?[0-9]+)? # optional exponent </Rule>
  216.  
  217. </RuleSet>
  218.  
  219. </SyntaxDefinition>