-Поиск по дневнику

Поиск сообщений в lazydev

 -Подписка по e-mail

 

 -Постоянные читатели

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 09.12.2010
Записей:
Комментариев:
Написано: 14


Groovy 4 FAR Manager

Понедельник, 18 Августа 2014 г. 02:57 + в цитатник
Wolverrum все записи автора Rus: Подсветка к плагину FarColorer для Groovy
Eng: Groovy syntas highlighting schemes for FarColorer


Prototypes:
code:

<prototype name="groovy" group="main" description="Groovy">
<location link="groovy.hrc"/>
<filename>/\.groovy$/i</filename>
<firstline>/import/</firstline>
<parameters>
<param name="j2se-classes" value="true" description="Use some common used J2SE class names"/>
<param name="tabs-as-errors" value="false" description="Shows tabulation symbol as error"/>
<param name="spaces-as-errors" value="false" description="Shows trailing spaces as error"/>
</parameters>
</prototype>



Groovy.hrc:
code:

<?xml version="1.0" encoding='Windows-1251'?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
"http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
<!--
-->
<annotation>
<documentation>
Groovy
</documentation>
<contributors>
Yury Finkel
</contributors>
<appinfo>
<prototype name="groovy" group="main" description="Groovy">
<location link="groovy.hrc"/>
<filename>/\.groovy$/i</filename>
<firstline>/import/</firstline>
<parameters>
<param name="j2se-classes" value="true" description="Use some common used J2SE class names"/>
<param name="tabs-as-errors" value="false" description="Shows tabulation symbol as error"/>
<param name="spaces-as-errors" value="false" description="Shows trailing spaces as error"/>
</parameters>
</prototype>
</appinfo>
</annotation>
<type name="groovy">

<import type="def"/>

<scheme name="String">
<regexp match="/\\./" region0="Comment"/>
</scheme>

<scheme name="GString">
<block start="/\$\{/" end="/\}/" scheme="GString"
region="VarStrong"
region00="PairStart" region10="PairEnd"
/>
<regexp match='/\$\w+/' region0="VarStrong"/>
<inherit scheme="String"/>
</scheme>

<scheme name="groovy">
<!-- Comments -->
<block start="/\/\//" end="/$/" scheme="Comment" region="LineComment"/>
<block start="/\/\*/" end="/\*\//" scheme="Comment" region="Comment" region00="PairStart" region10="PairEnd"/>
<!-- paired -->
<block start="/(\()/" end="/(\))/" scheme="groovy" region00="SymbolStrong" region01="PairStart" region10="SymbolStrong" region11="PairEnd"/>
<block start="/(\[)/" end="/(\])/" scheme="groovy" region00="SymbolStrong" region01="PairStart" region10="SymbolStrong" region11="PairEnd"/>
<block start="/(\{)/" end="/(\})/" scheme="groovy" region00="SymbolStrong" region01="PairStart" region10="SymbolStrong" region11="PairEnd"/>
<!-- Strings -->
<regexp match="/(((\/))[^\/]+((\/)))(\s*(\w|\(|\[|\{))?!/"
region1="String"
region2="StringEdge" region3="PairStart"
region4="StringEdge" region5="PairEnd"/>
<block start="/(''')/" end="/(''')/"
scheme="String" region="String"
region00="StringEdge" region01="PairStart" region10="StringEdge" region11="PairEnd"/>
<block start="/(""")/" end="/(""")/"
scheme="GString" region="String"
region00="StringEdge" region01="PairStart" region10="StringEdge" region11="PairEnd"/>
<block start="/(")/" end="/("|$)/"
scheme="GString" region="String"
region00="StringEdge" region01="PairStart" region10="StringEdge" region11="PairEnd"/>
<block start="/(')/" end="/('|$)/"
scheme="String" region="String"
region00="StringEdge" region01="PairStart" region10="StringEdge" region11="PairEnd"/>


<!--<block start="/([^\w\]\)\}'"\.\/])\s*\//" end="/\/|$/" scheme="String" region="String"/>-->
<!--<block start="/(\/)([^\/])?=/" end="/(\/)(\s*[^\/\w\(\{\[])?|$/"
scheme="String" region="String"
region00="StringEdge" region01="PairStart" region10="StringEdge" region11="PairEnd"/>-->

<!-- Numbers -->
<regexp match="/\B(\$[\da-fA-F]+)\b/" region0="pNumb"/>
<inherit scheme="FloatNumber"/>
<inherit scheme="DecNumber"/>
<regexp match="/\B(\$[\da-fA-F]*?([^\s\W\da-fA-F]).*?)\b/" region0="Error"/>

<!-- Symbols -->
<keywords region="Symbol">
<symb name="="/>
<symb name="<"/>
<symb name=">"/>
<symb name="+"/>
<symb name="-"/>
<symb name="*"/>
<symb name="/"/>
<symb name="%"/>
<symb name=")"/>
<symb name="]"/>
<symb name="}"/>
<symb name="("/>
<symb name="["/>
<symb name="{"/>
<symb name="&"/>
<symb name="|"/>
<symb name="^"/>
<symb name="~"/>
<symb name="!"/>
<symb name="?"/>
<symb name=":"/>
<symb name="."/>
<symb name="@"/>
<symb name=","/>
<symb name=";" region="SymbolStrong"/>
</keywords>

<keywords ignorecase="no" region="Keyword">
<word name="abstract"/>
<word name="any"/>
<word name="as"/>
<word name="assert"/>
<word name="boolean"/>
<word name="break"/>
<word name="byte"/>
<word name="case"/>
<word name="catch"/>
<word name="char"/>
<word name="class"/>
<word name="const"/>
<word name="continue"/>
<word name="def"/>
<word name="default"/>
<word name="do"/>
<word name="double"/>
<word name="else"/>
<word name="enum"/>
<word name="extends"/>
<word name="false"/>
<word name="final"/>
<word name="finally"/>
<word name="float"/>
<word name="for"/>
<word name="goto"/>
<word name="if"/>
<word name="implements"/>
<word name="import"/>
<word name="in"/>
<word name="instanceof"/>
<word name="int"/>
<word name="interface"/>
<word name="long"/>
<word name="native"/>
<word name="new"/>
<word name="null"/>
<word name="package"/>
<word name="private"/>
<word name="protected"/>
<word name="public"/>
<word name="return"/>
<word name="short"/>
<word name="static"/>
<word name="strictfp"/>
<word name="super"/>
<word name="switch"/>
<word name="synchronized"/>
<word name="this"/>
<word name="threadsafe"/>
<word name="throw"/>
<word name="throws"/>
<word name="transient"/>
<word name="true"/>
<word name="try"/>
<word name="void"/>
<word name="volatile"/>
<word name="while"/>
</keywords>

<keywords ignorecase="no" region="FunctionKeyword">
<word name="delegate"/>
<word name="it"/>
<word name="owner"/>
<word name="use"/>
<word name="with"/>
<word name="each"/>
<word name="print"/>
<word name="println"/>
<word name="toString"/>
<word name="toInteger"/>
<word name="String"/>
<word name="Object"/>
</keywords>

</scheme>



</type>
</hrc>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is the Colorer Library.
-
- The Initial Developer of the Original Code is
- Cail Lomecb <cail@nm.ru>.
- Portions created by the Initial Developer are Copyright (C) 1999-2005
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the LGPL or the GPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->



 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку