PrettyPrintHighlighter.XML 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!DOCTYPE SyntaxHighlighter [
  3. <!ELEMENT SyntaxHighlighter (Styles, Highlighters)>
  4. <!ELEMENT Styles (Style*)>
  5. <!ELEMENT Style EMPTY>
  6. <!ELEMENT Highlighters (Highlighter*)>
  7. <!ELEMENT Highlighter (Words?, Regions?)>
  8. <!ELEMENT Words (#PCDATA)>
  9. <!ELEMENT Regions (Region*)>
  10. <!ELEMENT Region EMPTY>
  11. <!ATTLIST Style
  12. name NMTOKEN #REQUIRED
  13. fontname NMTOKEN "Oberon"
  14. fontsize NMTOKEN "12"
  15. fontstyle CDATA "{}"
  16. color NMTOKEN "FF"
  17. bgcolor NMTOKEN "0"
  18. voff NMTOKEN "0"
  19. >
  20. <!ATTLIST Highlighter
  21. name CDATA #REQUIRED
  22. defaultstyle CDATA #IMPLIED>
  23. <!ATTLIST Words allowCharacters CDATA #IMPLIED>
  24. <!ATTLIST Group name CDATA #REQUIRED>
  25. <!ATTLIST Region
  26. style CDATA #REQUIRED
  27. styleOpen CDATA #REQUIRED
  28. styleClose CDATA #REQUIRED
  29. open CDATA #REQUIRED
  30. close CDATA #REQUIRED
  31. nesting CDATA #REQUIRED
  32. multiline CDATA #REQUIRED
  33. >
  34. ]>
  35. <SyntaxHighlighter>
  36. <Styles>
  37. <Style name="Default"/>
  38. <Style name="Bold" fontsize="10" fontstyle="{0}" color="7090FFFF"/>
  39. <Style name="KeyWords" fontsize="10" fontstyle="{0}" color="7090FFFF"/>
  40. <Style name="KeyWordsL" fontstyle="{0}" color="7090FFFF"/>
  41. <Style name="Italic" fontstyle="{1}"/>
  42. <Style name="Red" fontsize="10" fontstyle="{0}" color="FF0000FF"/>
  43. <Style name="Blue" fontsize="10" fontstyle="{0}" color="0000FFFF"/>
  44. <Style name="Green" fontsize="10" fontstyle="{0}" color="009000FF"/>
  45. <Style name="Comment" color="808080FF"/>
  46. <Style name="Punctuation" color="707070FF"/>
  47. <Style name="ToDo" fontsize="10" fontstyle="{0}" color = "FF0000FF"/>
  48. <Style name="CommentItalic" fontstyle="{1}" color="808080FF"/>
  49. <Style name="Control" fontstyle="{0}" color="FFFF"/>
  50. <Style name="Modifiers" color="A000FF"/>
  51. <Style name="Locking" color="FF00FFFF"/>
  52. <Style name="Checks" fontsize="10" fontstyle="{0}" color="0000FFFF"/>
  53. <Style name="ChecksL" fontstyle="{0}" color="0000FFFF"/>
  54. <Style name="Threads" color="FF00FFFF"/>
  55. <Style name="ThreadsL" fontstyle="{0}" color="FF00FFFF"/>
  56. <Style name="Structure" fontsize="10" fontstyle="{0}" color="7090FFFF"/>
  57. <Style name="Operators" color="D02020FF"/>
  58. <Style name="OperatorKW" fontsize="10" fontstyle="{0}" color="CF5F5FFF"/>
  59. <Style name="OperatorKWL" fontstyle="{0}" color="E07070FF"/>
  60. <Style name="Values" color="158080FF"/>
  61. <Style name="ValueNames" fontsize="10" fontstyle="{0}" color="159898FF"/>
  62. <Style name="ValueNamesL" fontstyle="{0}" color="1088A8FF"/>
  63. <Style name="BasicTypes" fontsize="10" fontstyle="{0}" color="7F8FAFFF"/>
  64. <Style name="BasicTypesL" fontstyle="{0}" color="7080A0FF"/>
  65. <Style name="ComplexTypes" fontstyle="{0}" color="FFFF"/>
  66. <Style name="Dangerous" fontsize="10" fontstyle="{0}" color="FF0000FF"/>
  67. <Style name="DangerousL" fontstyle="{0}" color="FF0000FF"/>
  68. <Style name="Debug" color="FFFF"/>
  69. <Style name="String" color="7F002FFF"/>
  70. <Style name="Error" bgcolor="FF0000FF"/>
  71. <Style name="StdProc" fontsize="10" fontstyle="{0}" color="00A0C0FF"/>
  72. <Style name="StdProcL" fontstyle="{0}" color="00A0B0FF"/>
  73. </Styles>
  74. <Highlighters>
  75. <Highlighter name="PrintOberon" defaultstyle="Default">
  76. <Tokens>
  77. <Group style="Error">
  78. *)
  79. </Group>
  80. <Group style="Operators">
  81. = := * + - /
  82. &lt; &lt;= &gt;= &gt; &amp; ~ #
  83. </Group>
  84. <Group style="Comment">
  85. ; : ,
  86. </Group>
  87. </Tokens>
  88. <Words allowCharacters="._" numberStyle="Values">
  89. <Group style="KeyWords">
  90. FOR TO WHILE DO REPEAT UNTIL IF THEN ELSE ELSIF
  91. LOOP CASE BY
  92. BEGIN END CODE FINALLY
  93. OF WITH
  94. </Group>
  95. <Group style="KeyWords">
  96. RETURN EXIT
  97. </Group>
  98. <Group style="KeyWords">
  99. VAR CONST
  100. ARRAY POINTER
  101. </Group>
  102. <Group style="StdProc">
  103. NEW DISPOSE
  104. </Group>
  105. <Group style="OperatorKW">
  106. DIV MOD IN IS OR
  107. </Group>
  108. <Group style="StdProc">
  109. ABS ASH CAP CHR ORD NEW CAS
  110. COPY GETPROCEDURE LEN
  111. MAX MIN ODD ADDRESSOF SIZEOF SHORT LONG ENTIER ENTIERH
  112. RE IM
  113. LSH ROT INCR
  114. FIRST LAST STEP
  115. INCL EXCL INC DEC
  116. SEND RECEIVE
  117. OUT
  118. </Group>
  119. <Group style="Modifiers">
  120. DELEGATE REALTIME DISPOSABLE ALIGNED
  121. </Group>
  122. <Group style="Locking">
  123. KernelLog.Enter
  124. KernelLog.Exit
  125. Acquire Release
  126. *.Acquire *.Release
  127. AcquireRead ReleaseRead
  128. AcquireWrite ReleaseWrite
  129. *.AcquireRead *.ReleaseRead
  130. *.AcquireWrite *.ReleaseWrite
  131. mtxLock mtxUnlock conWait conSignal
  132. </Group>
  133. <Group style="Checks">
  134. ASSERT
  135. </Group>
  136. <Group style="Threads">
  137. ACTIVE SHARED PRIORITY AWAIT EXCLUSIVE
  138. </Group>
  139. <Group style="KeyWords">
  140. MODULE IMPORT TYPE DEFINITION REFINES IMPLEMENTS PROCEDURE OPERATOR
  141. OBJECT RECORD
  142. </Group>
  143. <Group style="ValueNames">
  144. NIL TRUE FALSE IMAG SELF
  145. </Group>
  146. <Group style="BasicTypes">
  147. BOOLEAN
  148. SHORTINT INTEGER LONGINT HUGEINT WORD LONGWORD
  149. REAL LONGREAL
  150. COMPLEX LONGCOMPLEX
  151. SET
  152. CHAR
  153. ANY
  154. RANGE
  155. ADDRESS SIZE
  156. </Group>
  157. <Group style="Dangerous">
  158. UNTRACED UNSAVE UNCHECKED UNCOOPERATIVE
  159. </Group>
  160. <Group style="Dangerous">
  161. S*.GET S*.GET8 S*.GET16 S*.GET32 S*.GET64
  162. S*.SIZEOF S*.TYPEOF
  163. S*.PUT S*.PUT8 S*.PUT16 S*.PUT32 S*.PUT64
  164. S*.VAL
  165. S*.ADR
  166. S*.MOVE
  167. S*.PORTIN S*.PORTOUT
  168. S*.CLI S*.STI
  169. SYSTEM
  170. S*.BYTE
  171. S*.BIT S*.MSK
  172. S*.FP S*.SETFP
  173. S*.SP S*.SETSP
  174. S*.LNK S*.SETLNK
  175. S*.PC S*.SETPC
  176. S*.LDPSR S*.STPSR
  177. S*.LDCPR S*.STCPR
  178. S*.FLUSH
  179. S*.NULL
  180. S*.XOR
  181. S*.MULD
  182. S*.ADDC
  183. S*.PACK S*.UNPK
  184. HALT
  185. </Group>
  186. <Group style="Debug">
  187. KernelLog
  188. KernelLog.Send
  189. KernelLog.String KernelLog.Ln
  190. KernelLog.Char KernelLog.Int KernelLog.Boolean
  191. KernelLog.IntSuffix KernelLog.Hex
  192. KernelLog.Address KernelLog.HIntHex
  193. KernelLog.Memory KernelLog.Buffer
  194. KernelLog.Bits
  195. KernelLog.OpenBuffer
  196. KernelLog.CloseBuffer
  197. Trace
  198. Trace.Send
  199. Trace.Ln Trace.String Trace.StringLn
  200. Trace.Int Trace.Boolean Trace.IntSuffix
  201. Trace.Hex Trace.Address
  202. Trace.HIntHex
  203. Trace.Memory Trace.Buffer Trace.Bits
  204. Trace.Blue Trace.Green Trace.Red Trace.Yellow Trace.Default
  205. </Group>
  206. </Words>
  207. <Regions>
  208. <Region
  209. style="Comment" styleOpen="Comment" styleClose="Comment"
  210. open="(*" close="*)" nesting="TRUE" multiline="TRUE"
  211. />
  212. <Region
  213. style="ToDo" styleOpen="Comment" styleClose="Comment"
  214. open="(*!" close="*)" nesting="TRUE" multiline="TRUE"
  215. />
  216. <Region
  217. style="Red" styleOpen="Comment" styleClose="Comment"
  218. open="(*?" close="*)" nesting="TRUE" multiline="TRUE"
  219. />
  220. <Region
  221. style="Comment" styleOpen="CommentItalic" styleClose="CommentItalic"
  222. open="(**" close="*)" nesting="TRUE" multiline="TRUE"
  223. />
  224. <Region
  225. style="String" styleOpen="Comment" styleClose="Comment"
  226. open='"' close='"' nesting="FALSE" multiline="FALSE"
  227. />
  228. <Region
  229. style="String" styleOpen="Comment" styleClose="Comment"
  230. open="'" close="'" nesting="FALSE" multiline="FALSE"
  231. />
  232. <Region
  233. style="Default" styleOpen="Default" styleClose="Default"
  234. open="CODE" close="END" nesting="FALSE" multiline="TRUE"
  235. />
  236. </Regions>
  237. </Highlighter>
  238. <Highlighter name="printoberon" defaultstyle="Default">
  239. <Tokens>
  240. <Group style="Error">
  241. *)
  242. </Group>
  243. <Group style="Operators">
  244. = := * + - /
  245. &lt; &lt;= &gt;= &gt; &amp; ~ #
  246. </Group>
  247. <Group style="Comment">
  248. ; : ,
  249. </Group>
  250. </Tokens>
  251. <Words allowCharacters="._" numberStyle="Values">
  252. <Group style="KeyWordsL">
  253. for to while do repeat until if then else elsif
  254. loop case by
  255. begin end code finally
  256. of with
  257. </Group>
  258. <Group style="KeyWordsL">
  259. return exit
  260. </Group>
  261. <Group style="KeyWordsL">
  262. var const
  263. array pointer
  264. </Group>
  265. <Group style="StdProcL">
  266. new dispose
  267. </Group>
  268. <Group style="OperatorKWL">
  269. div mod in is or
  270. </Group>
  271. <Group style="StdProcL">
  272. abs ash cap chr ord cas
  273. copy getprocedure len
  274. max min odd addressof sizeof short long entier entierh
  275. re im
  276. lsh rot incr
  277. first last step
  278. incl excl inc dec
  279. send receive
  280. out
  281. </Group>
  282. <Group style="Modifiers">
  283. DELEGATE REALTIME DISPOSABLE ALIGNED
  284. </Group>
  285. <Group style="Locking">
  286. KernelLog.Enter
  287. KernelLog.Exit
  288. Acquire Release
  289. *.Acquire *.Release
  290. AcquireRead ReleaseRead
  291. AcquireWrite ReleaseWrite
  292. *.AcquireRead *.ReleaseRead
  293. *.AcquireWrite *.ReleaseWrite
  294. mtxLock mtxUnlock conWait conSignal
  295. </Group>
  296. <Group style="ChecksL">
  297. assert
  298. </Group>
  299. <Group style="Threads">
  300. ACTIVE SHARED PRIORITY EXCLUSIVE
  301. </Group>
  302. <Group style="ThreadsL">
  303. await
  304. </Group>
  305. <Group style="KeyWordsL">
  306. module import type definition refines implements procedure operator
  307. object record
  308. </Group>
  309. <Group style="ValueNamesL">
  310. nil true false imag self
  311. </Group>
  312. <Group style="BasicTypesL">
  313. boolean
  314. shortint integer longint hugeint
  315. real longreal
  316. complex longcomplex
  317. set
  318. char
  319. any
  320. range
  321. address size
  322. </Group>
  323. <Group style="Dangerous">
  324. UNTRACED UNSAVE UNCHECKED UNCOOPERATIVE
  325. </Group>
  326. <Group style="DangerousL">
  327. system.get system.get8 system.get16 system.get32 system.get64
  328. system.sizeof system.typeof
  329. system.put system.put8 system.put16 system.put32 system.put64
  330. system.val
  331. system.adr
  332. system.move
  333. system.portin system.portput
  334. system.cli system.sti
  335. system
  336. system.byte
  337. system.bit system.msk
  338. system.fp system.setfp
  339. system.sp system.setsp
  340. system.lnk system.setlnk
  341. system.pc system.setpc
  342. system.ldpsr system.stpsr
  343. system.ldcpr system.stcpr
  344. system.flush
  345. system.null
  346. system.xor
  347. system.muld
  348. system.addc
  349. system.pack system.unpk
  350. system.typecode
  351. halt
  352. </Group>
  353. <Group style="Debug">
  354. KernelLog
  355. KernelLog.Send
  356. KernelLog.String KernelLog.Ln
  357. KernelLog.Char KernelLog.Int KernelLog.Boolean
  358. KernelLog.IntSuffix KernelLog.Hex
  359. KernelLog.Address KernelLog.HIntHex
  360. KernelLog.Memory KernelLog.Buffer
  361. KernelLog.Bits
  362. KernelLog.OpenBuffer
  363. KernelLog.CloseBuffer
  364. Trace
  365. Trace.Send
  366. Trace.Ln Trace.String Trace.StringLn
  367. Trace.Int Trace.Boolean Trace.IntSuffix
  368. Trace.Hex Trace.Address
  369. Trace.HIntHex
  370. Trace.Memory Trace.Buffer Trace.Bits
  371. Trace.Blue Trace.Green Trace.Red Trace.Yellow Trace.Default
  372. </Group>
  373. </Words>
  374. <Regions>
  375. <Region
  376. style="Comment" styleOpen="Comment" styleClose="Comment"
  377. open="(*" close="*)" nesting="TRUE" multiline="TRUE"
  378. />
  379. <Region
  380. style="ToDo" styleOpen="Comment" styleClose="Comment"
  381. open="(*!" close="*)" nesting="TRUE" multiline="TRUE"
  382. />
  383. <Region
  384. style="Red" styleOpen="Comment" styleClose="Comment"
  385. open="(*?" close="*)" nesting="TRUE" multiline="TRUE"
  386. />
  387. <Region
  388. style="Comment" styleOpen="CommentItalic" styleClose="CommentItalic"
  389. open="(**" close="*)" nesting="TRUE" multiline="TRUE"
  390. />
  391. <Region
  392. style="String" styleOpen="Comment" styleClose="Comment"
  393. open='"' close='"' nesting="FALSE" multiline="FALSE"
  394. />
  395. <Region
  396. style="String" styleOpen="Comment" styleClose="Comment"
  397. open="'" close="'" nesting="FALSE" multiline="FALSE"
  398. />
  399. </Regions>
  400. </Highlighter>
  401. <Highlighter name="Assembler">
  402. <Words allowCharacters=":">
  403. <Group style="Bold">
  404. *:
  405. </Group>
  406. </Words>
  407. <Regions>
  408. <Region
  409. style="Comment" styleOpen="Comment" styleClose="Comment"
  410. open =";" close="" nesting="FALSE" multiline="FALSE"
  411. />
  412. </Regions>
  413. </Highlighter>
  414. </Highlighters>
  415. </SyntaxHighlighter>