forked from qt-creator/qt-creator
GenericHighlighter: Update from latest KTextEditor source
Change-Id: I0caf19cd7698c9934655483304314b5653b69f21 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
183395831a
commit
75ff9a6fdc
@@ -30,7 +30,7 @@
|
||||
Introduce 3 alert levels and sort keywords according importance.
|
||||
Few more keywords has been added.
|
||||
-->
|
||||
<language version="1.11" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
|
||||
<language version="2" kateversion="3.1" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
|
||||
<highlighting>
|
||||
<list name="alerts_hi">
|
||||
<item> ALERT </item>
|
||||
|
26
src/share/3rdparty/generic-highlighter/bash.xml
vendored
26
src/share/3rdparty/generic-highlighter/bash.xml
vendored
@@ -8,7 +8,7 @@
|
||||
<!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
|
||||
<!ENTITY pathpart "([\w_@.%*?+-]|\\ )"> <!-- valid character in a file name -->
|
||||
]>
|
||||
<language name="Bash" version="2.18" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
<language name="Bash" version="3" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
|
||||
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
|
||||
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
|
||||
@@ -312,6 +312,14 @@
|
||||
<item> gawk </item>
|
||||
<item> gc </item>
|
||||
<item> gcc </item>
|
||||
<item> clang </item>
|
||||
<item> valgrind </item>
|
||||
<item> xdg-open </item>
|
||||
<item> cmake </item>
|
||||
<item> qmake </item>
|
||||
<item> svn </item>
|
||||
<item> git </item>
|
||||
<item> rsync </item>
|
||||
<item> gdb </item>
|
||||
<item> getent </item>
|
||||
<item> getopt </item>
|
||||
@@ -550,7 +558,7 @@
|
||||
<RegExpr attribute="Redirection" context="#stay" String="([0-9]*(>{1,2}|<)(&[0-9]+-?)?|&>|>&|[0-9]*<>)" />
|
||||
<!-- handle &, &&, | and || -->
|
||||
<RegExpr attribute="Control" context="#stay" String="([|&])\1?" />
|
||||
</context>
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindNormalCommands">
|
||||
<keyword attribute="Builtin" context="CommandArgs" String="builtins" />
|
||||
<keyword attribute="Command" context="CommandArgs" String="unixcommands" />
|
||||
@@ -559,11 +567,11 @@
|
||||
<RegExpr attribute="OtherCommand" context="#stay" String="/&pathpart;*(?=([/);$`'"]|$))" />
|
||||
<RegExpr attribute="OtherCommand" context="CommandArgs" String="/&pathpart;*(?=([\s);$`'"]|$))" />
|
||||
<!-- This list is not complete. ie, ":" is missing but as it is in bash completition. -->
|
||||
<RegExpr attribute="OtherCommand" context="CommandArgs" String="&pathpart;*" />
|
||||
<RegExpr attribute="OtherCommand" context="CommandArgs" String="&pathpart;*" />
|
||||
</context>
|
||||
|
||||
|
||||
<!-- CommandArgs matches the items after a command -->
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs">
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs">
|
||||
<LineContinue />
|
||||
<IncludeRules context="FindMost" />
|
||||
<RegExpr attribute="Keyword" context="#stay" String="\\$" />
|
||||
@@ -578,12 +586,12 @@
|
||||
<!-- handle redirection -->
|
||||
<RegExpr attribute="Redirection" context="#stay" String="([0-9]*(>{1,2}|<)(&[0-9]+-?)?|&>|>&|[0-9]*<>)" />
|
||||
<!-- handle &, &&, | and || -->
|
||||
<RegExpr attribute="Control" context="#pop" String="([|&;])\1?" />
|
||||
<RegExpr attribute="Control" context="#pop" String="([|&;])\1?" />
|
||||
<RegExpr attribute="Option" context="#stay" String="-?-[a-z][A-Za-z0-9_-]*" />
|
||||
<keyword attribute="Option" context="#stay" String="keywords" />
|
||||
<AnyChar String=")}" context="#pop" lookAhead="true"/>
|
||||
</context>
|
||||
|
||||
|
||||
<!-- FindCommands matches many items that can be expected outside strings, substitutions etc, when inside a Backquote -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindCommandsBackq">
|
||||
<IncludeRules context="FindSpecialCommands" />
|
||||
@@ -598,12 +606,12 @@
|
||||
<RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="/&pathpart;*(?=([\s);$`'"]|$))" />
|
||||
<RegExpr attribute="OtherCommand" context="CommandArgsBackq" String="&pathpart;*" />
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgsBackq">
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgsBackq">
|
||||
<LineContinue />
|
||||
<DetectChar attribute="Keyword" context="#pop" char="`" lookAhead="true"/>
|
||||
<IncludeRules context="CommandArgs" />
|
||||
</context>
|
||||
|
||||
|
||||
<!-- FindOthers contains various rules to mark different shell input -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindOthers">
|
||||
<RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&<>* ]" />
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<!-- generated for "cmake version 2.8.12.1, 3.0.2, 3.1.2 and 3.3.0" -->
|
||||
<language
|
||||
name="CMake"
|
||||
version="1.36"
|
||||
version="2"
|
||||
kateversion="5.0"
|
||||
section="Other"
|
||||
extensions="CMakeLists.txt;*.cmake;*.cmake.in"
|
||||
|
1901
src/share/3rdparty/generic-highlighter/css.xml
vendored
1901
src/share/3rdparty/generic-highlighter/css.xml
vendored
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,7 @@
|
||||
-->
|
||||
|
||||
<language name="Doxygen"
|
||||
version="1.41"
|
||||
version="2"
|
||||
kateversion="5.0"
|
||||
section="Markup"
|
||||
extensions="*.dox;*.doxygen"
|
||||
@@ -278,7 +278,7 @@
|
||||
<DetectIdentifier />
|
||||
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" />
|
||||
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
|
||||
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[\w0-9._:-@]+" />
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="BlockComment">
|
||||
<DetectSpaces />
|
||||
@@ -297,7 +297,7 @@
|
||||
<DetectIdentifier />
|
||||
<RegExpr attribute="Tags" context="#stay" String="\\(<|>)" />
|
||||
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
|
||||
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[\w0-9._:-@]+" />
|
||||
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" />
|
||||
</context>
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" />
|
||||
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" />
|
||||
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
|
||||
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[\w0-9._:-@]+" />
|
||||
<RegExpr attribute="Description" context="#stay" String="." />
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString">
|
||||
@@ -405,7 +405,7 @@
|
||||
<DetectSpaces />
|
||||
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" />
|
||||
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
|
||||
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[\w0-9._:-@]+" />
|
||||
<RegExpr attribute="Description" context="#stay" String="." />
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<!ENTITY nmtoken "[\-\w\d\.:_]+">
|
||||
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
|
||||
]>
|
||||
<language name="DTD" version="1.02" kateversion="3.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
|
||||
<language name="DTD" version="2" kateversion="3.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
|
||||
<highlighting>
|
||||
|
||||
<list name="Category">
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
|
||||
<!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
|
||||
]>
|
||||
<language name="HTML" version="2.1" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
|
||||
<language name="HTML" version="4" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
@@ -211,7 +211,7 @@
|
||||
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" />
|
||||
<itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Value" defStyleNum="dsString" color="#a00" spellChecking="false" />
|
||||
<itemData name="Value" defStyleNum="dsString" spellChecking="false" />
|
||||
<itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false" />
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc" mimetype="" version="1.1" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
|
||||
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc" mimetype="" version="2" kateversion="2.4" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<contexts>
|
||||
<context name="ini" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RangeDetect attribute="Section" context="#pop" char="[" char1="]" beginRegion="Section" endRegion="Section" />
|
||||
<RangeDetect attribute="Section" context="#stay" 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" />
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Java" version="1.22" kateversion="5.0" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<language name="Java" version="2" kateversion="5.0" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<highlighting>
|
||||
<list name="java15">
|
||||
<item> ACTIVE </item>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Javadoc" version="1.05" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
|
||||
<language name="Javadoc" version="2" 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">
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<!-- v2.1 by Alex Turbov <i.zaufi@gmail.com>
|
||||
improve comments handling -->
|
||||
<language name="Makefile" section="Other"
|
||||
version="2.1" kateversion="3.4"
|
||||
version="3" kateversion="3.4"
|
||||
extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk"
|
||||
mimetype="text/x-makefile"
|
||||
author="Per Wigren (wigren@home.se)" license="">
|
||||
|
@@ -39,7 +39,7 @@
|
||||
|
||||
Enhance tr/// and y/// support.
|
||||
-->
|
||||
<language name="Perl" version="1.32" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPL">
|
||||
<language name="Perl" version="2" kateversion="2.4" section="Scripts" extensions="*.pl;*.PL;*.pm" mimetype="application/x-perl;text/x-perl" priority="5" author="Anders Lund (anders@alweb.dk)" license="LGPL">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> if </item>
|
||||
|
@@ -31,7 +31,7 @@
|
||||
|
||||
<!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". -->
|
||||
<language name="Ruby" section="Scripts"
|
||||
version="1.29" kateversion="3.3"
|
||||
version="2" kateversion="3.3"
|
||||
extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec;Vagrantfile"
|
||||
mimetype="application/x-ruby"
|
||||
style="ruby" indenter="ruby"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="1.0" kateversion="2.4" author="Milian Wolff (mail@milianw.de)" license="LGPL">
|
||||
<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="2" kateversion="2.4" author="Milian Wolff (mail@milianw.de)" license="LGPL">
|
||||
<highlighting>
|
||||
<contexts>
|
||||
<context name="File" attribute="Normal Text" lineEndContext="#stay">
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
|
||||
<!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
|
||||
]>
|
||||
<language name="XML" version="2.03" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
<language name="XML" version="4" kateversion="3.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
@@ -134,7 +134,7 @@
|
||||
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="false" />
|
||||
<itemData name="Element" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Value" defStyleNum="dsString" color="#a00" spellChecking="false" />
|
||||
<itemData name="Value" defStyleNum="dsString" spellChecking="false" />
|
||||
<itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false" />
|
||||
|
@@ -25,7 +25,7 @@ This code is released under the LGPL as part of kdelibs/kate.
|
||||
|
||||
========================================================================
|
||||
-->
|
||||
<language name="Yacc/Bison" version="1.04" kateversion="2.4" section="Sources" extensions="*.y;*.yy" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
|
||||
<language name="Yacc/Bison" version="3" kateversion="2.4" section="Sources" extensions="*.y;*.yy" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
@@ -92,7 +92,7 @@ This code is released under the LGPL as part of kdelibs/kate.
|
||||
<IncludeRules context="Comment" />
|
||||
<RegExpr attribute="Normal Text" context="Percent Command In" String="\W" lookAhead="true" />
|
||||
</context>
|
||||
<context name="Percent Command In" attribute="NormalText" lineEndContext="#pop#pop">
|
||||
<context name="Percent Command In" attribute="Normal Text" lineEndContext="#pop#pop">
|
||||
<IncludeRules context="StringOrChar" />
|
||||
<DetectChar attribute="Data Type" context="PC type" char="<" />
|
||||
</context>
|
||||
@@ -112,7 +112,7 @@ This code is released under the LGPL as part of kdelibs/kate.
|
||||
<RegExpr attribute="Comment" context="#pop" String="[^\\]$" />
|
||||
</context>
|
||||
|
||||
<context name="StringOrChar" attribute="NormalText" lineEndContext="#stay">
|
||||
<context name="StringOrChar" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="String Char" context="Char" char="'" />
|
||||
<DetectChar attribute="String" context="String" char=""" />
|
||||
</context>
|
||||
|
Reference in New Issue
Block a user