cgdata.hrc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
  3. "http://colorer.sf.net/2003/hrc.dtd">
  4. <hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
  7. <annotation><documentation>
  8. CG data files Syntax Highlighting
  9. </documentation><contributors><![CDATA[
  10. Created by:
  11. Iurii Tolskii <iurii.tolskii@communigatepro.ru>
  12. ]]></contributors></annotation>
  13. <prototype name="cgdata" group="main" description="CG data files">
  14. <location link="cgdata.hrc" />
  15. <filename>/\.(settings|dst|info|data|prefs|objdata)$/i</filename>
  16. </prototype>
  17. <type name="cgdata">
  18. <import type="def"/>
  19. <scheme name="cgdata">
  20. <!-- Комментарии -->
  21. <block start="/\/\//" end="/$/" scheme="def:Comment" region="def:LineComment"/>
  22. <block start="/\/\*/" end="/\*\//" scheme="def:Comment" region="def:Comment" region00="def:PairStart" region10="def:PairEnd"/>
  23. <!-- Строки -->
  24. <regexp match="/&#34;(?:\\.|[^&#34;\\])*&#34;/" region="def:String"/>
  25. <!-- Числа (десятичные, шестнадцатеричные, восьмеричные, двоичные) -->
  26. <regexp match="/\b?(0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|0|[1-9]\d*)\b/" region="def:Number" />
  27. <!-- Блоки -->
  28. <block start="/(\{)/" end="/(\})/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  29. <block start="/(\()/" end="/(\))/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  30. <block start="/(\[)/" end="/(\])/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  31. <!-- Ключевые слова -->
  32. <keywords region="def:Keyword" ignorecase="yes">
  33. <word name="yes"/>
  34. <word name="no"/>
  35. </keywords>
  36. <!-- Символы -->
  37. <keywords region="def:Symbol">
  38. <symb name="+"/>
  39. <symb name="-"/>
  40. <symb name="="/>
  41. <symb name="{" region="def:Error"/>
  42. <symb name="}" region="def:Error"/>
  43. <symb name="[" region="def:Error"/>
  44. <symb name="]" region="def:Error"/>
  45. <symb name=";"/>
  46. </keywords>
  47. </scheme>
  48. </type>
  49. </hrc>