ObjectPascal.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0"?>
  2. <Language name="Object Pascal" ext="pas" ColorBlock="Block">
  3. <Completion OpenOnKeyUp="false">
  4. <Include Attribute="Keyword"></Include>
  5. "begin&#xD; &#xD;end;"
  6. "if expresion then begin&#xD; &#xD;end;"
  7. "if expresion then begin&#xD; &#xD;end else begin&#xD;end;"
  8. "while expresion do begin&#xD; &#xD;end;"
  9. </Completion>
  10. <Attribute Name="Keyword" Style="b"> </Attribute>
  11. <Identifiers CharsStart= "A..Za..z_" Content = "A..Za..z0..9_">
  12. <token attribute="Keyword">
  13. absolute and array asm as
  14. begin
  15. case const constructor class
  16. destructor div do downto dispose
  17. else end exit except exports
  18. for function file finalization finally
  19. goto
  20. if implementation in inherited inline interface initialization is
  21. library label
  22. mod
  23. not nil new
  24. or object of on operator out
  25. procedure property public private packed program
  26. repeat record reintroduce raise
  27. string self set shl shr
  28. then to try true type threadvar
  29. unit until uses
  30. var
  31. while with
  32. xor
  33. </token>
  34. </Identifiers>
  35. <Token CharsStart="$" Content = '0..9ABCDEFabcdef' Attribute='NUMBER'> </Token>
  36. <Token CharsStart="#" Content = '0..9' Attribute='STRING'> </Token>
  37. <Token CharsStart="0..9" Content = '0..9.' Attribute='NUMBER'> </Token>
  38. <String Start="'" End="'"></String>
  39. <Comment Start="//" ></Comment>
  40. <Comment Start="(*" End="*)" Multiline="true"></Comment>
  41. <Comment Start="{" End="}" Multiline="true" Folding="true"></Comment>
  42. <Section Name="unit" Start="unit"></Section>
  43. <Section Name="interface" Start="interface" BackCol="#E0FFF0">
  44. <Block Start="(" End=")" BackCol="Transparent"></Block>
  45. </Section>
  46. <Section Name="implementation" Start="implementation">
  47. <Block Name="Proc" Start="procedure" End="end">
  48. <Block Name="ProcParam" Start="(" End=")" Folding="false"></Block>
  49. <Section Start="var" > </Section>
  50. <Section Start="begin" Unique="true"> </Section>
  51. </Block>
  52. <Block Name="Func" Start="function" End="end">
  53. <Block Name="FuncParam" Start="(" End=")" Folding="false"></Block>
  54. <Section Start="var" > </Section>
  55. <Section Start="begin" Unique="true"> </Section>
  56. </Block>
  57. </Section>
  58. <Section Name="unit-type" Start="type" Parent="unit"></Section>
  59. <Block Name="Class" Start="Class" End="end" BackCol="Transparent">
  60. <Section Start="published" BackCol="Transparent"> </Section>
  61. <Section Start="private" BackCol="Transparent"> </Section>
  62. <Section Start="public" BackCol="Transparent"> </Section>
  63. </Block>
  64. <Block Name="Record" Start="Record" End="End" BackCol="Transparent"></Block>
  65. <Block Name="BeginEnd" Start="Begin" End= "End">
  66. </Block>
  67. <Block>
  68. <Start> Repeat </Start>
  69. <End> Until </End>
  70. </Block>
  71. <Block Start="Case" End= "End" ></Block>
  72. <Block Name="Proc" Start="procedure" End="end" Parent="Main" BackCol="#D0F5FF">
  73. <Block Name="ProcParam" Start="(" End=")" Folding="false"></Block>
  74. <Section Start="var" BackCol="#F3F781"> </Section>
  75. <Section Start="begin" BackCol="#F5DA81" Unique="true"> </Section>
  76. </Block>
  77. <Block Name="Func" Start="function" End="end" Parent="Main" BackCol="#D0F5FF">
  78. <Block Name="FuncParam" Start="(" End=")" Folding="false"></Block>
  79. <Section Start="var" BackCol="#F3F781"> </Section>
  80. <Section Start="begin" BackCol="#F5DA81" Unique="true"> </Section>
  81. </Block>
  82. </Language>