Commit 574b9913 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

GenericHighlighter: Update from KSyntaxHighlighting



Mostly whitespace cleanup.

Change-Id: Ife5831b23d5ee7406ece839f2c1061c9364ac4ad
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 0332a8c1
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"> <!DOCTYPE language SYSTEM "language.dtd">
<!-- <language version="5" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhaumann@kde.org)" license="MIT" hidden="true">
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.
Changes by Alex Turbov:
Introduce 3 alert levels and sort keywords according importance.
Few more keywords has been added.
-->
<language version="3" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPLv2+" hidden="true">
<highlighting> <highlighting>
<list name="alerts_hi"> <list name="alerts_hi">
<item> ALERT </item> <item>ALERT</item>
<item> ATTENTION </item> <item>ATTENTION</item>
<item> DANGER </item> <item>DANGER</item>
<item> HACK </item> <item>HACK</item>
<item> SECURITY </item> <item>SECURITY</item>
</list> </list>
<list name="alerts_mid"> <list name="alerts_mid">
<item> BUG </item> <item>BUG</item>
<item> FIXME </item> <item>FIXME</item>
<item> DEPRECATED </item> <item>DEPRECATED</item>
<item> TASK </item> <item>TASK</item>
<item> TODO </item> <item>TODO</item>
<item> TBD </item> <item>TBD</item>
<item> WARNING </item> <item>WARNING</item>
<item> CAUTION </item> <item>CAUTION</item>
<item> NOLINT </item> <item>NOLINT</item>
</list> </list>
<list name="alerts_lo"> <list name="alerts_lo">
<item> ### </item> <item>###</item>
<item> NOTE </item> <item>NOTE</item>
<item> NOTICE </item> <item>NOTICE</item>
<item> TEST </item> <item>TEST</item>
<item> TESTING </item> <item>TESTING</item>
</list> </list>
<contexts> <contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" > <context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<StringDetect attribute="Region Marker" context="#stay" String="{{{" beginRegion="AlertRegion1" /> <StringDetect attribute="Region Marker" context="#stay" String="{{{" beginRegion="AlertRegion1" />
<StringDetect attribute="Region Marker" context="#stay" String="}}}" endRegion="AlertRegion1" /> <StringDetect attribute="Region Marker" context="#stay" String="}}}" endRegion="AlertRegion1" />
<StringDetect attribute="Region Marker" context="#stay" String="BEGIN" beginRegion="AlertRegion2" /> <WordDetect attribute="Region Marker" context="#stay" String="BEGIN" beginRegion="AlertRegion2" />
<StringDetect attribute="Region Marker" context="#stay" String="END" endRegion="AlertRegion2" /> <WordDetect attribute="Region Marker" context="#stay" String="END" endRegion="AlertRegion2" />
<keyword attribute="Alert Level 1" context="#stay" String="alerts_hi" /> <keyword attribute="Alert Level 1" context="#stay" String="alerts_hi" />
<keyword attribute="Alert Level 2" context="#stay" String="alerts_mid" /> <keyword attribute="Alert Level 2" context="#stay" String="alerts_mid" />
<keyword attribute="Alert Level 3" context="#stay" String="alerts_lo" /> <keyword attribute="Alert Level 3" context="#stay" String="alerts_lo" />
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
author="Per Wigren (wigren@home.se)" license=""> author="Per Wigren (wigren@home.se)" license="">
<highlighting> <highlighting>
<list name = "keywords" > <list name = "keywords" >
<item> include </item> <item>include</item>
<item> -include </item> <item>-include</item>
<item> define </item> <item>define</item>
<item> endef </item> <item>endef</item>
</list> </list>
<!-- https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html --> <!-- https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html -->
<list name="gmake_if_keywords"> <list name="gmake_if_keywords">
...@@ -33,19 +33,19 @@ ...@@ -33,19 +33,19 @@
<list name="gmake_endif_keywords"><item>endif</item></list> <list name="gmake_endif_keywords"><item>endif</item></list>
<!-- bmake statements: https://www.freebsd.org/cgi/man.cgi?make(1)#INCLUDE_STATEMENTS,_CONDITIONALS_AND_FOR_LOOPS --> <!-- bmake statements: https://www.freebsd.org/cgi/man.cgi?make(1)#INCLUDE_STATEMENTS,_CONDITIONALS_AND_FOR_LOOPS -->
<list name="bmake_if_keywords"> <list name="bmake_if_keywords">
<item> .if </item> <item>.if</item>
<item> .ifdef </item> <item>.ifdef</item>
<item> .ifndef </item> <item>.ifndef</item>
<item> .ifmake </item> <item>.ifmake</item>
<item> .ifnmake </item> <item>.ifnmake</item>
</list> </list>
<list name="bmake_else_keywords"> <list name="bmake_else_keywords">
<item> .elif </item> <item>.elif</item>
<item> .elifdef </item> <item>.elifdef</item>
<item> .elifndef </item> <item>.elifndef</item>
<item> .elifmake </item> <item>.elifmake</item>
<item> .elifnmake </item> <item>.elifnmake</item>
<item> .else </item> <!-- TODO: anything following .else should be highlighted as an error --> <item>.else</item> <!-- TODO: anything following .else should be highlighted as an error -->
</list> </list>
<list name="bmake_endif_keywords"><item>.endif</item></list> <list name="bmake_endif_keywords"><item>.endif</item></list>
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
<!-- For compat bmake also handles include but this is already highlighted. <item>include</item> --> <!-- For compat bmake also handles include but this is already highlighted. <item>include</item> -->
</list> </list>
<list name="bmake_message_stmt"> <list name="bmake_message_stmt">
<item> .info </item> <item>.info</item>
<item> .warning </item> <item>.warning</item>
<item> .error </item> <item>.error</item>
</list> </list>
<!-- Use single element list here so that .for/.endfor also shows up in code completion --> <!-- Use single element list here so that .for/.endfor also shows up in code completion -->
<list name="bmake_for_stmt"><item>.for</item></list> <list name="bmake_for_stmt"><item>.for</item></list>
...@@ -74,92 +74,92 @@ ...@@ -74,92 +74,92 @@
<!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_TARGETS --> <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_TARGETS -->
<list name="bmake_special_targets"> <list name="bmake_special_targets">
<item> .BEGIN </item> <item>.BEGIN</item>
<item> .DEFAULT </item> <item>.DEFAULT</item>
<item> .END </item> <item>.END</item>
<item> .ERROR </item> <item>.ERROR</item>
<item> .IGNORE </item> <item>.IGNORE</item>
<item> .INTERRUPT </item> <item>.INTERRUPT</item>
<item> .MAIN </item> <item>.MAIN</item>
<item> .MAKEFLAGS </item> <item>.MAKEFLAGS</item>
<item> .NOPATH </item> <item>.NOPATH</item>
<item> .NOTPARALLEL </item> <item>.NOTPARALLEL</item>
<item> .NO_PARALLEL </item> <item>.NO_PARALLEL</item>
<item> .OBJDIR </item> <item>.OBJDIR</item>
<item> .ORDER </item> <item>.ORDER</item>
<item> .PATH </item> <item>.PATH</item>
<item> .PHONY </item> <item>.PHONY</item>
<item> .PRECIOUS </item> <item>.PRECIOUS</item>
<item> .SHELL </item> <item>.SHELL</item>
<item> .SILENT </item> <item>.SILENT</item>
<item> .STALE </item> <item>.STALE</item>
<item> .SUFFIXES </item> <item>.SUFFIXES</item>
</list> </list>
<!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_SOURCES_(ATTRIBUTES) --> <!-- https://www.freebsd.org/cgi/man.cgi?make(1)#SPECIAL_SOURCES_(ATTRIBUTES) -->
<list name="bmake_special_sources"> <list name="bmake_special_sources">
<item> .EXEC </item> <item>.EXEC</item>
<item> .IGNORE </item> <item>.IGNORE</item>
<item> .MADE </item> <item>.MADE</item>
<item> .MAKE </item> <item>.MAKE</item>
<item> .META </item> <item>.META</item>
<item> .NOMETA </item> <item>.NOMETA</item>
<item> .NOMETA_CMP </item> <item>.NOMETA_CMP</item>
<item> .NOPATH </item> <item>.NOPATH</item>
<item> .NOTMAIN </item> <item>.NOTMAIN</item>
<item> .OPTIONAL </item> <item>.OPTIONAL</item>
<item> .PHONY </item> <item>.PHONY</item>
<item> .PRECIOUS </item> <item>.PRECIOUS</item>
<item> .RECURSIVE </item> <item>.RECURSIVE</item>
<item> .SILENT </item> <item>.SILENT</item>
<item> .USE </item> <item>.USE</item>
<item> .USEBEFORE </item> <item>.USEBEFORE</item>
<item> .WAIT </item> <item>.WAIT</item>
</list> </list>
<list name="bmake_other_stmts"> <list name="bmake_other_stmts">
<item> .unexport-env </item> <item>.unexport-env</item>
<item> .unexport </item> <item>.unexport</item>
<item> .undef </item> <item>.undef</item>
<item> .export-env </item> <item>.export-env</item>
<item> .export </item> <item>.export</item>
</list> </list>
<list name = "functions"> <list name = "functions">
<item> call </item> <item>call</item>
<item> subst </item> <item>subst</item>
<item> patsubst </item> <item>patsubst</item>
<item> strip </item> <item>strip</item>
<item> findstring </item> <item>findstring</item>
<item> filter </item> <item>filter</item>
<item> filter-out </item> <item>filter-out</item>
<item> sort </item> <item>sort</item>
<item> word </item> <item>word</item>
<item> wordlist </item> <item>wordlist</item>
<item> words </item> <item>words</item>
<item> firstword </item> <item>firstword</item>
<item> lastword </item> <item>lastword</item>
<item> dir </item> <item>dir</item>
<item> notdir </item> <item>notdir</item>
<item> suffix </item> <item>suffix</item>
<item> basename </item> <item>basename</item>
<item> addsuffix </item> <item>addsuffix</item>
<item> addprefix </item> <item>addprefix</item>
<item> join </item> <item>join</item>
<item> wildcard </item> <item>wildcard</item>
<item> realpath </item> <item>realpath</item>
<item> abspath </item> <item>abspath</item>
<item> if </item> <item>if</item>
<item> or </item> <item>or</item>
<item> and </item> <item>and</item>
<item> foreach </item> <item>foreach</item>
<item> value </item> <item>value</item>
<item> eval </item> <item>eval</item>
<item> origin </item> <item>origin</item>
<item> flavor </item> <item>flavor</item>
<item> shell </item> <item>shell</item>
<item> error </item> <item>error</item>
<item> warning </item> <item>warning</item>
<item> info </item> <item>info</item>
</list> </list>
<contexts> <contexts>
<context name="normal" attribute="Normal" lineEndContext="#stay"> <context name="normal" attribute="Normal" lineEndContext="#stay">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<!ENTITY name "(?![0-9])[\w_:][\w.:_-]*"> <!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
<!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> <!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]> ]>
<language name="XML" version="5" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/xml;application/scxml+xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> <language name="XML" version="6" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting> <highlighting>
<contexts> <contexts>
......
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