diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-01-16 14:48:57 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-06-20 07:56:12 +0000 |
commit | 1cb8e1d291fdaf46b5d0435249edb72198271ded (patch) | |
tree | 648a2d6e06b4e971cf787864069ed03c7b336261 /src | |
parent | 56028d2e3e48352f565c0c6543233d1ceda0b58e (diff) | |
download | qt-creator-1cb8e1d291fdaf46b5d0435249edb72198271ded.tar.gz |
GenericHighlighter: Update from KSyntaxHighlighting
Change-Id: Id2a6daabef6dae29e83df99ed195f7356f26866c
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/share/3rdparty/generic-highlighter/cmake.xml | 37 | ||||
-rw-r--r-- | src/share/3rdparty/generic-highlighter/css.xml | 215 | ||||
-rw-r--r-- | src/share/3rdparty/generic-highlighter/doxygen.xml | 8 | ||||
-rw-r--r-- | src/share/3rdparty/generic-highlighter/html.xml | 11 | ||||
-rw-r--r-- | src/share/3rdparty/generic-highlighter/makefile.xml | 2 |
5 files changed, 114 insertions, 159 deletions
diff --git a/src/share/3rdparty/generic-highlighter/cmake.xml b/src/share/3rdparty/generic-highlighter/cmake.xml index 3269a2e038..bfbdbeee56 100644 --- a/src/share/3rdparty/generic-highlighter/cmake.xml +++ b/src/share/3rdparty/generic-highlighter/cmake.xml @@ -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="3" + version="4" kateversion="5.0" section="Other" extensions="CMakeLists.txt;*.cmake;*.cmake.in" @@ -1103,24 +1103,24 @@ <DetectSpaces/> <!-- handle folding for if else elseif endif blocks --> - <WordDetect String="if" attribute="Commands" context="Command Args" beginRegion="ifthenelse" insensitive="true" /> - <WordDetect String="else" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> - <WordDetect String="elseif" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> - <WordDetect String="endif" attribute="Commands" context="Command Args" endRegion="ifthenelse" insensitive="true" /> + <WordDetect String="if" attribute="Commands" context="Command" beginRegion="ifthenelse" insensitive="true" /> + <WordDetect String="else" attribute="Commands" context="Command" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> + <WordDetect String="elseif" attribute="Commands" context="Command" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" /> + <WordDetect String="endif" attribute="Commands" context="Command" endRegion="ifthenelse" insensitive="true" /> <!-- handle folding for macro endmacro blocks --> - <WordDetect String="macro" attribute="Commands" context="Command Args" beginRegion="macro" insensitive="true" /> - <WordDetect String="endmacro" attribute="Commands" context="Command Args" endRegion="macro" insensitive="true" /> + <WordDetect String="macro" attribute="Commands" context="Command" beginRegion="macro" insensitive="true" /> + <WordDetect String="endmacro" attribute="Commands" context="Command" endRegion="macro" insensitive="true" /> <!-- handle folding for foreach endforeach blocks --> - <WordDetect String="foreach" attribute="Commands" context="Command Args" beginRegion="foreach" insensitive="true" /> - <WordDetect String="endforeach" attribute="Commands" context="Command Args" endRegion="foreach" insensitive="true" /> + <WordDetect String="foreach" attribute="Commands" context="Command" beginRegion="foreach" insensitive="true" /> + <WordDetect String="endforeach" attribute="Commands" context="Command" endRegion="foreach" insensitive="true" /> <!-- handle folding for while endwhile blocks --> - <WordDetect String="while" attribute="Commands" context="Command Args" beginRegion="while" insensitive="true" /> - <WordDetect String="endwhile" attribute="Commands" context="Command Args" endRegion="while" insensitive="true" /> + <WordDetect String="while" attribute="Commands" context="Command" beginRegion="while" insensitive="true" /> + <WordDetect String="endwhile" attribute="Commands" context="Command" endRegion="while" insensitive="true" /> - <keyword attribute="Commands" context="Command Args" String="commands" insensitive="true" /> + <keyword attribute="Commands" context="Command" String="commands" insensitive="true" /> <keyword attribute="Third-Party Commands" context="#stay" String="itkvtk_commands" insensitive="true" /> <RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="block" firstNonSpace="true" /> <RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="block" firstNonSpace="true" /> @@ -1128,7 +1128,7 @@ <RegExpr attribute="Comment" context="Bracketed Comment" String="^#\[(=*)\[" column="0" /> <DetectChar attribute="Comment" context="Comment" char="#" /> <IncludeRules context="Detect Variables" /> - <RegExpr attribute="Macros" context="Macro Args" String="\w+\s*(?=\()" /> + <RegExpr attribute="Macros" context="Macro" String="\w+" /> </context> <!-- ATTENTION Do not change the context name! Or change a generation script accordingly --> <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables"> @@ -1226,6 +1226,14 @@ <context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions"> <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<" /> </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Command" fallthroughContext="#pop" fallthrough="true"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="Command Args" char="(" /> + </context> + <context attribute="Normal Text" lineEndContext="#stay" name="Macro" fallthroughContext="#pop" fallthrough="true"> + <DetectSpaces/> + <DetectChar attribute="Normal Text" context="Macro Args" char="(" /> + </context> <context attribute="Normal Text" lineEndContext="#stay" name="Command Args"> <keyword attribute="Special Args" context="#stay" String="special_args" /> <keyword attribute="Special Args" context="#stay" String="extra_special_args" /> @@ -1233,10 +1241,13 @@ <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" /> <keyword attribute="Properties" context="#stay" String="properties" /> <keyword attribute="Properties" context="#stay" String="extra_properties" /> + <DetectChar attribute="Normal Text" context="Command Args" char="(" /> + <DetectChar attribute="Normal Text" context="#pop" char=")" /> <IncludeRules context="Detect Builtin Variables" /> <IncludeRules context="Macro Args" /> </context> <context attribute="Normal Text" lineEndContext="#stay" name="Macro Args"> + <DetectChar attribute="Normal Text" context="Macro Args" char="(" /> <DetectChar attribute="Normal Text" context="#pop" char=")" /> <RegExpr attribute="Escapes" context="#stay" String="\\["$n\\]" /> <DetectChar attribute="Strings" context="String" char=""" /> diff --git a/src/share/3rdparty/generic-highlighter/css.xml b/src/share/3rdparty/generic-highlighter/css.xml index afb184211d..2215c162a9 100644 --- a/src/share/3rdparty/generic-highlighter/css.xml +++ b/src/share/3rdparty/generic-highlighter/css.xml @@ -12,6 +12,9 @@ Kate CSS syntax highlighting definition Changelog: +- Version 4, by Guo Yunhe guoyunhebrave@gmail.com +- Remake for complex CSS syntax, avoid errors + - Version 2.13, by Guo Yunhe - Add all W3C Work Draft properties @@ -26,7 +29,7 @@ Changelog: --> -<language name="CSS" version="3" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> +<language name="CSS" version="4" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> <highlighting> <list name="properties"> @@ -560,7 +563,7 @@ Changelog: <item> topline </item> </list> - <list name="types"> + <list name="values"> <item> inherit </item> <item> none </item> <item> hidden </item> @@ -798,7 +801,7 @@ Changelog: <item> WindowText </item> </list> - <list name="paren"> + <list name="functions"> <item> url </item> <item> attr </item> <item> rect </item> @@ -905,185 +908,124 @@ Changelog: </list> <contexts> - <context attribute="Normal Text" lineEndContext="#stay" name="Base"> - <LineContinue/> - <DetectSpaces/> - <IncludeRules context="FindRuleSets" /> + <context name="Base" attribute="Normal Text" lineEndContext="#stay"> + <IncludeRules context="FindComments" /> + <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> + <RegExpr attribute="At Rule" context="AtRule" String="@[a-zA-Z0-1-]+\b" /> + <IncludeRules context="FindSelectors" /> </context> - <!-- to be included --> - <!-- finds rules and detects nesting --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindRuleSets"> - <RegExpr attribute="Media" context="Media" String="@media\b" /> - <RegExpr attribute="At Rule" context="Import" String="@import\b" /> - <RegExpr attribute="At Rule" context="#stay" String="@(font-face|charset)\b" /> - <DetectChar attribute="Property" context="RuleSet" char="{" beginRegion="ruleset" /> - <!--parse selectors--> - <DetectChar attribute="Selector Attr" context="SelAttr" char="[" /> + <!-- find selectors // .class #id :hover :nth-child(2n+1) [type="search"] --> + <context name="FindSelectors" attribute="Normal Text" lineEndContext="#stay"> + <DetectChar attribute="Selector Attribute" context="SelectorAttr" char="[" /> <RegExpr attribute="Selector Id" context="#stay" String="#(-)?(&nmstart;)(&nmchar;)*" /> <RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" /> <RegExpr attribute="Selector Pseudo" context="#stay" String=":lang\([\w_-]+\)" /> - <DetectChar attribute="Selector Pseudo" context="SelPseudo" char=":" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindComments" /> + <DetectChar attribute="Selector Pseudo" context="SelectorPseudo" char=":" /> + </context> + + <!-- find functions // rgba(255,255,255,0.75) --> + <context name="FindFunctions" attribute="Normal Text" lineEndContext="#stay"> + <RegExpr attribute="Function" context="Function" String="[a-z\-]+\(" lookAhead="true" /> </context> - <!-- finds arguments to properties --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindValues"> + <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> + <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> + <RegExpr attribute="Annotation" context="#stay" String="!important\b" /> + <keyword attribute="Value" context="#stay" String="values" /> + <keyword attribute="Value" context="#stay" String="colors" /> + <RegExpr attribute="Value" context="#stay" String="#([0-9A-Fa-f]{3}){1,4}\b" /> <RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz)\b" /> <RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+[%]?" /> <RegExpr attribute="Normal Text" context="#stay" String="[\w\-]+" /> </context> - <!-- finds strings --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindStrings"> + <!-- find strings // "some words" 'some words' --> + <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> <DetectChar attribute="String" context="StringDQ" char=""" /> <DetectChar attribute="String" context="StringSQ" char="'" /> </context> - <!-- finds comments --> - <context attribute="Normal Text" lineEndContext="#stay" name="FindComments"> + <!-- find comments // /* comment */ --> + <context name="FindComments" attribute="Normal Text" lineEndContext="#stay"> <RegExpr attribute="Region Marker" context="#stay" String="/\*BEGIN.*\*/" beginRegion="UserDefined" /> <RegExpr attribute="Region Marker" context="#stay" String="/\*END.*\*/" endRegion="UserDefined" /> <Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="comment" /> </context> - <!-- other contexts --> - <context attribute="Normal Text" lineEndContext="#stay" name="Media"> - <DetectChar attribute="Media" context="Media2" char="{" beginRegion="media" /> - <DetectChar attribute="Media" context="MediaQueryExpression" char="(" /> - <keyword attribute="Media" context="MediaQueries" String="mediatypes"/> - <keyword attribute="Media" context="MediaTypes" String="mediatypes_op" /> - <DetectChar attribute="Media" context="#stay" char="," /> + <context name="AtRule" attribute="Normal Text" lineEndContext="#pop"> <IncludeRules context="FindComments" /> - <RegExpr attribute="Error" context="#stay" String="\S+" /> - </context> - - <context attribute="Media" lineEndContext="#stay" name="MediaTypes"> - <keyword attribute="Media" context="MediaQueries" String="mediatypes"/> - <DetectChar attribute="Media" context="#pop" char= "{" lookAhead="true"/> - <DetectChar attribute="Media" context="#pop" char= "," lookAhead="true"/> - <DetectSpaces/> - <IncludeRules context="FindComments"/> - <RegExpr attribute="Error" context="#stay" String="\S+"/> - </context> - - <context attribute="Media" lineEndContext="#stay" name="MediaQueries"> - <RegExpr attribute="Media" context="MediaQueryExpression" String="\s+and\s+\("/> - <DetectChar attribute="Media" context="#pop" char= "{" lookAhead="true"/> - <DetectChar attribute="Media" context="#pop" char= "," lookAhead="true"/> - <DetectSpaces/> - <IncludeRules context="FindComments"/> - <RegExpr attribute="Error" context="#stay" String="\S+"/> - </context> - - <context attribute="Media" lineEndContext="#stay" name="MediaQueryExpression"> - <DetectSpaces/> - <keyword attribute="Media" context="MQEE" String="media_features"/> - <IncludeRules context="FindComments"/> - <RegExpr attribute="Error" context="#stay" String="\S+"/> - </context> - - <context attribute="Media" lineEndContext="#stay" name="MQEE" fallthrough="true" fallthroughContext="#pop"> - <DetectSpaces/> - <IncludeRules context="FindComments"/> - <DetectChar attribute="Media" context="MQEV" char=":"/> - <RegExpr attribute="Media" context="#pop" String="\)\s+and\s+\("/> - <DetectChar attribute="Media" context="#pop#pop" char=")"/> - </context> - - <context attribute="Media" lineEndContext="#stay" name="MQEV"> - <!-- this should be seperate for different features, for now it is all the same --> - <DetectSpaces/> - <RegExpr attribute="Value" context="#pop" String="[1-9][0-9.]*\s*/\s*[1-9][0-9.]*" /> - <RegExpr attribute="Value" context="#pop" String="[0-9.]+(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz|dpi|dpcm)\b" /> - <RegExpr attribute="Value" context="#pop" String="[0-9.]+[%]?" /> - <RegExpr attribute="Value" context="#pop" String="(portrait|landscape)" /> - <RegExpr attribute="Error" context="#stay" String=".*"/> - </context> - - <context attribute="Normal Text" lineEndContext="#stay" name="Media2"> - <DetectChar attribute="Media" context="#pop#pop" char="}" endRegion="media" /> - <IncludeRules context="FindRuleSets" /> + <IncludeRules context="FindStrings" /> + <keyword attribute="Value" context="#stay" String="mediatypes" /> + <keyword attribute="Property" context="#stay" String="media_features" /> + <AnyChar attribute="Normal Text" context="#pop" String=";{" lookAhead="true" /> + <IncludeRules context="FindValues" /> </context> - <context attribute="Selector Attr" lineEndContext="#stay" name="SelAttr"> - <DetectChar attribute="Selector Attr" context="#pop" char="]" /> + <context name="SelectorAttr" attribute="Selector Attribute" lineEndContext="#stay"> + <DetectChar attribute="Selector Attribute" context="#pop" char="]" /> <IncludeRules context="FindStrings" /> </context> - <context attribute="Selector Pseudo" lineEndContext="#pop" name="SelPseudo" + <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> <keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses" /> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="Import"> - <DetectChar attribute="At Rule" context="#pop" char=";" /> - <keyword attribute="Media" context="#stay" String="mediatypes" /> - <IncludeRules context="FindValues" /> - <IncludeRules context="FindStrings" /> - <IncludeRules context="FindComments" /> - </context> - - <context attribute="Comment" lineEndContext="#stay" name="Comment"> - <DetectSpaces/> + <context name="Comment" attribute="Comment" lineEndContext="#stay"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment" /> <IncludeRules context="##Alerts" /> - <DetectIdentifier/> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="RuleSet"> - <DetectChar attribute="Property" context="#pop" char="}" endRegion="ruleset" /> - <keyword attribute="Property" context="Rule" String="properties" /> - <RegExpr attribute="Unknown Property" context="Rule" String="-?[A-Za-z_-]+(?=\s*:)" /> - <IncludeRules context="FindComments" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> + <context name="RuleSet" attribute="Normal Text" lineEndContext="#stay"> + <DetectChar attribute="Normal Text" context="RuleSet" char="{" beginRegion="ruleset" /> + <DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="ruleset" /> + <RegExpr attribute="Property" context="Rule" String="-?[A-Za-z_-]+(?=\s*:)" lookAhead="true" /> + <IncludeRules context="Base" /> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="Rule"> - <DetectChar attribute="Property" context="Rule2" char=":" /> + <context name="Rule" attribute="Normal Text" lineEndContext="#stay"> + <DetectChar attribute="Normal Text" context="RuleParameters" char=":" /> + <keyword attribute="Property" context="#stay" String="properties" /> + <RegExpr attribute="Unknown Property" context="#stay" String="-?[A-Za-z_-]+(?=\s*:)" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="Rule2"> - <DetectChar attribute="Property" context="#pop#pop" char=";" /> - <DetectChar attribute="Property" context="#pop#pop#pop" char="}" endRegion="ruleset" /> - <!-- parse property values --> - <keyword attribute="Value" context="#stay" String="types" /> - <keyword attribute="Value" context="#stay" String="colors" /> - <RegExpr attribute="Value" context="#stay" String="#([0-9A-Fa-f]{3}){1,4}\b" /> - <keyword attribute="Value" context="PropParen" String="paren" /> - <RegExpr attribute="Important" context="#stay" String="!important\b" /> - <IncludeRules context="FindValues" /> - <IncludeRules context="FindStrings" /> + <context name="RuleParameters" attribute="Normal Text" lineEndContext="#stay"> <IncludeRules context="FindComments" /> + <IncludeRules context="FindStrings" /> + <IncludeRules context="FindFunctions" /> + <IncludeRules context="FindValues" /> + <!-- Jump out conditions --> + <DetectChar attribute="Normal Text" context="#pop#pop" char=";" /> + <DetectChar attribute="Normal Text" context="#pop#pop#pop" char="}" endRegion="ruleset" /> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="PropParen"> - <DetectChar attribute="Value" context="PropParen2" char="(" /> - <IncludeRules context="FindComments" /> - <RegExpr attribute="Error" context="#stay" String="\S" /> + <context name="Function" attribute="Normal Text" lineEndContext="#stay"> + <DetectChar attribute="Normal Text" context="FunctionParameters" char="(" /> + <keyword attribute="Function" context="#stay" String="functions" /> </context> - <context attribute="Normal Text" lineEndContext="#stay" name="PropParen2"> - <DetectChar attribute="Value" context="#pop#pop" char=")" /> - <IncludeRules context="FindValues" /> - <IncludeRules context="FindStrings" /> + <context name="FunctionParameters" attribute="Normal Text" lineEndContext="#stay"> <IncludeRules context="FindComments" /> + <IncludeRules context="FindStrings" /> + <IncludeRules context="FindValues" /> + <!-- Jump out conditions --> + <DetectChar attribute="Normal Text" context="#pop#pop" char=")" /> </context> <!-- string contexts --> - <context attribute="String" lineEndContext="#stay" name="StringDQ"> + <context name="StringDQ" attribute="String" lineEndContext="#stay"> <DetectChar attribute="String" context="#pop" char=""" /> <IncludeRules context="InsideString" /> </context> - <context attribute="String" lineEndContext="#stay" name="StringSQ"> + <context name="StringSQ" attribute="String" lineEndContext="#stay"> <DetectChar attribute="String" context="#pop" char="'" /> <IncludeRules context="InsideString" /> </context> - <context attribute="String" lineEndContext="#stay" name="InsideString"> + <context name="InsideString" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#stay" String="\\["']" /> <DetectIdentifier/> </context> @@ -1092,19 +1034,20 @@ Changelog: <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> - <itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/> - <itemData name="Unknown Property" defStyleNum="dsKeyword" italic="1" spellChecking="false"/> - <itemData name="Media" defStyleNum="dsDecVal" bold="1" spellChecking="false"/> - <itemData name="At Rule" defStyleNum="dsDecVal" spellChecking="false"/> - <itemData name="String" defStyleNum="dsString"/> - <itemData name="Value" defStyleNum="dsDataType" spellChecking="false"/> - <itemData name="Important" defStyleNum="dsKeyword" spellChecking="false"/> - <itemData name="Selector Attr" defStyleNum="dsAttribute" spellChecking="false"/> - <itemData name="Selector Id" defStyleNum="dsFloat" bold="1" spellChecking="false"/> - <itemData name="Selector Class" defStyleNum="dsFloat" spellChecking="false"/> - <itemData name="Selector Pseudo" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="At Rule" defStyleNum="dsImport" spellChecking="false"/> + <itemData name="Property" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Unknown Property" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="Value" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="false"/> + <itemData name="Selector Id" defStyleNum="dsPreprocessor" bold="1" spellChecking="false"/> + <itemData name="Selector Class" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Selector Attribute" defStyleNum="dsExtension" spellChecking="false"/> + <itemData name="Selector Pseudo" defStyleNum="dsInformation" italic="1" spellChecking="false"/> <itemData name="Comment" defStyleNum="dsComment" /> <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/> + <itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/> <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> </itemDatas> </highlighting> diff --git a/src/share/3rdparty/generic-highlighter/doxygen.xml b/src/share/3rdparty/generic-highlighter/doxygen.xml index c4d31a2572..bac715d95d 100644 --- a/src/share/3rdparty/generic-highlighter/doxygen.xml +++ b/src/share/3rdparty/generic-highlighter/doxygen.xml @@ -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="<\/?[\w0-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="<\/?[\w0-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="<\/?[\w0-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="<\/?[\w0-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"> diff --git a/src/share/3rdparty/generic-highlighter/html.xml b/src/share/3rdparty/generic-highlighter/html.xml index d1017aad1d..4f9eb962d7 100644 --- a/src/share/3rdparty/generic-highlighter/html.xml +++ b/src/share/3rdparty/generic-highlighter/html.xml @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd" [ - <!ENTITY name "[A-Za-z_:][\w.:_-]*"> - <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> + <!ENTITY name "[A-Za-z_:][\w.:_-]*"> + <!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*"> + <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> ]> -<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"> +<language name="HTML" version="5" 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> @@ -69,8 +70,8 @@ </context> <context name="FindAttributes" attribute="Other Text" lineEndContext="#stay"> - <RegExpr attribute="Attribute" context="#stay" String="&name;" column="0"/> - <RegExpr attribute="Attribute" context="#stay" String="\s+&name;" /> + <RegExpr attribute="Attribute" context="#stay" String="&attributeName;" column="0"/> + <RegExpr attribute="Attribute" context="#stay" String="\s+&attributeName;" /> <DetectChar attribute="Attribute" context="Value" char="=" /> </context> diff --git a/src/share/3rdparty/generic-highlighter/makefile.xml b/src/share/3rdparty/generic-highlighter/makefile.xml index 147070f3d4..384e53b59c 100644 --- a/src/share/3rdparty/generic-highlighter/makefile.xml +++ b/src/share/3rdparty/generic-highlighter/makefile.xml @@ -10,7 +10,7 @@ <!-- v4 by Alex Richardson <arichardson.kde@gmail.com> added bmake support --> <language name="Makefile" section="Other" - version="4" kateversion="3.4" + version="5" kateversion="3.4" extensions="GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*;*.mk" mimetype="text/x-makefile" priority="11" author="Per Wigren (wigren@home.se)" license=""> |