|
@@ -5,6 +5,13 @@
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
|
|
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
|
|
|
|
|
|
|
|
|
|
+ <annotation><documentation>
|
|
|
|
|
+ CGPL files Syntax Highlighting
|
|
|
|
|
+ </documentation><contributors><![CDATA[
|
|
|
|
|
+ Created by:
|
|
|
|
|
+ Iurii Tolskii <iurii.tolskii@communigatepro.ru>
|
|
|
|
|
+ ]]></contributors></annotation>
|
|
|
|
|
+
|
|
|
<prototype name="cgpl" group="main" description="CGPL files">
|
|
<prototype name="cgpl" group="main" description="CGPL files">
|
|
|
<location link="cgpl.hrc" />
|
|
<location link="cgpl.hrc" />
|
|
|
<filename>/\.(cgpl|sppr|sppi|wcgi|wcgp)$/i</filename>
|
|
<filename>/\.(cgpl|sppr|sppi|wcgi|wcgp)$/i</filename>
|
|
@@ -16,12 +23,19 @@
|
|
|
<!-- Комментарии -->
|
|
<!-- Комментарии -->
|
|
|
<block start="/\/\//" end="/$/" scheme="def:Comment" region="def:LineComment"/>
|
|
<block start="/\/\//" end="/$/" scheme="def:Comment" region="def:LineComment"/>
|
|
|
<block start="/\/\*/" end="/\*\//" scheme="def:Comment" region="def:Comment" region00="def:PairStart" region10="def:PairEnd"/>
|
|
<block start="/\/\*/" end="/\*\//" scheme="def:Comment" region="def:Comment" region00="def:PairStart" region10="def:PairEnd"/>
|
|
|
- <!-- Строки -->
|
|
|
|
|
- <regexp match="/"(?:\\.|[^"\\])*"/" region="def:String"/>
|
|
|
|
|
<!-- Числа (десятичные, шестнадцатеричные, восьмеричные, двоичные) -->
|
|
<!-- Числа (десятичные, шестнадцатеричные, восьмеричные, двоичные) -->
|
|
|
<regexp match="/\b(0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|0|[1-9]\d*)\b/" region="def:Number" />
|
|
<regexp match="/\b(0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|0|[1-9]\d*)\b/" region="def:Number" />
|
|
|
|
|
+ <!-- Строки -->
|
|
|
|
|
+ <regexp match="/"(?:\\.|[^"\\])*"/" region="def:String"/>
|
|
|
|
|
+ <!-- Блоки -->
|
|
|
|
|
+ <block start="/\b(is)\b/i" end="/\b(end)\b/i" scheme="cgpl" region00="def:Keyword" region01="def:PairStart" region10="def:Keyword" region11="def:PairEnd"/>
|
|
|
|
|
+ <block start="/\b(if)\b/i" end="/\b(end\s+if)/i" scheme="cgpl" region00="def:Keyword" region01="def:PairStart" region10="def:Keyword" region11="def:PairEnd"/>
|
|
|
|
|
+ <block start="/\b(loop)\b/i" end="/\b(end\s+loop)/i" scheme="cgpl" region00="def:Keyword" region01="def:PairStart" region10="def:Keyword" region11="def:PairEnd"/>
|
|
|
|
|
+ <block start="/(\{)/" end="/(\})/" scheme="cgpl" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
|
|
|
|
|
+ <block start="/(\()/" end="/(\))/" scheme="cgpl" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
|
|
|
|
|
+ <block start="/(\[)/" end="/(\])/" scheme="cgpl" region00="def:Symbol" region01="def:PairStart" region10="def:Symbol" region11="def:PairEnd"/>
|
|
|
<!-- Ключевые слова -->
|
|
<!-- Ключевые слова -->
|
|
|
- <keywords region="def:Keyword">
|
|
|
|
|
|
|
+ <keywords region="def:Keyword" ignorecase="yes">
|
|
|
<word name="and"/>
|
|
<word name="and"/>
|
|
|
<word name="by"/>
|
|
<word name="by"/>
|
|
|
<word name="elif"/>
|
|
<word name="elif"/>
|
|
@@ -85,10 +99,10 @@
|
|
|
<symb name="]"/>
|
|
<symb name="]"/>
|
|
|
<symb name="{"/>
|
|
<symb name="{"/>
|
|
|
<symb name="}"/>
|
|
<symb name="}"/>
|
|
|
- <symb name=";" region="def:SymbolStrong"/>
|
|
|
|
|
|
|
+ <symb name=";"/>
|
|
|
</keywords>
|
|
</keywords>
|
|
|
<!-- Встроенные функции и процедуры -->
|
|
<!-- Встроенные функции и процедуры -->
|
|
|
- <keywords region="def:Label">
|
|
|
|
|
|
|
+ <keywords region="def:Label" ignorecase="yes">
|
|
|
<word name="Same"/>
|
|
<word name="Same"/>
|
|
|
<word name="Copy"/>
|
|
<word name="Copy"/>
|
|
|
<word name="Length"/>
|
|
<word name="Length"/>
|