|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE language SYSTEM "language.dtd">
|
|
|
|
<language name="Pango" version="5" kateversion="2.4" section="Markup" extensions="" mimetype="" author="Jonathan Schmidt-Domniné <devel@the-user.org>" license="LGPL" priority="10">
|
|
|
|
|
|
|
|
<highlighting>
|
|
|
|
<!-- NOTE: Currently, all keyword lists are already matched in the RegExp rules
|
|
|
|
below. This could be heavily improved, any takers?
|
|
|
|
|
|
|
|
<list name="tags">
|
|
|
|
<item><span</item>
|
|
|
|
<item><b</item>
|
|
|
|
<item><big</item>
|
|
|
|
<item><i</item>
|
|
|
|
<item><s</item>
|
|
|
|
<item><sub</item>
|
|
|
|
<item><sup</item>
|
|
|
|
<item><small</item>
|
|
|
|
<item><tt</item>
|
|
|
|
<item><u</item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="endtags">
|
|
|
|
<item></span></item>
|
|
|
|
<item></b></item>
|
|
|
|
<item></big></item>
|
|
|
|
<item></i></item>
|
|
|
|
<item></s></item>
|
|
|
|
<item></sub></item>
|
|
|
|
<item></sup></item>
|
|
|
|
<item></small></item>
|
|
|
|
<item></tt></item>
|
|
|
|
<item></u></item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="int_attributes">
|
|
|
|
<item>size=</item>
|
|
|
|
<item>font_size=</item>
|
|
|
|
<item>rise=</item>
|
|
|
|
<item>letter_spacing=</item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="plain_attributes">
|
|
|
|
<item>font=</item>
|
|
|
|
<item>font_desc=</item>
|
|
|
|
<item>font_family=</item>
|
|
|
|
<item>face=</item>
|
|
|
|
<item>lang=</item>
|
|
|
|
</list>
|
|
|
|
|
|
|
|
<list name="color_attributes">
|
|
|
|
<item>strikethrough_color=</item>
|
|
|
|
<item>foreground=</item>
|
|
|
|
<item>fgcolor=</item>
|
|
|
|
<item>color=</item>
|
|
|
|
<item>background=</item>
|
|
|
|
<item>bgcolor=</item>
|
|
|
|
<item>underline_color=</item>
|
|
|
|
</list>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<contexts>
|
|
|
|
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
|
|
|
|
<IncludeRules context="FindPango" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="FindPango" attribute="Normal Text" lineEndContext="#stay">
|
|
|
|
<DetectSpaces/>
|
|
|
|
<RegExpr attribute="Element" context="#stay" String="</(span|b|big|i|s|sub|sup|small|tt|u)>" endRegion="pango_node" />
|
|
|
|
<RegExpr attribute="Element" context="FindAttributes" String="<(span|b|big|i|s|sub|sup|small|tt|u)" beginRegion="pango_node" />
|
|
|
|
<DetectIdentifier />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="FindAttributes" attribute="Normal Text" lineEndContext="#stay">
|
|
|
|
<DetectSpaces/>
|
|
|
|
<RegExpr attribute="Key" context="InGravity" String="gravity=" />
|
|
|
|
<RegExpr attribute="Key" context="InGravityHint" String="gravity_hint=" />
|
|
|
|
<RegExpr attribute="Key" context="InStretch" String="(font_)?stretch=" />
|
|
|
|
<RegExpr attribute="Key" context="InBoolean" String="(strikethrough|fallback)=" />
|
|
|
|
<RegExpr attribute="Key" context="InStyle" String="(font_)?style=" />
|
|
|
|
<RegExpr attribute="Key" context="InUnderline" String="underline=" />
|
|
|
|
<RegExpr attribute="Key" context="InVariant" String="(font_)?variant=" />
|
|
|
|
<RegExpr attribute="Key" context="InWeight" String="(font_)?weight=" />
|
|
|
|
<RegExpr attribute="Key" context="InInt" String="(size|font_size|rise|letter_spacing)=" />
|
|
|
|
<RegExpr attribute="Key" context="InString" String="(font|font_desc|font_family|face|lang)=" />
|
|
|
|
<RegExpr attribute="Key" context="InColor" String="(strikethrough_color|foreground|fgcolor|color|background|bgcolor|underline_color)=" />
|
|
|
|
<DetectChar attribute="Element" context="#pop" char=">" />
|
|
|
|
<RegExpr attribute="Error" context="#stay" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InGravity" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(south|east|north|west|auto)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InGravityHint" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(natural|strong|line)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InStretch" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(ultracondensed|extracondensed|condensed|semicondensed|normal|semiexpanded|expanded|extraexpanded|ultraexpanded)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InBoolean" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(false|true)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InStyle" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(normal|oblique|italic)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InUnderline" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(none|single|double|low|error)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InVariant" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(normal|smallcaps)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InWeight" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="Decimal" context="#pop" String="'[0-9]*'" />
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'(ultralight|light|normal|bold|ultrabold|heavy)'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InColor" attribute="Color" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="Color" context="#pop" String="'((#[0-9a-fA-F]{3}){1,4}|snow|ghost white|GhostWhite|white smoke|WhiteSmoke|gainsboro|floral white|FloralWhite|old lace|OldLace|linen|antique white|AntiqueWhite|papaya whip|PapayaWhip|blanched almond|BlanchedAlmond|bisque|peach puff|PeachPuff|navajo white|NavajoWhite|moccasin|cornsilk|ivory|lemon chiffon|LemonChiffon|seashell|honeydew|mint cream|MintCream|azure|alice blue|AliceBlue|lavender|lavender blush|LavenderBlush|misty rose|MistyRose|white|black|dark slate gray|DarkSlateGray|dark slate grey|DarkSlateGrey|dim gray|DimGray|dim grey|DimGrey|slate gray|SlateGray|slate grey|SlateGrey|light slate gray|LightSlateGray|light slate grey|LightSlateGrey|gray|grey|light grey|LightGrey|light gray|LightGray|midnight blue|MidnightBlue|navy|navy blue|NavyBlue|cornflower blue|CornflowerBlue|dark slate blue|DarkSlateBlue|slate blue|SlateBlue|medium slate blue|MediumSlateBlue|light slate blue|LightSlateBlue|medium blue|MediumBlue|royal blue|RoyalBlue|blue|dodger blue|DodgerBlue|deep sky blue|DeepSkyBlue|sky blue|SkyBlue|light sky blue|LightSkyBlue|steel blue|SteelBlue|light steel blue|LightSteelBlue|light blue|LightBlue|powder blue|PowderBlue|pale turquoise|PaleTurquoise|dark turquoise|DarkTurquoise|medium turquoise|MediumTurquoise|turquoise|cyan|light cyan|LightCyan|cadet blue|CadetBlue|medium aquamarine|MediumAquamarine|aquamarine|dark green|DarkGreen|dark olive green|DarkOliveGreen|dark sea green|DarkSeaGreen|sea green|SeaGreen|medium sea green|MediumSeaGreen|light sea green|LightSeaGreen|pale green|PaleGreen|spring green|SpringGreen|lawn green|LawnGreen|green|chartreuse|medium spring green|MediumSpringGreen|green yellow|GreenYellow|lime green|LimeGreen|yellow green|YellowGreen|forest green|ForestGreen|olive drab|OliveDrab|dark khaki|DarkKhaki|khaki|pale goldenrod|PaleGoldenrod|light goldenrod yellow|LightGoldenrodYellow|light yellow|LightYellow|yellow|gold|light goldenrod|LightGoldenrod|goldenrod|dark goldenrod|DarkGoldenrod|rosy brown|RosyBrown|indian red|IndianRed|saddle brown|SaddleBrown|sienna|peru|burlywood|beige|wheat|sandy brown|SandyBrown|tan|chocolate|firebrick|brown|dark salmon|DarkSalmon|salmon|light salmon|LightSalmon|orange|dark orange|DarkOrange|coral|light coral|LightCoral|tomato|orange red|OrangeRed|red|hot pink|HotPink|deep pink|DeepPink|pink|light pink|LightPink|pale violet red|PaleVioletRed|maroon|medium violet red|MediumVioletRed|violet red|VioletRed|magenta|violet|plum|orchid|medium orchid|MediumOrchid|dark orchid|DarkOrchid|dark violet|DarkViolet|blue violet|BlueViolet|purple|medium purple|MediumPurple|thistle|snow1|snow2|snow3|snow4|seashell1|seashell2|seashell3|seashell4|AntiqueWhite1|AntiqueWhite2|AntiqueWhite3|AntiqueWhite4|bisque1|bisque2|bisque3|bisque4|PeachPuff1|PeachPuff2|PeachPuff3|PeachPuff4|NavajoWhite1|NavajoWhite2|NavajoWhite3|NavajoWhite4|LemonChiffon1|LemonChiffon2|LemonChiffon3|LemonChiffon4|cornsilk1|cornsilk2|cornsilk3|cornsilk4|ivory1|ivory2|ivory3|ivory4|honeydew1|honeydew2|honeydew3|honeydew4|LavenderBlush1|LavenderBlush2|LavenderBlush3|LavenderBlush4|MistyRose1|MistyRose2|MistyRose3|MistyRose4|azure1|azure2|azure3|azure4|SlateBlue1|SlateBlue2|SlateBlue3|SlateBlue4|RoyalBlue1|RoyalBlue2|RoyalBlue3|RoyalBlue4|blue1|blue2|blue3|blue4|DodgerBlue1|DodgerBlue2|DodgerBlue3|DodgerBlue4|SteelBlue1|SteelBlue2|SteelBlue3|SteelBlue4|DeepSkyBlue1|DeepSkyBlue2|DeepSkyBlue3|DeepSkyBlue4|SkyBlue1|SkyBlue2|SkyBlue3|SkyBlue4|LightSkyBlue1|LightSkyBlue2|LightSkyBlue3|LightSkyBlue4|SlateGray1|SlateGray2|SlateGray3|SlateGray4|LightSteelBlue1|LightSteelBlue2|LightSteelBlue3|LightSteelBlue4|LightBlue1|LightBlue2|LightBlue3|LightBlue4|LightCyan1|LightCyan2|LightCyan3|LightCyan4|PaleTurquoise1|PaleTurquoise2|PaleTurquoise3|PaleTurquoise4|CadetBlue1|CadetBlue2|CadetBlue3|CadetBlue4|turquoise1|turquoise2|turquoise3|turquoise4|cyan1|cyan2|cyan3|cyan4|DarkSlateGray1|DarkSlateGray2|DarkSlateGray3|DarkSlateGray4|aquamarine1|aquamarine2|aquamarine3|aquamarine4|DarkSeaGreen1|DarkSeaGreen2|DarkSeaGreen3|DarkSeaGreen4|SeaGreen1|SeaGreen2|SeaGreen3|SeaGreen4|PaleGre
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InInt" attribute="Decimal" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="Decimal" context="#pop" String="'(-?)[0-9]*'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context name="InString" attribute="String" lineEndContext="#stay">
|
|
|
|
<RegExpr attribute="String" context="#pop" String="'[^']*'" />
|
|
|
|
<RegExpr attribute="Error" context="#pop#pop" String="\S" />
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</contexts>
|
|
|
|
<itemDatas>
|
|
|
|
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
|
|
|
<itemData name="Element" defStyleNum="dsKeyword" />
|
|
|
|
<itemData name="Key" defStyleNum="dsOthers" />
|
|
|
|
<itemData name="Decimal" defStyleNum="dsDecVal" />
|
|
|
|
<itemData name="Color" defStyleNum="dsFloat" />
|
|
|
|
<itemData name="String" defStyleNum="dsString" />
|
|
|
|
<itemData name="Error" defStyleNum="dsError" />
|
|
|
|
</itemDatas>
|
|
|
|
|
|
|
|
</highlighting>
|
|
|
|
<general>
|
|
|
|
</general>
|
|
|
|
</language>
|