sql.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. <?xml version="1.0"?>
  2. <!-- $Id: sql.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ -->
  3. <highlight lang="sql" case="no">
  4. <authors>
  5. <author name="Andrey Demenev" email="demenev@gmail.com"/>
  6. </authors>
  7. <comment>Based on SQL-99</comment>
  8. <default innerClass="code" />
  9. <region name="qidentifier" delimClass="quotes" innerClass="identifier"
  10. start="`" end="`" />
  11. <region name="mlcomment" delimClass="comment" innerClass="comment"
  12. start="\/\*" end="\*\/" />
  13. <block name="comment" match="(#|--\s).*" innerClass="comment" />
  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" case = "no">
  35. <keyword match="ABSOLUTE" />
  36. <keyword match="ACTION" />
  37. <keyword match="ADD" />
  38. <keyword match="ADMIN" />
  39. <keyword match="AFTER" />
  40. <keyword match="AGGREGATE" />
  41. <keyword match="ALIAS" />
  42. <keyword match="ALL" />
  43. <keyword match="ALLOCATE" />
  44. <keyword match="ALTER" />
  45. <keyword match="AND" />
  46. <keyword match="ANY" />
  47. <keyword match="ARE" />
  48. <keyword match="ARRAY" />
  49. <keyword match="AS" />
  50. <keyword match="ASC" />
  51. <keyword match="ASSERTION" />
  52. <keyword match="AT" />
  53. <keyword match="AUTHORIZATION" />
  54. <keyword match="BEFORE" />
  55. <keyword match="BEGIN" />
  56. <keyword match="BINARY" />
  57. <keyword match="BIT" />
  58. <keyword match="BLOB" />
  59. <keyword match="BOOLEAN" />
  60. <keyword match="BOTH" />
  61. <keyword match="BREADTH" />
  62. <keyword match="BY" />
  63. <keyword match="CALL" />
  64. <keyword match="CASCADE" />
  65. <keyword match="CASCADED" />
  66. <keyword match="CASE" />
  67. <keyword match="CAST" />
  68. <keyword match="CATALOG" />
  69. <keyword match="CHAR" />
  70. <keyword match="CHARACTER" />
  71. <keyword match="CHECK" />
  72. <keyword match="CLASS" />
  73. <keyword match="CLOB" />
  74. <keyword match="CLOSE" />
  75. <keyword match="COLLATE" />
  76. <keyword match="COLLATION" />
  77. <keyword match="COLUMN" />
  78. <keyword match="COMMIT" />
  79. <keyword match="COMPLETION" />
  80. <keyword match="CONNECT" />
  81. <keyword match="CONNECTION" />
  82. <keyword match="CONSTRAINT" />
  83. <keyword match="CONSTRAINTS" />
  84. <keyword match="CONSTRUCTOR" />
  85. <keyword match="CONTINUE" />
  86. <keyword match="CORRESPONDING" />
  87. <keyword match="CREATE" />
  88. <keyword match="CROSS" />
  89. <keyword match="CUBE" />
  90. <keyword match="CURRENT" />
  91. <keyword match="CURRENT_DATE" />
  92. <keyword match="CURRENT_PATH" />
  93. <keyword match="CURRENT_ROLE" />
  94. <keyword match="CURRENT_TIME" />
  95. <keyword match="CURRENT_TIMESTAMP" />
  96. <keyword match="CURRENT_USER" />
  97. <keyword match="CURSOR" />
  98. <keyword match="CYCLE" />
  99. <keyword match="DATA" />
  100. <keyword match="DATE" />
  101. <keyword match="DAY" />
  102. <keyword match="DEALLOCATE" />
  103. <keyword match="DEC" />
  104. <keyword match="DECIMAL" />
  105. <keyword match="DECLARE" />
  106. <keyword match="DEFAULT" />
  107. <keyword match="DEFERRABLE" />
  108. <keyword match="DEFERRED" />
  109. <keyword match="DELETE" />
  110. <keyword match="DEPTH" />
  111. <keyword match="DEREF" />
  112. <keyword match="DESC" />
  113. <keyword match="DESCRIBE" />
  114. <keyword match="DESCRIPTOR" />
  115. <keyword match="DESTROY" />
  116. <keyword match="DESTRUCTOR" />
  117. <keyword match="DETERMINISTIC" />
  118. <keyword match="DIAGNOSTICS" />
  119. <keyword match="DICTIONARY" />
  120. <keyword match="DISCONNECT" />
  121. <keyword match="DISTINCT" />
  122. <keyword match="DOMAIN" />
  123. <keyword match="DOUBLE" />
  124. <keyword match="DROP" />
  125. <keyword match="DYNAMIC" />
  126. <keyword match="EACH" />
  127. <keyword match="ELSE" />
  128. <keyword match="END" />
  129. <keyword match="END-EXEC" />
  130. <keyword match="EQUALS" />
  131. <keyword match="ESCAPE" />
  132. <keyword match="EVERY" />
  133. <keyword match="EXCEPT" />
  134. <keyword match="EXCEPTION" />
  135. <keyword match="EXEC" />
  136. <keyword match="EXECUTE" />
  137. <keyword match="EXTERNAL" />
  138. <keyword match="FALSE" />
  139. <keyword match="FETCH" />
  140. <keyword match="FIRST" />
  141. <keyword match="FLOAT" />
  142. <keyword match="FOR" />
  143. <keyword match="FOREIGN" />
  144. <keyword match="FOUND" />
  145. <keyword match="FREE" />
  146. <keyword match="FROM" />
  147. <keyword match="FULL" />
  148. <keyword match="FUNCTION" />
  149. <keyword match="GENERAL" />
  150. <keyword match="GET" />
  151. <keyword match="GLOBAL" />
  152. <keyword match="GO" />
  153. <keyword match="GOTO" />
  154. <keyword match="GRANT" />
  155. <keyword match="GROUP" />
  156. <keyword match="GROUPING" />
  157. <keyword match="HAVING" />
  158. <keyword match="HOST" />
  159. <keyword match="HOUR" />
  160. <keyword match="IDENTITY" />
  161. <keyword match="IGNORE" />
  162. <keyword match="IMMEDIATE" />
  163. <keyword match="IN" />
  164. <keyword match="INDICATOR" />
  165. <keyword match="INITIALIZE" />
  166. <keyword match="INITIALLY" />
  167. <keyword match="INNER" />
  168. <keyword match="INOUT" />
  169. <keyword match="INPUT" />
  170. <keyword match="INSERT" />
  171. <keyword match="INT" />
  172. <keyword match="INTEGER" />
  173. <keyword match="INTERSECT" />
  174. <keyword match="INTERVAL" />
  175. <keyword match="INTO" />
  176. <keyword match="IS" />
  177. <keyword match="ISOLATION" />
  178. <keyword match="ITERATE" />
  179. <keyword match="JOIN" />
  180. <keyword match="KEY" />
  181. <keyword match="LANGUAGE" />
  182. <keyword match="LARGE" />
  183. <keyword match="LAST" />
  184. <keyword match="LATERAL" />
  185. <keyword match="LEADING" />
  186. <keyword match="LEFT" />
  187. <keyword match="LESS" />
  188. <keyword match="LEVEL" />
  189. <keyword match="LIKE" />
  190. <keyword match="LIMIT" />
  191. <keyword match="LOCAL" />
  192. <keyword match="LOCALTIME" />
  193. <keyword match="LOCALTIMESTAMP" />
  194. <keyword match="LOCATOR" />
  195. <keyword match="MAP" />
  196. <keyword match="MATCH" />
  197. <keyword match="MINUTE" />
  198. <keyword match="MODIFIES" />
  199. <keyword match="MODIFY" />
  200. <keyword match="MODULE" />
  201. <keyword match="MONTH" />
  202. <keyword match="NAMES" />
  203. <keyword match="NATIONAL" />
  204. <keyword match="NATURAL" />
  205. <keyword match="NCHAR" />
  206. <keyword match="NCLOB" />
  207. <keyword match="NEW" />
  208. <keyword match="NEXT" />
  209. <keyword match="NO" />
  210. <keyword match="NONE" />
  211. <keyword match="NOT" />
  212. <keyword match="NULL" />
  213. <keyword match="NUMERIC" />
  214. <keyword match="OBJECT" />
  215. <keyword match="OF" />
  216. <keyword match="OFF" />
  217. <keyword match="OLD" />
  218. <keyword match="ON" />
  219. <keyword match="ONLY" />
  220. <keyword match="OPEN" />
  221. <keyword match="OPERATION" />
  222. <keyword match="OPTION" />
  223. <keyword match="OR" />
  224. <keyword match="ORDER" />
  225. <keyword match="ORDINALITY" />
  226. <keyword match="OUT" />
  227. <keyword match="OUTER" />
  228. <keyword match="OUTPUT" />
  229. <keyword match="PAD" />
  230. <keyword match="PARAMETER" />
  231. <keyword match="PARAMETERS" />
  232. <keyword match="PARTIAL" />
  233. <keyword match="PATH" />
  234. <keyword match="POSTFIX" />
  235. <keyword match="PRECISION" />
  236. <keyword match="PREFIX" />
  237. <keyword match="PREORDER" />
  238. <keyword match="PREPARE" />
  239. <keyword match="PRESERVE" />
  240. <keyword match="PRIMARY" />
  241. <keyword match="PRIOR" />
  242. <keyword match="PRIVILEGES" />
  243. <keyword match="PROCEDURE" />
  244. <keyword match="PUBLIC" />
  245. <keyword match="READ" />
  246. <keyword match="READS" />
  247. <keyword match="REAL" />
  248. <keyword match="RECURSIVE" />
  249. <keyword match="REF" />
  250. <keyword match="REFERENCES" />
  251. <keyword match="REFERENCING" />
  252. <keyword match="RELATIVE" />
  253. <keyword match="RESTRICT" />
  254. <keyword match="RESULT" />
  255. <keyword match="RETURN" />
  256. <keyword match="RETURNS" />
  257. <keyword match="REVOKE" />
  258. <keyword match="RIGHT" />
  259. <keyword match="ROLE" />
  260. <keyword match="ROLLBACK" />
  261. <keyword match="ROLLUP" />
  262. <keyword match="ROUTINE" />
  263. <keyword match="ROW" />
  264. <keyword match="ROWS" />
  265. <keyword match="SAVEPOINT" />
  266. <keyword match="SCHEMA" />
  267. <keyword match="SCOPE" />
  268. <keyword match="SCROLL" />
  269. <keyword match="SEARCH" />
  270. <keyword match="SECOND" />
  271. <keyword match="SECTION" />
  272. <keyword match="SELECT" />
  273. <keyword match="SEQUENCE" />
  274. <keyword match="SESSION" />
  275. <keyword match="SESSION_USER" />
  276. <keyword match="SET" />
  277. <keyword match="SETS" />
  278. <keyword match="SIZE" />
  279. <keyword match="SMALLINT" />
  280. <keyword match="SOME" />
  281. <keyword match="SPACE" />
  282. <keyword match="SPECIFIC" />
  283. <keyword match="SPECIFICTYPE" />
  284. <keyword match="SQL" />
  285. <keyword match="SQLEXCEPTION" />
  286. <keyword match="SQLSTATE" />
  287. <keyword match="SQLWARNING" />
  288. <keyword match="START" />
  289. <keyword match="STATE" />
  290. <keyword match="STATEMENT" />
  291. <keyword match="STATIC" />
  292. <keyword match="STRUCTURE" />
  293. <keyword match="SYSTEM_USER" />
  294. <keyword match="TABLE" />
  295. <keyword match="TEMPORARY" />
  296. <keyword match="TERMINATE" />
  297. <keyword match="THAN" />
  298. <keyword match="THEN" />
  299. <keyword match="TIME" />
  300. <keyword match="TIMESTAMP" />
  301. <keyword match="TIMEZONE_HOUR" />
  302. <keyword match="TIMEZONE_MINUTE" />
  303. <keyword match="TO" />
  304. <keyword match="TRAILING" />
  305. <keyword match="TRANSACTION" />
  306. <keyword match="TRANSLATION" />
  307. <keyword match="TREAT" />
  308. <keyword match="TRIGGER" />
  309. <keyword match="TRUE" />
  310. <keyword match="UNDER" />
  311. <keyword match="UNION" />
  312. <keyword match="UNIQUE" />
  313. <keyword match="UNKNOWN" />
  314. <keyword match="UNNEST" />
  315. <keyword match="UPDATE" />
  316. <keyword match="USAGE" />
  317. <keyword match="USER" />
  318. <keyword match="USING" />
  319. <keyword match="VALUE" />
  320. <keyword match="VALUES" />
  321. <keyword match="VARCHAR" />
  322. <keyword match="VARIABLE" />
  323. <keyword match="VARYING" />
  324. <keyword match="VIEW" />
  325. <keyword match="WHEN" />
  326. <keyword match="WHENEVER" />
  327. <keyword match="WHERE" />
  328. <keyword match="WITH" />
  329. <keyword match="WITHOUT" />
  330. <keyword match="WORK" />
  331. <keyword match="WRITE" />
  332. <keyword match="YEAR" />
  333. <keyword match="ZONE" />
  334. </keywords>
  335. <keywords name="keyword" inherits="identifier" innerClass="var" case = "no">
  336. <keyword match="ABS" />
  337. <keyword match="ADA" />
  338. <keyword match="ASENSITIVE" />
  339. <keyword match="ASSIGNMENT" />
  340. <keyword match="ASYMMETRIC" />
  341. <keyword match="ATOMIC" />
  342. <keyword match="AVG" />
  343. <keyword match="BETWEEN" />
  344. <keyword match="BITVAR" />
  345. <keyword match="BIT_LENGTH" />
  346. <keyword match="C" />
  347. <keyword match="CALLED" />
  348. <keyword match="CARDINALITY" />
  349. <keyword match="CATALOG_NAME" />
  350. <keyword match="CHAIN" />
  351. <keyword match="CHARACTER_LENGTH" />
  352. <keyword match="CHARACTER_SET_CATALOG" />
  353. <keyword match="CHARACTER_SET_NAME" />
  354. <keyword match="CHARACTER_SET_SCHEMA" />
  355. <keyword match="CHAR_LENGTH" />
  356. <keyword match="CHECKED" />
  357. <keyword match="CLASS_ORIGIN" />
  358. <keyword match="COALESCE" />
  359. <keyword match="COBOL" />
  360. <keyword match="COLLATION_CATALOG" />
  361. <keyword match="COLLATION_NAME" />
  362. <keyword match="COLLATION_SCHEMA" />
  363. <keyword match="COLUMN_NAME" />
  364. <keyword match="COMMAND_FUNCTION" />
  365. <keyword match="COMMAND_FUNCTION_CODE" />
  366. <keyword match="COMMITTED" />
  367. <keyword match="CONDITION_NUMBER" />
  368. <keyword match="CONNECTION_NAME" />
  369. <keyword match="CONSTRAINT_CATALOG" />
  370. <keyword match="CONSTRAINT_NAME" />
  371. <keyword match="CONSTRAINT_SCHEMA" />
  372. <keyword match="CONTAINS" />
  373. <keyword match="CONVERT" />
  374. <keyword match="COUNT" />
  375. <keyword match="CURSOR_NAME" />
  376. <keyword match="DATETIME_INTERVAL_CODE" />
  377. <keyword match="DATETIME_INTERVAL_PRECISION" />
  378. <keyword match="DEFINED" />
  379. <keyword match="DEFINER" />
  380. <keyword match="DISPATCH" />
  381. <keyword match="DYNAMIC_FUNCTION" />
  382. <keyword match="DYNAMIC_FUNCTION_CODE" />
  383. <keyword match="EXISTING" />
  384. <keyword match="EXISTS" />
  385. <keyword match="EXTRACT" />
  386. <keyword match="FINAL" />
  387. <keyword match="FORTRAN" />
  388. <keyword match="G" />
  389. <keyword match="GENERATED" />
  390. <keyword match="GRANTED" />
  391. <keyword match="HIERARCHY" />
  392. <keyword match="HOLD" />
  393. <keyword match="IMPLEMENTATION" />
  394. <keyword match="INFIX" />
  395. <keyword match="INSENSITIVE" />
  396. <keyword match="INSTANCE" />
  397. <keyword match="INSTANTIABLE" />
  398. <keyword match="INVOKER" />
  399. <keyword match="K" />
  400. <keyword match="KEY_MEMBER" />
  401. <keyword match="KEY_TYPE" />
  402. <keyword match="LENGTH" />
  403. <keyword match="LOWER" />
  404. <keyword match="M" />
  405. <keyword match="MAX" />
  406. <keyword match="MESSAGE_LENGTH" />
  407. <keyword match="MESSAGE_OCTET_LENGTH" />
  408. <keyword match="MESSAGE_TEXT" />
  409. <keyword match="METHOD" />
  410. <keyword match="MIN" />
  411. <keyword match="MOD" />
  412. <keyword match="MORE" />
  413. <keyword match="MUMPS" />
  414. <keyword match="NAME" />
  415. <keyword match="NULLABLE" />
  416. <keyword match="NULLIF" />
  417. <keyword match="NUMBER" />
  418. <keyword match="OCTET_LENGTH" />
  419. <keyword match="OPTIONS" />
  420. <keyword match="OVERLAPS" />
  421. <keyword match="OVERLAY" />
  422. <keyword match="OVERRIDING" />
  423. <keyword match="PARAMETER_MODE" />
  424. <keyword match="PARAMETER_NAME" />
  425. <keyword match="PARAMETER_ORDINAL_POSITION" />
  426. <keyword match="PARAMETER_SPECIFIC_CATALOG" />
  427. <keyword match="PARAMETER_SPECIFIC_NAME" />
  428. <keyword match="PARAMETER_SPECIFIC_SCHEMA" />
  429. <keyword match="PASCAL" />
  430. <keyword match="PLI" />
  431. <keyword match="POSITION" />
  432. <keyword match="REPEATABLE" />
  433. <keyword match="RETURNED_LENGTH" />
  434. <keyword match="RETURNED_OCTET_LENGTH" />
  435. <keyword match="RETURNED_SQLSTATE" />
  436. <keyword match="ROUTINE_CATALOG" />
  437. <keyword match="ROUTINE_NAME" />
  438. <keyword match="ROUTINE_SCHEMA" />
  439. <keyword match="ROW_COUNT" />
  440. <keyword match="SCALE" />
  441. <keyword match="SCHEMA_NAME" />
  442. <keyword match="SECURITY" />
  443. <keyword match="SELF" />
  444. <keyword match="SENSITIVE" />
  445. <keyword match="SERIALIZABLE" />
  446. <keyword match="SERVER_NAME" />
  447. <keyword match="SIMILAR" />
  448. <keyword match="SIMPLE" />
  449. <keyword match="SOURCE" />
  450. <keyword match="SPECIFIC_NAME" />
  451. <keyword match="STYLE" />
  452. <keyword match="SUBCLASS_ORIGIN" />
  453. <keyword match="SUBLIST" />
  454. <keyword match="SUBSTRING" />
  455. <keyword match="SUM" />
  456. <keyword match="SYMMETRIC" />
  457. <keyword match="SYSTEM" />
  458. <keyword match="TABLE_NAME" />
  459. <keyword match="TRANSACTIONS_COMMITTED" />
  460. <keyword match="TRANSACTIONS_ROLLED_BACK" />
  461. <keyword match="TRANSACTION_ACTIVE" />
  462. <keyword match="TRANSFORM" />
  463. <keyword match="TRANSFORMS" />
  464. <keyword match="TRANSLATE" />
  465. <keyword match="TRIGGER_CATALOG" />
  466. <keyword match="TRIGGER_NAME" />
  467. <keyword match="TRIGGER_SCHEMA" />
  468. <keyword match="TRIM" />
  469. <keyword match="TYPE" />
  470. <keyword match="UNCOMMITTED" />
  471. <keyword match="UNNAMED" />
  472. <keyword match="UPPER" />
  473. <keyword match="USER_DEFINED_TYPE_CATALOG" />
  474. <keyword match="USER_DEFINED_TYPE_NAME" />
  475. <keyword match="USER_DEFINED_TYPE_SCHEMA" />
  476. </keywords>
  477. </highlight>