mysql.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <?xml version="1.0"?>
  2. <!-- $Id: mysql.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ -->
  3. <highlight lang="mysql" case="no">
  4. <authors>
  5. <author name="Andrey Demenev" email="demenev@gmail.com"/>
  6. </authors>
  7. <default innerClass="code" />
  8. <region name="qidentifier" delimClass="quotes" innerClass="identifier"
  9. start="`" end="`" />
  10. <region name="mlcomment" delimClass="comment" innerClass="comment"
  11. start="\/\*" end="\*\/" />
  12. <block name="comment" match="(#|--\s).*" innerClass="comment" />
  13. <block name="possiblefunction" match="[a-z_]\w*(?=\s*\()" innerClass="identifier" />
  14. <block name="identifier" match="[a-z_]\w*" innerClass="identifier" />
  15. <region name="strdouble" delimClass="quotes" innerClass="string"
  16. start="&quot;" end="&quot;" >
  17. </region>
  18. <region name="brackets" delimClass="brackets" innerClass="code"
  19. start="\(" end="\)" >
  20. <contains all="yes"/>
  21. </region>
  22. <region name="strsingle" delimClass="quotes" innerClass="string"
  23. start="'" end="'" />
  24. <block name="escaped" match="\\." innerClass="special" contained="yes">
  25. <onlyin region="strsingle"/>
  26. <onlyin region="strdouble"/>
  27. </block>
  28. <block name="exponent"
  29. match="((\d+|((\d*\.\d+)|(\d+\.\d*)))[eE][+-]?\d+)"
  30. innerClass="number" />
  31. <block name="float" match="(\d*\.\d+)|(\d+\.\d*)" innerClass="number"/>
  32. <block name="integer" match="\d+l?|\b0l?\b" innerClass="number" />
  33. <block name="hexinteger" match="0[xX][\da-f]+l?" innerClass="number" />
  34. <keywords name="reserved" inherits="identifier" innerClass="reserved"
  35. case="no">
  36. <keyword match="action" />
  37. <keyword match="add" />
  38. <keyword match="aggregate" />
  39. <keyword match="all" />
  40. <keyword match="alter" />
  41. <keyword match="after" />
  42. <keyword match="and" />
  43. <keyword match="as" />
  44. <keyword match="asc" />
  45. <keyword match="avg" />
  46. <keyword match="avg_row_length" />
  47. <keyword match="auto_increment" />
  48. <keyword match="between" />
  49. <keyword match="bigint" />
  50. <keyword match="bit" />
  51. <keyword match="binary" />
  52. <keyword match="blob" />
  53. <keyword match="bool" />
  54. <keyword match="both" />
  55. <keyword match="by" />
  56. <keyword match="cascade" />
  57. <keyword match="case" />
  58. <keyword match="char" />
  59. <keyword match="character" />
  60. <keyword match="change" />
  61. <keyword match="check" />
  62. <keyword match="checksum" />
  63. <keyword match="column" />
  64. <keyword match="columns" />
  65. <keyword match="comment" />
  66. <keyword match="constraint" />
  67. <keyword match="create" />
  68. <keyword match="cross" />
  69. <keyword match="current_date" />
  70. <keyword match="current_time" />
  71. <keyword match="current_timestamp" />
  72. <keyword match="data" />
  73. <keyword match="database" />
  74. <keyword match="databases" />
  75. <keyword match="date" />
  76. <keyword match="datetime" />
  77. <keyword match="day" />
  78. <keyword match="day_hour" />
  79. <keyword match="day_minute" />
  80. <keyword match="day_second" />
  81. <keyword match="dayofmonth" />
  82. <keyword match="dayofweek" />
  83. <keyword match="dayofyear" />
  84. <keyword match="dec" />
  85. <keyword match="decimal" />
  86. <keyword match="default" />
  87. <keyword match="delayed" />
  88. <keyword match="delay_key_write" />
  89. <keyword match="delete" />
  90. <keyword match="desc" />
  91. <keyword match="describe" />
  92. <keyword match="distinct" />
  93. <keyword match="distinctrow" />
  94. <keyword match="double" />
  95. <keyword match="drop" />
  96. <keyword match="end" />
  97. <keyword match="else" />
  98. <keyword match="escape" />
  99. <keyword match="escaped" />
  100. <keyword match="enclosed" />
  101. <keyword match="enum" />
  102. <keyword match="explain" />
  103. <keyword match="exists" />
  104. <keyword match="fields" />
  105. <keyword match="file" />
  106. <keyword match="first" />
  107. <keyword match="float" />
  108. <keyword match="float4" />
  109. <keyword match="float8" />
  110. <keyword match="flush" />
  111. <keyword match="foreign" />
  112. <keyword match="from" />
  113. <keyword match="for" />
  114. <keyword match="full" />
  115. <keyword match="function" />
  116. <keyword match="global" />
  117. <keyword match="grant" />
  118. <keyword match="grants" />
  119. <keyword match="group" />
  120. <keyword match="having" />
  121. <keyword match="heap" />
  122. <keyword match="high_priority" />
  123. <keyword match="hour" />
  124. <keyword match="hour_minute" />
  125. <keyword match="hour_second" />
  126. <keyword match="hosts" />
  127. <keyword match="identified" />
  128. <keyword match="ignore" />
  129. <keyword match="in" />
  130. <keyword match="index" />
  131. <keyword match="infile" />
  132. <keyword match="inner" />
  133. <keyword match="insert" />
  134. <keyword match="insert_id" />
  135. <keyword match="int" />
  136. <keyword match="integer" />
  137. <keyword match="interval" />
  138. <keyword match="int1" />
  139. <keyword match="int2" />
  140. <keyword match="int3" />
  141. <keyword match="int4" />
  142. <keyword match="int8" />
  143. <keyword match="into" />
  144. <keyword match="if" />
  145. <keyword match="is" />
  146. <keyword match="isam" />
  147. <keyword match="join" />
  148. <keyword match="key" />
  149. <keyword match="keys" />
  150. <keyword match="kill" />
  151. <keyword match="last_insert_id" />
  152. <keyword match="leading" />
  153. <keyword match="left" />
  154. <keyword match="length" />
  155. <keyword match="like" />
  156. <keyword match="lines" />
  157. <keyword match="limit" />
  158. <keyword match="load" />
  159. <keyword match="local" />
  160. <keyword match="lock" />
  161. <keyword match="logs" />
  162. <keyword match="long" />
  163. <keyword match="longblob" />
  164. <keyword match="longtext" />
  165. <keyword match="low_priority" />
  166. <keyword match="max" />
  167. <keyword match="max_rows" />
  168. <keyword match="match" />
  169. <keyword match="mediumblob" />
  170. <keyword match="mediumtext" />
  171. <keyword match="mediumint" />
  172. <keyword match="middleint" />
  173. <keyword match="min_rows" />
  174. <keyword match="minute" />
  175. <keyword match="minute_second" />
  176. <keyword match="modify" />
  177. <keyword match="month" />
  178. <keyword match="monthname" />
  179. <keyword match="myisam" />
  180. <keyword match="natural" />
  181. <keyword match="numeric" />
  182. <keyword match="no" />
  183. <keyword match="not" />
  184. <keyword match="null" />
  185. <keyword match="on" />
  186. <keyword match="optimize" />
  187. <keyword match="option" />
  188. <keyword match="optionally" />
  189. <keyword match="or" />
  190. <keyword match="order" />
  191. <keyword match="outer" />
  192. <keyword match="outfile" />
  193. <keyword match="pack_keys" />
  194. <keyword match="partial" />
  195. <keyword match="password" />
  196. <keyword match="precision" />
  197. <keyword match="primary" />
  198. <keyword match="procedure" />
  199. <keyword match="process" />
  200. <keyword match="processlist" />
  201. <keyword match="privileges" />
  202. <keyword match="read" />
  203. <keyword match="real" />
  204. <keyword match="references" />
  205. <keyword match="reload" />
  206. <keyword match="regexp" />
  207. <keyword match="rename" />
  208. <keyword match="replace" />
  209. <keyword match="restrict" />
  210. <keyword match="returns" />
  211. <keyword match="revoke" />
  212. <keyword match="rlike" />
  213. <keyword match="row" />
  214. <keyword match="rows" />
  215. <keyword match="second" />
  216. <keyword match="select" />
  217. <keyword match="set" />
  218. <keyword match="show" />
  219. <keyword match="shutdown" />
  220. <keyword match="smallint" />
  221. <keyword match="soname" />
  222. <keyword match="sql_big_tables" />
  223. <keyword match="sql_big_selects" />
  224. <keyword match="sql_low_priority_updates" />
  225. <keyword match="sql_log_off" />
  226. <keyword match="sql_log_update" />
  227. <keyword match="sql_select_limit" />
  228. <keyword match="sql_small_result" />
  229. <keyword match="sql_big_result" />
  230. <keyword match="sql_warnings" />
  231. <keyword match="straight_join" />
  232. <keyword match="starting" />
  233. <keyword match="status" />
  234. <keyword match="string" />
  235. <keyword match="table" />
  236. <keyword match="tables" />
  237. <keyword match="temporary" />
  238. <keyword match="terminated" />
  239. <keyword match="text" />
  240. <keyword match="then" />
  241. <keyword match="time" />
  242. <keyword match="timestamp" />
  243. <keyword match="tinyblob" />
  244. <keyword match="tinytext" />
  245. <keyword match="tinyint" />
  246. <keyword match="trailing" />
  247. <keyword match="to" />
  248. <keyword match="type" />
  249. <keyword match="use" />
  250. <keyword match="using" />
  251. <keyword match="unique" />
  252. <keyword match="unlock" />
  253. <keyword match="unsigned" />
  254. <keyword match="update" />
  255. <keyword match="usage" />
  256. <keyword match="values" />
  257. <keyword match="varchar" />
  258. <keyword match="variables" />
  259. <keyword match="varying" />
  260. <keyword match="varbinary" />
  261. <keyword match="with" />
  262. <keyword match="write" />
  263. <keyword match="when" />
  264. <keyword match="where" />
  265. <keyword match="year" />
  266. <keyword match="year_month" />
  267. <keyword match="zerofill" />
  268. </keywords>
  269. <keywords name="function" inherits="possiblefunction" innerClass="reserved"
  270. case="no" otherwise="identifier">
  271. <keyword match="ABS" />
  272. <keyword match="ACOS" />
  273. <keyword match="ADDDATE" />
  274. <keyword match="ASCII" />
  275. <keyword match="ASIN" />
  276. <keyword match="ATAN" />
  277. <keyword match="ATAN2" />
  278. <keyword match="AVG" />
  279. <keyword match="BENCHMARK" />
  280. <keyword match="BIN" />
  281. <keyword match="CEILING" />
  282. <keyword match="CHAR" />
  283. <keyword match="COALESCE" />
  284. <keyword match="CONCAT" />
  285. <keyword match="CONV" />
  286. <keyword match="COS" />
  287. <keyword match="COT" />
  288. <keyword match="COUNT" />
  289. <keyword match="CURDATE" />
  290. <keyword match="CURTIME" />
  291. <keyword match="DATABASE" />
  292. <keyword match="DAYNAME" />
  293. <keyword match="DAYOFMONTH" />
  294. <keyword match="DAYOFWEEK" />
  295. <keyword match="DAYOFYEAR" />
  296. <keyword match="DECODE" />
  297. <keyword match="DEGREES" />
  298. <keyword match="ELT" />
  299. <keyword match="ENCODE" />
  300. <keyword match="ENCRYPT" />
  301. <keyword match="EXP" />
  302. <keyword match="EXTRACT" />
  303. <keyword match="EXTRACT" />
  304. <keyword match="FIELD" />
  305. <keyword match="FLOOR" />
  306. <keyword match="FORMAT" />
  307. <keyword match="GREATEST" />
  308. <keyword match="HEX" />
  309. <keyword match="HOUR" />
  310. <keyword match="IF" />
  311. <keyword match="IFNULL" />
  312. <keyword match="INSERT" />
  313. <keyword match="INSTR" />
  314. <keyword match="INTERVAL" />
  315. <keyword match="ISNULL" />
  316. <keyword match="LCASE" />
  317. <keyword match="LEAST" />
  318. <keyword match="LEFT" />
  319. <keyword match="LENGTH" />
  320. <keyword match="LOCATE" />
  321. <keyword match="LOCATE" />
  322. <keyword match="LOG" />
  323. <keyword match="LOG10" />
  324. <keyword match="LOWER" />
  325. <keyword match="LPAD" />
  326. <keyword match="LTRIM" />
  327. <keyword match="MAX" />
  328. <keyword match="MD5" />
  329. <keyword match="MID" />
  330. <keyword match="MIN" />
  331. <keyword match="MINUTE" />
  332. <keyword match="MOD" />
  333. <keyword match="MONTH" />
  334. <keyword match="MONTHNAME" />
  335. <keyword match="NOW" />
  336. <keyword match="NULLIF" />
  337. <keyword match="OCT" />
  338. <keyword match="ORD" />
  339. <keyword match="PASSWORD" />
  340. <keyword match="PI" />
  341. <keyword match="POSITION" />
  342. <keyword match="POW" />
  343. <keyword match="POWER" />
  344. <keyword match="prepare" />
  345. <keyword match="QUARTER" />
  346. <keyword match="RADIANS" />
  347. <keyword match="RAND" />
  348. <keyword match="REPEAT" />
  349. <keyword match="REPLACE" />
  350. <keyword match="REVERSE" />
  351. <keyword match="RIGHT" />
  352. <keyword match="ROUND" />
  353. <keyword match="ROUND" />
  354. <keyword match="RPAD" />
  355. <keyword match="RTRIM" />
  356. <keyword match="SECOND" />
  357. <keyword match="SIGN" />
  358. <keyword match="SIN" />
  359. <keyword match="SOUNDEX" />
  360. <keyword match="SPACE" />
  361. <keyword match="SQRT" />
  362. <keyword match="STD" />
  363. <keyword match="STDDEV" />
  364. <keyword match="STRCMP" />
  365. <keyword match="SUBDATE" />
  366. <keyword match="SUBSTRING" />
  367. <keyword match="SUBSTRING" />
  368. <keyword match="SUM" />
  369. <keyword match="SYSDATE" />
  370. <keyword match="TAN" />
  371. <keyword match="TRIM" />
  372. <keyword match="TRUNCATE" />
  373. <keyword match="UCASE" />
  374. <keyword match="UPPER" />
  375. <keyword match="USER" />
  376. <keyword match="VERSION" />
  377. <keyword match="WEEK" />
  378. <keyword match="WEEKDAY" />
  379. <keyword match="YEAR" />
  380. </keywords>
  381. </highlight>