cgdata.hrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <regexp match="/&#34;(?:\\.|[^&#34;\\])*&#34;/" region="def:String"/>
  22. <!-- Числа (десятичные, шестнадцатеричные, восьмеричные, двоичные) -->
  23. <regexp match="/\b?(0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|0|[1-9]\d*)\b/" region="def:Number" />
  24. <!-- Блоки -->
  25. <block start="/(\{)/" end="/(\})/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  26. <block start="/(\()/" end="/(\))/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  27. <block start="/(\[)/" end="/(\])/" scheme="cgdata" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
  28. <!-- Ключевые слова -->
  29. <keywords region="def:Keyword" ignorecase="yes">
  30. <word name="yes"/>
  31. <word name="no"/>
  32. </keywords>
  33. <!-- Символы -->
  34. <keywords region="def:Symbol">
  35. <symb name="+"/>
  36. <symb name="-"/>
  37. <symb name="="/>
  38. <symb name="{" region="def:Error"/>
  39. <symb name="}" region="def:Error"/>
  40. <symb name="[" region="def:Error"/>
  41. <symb name="]" region="def:Error"/>
  42. <symb name=";"/>
  43. </keywords>
  44. </scheme>
  45. </type>
  46. </hrc>