Commit 0e27bad0 authored by Leandro Melo's avatar Leandro Melo

Generic highlighter: Add some Kate LGPL files

Reviewed-by: con
parent 08ddd9f9
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
This file is part of KDE's kate project.
copyright : (C) 2004 by Dominik Haumann
email : dhdev at gmx dot de
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; if not, write to the *
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
**********************************************************************
This file is included in every file that highlights the "alerts" keywords.
That's why extensions and mimetype are empty.
-->
<language version="1.08" kateversion="2.3" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
<highlighting>
<list name="alerts">
<item> ### </item>
<item> ALERT </item>
<item> BUG </item>
<item> DANGER </item>
<item> DEPRECATED </item>
<item> FIXME </item>
<item> HACK </item>
<item> NOTE </item>
<item> NOTICE </item>
<item> SECURITY </item>
<item> TASK </item>
<item> TEST </item>
<item> TESTING </item>
<item> TODO </item>
<item> WARNING </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<keyword attribute="Alert" context="#stay" String="alerts" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Alert" defStyleNum="dsAlert"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="1"/>
</general>
</language>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE language SYSTEM "language.dtd"[
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>
<language name="DTD" version="1.02" kateversion="2.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
<highlighting>
<list name="Category">
<item>EMPTY</item>
<item>ANY</item>
<item>CDATA</item>
<item>ID</item>
<item>IDREF</item>
<item>IDREFS</item>
<item>NMTOKEN</item>
<item>NMTOKENS</item>
<item>ENTITY</item>
<item>ENTITIES</item>
<item>NOTATION</item>
<item>PUBLIC</item>
<item>SYSTEM</item>
<item>NDATA</item>
</list>
<list name="Keywords">
<item>#PCDATA</item>
<item>#REQUIRED</item>
<item>#IMPLIED</item>
<item>#FIXED</item>
</list>
<contexts>
<context name="Normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<StringDetect attribute="Processing Instruction" context="PI" String="&lt;?xml" beginRegion="pi" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ELEMENT" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ATTLIST" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!NOTATION" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ENTITY" beginRegion="declaration" />
<DetectIdentifier />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context name="PI" attribute="Normal" lineEndContext="#stay">
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
</context>
<context name="Declaration" attribute="Normal" lineEndContext="#stay">
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<Detect2Chars attribute="Comment" context="InlineComment" char="-" char1="-" />
<DetectChar attribute="Declaration" context="#pop" char="&gt;" endRegion="declaration" />
<DetectChar attribute="String" context="String" char="&quot;" />
<RegExpr attribute="Declaration" context="#stay" String="(-|O)\s(-|O)" />
<AnyChar attribute="Delimiter" context="#stay" String="(|)," />
<RegExpr attribute="Entity" context="#stay" String="(%|&amp;)&entref;" />
<AnyChar attribute="Symbol" context="#stay" String="?*+-&amp;" />
<RegExpr attribute="Local" context="#stay" String="%\s" />
<keyword attribute="Keyword" context="#stay" String="Category" />
<keyword attribute="Keyword" context="#stay" String="Keywords" />
<RegExpr attribute="Name" context="#stay" String="\b&nmtoken;\b" />
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<DetectSpaces />
<DetectChar attribute="String" context="#pop" char="&quot;" />
<RegExpr attribute="Entity" context="#stay" String="%&nmtoken;;" />
</context>
<context name="InlineComment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="-" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Processing Instruction" defStyleNum="dsKeyword" />
<itemData name="Declaration" defStyleNum="dsDataType" bold="1" />
<itemData name="Name" defStyleNum="dsFunction" />
<itemData name="Delimiter" defStyleNum="dsDecVal" />
<itemData name="Symbol" defStyleNum="dsFloat" bold="1" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Entity" defStyleNum="dsDecVal" />
<itemData name="Local" defStyleNum="dsDecVal" bold="1" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="&lt;!--" end="--&gt;" />
</comments>
</general>
</language>
<!-- kate: indent-width 2; indent-mode normal; tab-indents on; -->
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls" mimetype="" version="1.0" kateversion="2.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
<highlighting>
<list name="keywords">
<item>On</item>
<item>Off</item>
<item>Default</item>
<item>Defaults</item>
<item>Localhost</item>
<item>Null</item>
<item>True</item>
<item>False</item>
<item>Yes</item>
<item>No</item>
<item>Normal</item>
<!-- PHP Keywords -->
<item>E_ALL</item>
<item>E_ERROR</item>
<item>E_WARNING</item>
<item>E_PARSE</item>
<item>E_NOTICE</item>
<item>E_STRICT</item>
<item>E_CORE_ERROR</item>
<item>E_CORE_WARNING</item>
<item>E_COMPILE_ERROR</item>
<item>E_COMPILE_WARNING</item>
<item>E_USER_ERROR</item>
<item>E_USER_WARNING</item>
<item>E_USER_NOTICE</item>
</list>
<contexts>
<context name="ini" attribute="Normal Text" lineEndContext="#stay">
<RangeDetect attribute="Section" context="#pop" char="[" char1="]" beginRegion="Section" endRegion="Section" />
<DetectChar attribute="Assignment" context="Value" char="=" />
<DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="true" />
<DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="true" />
</context>
<context name="Value" attribute="Value" lineEndContext="#pop" >
<Float attribute="Float" />
<Int attribute="Int" />
<keyword attribute="Keyword" String="keywords" />
<RegExpr attribute="Comment" context="#pop" String=";.*$" />
<RegExpr attribute="Comment" context="#pop" String="#.*$" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsDataType" />
<itemData name="Section" defStyleNum="dsKeyword" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Assignment" defStyleNum="dsOthers" />
<itemData name="Value" defStyleNum="dsString" />
<itemData name="Float" defStyleNum="dsFloat" />
<itemData name="Int" defStyleNum="dsDecVal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
<comment name="singleLine" start=";" />
</comments>
<keywords casesensitive="0" />
</general>
</language>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Javadoc" version="1.04" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<highlighting>
<contexts>
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="FindJavadoc" />
</context>
<context name="FindJavadoc" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="JavadocFS" context="#stay" String="/**/"/>
<StringDetect attribute="JavadocFS" context="JavadocFSar" String="/**" beginRegion="Javadoc"/>
</context>
<context attribute="JavadocFS" lineEndContext="#stay" name="JavadocFSar">
<Detect2Chars attribute="JavadocFS" context="#pop" char="*" char1="/" endRegion="Javadoc"/>
<RegExpr attribute="JavadocFS" context="Javadocar" String="(!|\?)" />
<RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s*$)" />
<RegExpr attribute="JavadocFS" context="Javadocar" String="(\.\s)(?![\da-z])" />
<RegExpr attribute="JavadocFS" context="Javadocar" String="\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))" firstNonSpace="true"/>
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code&#009;" />
<StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" />
<StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@link&#009;" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain&#009;" />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal&#009;" />
<StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value&#009;" />
<IncludeRules context="##HTML"/>
</context>
<context attribute="Javadoc" lineEndContext="#stay" name="Javadocar">
<Detect2Chars attribute="JavadocFS" context="#pop#pop" char="*" char1="/" endRegion="Javadoc"/>
<RegExpr attribute="JavadocFS" context="#stay" String="\*+(?!/)" firstNonSpace="true"/>
<StringDetect attribute="BlockTag" context="#stay" String="@author " />
<StringDetect attribute="BlockTag" context="#stay" String="@deprecated " />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@exception " />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@param " />
<StringDetect attribute="BlockTag" context="#stay" String="@return " />
<StringDetect attribute="BlockTag" context="SeeTag" String="@see "/>
<StringDetect attribute="BlockTag" context="#stay" String="@serial " />
<StringDetect attribute="BlockTag" context="#stay" String="@serialData " />
<StringDetect attribute="BlockTag" context="#stay" String="@serialField " />
<StringDetect attribute="BlockTag" context="#stay" String="@since " />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@throws " />
<StringDetect attribute="BlockTag" context="#stay" String="@version " />
<StringDetect attribute="BlockTag" context="#stay" String="@author&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@deprecated&#009;" />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@exception&#009;" />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@param&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@return&#009;" />
<StringDetect attribute="BlockTag" context="SeeTag" String="@see&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@serial&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@serialData&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@serialField&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@since&#009;" />
<StringDetect attribute="BlockTag" context="JavadocParam" String="@throws&#009;" />
<StringDetect attribute="BlockTag" context="#stay" String="@version&#009;" />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code " />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@code&#009;" />
<StringDetect attribute="InlineTag" context="#stay" String="{@docRoot}" />
<StringDetect attribute="InlineTag" context="#stay" String="{@inheritDoc}" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@link " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@link&#009;" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain&#009;" />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " />
<StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal&#009;" />
<StringDetect attribute="InlineTag" context="#stay" String="{@value}" />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " />
<StringDetect attribute="InlineTag" context="InlineTagar" String="{@value&#009;" />
<IncludeRules context="##HTML"/>
</context>
<context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam">
<DetectSpaces />
<RegExpr attribute="JavadocParam" context="#pop#pop" String="\S*(?=\*/)" />
<RegExpr attribute="JavadocParam" context="#pop" String="\S*(\s|$)" />
</context>
<context attribute="InlineTag" lineEndContext="#pop" name="InlineTagar">
<DetectChar attribute="InlineTag" context="#pop" char="}" />
<Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" />
<IncludeRules context="##HTML"/>
</context>
<context attribute="InlineTag" lineEndContext="#pop" name="LiteralTagar">
<DetectChar attribute="InlineTag" context="#pop" char="}" />
<Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" />
</context>
<context attribute="SeeTag" lineEndContext="#pop" name="SeeTag">
<Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" />
<IncludeRules context="##HTML"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="BlockTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="1" italic="0"/>
<itemData name="InlineTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="0" italic="0"/>
<itemData name="JavadocParam" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/>
<itemData name="SeeTag" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/>
<itemData name="JavadocFS" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF" bold="1" italic="0"/>
<itemData name="Javadoc" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="1"/>
</general>
</language>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -36,7 +36,8 @@ DATA_DIRS = \
qmlicons \
qml \
qml-type-descriptions \
qmljsdebugger
qmljsdebugger \
generic-highlighter
!isEmpty(copydata) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment