| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Dizatorr 21.04.2005 09:07 / 21.04.2005 09:14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Parser" version="1.01" section="Markup" extensions="*.p" mimetype="text/parser">
<highlighting>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Keyword" context="#stay" String="^@[^0-9\W_][\w_]{1,}" />
<RegExpr attribute="String Char" context="#stay" String="[\^][^0-9\W_][\w_]{1,}" />
<RegExpr attribute="Data Type" context="#stay" String="[\$][^0-9\W_][\w_]{1,}" />
<!-- Подсветим ковычки-->
<RegExpr attribute="Hex" context="#stay" String="[\[\]\(\)]" />
<!-- Подсветка цыфр -->
<Float attribute="Float" context="#stay"/>
<HlCHex attribute="Hex" context="#stay"/>
<Int attribute="Decimal" context="#stay"/>
<!-- Это типа сворачивание-->
<DetectChar attribute="Hex" context="#stay" char="{" beginRegion="Brace1" />
<DetectChar attribute="Hex" context="#stay" char="}" endRegion="Brace1" />
<!-- HTML разный -->
<!-- Комментарии -->
<DetectChar attribute="Comment" context="Comment" char="#"/>
<IncludeRules context="##HTML" />
<IncludeRules context="##SQL" />
</context>
<!-- Комментарии -->
<context name="Comment" attribute="Comment" lineEndContext="#pop"/>
<!-- HTML разный -->
<context name="HTML" attribute="Keyword" lineEndContext="#stay">
<IncludeRules context="##HTML" />
<DetectChar attribute="Keyword" context="#pop" char="&qt;" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Identifier" defStyleNum="dsOthers" />
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Element" defStyleNum="dsKeyword" />
<itemData name="Error" defStyleNum="dsNormal" color="#f11" underline="1" />
<itemData name="Alert" defStyleNum="dsNormal" bold="1" color="white" backgroundColor="red" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#"/>
</comments>
</general>
</language>