parent
a929e576b2
commit
5529b46d24
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,653 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
|
||||
<language name="CleanCSS" version="1.01" kateversion="2.5" section="Markup" extensions="*.ccss" author="Massimiliano Torromeo" license="BSD">
|
||||
|
||||
<highlighting>
|
||||
<list name="properties">
|
||||
<!-- CSS2 -->
|
||||
<item> azimuth </item>
|
||||
<item> background </item>
|
||||
<item> background-attachment </item>
|
||||
<item> background-color </item>
|
||||
<item> background-image </item>
|
||||
<item> background-position </item>
|
||||
<item> background-repeat </item>
|
||||
<item> border </item>
|
||||
<item> border-bottom </item>
|
||||
<item> border-bottom-color </item>
|
||||
<item> border-bottom-style </item>
|
||||
<item> border-bottom-width </item>
|
||||
<item> border-collapse </item>
|
||||
<item> border-color </item>
|
||||
<item> border-left </item>
|
||||
<item> border-left-color </item>
|
||||
<item> border-left-style </item>
|
||||
<item> border-left-width </item>
|
||||
<item> border-right </item>
|
||||
<item> border-right-color </item>
|
||||
<item> border-right-style </item>
|
||||
<item> border-right-width </item>
|
||||
<item> border-spacing </item>
|
||||
<item> border-style </item>
|
||||
<item> border-top </item>
|
||||
<item> border-top-color </item>
|
||||
<item> border-top-style </item>
|
||||
<item> border-top-width </item>
|
||||
<item> border-width </item>
|
||||
<item> bottom </item>
|
||||
<item> caption-side </item>
|
||||
<item> clear </item>
|
||||
<item> clip </item>
|
||||
<item> color </item>
|
||||
<item> content </item>
|
||||
<item> counter-increment </item>
|
||||
<item> counter-reset </item>
|
||||
<item> cue </item>
|
||||
<item> cue-after </item>
|
||||
<item> cue-before </item>
|
||||
<item> cursor </item>
|
||||
<item> direction </item>
|
||||
<item> display </item>
|
||||
<item> elevation </item>
|
||||
<item> empty-cells </item>
|
||||
<item> float </item>
|
||||
<item> font </item>
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-size-adjust </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> height </item>
|
||||
<item> left </item>
|
||||
<item> letter-spacing </item>
|
||||
<item> line-height </item>
|
||||
<item> list-style </item>
|
||||
<item> list-style-image </item>
|
||||
<item> list-style-keyword </item>
|
||||
<item> list-style-position </item>
|
||||
<item> list-style-type </item>
|
||||
<item> margin </item>
|
||||
<item> margin-bottom </item>
|
||||
<item> margin-left </item>
|
||||
<item> margin-right </item>
|
||||
<item> margin-top </item>
|
||||
<item> marker-offset </item>
|
||||
<item> max-height </item>
|
||||
<item> max-width </item>
|
||||
<item> min-height </item>
|
||||
<item> min-width </item>
|
||||
<item> orphans </item>
|
||||
<item> outline </item>
|
||||
<item> outline-color </item>
|
||||
<item> outline-style </item>
|
||||
<item> outline-width </item>
|
||||
<item> overflow </item>
|
||||
<item> padding </item>
|
||||
<item> padding-bottom </item>
|
||||
<item> padding-left </item>
|
||||
<item> padding-right </item>
|
||||
<item> padding-top </item>
|
||||
<item> page </item>
|
||||
<item> page-break-after </item>
|
||||
<item> page-break-before </item>
|
||||
<item> page-break-inside </item>
|
||||
<item> pause </item>
|
||||
<item> pause-after </item>
|
||||
<item> pause-before </item>
|
||||
<item> pitch </item>
|
||||
<item> pitch-range </item>
|
||||
<item> play-during </item>
|
||||
<item> position </item>
|
||||
<item> quotes </item>
|
||||
<item> richness </item>
|
||||
<item> right </item>
|
||||
<item> size </item>
|
||||
<item> speak </item>
|
||||
<item> speak-header </item>
|
||||
<item> speak-numeral </item>
|
||||
<item> speak-punctuation </item>
|
||||
<item> speech-rate </item>
|
||||
<item> stress </item>
|
||||
<item> table-layout </item>
|
||||
<item> text-align </item>
|
||||
<item> text-decoration </item>
|
||||
<item> text-decoration-color </item>
|
||||
<item> text-indent </item>
|
||||
<item> text-shadow </item>
|
||||
<item> text-transform </item>
|
||||
<item> top </item>
|
||||
<item> unicode-bidi </item>
|
||||
<item> vertical-align </item>
|
||||
<item> visibility </item>
|
||||
<item> voice-family </item>
|
||||
<item> volume </item>
|
||||
<item> white-space </item>
|
||||
<item> widows </item>
|
||||
<item> width </item>
|
||||
<item> word-spacing </item>
|
||||
<item> z-index </item>
|
||||
|
||||
<!-- CSS3 -->
|
||||
<item> border-bottom-image </item>
|
||||
<item> border-bottom-left-image </item>
|
||||
<item> border-bottom-left-radius </item>
|
||||
<item> border-bottom-right-image </item>
|
||||
<item> border-bottom-right-radius </item>
|
||||
<item> border-corner-image </item>
|
||||
<item> border-image </item>
|
||||
<item> border-left-image </item>
|
||||
<item> border-radius </item>
|
||||
<item> border-right-image </item>
|
||||
<item> border-top-image </item>
|
||||
<item> border-top-left-image </item>
|
||||
<item> border-top-left-radius </item>
|
||||
<item> border-top-right-image </item>
|
||||
<item> border-top-right-radius </item>
|
||||
<item> box-align </item>
|
||||
<item> box-shadow </item>
|
||||
<item> box-sizing </item>
|
||||
<item> box-orient </item>
|
||||
<item> box-pack </item>
|
||||
<item> opacity </item>
|
||||
<item> outline-offset </item>
|
||||
<item> overflow-x </item>
|
||||
<item> overflow-y </item>
|
||||
<item> text-overflow </item>
|
||||
<item> text-shadow </item>
|
||||
|
||||
<!-- Gecko rendering engine CSS property extensions -->
|
||||
<item> -moz-border-bottom-colors </item>
|
||||
<item> -moz-border-left-colors </item>
|
||||
<item> -moz-border-radius </item>
|
||||
<item> -moz-border-right-colors </item>
|
||||
<item> -moz-border-top-colors </item>
|
||||
<item> -moz-box-flex </item>
|
||||
|
||||
<!-- Opera rendering engine CSS property extensions -->
|
||||
<item> -o-background-size </item>
|
||||
<item> -o-text-overflow </item>
|
||||
|
||||
<!-- konq specific -->
|
||||
<item> -khtml-background-size </item>
|
||||
<item> konq_bgpos_x </item>
|
||||
<item> konq_bgpos_y </item>
|
||||
|
||||
<!-- Webkit rendering engine CSS property extensions -->
|
||||
<item> -webkit-background-size </item>
|
||||
<item> -webkit-border-radius </item>
|
||||
|
||||
<!-- MS rendering engine CSS properties -->
|
||||
<item> filter </item>
|
||||
<item> -ms-filter </item>
|
||||
|
||||
<!-- font properties in @font-face -->
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> unicode-range </item>
|
||||
<item> units-per-em </item>
|
||||
<item> src </item>
|
||||
<item> panose-1 </item>
|
||||
<item> stemv </item>
|
||||
<item> stemh </item>
|
||||
<item> slope </item>
|
||||
<item> cap-height </item>
|
||||
<item> x-height </item>
|
||||
<item> ascent </item>
|
||||
<item> descent </item>
|
||||
<item> widths </item>
|
||||
<item> bbox </item>
|
||||
<item> definition-src </item>
|
||||
<item> baseline </item>
|
||||
<item> centerline </item>
|
||||
<item> mathline </item>
|
||||
<item> topline </item>
|
||||
</list>
|
||||
|
||||
<list name="types">
|
||||
<item> inherit </item>
|
||||
<item> none </item>
|
||||
<item> hidden </item>
|
||||
<item> dotted </item>
|
||||
<item> dashed </item>
|
||||
<item> solid </item>
|
||||
<item> double </item>
|
||||
<item> groove </item>
|
||||
<item> ridge </item>
|
||||
<item> inset </item>
|
||||
<item> outset </item>
|
||||
<item> xx-small </item>
|
||||
<item> x-small </item>
|
||||
<item> small </item>
|
||||
<item> medium </item>
|
||||
<item> large </item>
|
||||
<item> x-large </item>
|
||||
<item> xx-large </item>
|
||||
<item> smaller </item>
|
||||
<item> larger </item>
|
||||
<item> italic </item>
|
||||
<item> oblique </item>
|
||||
<item> small-caps </item>
|
||||
<item> normal </item>
|
||||
<item> bold </item>
|
||||
<item> bolder </item>
|
||||
<item> lighter </item>
|
||||
<item> light </item>
|
||||
<item> 100 </item>
|
||||
<item> 200 </item>
|
||||
<item> 300 </item>
|
||||
<item> 400 </item>
|
||||
<item> 500 </item>
|
||||
<item> 600 </item>
|
||||
<item> 700 </item>
|
||||
<item> 800 </item>
|
||||
<item> 900 </item>
|
||||
<item> transparent </item>
|
||||
<item> repeat </item>
|
||||
<item> repeat-x </item>
|
||||
<item> repeat-y </item>
|
||||
<item> no-repeat </item>
|
||||
<item> baseline </item>
|
||||
<item> sub </item>
|
||||
<item> super </item>
|
||||
<item> top </item>
|
||||
<item> text-top </item>
|
||||
<item> middle </item>
|
||||
<item> bottom </item>
|
||||
<item> text-bottom </item>
|
||||
<item> left </item>
|
||||
<item> right </item>
|
||||
<item> center </item>
|
||||
<item> justify </item>
|
||||
<item> konq-center </item>
|
||||
<item> disc </item>
|
||||
<item> circle </item>
|
||||
<item> square </item>
|
||||
<item> box </item>
|
||||
<item> decimal </item>
|
||||
<item> decimal-leading-zero </item>
|
||||
<item> lower-roman </item>
|
||||
<item> upper-roman </item>
|
||||
<item> lower-greek </item>
|
||||
<item> lower-alpha </item>
|
||||
<item> lower-latin </item>
|
||||
<item> upper-alpha </item>
|
||||
<item> upper-latin </item>
|
||||
<item> hebrew </item>
|
||||
<item> armenian </item>
|
||||
<item> georgian </item>
|
||||
<item> cjk-ideographic </item>
|
||||
<item> hiragana </item>
|
||||
<item> katakana </item>
|
||||
<item> hiragana-iroha </item>
|
||||
<item> katakana-iroha </item>
|
||||
<item> inline </item>
|
||||
<item> inline-block </item>
|
||||
<item> block </item>
|
||||
<item> list-item </item>
|
||||
<item> run-in </item>
|
||||
<item> compact </item>
|
||||
<item> marker </item>
|
||||
<item> table </item>
|
||||
<item> inline-table </item>
|
||||
<item> table-row-group </item>
|
||||
<item> table-header-group </item>
|
||||
<item> table-footer-group </item>
|
||||
<item> table-row </item>
|
||||
<item> table-column-group </item>
|
||||
<item> table-column </item>
|
||||
<item> table-cell </item>
|
||||
<item> table-caption </item>
|
||||
<item> auto </item>
|
||||
<item> crosshair </item>
|
||||
<item> default </item>
|
||||
<item> pointer </item>
|
||||
<item> move </item>
|
||||
<item> e-resize </item>
|
||||
<item> ne-resize </item>
|
||||
<item> nw-resize </item>
|
||||
<item> n-resize </item>
|
||||
<item> se-resize </item>
|
||||
<item> sw-resize </item>
|
||||
<item> s-resize </item>
|
||||
<item> w-resize </item>
|
||||
<item> text </item>
|
||||
<item> wait </item>
|
||||
<item> help </item>
|
||||
<item> above </item>
|
||||
<item> absolute </item>
|
||||
<item> always </item>
|
||||
<item> avoid </item>
|
||||
<item> below </item>
|
||||
<item> bidi-override </item>
|
||||
<item> blink </item>
|
||||
<item> both </item>
|
||||
<item> capitalize </item>
|
||||
<item> caption </item>
|
||||
<item> clip </item>
|
||||
<item> close-quote </item>
|
||||
<item> collapse </item>
|
||||
<item> condensed </item>
|
||||
<item> crop </item>
|
||||
<item> cross </item>
|
||||
<item> ellipsis </item>
|
||||
<item> ellipsis-word </item>
|
||||
<item> embed </item>
|
||||
<item> expanded </item>
|
||||
<item> extra-condensed </item>
|
||||
<item> extra-expanded </item>
|
||||
<item> fixed </item>
|
||||
<item> hand </item>
|
||||
<item> hide </item>
|
||||
<item> higher </item>
|
||||
<item> icon </item>
|
||||
<item> inside </item>
|
||||
<item> invert </item>
|
||||
<item> landscape </item>
|
||||
<item> level </item>
|
||||
<item> line-through </item>
|
||||
<item> loud </item>
|
||||
<item> lower </item>
|
||||
<item> lowercase </item>
|
||||
<item> ltr </item>
|
||||
<item> menu </item>
|
||||
<item> message-box </item>
|
||||
<item> mix </item>
|
||||
<item> narrower </item>
|
||||
<item> no-close-quote </item>
|
||||
<item> no-open-quote </item>
|
||||
<item> nowrap </item>
|
||||
<item> open-quote </item>
|
||||
<item> outside </item>
|
||||
<item> overline </item>
|
||||
<item> portrait </item>
|
||||
<item> pre </item>
|
||||
<item> pre-line </item>
|
||||
<item> pre-wrap </item>
|
||||
<item> relative </item>
|
||||
<item> rtl </item>
|
||||
<item> scroll </item>
|
||||
<item> semi-condensed </item>
|
||||
<item> semi-expanded </item>
|
||||
<item> separate </item>
|
||||
<item> show </item>
|
||||
<item> small-caption </item>
|
||||
<item> static </item>
|
||||
<item> static-position </item>
|
||||
<item> status-bar </item>
|
||||
<item> thick </item>
|
||||
<item> thin </item>
|
||||
<item> ultra-condensed </item>
|
||||
<item> ultra-expanded </item>
|
||||
<item> underline </item>
|
||||
<item> uppercase </item>
|
||||
<item> visible </item>
|
||||
<item> wider </item>
|
||||
<item> break </item>
|
||||
<item> serif </item>
|
||||
<item> sans-serif </item>
|
||||
<item> cursive </item>
|
||||
<item> fantasy </item>
|
||||
<item> monospace </item>
|
||||
<item> border-box </item>
|
||||
<item> content-box </item>
|
||||
<item> horizontal </item>
|
||||
|
||||
<!-- Gecko rendering engine CSS value extensions -->
|
||||
<item> -moz-box </item>
|
||||
|
||||
<!-- Webkit rendering engine CSS value extensions -->
|
||||
<item> linear </item>
|
||||
<item> radial </item>
|
||||
|
||||
</list>
|
||||
|
||||
|
||||
<list name="colors">
|
||||
<item> aqua </item>
|
||||
<item> black </item>
|
||||
<item> blue </item>
|
||||
<item> fuchsia </item>
|
||||
<item> gray </item>
|
||||
<item> green </item>
|
||||
<item> lime </item>
|
||||
<item> maroon </item>
|
||||
<item> navy </item>
|
||||
<item> olive </item>
|
||||
<item> purple </item>
|
||||
<item> red </item>
|
||||
<item> silver </item>
|
||||
<item> teal </item>
|
||||
<item> white </item>
|
||||
<item> yellow </item>
|
||||
<item> ActiveBorder </item>
|
||||
<item> ActiveCaption </item>
|
||||
<item> AppWorkspace </item>
|
||||
<item> Background </item>
|
||||
<item> ButtonFace </item>
|
||||
<item> ButtonHighlight </item>
|
||||
<item> ButtonShadow </item>
|
||||
<item> ButtonText </item>
|
||||
<item> CaptionText </item>
|
||||
<item> GrayText </item>
|
||||
<item> Highlight </item>
|
||||
<item> HighlightText </item>
|
||||
<item> InactiveBorder </item>
|
||||
<item> InactiveCaption </item>
|
||||
<item> InactiveCaptionText </item>
|
||||
<item> InfoBackground </item>
|
||||
<item> InfoText </item>
|
||||
<item> Menu </item>
|
||||
<item> MenuText </item>
|
||||
<item> Scrollbar </item>
|
||||
<item> ThreeDDarkShadow </item>
|
||||
<item> ThreeDFace </item>
|
||||
<item> ThreeDHighlight </item>
|
||||
<item> ThreeDLightShadow </item>
|
||||
<item> ThreeDShadow </item>
|
||||
<item> Window </item>
|
||||
<item> WindowFrame </item>
|
||||
<item> WindowText </item>
|
||||
</list>
|
||||
|
||||
<list name="paren">
|
||||
<item> url </item>
|
||||
<item> attr </item>
|
||||
<item> rect </item>
|
||||
<item> rgb </item>
|
||||
<item> rgba </item>
|
||||
<item> hsl </item>
|
||||
<item> hsla </item>
|
||||
<item> counter </item>
|
||||
<item> counters </item>
|
||||
|
||||
<!-- in @font-face -->
|
||||
<item> local </item>
|
||||
<item> format </item>
|
||||
|
||||
<!-- Webkit rendering engine CSS value extensions -->
|
||||
<item> -webkit-gradient </item>
|
||||
<item> color-stop </item>
|
||||
|
||||
<!-- Gecko rendering engine CSS value extensions -->
|
||||
<item> -moz-linear-gradient </item>
|
||||
<item> -moz-radial-gradient </item>
|
||||
|
||||
<!-- Trident (a.k.a., MSHTML) rendering engine functional notation extensions -->
|
||||
<item> expression </item>
|
||||
<item> progid:DXImageTransform.Microsoft.gradient </item>
|
||||
|
||||
</list>
|
||||
|
||||
<list name="mediatypes">
|
||||
<item> all </item>
|
||||
<item> aural </item>
|
||||
<item> braille </item>
|
||||
<item> embossed </item>
|
||||
<item> handheld </item>
|
||||
<item> print </item>
|
||||
<item> projection </item>
|
||||
<item> screen </item>
|
||||
<item> tty </item>
|
||||
<item> tv </item>
|
||||
</list>
|
||||
|
||||
<list name="pseudoclasses">
|
||||
<item> hover </item>
|
||||
<item> link </item>
|
||||
<item> visited </item>
|
||||
<item> active </item>
|
||||
<item> focus </item>
|
||||
<item> first-child </item>
|
||||
<item> last-child </item>
|
||||
<item> only-child </item>
|
||||
<item> first-of-type </item>
|
||||
<item> last-of-type </item>
|
||||
<item> only-of-type </item>
|
||||
<item> first-letter </item>
|
||||
<item> first-line </item>
|
||||
<item> before </item>
|
||||
<item> after </item>
|
||||
<item> selection </item>
|
||||
<item> root </item>
|
||||
<item> empty </item>
|
||||
<item> target </item>
|
||||
<item> enabled </item>
|
||||
<item> disabled </item>
|
||||
<item> checked </item>
|
||||
<item> indeterminate </item>
|
||||
<item> nth-child </item>
|
||||
<item> nth-last-child </item>
|
||||
<item> nth-of-type </item>
|
||||
<item> nth-last-of-type </item>
|
||||
<item> not </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Comment" char="/" char1="/" context="Comment" />
|
||||
<RegExpr attribute="Normal Text" String=".*\S.*:\s*$" context="Selector" lookAhead="true" />
|
||||
<RegExpr attribute="Normal Text" String=".*\S.*:.*\S.*$" context="RuleSet" lookAhead="true" />
|
||||
<RegExpr attribute="Property" String="[a-z\-]+->\s*$" context="#stay" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
<!--<keyword attribute="Property" context="Rule" String="properties" />
|
||||
<keyword attribute="Property" context="Rule" String="properties" />-->
|
||||
<!--<keyword attribute="Value" context="#stay" String="types" />
|
||||
<keyword attribute="Value" context="#stay" String="colors" />-->
|
||||
<!--<keyword attribute="Value" context="PropParen" String="paren" />-->
|
||||
</context>
|
||||
|
||||
<context name="Comment" attribute="Comment" lineEndContext="#pop" />
|
||||
|
||||
<context name="Selector" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectChar attribute="Selector Attr" context="SelAttr" char="[" />
|
||||
<RegExpr attribute="Selector Id" context="#stay" String="#([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
|
||||
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
|
||||
<DetectChar attribute="Selector Pseudo" context="SelPseudo" char=":" />
|
||||
<keyword attribute="Media" context="#stay" String="mediatypes" />
|
||||
</context>
|
||||
|
||||
<context name="SelAttr" attribute="Selector Attr" lineEndContext="#pop">
|
||||
<DetectChar attribute="Selector Attr" context="#pop" char="]" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
</context>
|
||||
|
||||
<context name="SelPseudo" attribute="Selector Pseudo" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
|
||||
<keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses" />
|
||||
</context>
|
||||
|
||||
<context name="RuleSet" attribute="Normal Text" lineEndContext="#pop">
|
||||
<keyword attribute="Property" context="Rule" String="properties" />
|
||||
<RegExpr attribute="Unknown Property" context="Rule" String="-?[A-Za-z_-]+(?=\s*:)" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="Rule" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectChar attribute="Property" context="Rule2" char=":" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="Rule2" attribute="Normal Text" lineEndContext="#pop">
|
||||
<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>
|
||||
|
||||
<context name="PropParen" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectChar attribute="Value" context="PropParen2" char="(" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="PropParen2" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="Rule2" />
|
||||
<DetectChar attribute="Value" context="#pop#pop" char=")" />
|
||||
<IncludeRules context="FindValues" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindValues">
|
||||
<RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+(em|ex|px|in|cm|mm|pt|pc|deg|rad|grad|ms|s|Hz|kHz)\b" />
|
||||
<RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+[%]?" />
|
||||
<RegExpr attribute="Normal Text" context="#stay" String="[\w\-]+" />
|
||||
</context>
|
||||
|
||||
<context name="FindStrings" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectChar attribute="String" context="StringDQ" char=""" />
|
||||
<DetectChar attribute="String" context="StringSQ" char="'" />
|
||||
</context>
|
||||
|
||||
<!-- string contexts -->
|
||||
<context name="StringDQ" attribute="String" lineEndContext="#pop">
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context name="StringSQ" attribute="String" lineEndContext="#pop">
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context name="InsideString" attribute="String" lineEndContext="#pop">
|
||||
<RegExpr attribute="String" context="#stay" String="\\["']" />
|
||||
<DetectIdentifier/>
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<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="dsChar" 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="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>
|
||||
<general>
|
||||
<folding indentationsensitive="1" />
|
||||
<keywords casesensitive="0" weakDeliminator="-%"/>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#" position="afterwhitespace"/>
|
||||
<comment name="singleLine" start="//" position="afterwhitespace"/>
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,437 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<!--
|
||||
This file is part of TDE's kate project.
|
||||
|
||||
copyright : (C) 2004-2005 by Dominik Haumann
|
||||
email : dhdev at gmx dot de
|
||||
|
||||
|
||||
copyright : (C) 2004 by Goffart Olivier
|
||||
email : ogoffart @ kde.org
|
||||
(brackets coloration)
|
||||
|
||||
|
||||
**********************************************************************
|
||||
* 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. *
|
||||
**********************************************************************
|
||||
NOTE:
|
||||
This file defines highlighting rules for both Scheme AND Guile.
|
||||
Scheme usually has no block comments. Guile has block comments: #! !#
|
||||
I support these block comments: "Good design means good compromises" :)
|
||||
Singleline comments are introduced through ';'. In reality EVERY
|
||||
scheme/guile developer use ';;'. It is indented in emacs in a special way.
|
||||
That's why I set <comment singleLine=";;">.
|
||||
|
||||
As a guile guru tole me it would not make sense to highlight all scheme and
|
||||
guile procedures (cause then almost everything would be highlighted) I
|
||||
removed some to have a rather small but "senseful" list of highlighted words.
|
||||
-->
|
||||
<language version="1.13" kateversion="2.5"
|
||||
name="Chicken" section="Scripts"
|
||||
extensions="*.chicken;*.scm;*.ss;*.scheme;*.meta"
|
||||
indenter="lisp"
|
||||
mimetype="text/x-scheme"
|
||||
author="Dominik Haumann (dhdev@gmx.de) [modified for Chicken by Nick Zarczynski (jacktradespublic@gmail.com)]"
|
||||
license="LGPL">
|
||||
<highlighting>
|
||||
<list name="operators">
|
||||
<item> <= </item>
|
||||
<item> < </item>
|
||||
<item> = </item>
|
||||
<item> => </item>
|
||||
<item> >= </item>
|
||||
<item> > </item>
|
||||
<item> - </item>
|
||||
<item> / </item>
|
||||
<item> *,* </item>
|
||||
<item> *) </item>
|
||||
<item> + </item>
|
||||
</list>
|
||||
<list name="characters">
|
||||
<item> #\nul </item>
|
||||
<item> #\soh </item>
|
||||
<item> #\stx </item>
|
||||
<item> #\etx </item>
|
||||
<item> #\eot </item>
|
||||
<item> #\enq </item>
|
||||
<item> #\ack </item>
|
||||
<item> #\bel </item>
|
||||
<item> #\bs </item>
|
||||
<item> #\ht </item>
|
||||
<item> #\nl </item>
|
||||
<item> #\vt </item>
|
||||
<item> #\np </item>
|
||||
<item> #\cr </item>
|
||||
<item> #\so </item>
|
||||
<item> #\si </item>
|
||||
<item> #\dle </item>
|
||||
<item> #\dc1 </item>
|
||||
<item> #\dc2 </item>
|
||||
<item> #\dc3 </item>
|
||||
<item> #\dc4 </item>
|
||||
<item> #\nak </item>
|
||||
<item> #\syn </item>
|
||||
<item> #\etb </item>
|
||||
<item> #\can </item>
|
||||
<item> #\em </item>
|
||||
<item> #\sub </item>
|
||||
<item> #\esc </item>
|
||||
<item> #\fs </item>
|
||||
<item> #\gs </item>
|
||||
<item> #\rs </item>
|
||||
<item> #\us </item>
|
||||
<item> #\space </item>
|
||||
<item> #\sp </item>
|
||||
<item> #\newline </item>
|
||||
<item> #\nl </item>
|
||||
<item> #\tab </item>
|
||||
<item> #\ht </item>
|
||||
<item> #\backspace </item>
|
||||
<item> #\bs </item>
|
||||
<item> #\return </item>
|
||||
<item> #\cr </item>
|
||||
<item> #\page </item>
|
||||
<item> #\np </item>
|
||||
<item> #\null </item>
|
||||
<item> #\nul </item>
|
||||
</list>
|
||||
<list name="defines">
|
||||
<item> define </item>
|
||||
<item> define* </item>
|
||||
<item> define-accessor </item>
|
||||
<item> define-class </item>
|
||||
<item> defined? </item>
|
||||
<item> define-generic </item>
|
||||
<item> define-macro </item>
|
||||
<item> define-method </item>
|
||||
<item> define-module </item>
|
||||
<item> define-private </item>
|
||||
<item> define-public </item>
|
||||
<item> define*-public </item>
|
||||
<item> define-reader-ctor </item>
|
||||
<item> define-syntax </item>
|
||||
<item> define-syntax-macro </item>
|
||||
<item> defmacro </item>
|
||||
<item> defmacro* </item>
|
||||
<item> defmacro*-public </item>
|
||||
</list>
|
||||
<list name="keywords">
|
||||
<item> abs </item>
|
||||
<item> acos </item>
|
||||
<item> and </item>
|
||||
<item> angle </item>
|
||||
<item> append </item>
|
||||
<item> applymap </item>
|
||||
<item> asin </item>
|
||||
<item> assoc </item>
|
||||
<item> assq </item>
|
||||
<item> assv </item>
|
||||
<item> atan </item>
|
||||
<item> begin </item>
|
||||
<item> boolean? </item>
|
||||
<item> break </item>
|
||||
<item> caaaar </item>
|
||||
<item> caaadr </item>
|
||||
<item> caaar </item>
|
||||
<item> caadar </item>
|
||||
<item> caaddr </item>
|
||||
<item> caadr </item>
|
||||
<item> caar </item>
|
||||
<item> cadaar </item>
|
||||
<item> cadadr </item>
|
||||
<item> cadar </item>
|
||||
<item> caddar </item>
|
||||
<item> cadddr </item>
|
||||
<item> caddr </item>
|
||||
<item> cadr </item>
|
||||
<item> call/cc </item>
|
||||
<item> call-with-current-continuation </item>
|
||||
<item> call-with-input-file </item>
|
||||
<item> call-with-output-file </item>
|
||||
<item> call-with-values </item>
|
||||
<item> car </item>
|
||||
<item> case </item>
|
||||
<item> catch </item>
|
||||
<item> cdaaar </item>
|
||||
<item> cdaadr </item>
|
||||
<item> cdaar </item>
|
||||
<item> cdadar </item>
|
||||
<item> cdaddr </item>
|
||||
<item> cdadr </item>
|
||||
<item> cdar </item>
|
||||
<item> cddaar </item>
|
||||
<item> cddadr </item>
|
||||
<item> cddar </item>
|
||||
<item> cdddar </item>
|
||||
<item> cddddr </item>
|
||||
<item> cdddr </item>
|
||||
<item> cddr </item>
|
||||
<item> cdr </item>
|
||||
<item> ceiling </item>
|
||||
<item> char-alphabetic? </item>
|
||||
<item> char-ci>=? </item>
|
||||
<item> char-ci>? </item>
|
||||
<item> char-ci=? </item>
|
||||
<item> char-ci<=? </item>
|
||||
<item> char-downcase </item>
|
||||
<item> char->integer </item>
|
||||
<item> char>=? </item>
|
||||
<item> char>? </item>
|
||||
<item> char=? </item>
|
||||
<item> char? </item>
|
||||
<item> char-lower-case? </item>
|
||||
<item> char<?c </item>
|
||||
<item> char<=? </item>
|
||||
<item> char-numeric? </item>
|
||||
<item> char-ready? </item>
|
||||
<item> char-upcase </item>
|
||||
<item> char-upper-case? </item>
|
||||
<item> char-whitespace? </item>
|
||||
<item> close-input-port </item>
|
||||
<item> close-output-port </item>
|
||||
<item> complex? </item>
|
||||
<item> cond </item>
|
||||
<item> cons </item>
|
||||
<item> continue </item>
|
||||
<item> cos </item>
|
||||
<item> current-input-port </item>
|
||||
<item> current-output-port </item>
|
||||
<item> denominator </item>
|
||||
<item> display </item>
|
||||
<item> do </item>
|
||||
<item> dynamic-wind </item>
|
||||
<item> else </item>
|
||||
<item> eof-object? </item>
|
||||
<item> eq? </item>
|
||||
<item> equal? </item>
|
||||
<item> eqv? </item>
|
||||
<item> eval </item>
|
||||
<item> even? </item>
|
||||
<item> exact->inexact </item>
|
||||
<item> exact? </item>
|
||||
<item> exp </item>
|
||||
<item> expt </item>
|
||||
<item> floor </item>
|
||||
<item> force </item>
|
||||
<item> for-each </item>
|
||||
<item> gcd </item>
|
||||
<item> har-ci<? </item>
|
||||
<item> if </item>
|
||||
<item> imag-part </item>
|
||||
<item> inexact->exact </item>
|
||||
<item> inexact? </item>
|
||||
<item> input-port? </item>
|
||||
<item> integer->char </item>
|
||||
<item> integer? </item>
|
||||
<item> interaction-environment </item>
|
||||
<item> lambda </item>
|
||||
<item> lcm </item>
|
||||
<item> length </item>
|
||||
<item> let </item>
|
||||
<item> let* </item>
|
||||
<item> letrec </item>
|
||||
<item> letrec-syntax </item>
|
||||
<item> let-syntax </item>
|
||||
<item> list->string </item>
|
||||
<item> list </item>
|
||||
<item> list? </item>
|
||||
<item> list-ref </item>
|
||||
<item> list-tail </item>
|
||||
<item> load </item>
|
||||
<item> log </item>
|
||||
<item> magnitude </item>
|
||||
<item> make-polar </item>
|
||||
<item> make-rectangular </item>
|
||||
<item> make-string </item>
|
||||
<item> make-vector </item>
|
||||
<item> max </item>
|
||||
<item> member </item>
|
||||
<item> memq </item>
|
||||
<item> memv </item>
|
||||
<item> min </item>
|
||||
<item> modulo </item>
|
||||
<item> negative? </item>
|
||||
<item> newline </item>
|
||||
<item> not </item>
|
||||
<item> null-environment </item>
|
||||
<item> null? </item>
|
||||
<item> number? </item>
|
||||
<item> number->string </item>
|
||||
<item> numerator </item>
|
||||
<item> odd? </item>
|
||||
<item> open-input-file </item>
|
||||
<item> open-output-file </item>
|
||||
<item> or </item>
|
||||
<item> output-port? </item>
|
||||
<item> pair? </item>
|
||||
<item> peek-char </item>
|
||||
<item> port? </item>
|
||||
<item> positive? </item>
|
||||
<item> procedure? </item>
|
||||
<item> quotient </item>
|
||||
<item> rational? </item>
|
||||
<item> rationalize </item>
|
||||
<item> read-char </item>
|
||||
<item> read </item>
|
||||
<item> real? </item>
|
||||
<item> real-part </item>
|
||||
<item> remainder </item>
|
||||
<item> reverse </item>
|
||||
<item> round </item>
|
||||
<item> scheme-report-environment </item>
|
||||
<item> set-car! </item>
|
||||
<item> set-cdr! </item>
|
||||
<item> sin </item>
|
||||
<item> sqrt </item>
|
||||
<item> string-append </item>
|
||||
<item> string-ci>=? </item>
|
||||
<item> string-ci>? </item>
|
||||
<item> string-ci=? </item>
|
||||
<item> string-ci<=? </item>
|
||||
<item> string-ci<? </item>
|
||||
<item> string-copy </item>
|
||||
<item> string-fill! </item>
|
||||
<item> string>=? </item>
|
||||
<item> string>? </item>
|
||||
<item> string->list </item>
|
||||
<item> string->number </item>
|
||||
<item> string->symbol </item>
|
||||
<item> string=? </item>
|
||||
<item> string </item>
|
||||
<item> string? </item>
|
||||
<item> string-length </item>
|
||||
<item> string<=? </item>
|
||||
<item> string<? </item>
|
||||
<item> string-ref </item>
|
||||
<item> string-set! </item>
|
||||
<item> substring </item>
|
||||
<item> symbol->string </item>
|
||||
<item> symbol? </item>
|
||||
<item> syntax-rules </item>
|
||||
<item> tan </item>
|
||||
<item> transcript-off </item>
|
||||
<item> transcript-on </item>
|
||||
<item> truncate </item>
|
||||
<item> values </item>
|
||||
<item> vector-fill! </item>
|
||||
<item> vector->listlist->vector </item>
|
||||
<item> vector </item>
|
||||
<item> vector? </item>
|
||||
<item> vector-length </item>
|
||||
<item> vector-ref </item>
|
||||
<item> vector-set! </item>
|
||||
<item> while </item>
|
||||
<item> with-input-from-file </item>
|
||||
<item> with-output-to-file </item>
|
||||
<item> write-char </item>
|
||||
<item> write </item>
|
||||
<item> zero? </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context name="Level0" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets1" context="Level1" char="("/>
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Default" attribute="Normal" lineEndContext="#stay">
|
||||
<RegExpr attribute="Region Marker" context="#stay" String=";+\s*BEGIN.*$" beginRegion="region"/>
|
||||
<RegExpr attribute="Region Marker" context="#stay" String=";+\s*END.*$" endRegion="region"/>
|
||||
<RegExpr attribute="Comment" context="#stay" String=";.*$"/>
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
||||
<keyword attribute="Operator" context="#stay" String="operators"/>
|
||||
<keyword attribute="Definition" context="function_decl" String="defines"/>
|
||||
<keyword attribute="Char" context="#stay" String="characters"/>
|
||||
<RegExpr attribute="Char" context="#stay" String="#\\."/>
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<RegExpr attribute="Char" context="SpecialNumber" String="#[bodxei]"/>
|
||||
<RegExpr attribute="Decimal" context="#stay" String="#[tf]"/>
|
||||
<Float attribute="Float" context="#stay"/>
|
||||
<Int attribute="Decimal" context="#stay"/>
|
||||
<DetectChar attribute="Brackets1" context="Level1" char="("/>
|
||||
</context>
|
||||
<context name="SpecialNumber" attribute="Normal" fallthrough="true" lineEndContext="#pop">
|
||||
<RegExpr attribute="Decimal" context="#pop" String="\d*(\.\d+)?"/>
|
||||
</context>
|
||||
<context name="String" attribute="String" lineEndContext="#stay">
|
||||
<keyword attribute="Char" context="#stay" String="characters"/>
|
||||
<RegExpr attribute="Char" context="#stay" String="#\\."/>
|
||||
<Detect2Chars attribute="Char" context="#stay" char="\" char1="""/>
|
||||
<Detect2Chars attribute="Char" context="#stay" char="\" char1="\"/>
|
||||
<DetectChar attribute="String" context="#pop" char="""/>
|
||||
</context>
|
||||
<context name="function_decl" attribute="Function" lineEndContext="#stay">
|
||||
<RegExpr attribute="Function" context="#pop" String="\s*[A-Za-z0-9-+\<\>//\*]*\s*" />
|
||||
</context>
|
||||
<context name="Level1" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets2" context="Level2" char="("/>
|
||||
<DetectChar attribute="Brackets1" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Level2" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets3" context="Level3" char="("/>
|
||||
<DetectChar attribute="Brackets2" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Level3" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets4" context="Level4" char="("/>
|
||||
<DetectChar attribute="Brackets3" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Level4" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets5" context="Level5" char="("/>
|
||||
<DetectChar attribute="Brackets4" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Level5" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets6" context="Level6" char="("/>
|
||||
<DetectChar attribute="Brackets5" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
<context name="Level6" attribute="Normal" lineEndContext="#stay">
|
||||
<DetectChar attribute="Brackets1" context="Level1" char="("/>
|
||||
<DetectChar attribute="Brackets6" context="#pop" char=")" />
|
||||
<IncludeRules context="Default" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal" defStyleNum="dsNormal"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Definition" defStyleNum="dsKeyword" color="#d22811"/>
|
||||
<itemData name="Operator" defStyleNum="dsKeyword" color="#d22811"/>
|
||||
<itemData name="Function" defStyleNum="dsFunction"/>
|
||||
<itemData name="Data" defStyleNum="dsDataType"/>
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal"/>
|
||||
<itemData name="BaseN" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat"/>
|
||||
<itemData name="Char" defStyleNum="dsChar"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Region Marker" defStyleNum="dsRegionMarker"/>
|
||||
<itemData name="Brackets1" defStyleNum="dsNormal" color="#ff0000" selColor="#000000" bold="1" italic="0"/>
|
||||
<itemData name="Brackets2" defStyleNum="dsNormal" color="#ff8800" selColor="#000000" bold="1" italic="0"/>
|
||||
<itemData name="Brackets3" defStyleNum="dsNormal" color="#888800" selColor="#000000" bold="1" italic="0"/>
|
||||
<itemData name="Brackets4" defStyleNum="dsNormal" color="#008800" selColor="#000000" bold="1" italic="0"/>
|
||||
<itemData name="Brackets5" defStyleNum="dsNormal" color="#000088" selColor="#000000" bold="1" italic="0"/>
|
||||
<itemData name="Brackets6" defStyleNum="dsNormal" color="#880088" selColor="#000000" bold="1" italic="0"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<keywords casesensitive="1" weakDeliminator="-+*?!<>=/:#\"/>
|
||||
<comments>
|
||||
<comment name="singleLine" start=";;" />
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,603 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd"
|
||||
[
|
||||
<!ENTITY space " ">
|
||||
<!ENTITY separators ",;">
|
||||
<!ENTITY ns_punctuators "!%&space;&()+-/.*<=>?[]{|}~^&separators;">
|
||||
<!ENTITY punctuators ":&ns_punctuators;">
|
||||
<!-- printf-like format strings conversion specifiers -->
|
||||
<!ENTITY convspec "diouxXeEfFgGaAcsP%">
|
||||
]>
|
||||
<language
|
||||
name="C++11"
|
||||
section="Sources"
|
||||
version="1.63"
|
||||
kateversion="2.5"
|
||||
indenter="cppstyle"
|
||||
mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr"
|
||||
extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc"
|
||||
author="Alex Turbov (i.zaufi@gmail.com)"
|
||||
license="LGPL"
|
||||
priority="7"
|
||||
>
|
||||
<!--
|
||||
Complete list of changes by Alex Turbov (I.zaufi@gmail.com)
|
||||
can be found at:
|
||||
http://kde-files.org/content/show.php?content=90660
|
||||
-->
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> alignof </item>
|
||||
<item> alignas </item>
|
||||
<item> asm </item>
|
||||
<item> auto </item>
|
||||
<item> break </item>
|
||||
<item> case </item>
|
||||
<item> catch </item>
|
||||
<item> class </item>
|
||||
<item> constexpr </item>
|
||||
<item> const_cast </item>
|
||||
<item> continue </item>
|
||||
<item> decltype </item>
|
||||
<item> default </item>
|
||||
<item> delete </item>
|
||||
<item> do </item>
|
||||
<item> dynamic_cast</item>
|
||||
<item> else </item>
|
||||
<item> enum </item>
|
||||
<item> explicit </item>
|
||||
<item> export </item> <!-- Unused but reserved for future use -->
|
||||
<item> false </item>
|
||||
<item> final </item> <!-- According N3272 -->
|
||||
<item> friend </item>
|
||||
<item> for </item>
|
||||
<item> goto </item>
|
||||
<item> if </item>
|
||||
<item> inline </item>
|
||||
<item> namespace </item>
|
||||
<item> new </item>
|
||||
<item> noexcept </item>
|
||||
<item> nullptr </item>
|
||||
<item> operator </item>
|
||||
<item> override </item> <!-- According N3272 -->
|
||||
<item> private </item>
|
||||
<item> protected </item>
|
||||
<item> public </item>
|
||||
<item> reinterpret_cast </item>
|
||||
<item> return </item>
|
||||
<item> sizeof </item>
|
||||
<item> static_assert </item>
|
||||
<item> static_cast </item>
|
||||
<item> struct </item>
|
||||
<item> switch </item>
|
||||
<item> template </item>
|
||||
<item> this </item>
|
||||
<item> throw </item>
|
||||
<item> true </item>
|
||||
<item> try </item>
|
||||
<item> typedef </item>
|
||||
<item> typeid </item>
|
||||
<item> typename </item>
|
||||
<item> union </item>
|
||||
<item> using </item>
|
||||
<item> virtual </item>
|
||||
<item> while </item>
|
||||
<!-- Alternative operators (see 2.12) -->
|
||||
<item> and </item>
|
||||
<item> and_eq </item>
|
||||
<item> bitand </item>
|
||||
<item> bitor </item>
|
||||
<item> compl </item>
|
||||
<item> not </item>
|
||||
<item> not_eq </item>
|
||||
<item> or </item>
|
||||
<item> or_eq </item>
|
||||
<item> xor </item>
|
||||
<item> xor_eq </item>
|
||||
</list>
|
||||
<!-- This keyword may appear in InternalsNS context. For example in code:
|
||||
details::some_class::template some_templated_static();
|
||||
and it should be displayed as keyword, not like part of details namespace...
|
||||
-->
|
||||
<list name="template">
|
||||
<item> template </item>
|
||||
</list>
|
||||
|
||||
<!-- 7.6 Attributes -->
|
||||
<list name="attributes">
|
||||
<item> noreturn </item>
|
||||
<item> carries_dependency </item>
|
||||
</list>
|
||||
|
||||
<!-- QT/TQT extensions -->
|
||||
<list name="extensions">
|
||||
<item> K_DCOP </item>
|
||||
<item> Q_ARG </item>
|
||||
<item> Q_ASSERT </item>
|
||||
<item> Q_ASSERT_X </item>
|
||||
<item> Q_CHECK_PTR </item>
|
||||
<item> Q_CLASSINFO </item>
|
||||
<item> Q_CLEANUP_RESOURCE </item>
|
||||
<item> Q_D </item>
|
||||
<item> Q_DECLARE_FLAGS </item>
|
||||
<item> Q_DECLARE_INTERFACE </item>
|
||||
<item> Q_DECLARE_METATYPE </item>
|
||||
<item> Q_DECLARE_OPERATORS_FOR_FLAGS </item>
|
||||
<item> Q_DECLARE_PRIVATE </item>
|
||||
<item> Q_DECLARE_PUBLIC </item>
|
||||
<item> Q_DECLARE_SHARED </item>
|
||||
<item> Q_DECLARE_TYPEINFO </item>
|
||||
<item> Q_DISABLE_COPY </item>
|
||||
<item> Q_EMIT </item>
|
||||
<item> Q_ENUMS </item>
|
||||
<item> Q_EXPORT </item>
|
||||
<item> Q_FLAGS </item>
|
||||
<item> Q_FOREACH </item>
|
||||
<item> Q_FOREVER </item>
|
||||
<item> Q_GADGET </item>
|
||||
<item> Q_GLOBAL_STATIC </item>
|
||||
<item> Q_GLOBAL_STATIC_WITH_ARGS </item>
|
||||
<item> Q_INIT_RESOURCE </item>
|
||||
<item> Q_INTERFACES </item>
|
||||
<item> Q_INVOKABLE </item>
|
||||
<item> Q_NOREPLY </item>
|
||||
<item> Q_OBJECT </item>
|
||||
<item> Q_OVERRIDE </item>
|
||||
<item> Q_PRIVATE_SLOT </item>
|
||||
<item> Q_PROPERTY </item>
|
||||
<item> Q_Q </item>
|
||||
<item> Q_RETURN_ARG </item>
|
||||
<item> Q_SCRIPTABLE </item>
|
||||
<item> Q_SETS </item>
|
||||
<item> Q_SIGNALS </item>
|
||||
<item> Q_SLOTS </item>
|
||||
<item> Q_UNUSED </item>
|
||||
<item> SIGNAL </item>
|
||||
<item> SLOT </item>
|
||||
<item> TRUE </item>
|
||||
<item> FALSE </item>
|
||||
<item> TQ_ARG </item>
|
||||
<item> TQ_ASSERT </item>
|
||||
<item> TQ_ASSERT_X </item>
|
||||
<item> TQ_CHECK_PTR </item>
|
||||
<item> TQ_CLASSINFO </item>
|
||||
<item> TQ_CLEANUP_RESOURCE </item>
|
||||
<item> TQ_D </item>
|
||||
<item> TQ_DECLARE_FLAGS </item>
|
||||
<item> TQ_DECLARE_INTERFACE </item>
|
||||
<item> TQ_DECLARE_METATYPE </item>
|
||||
<item> TQ_DECLARE_OPERATORS_FOR_FLAGS </item>
|
||||
<item> TQ_DECLARE_PRIVATE </item>
|
||||
<item> TQ_DECLARE_PUBLIC </item>
|
||||
<item> TQ_DECLARE_SHARED </item>
|
||||
<item> TQ_DECLARE_TYPEINFO </item>
|
||||
<item> TQ_DISABLE_COPY </item>
|
||||
<item> TQ_EMIT </item>
|
||||
<item> TQ_ENUMS </item>
|
||||
<item> TQ_EXPORT </item>
|
||||
<item> TQ_FLAGS </item>
|
||||
<item> TQ_FOREACH </item>
|
||||
<item> TQ_FOREVER </item>
|
||||
<item> TQ_GADGET </item>
|
||||
<item> TQ_GLOBAL_STATIC </item>
|
||||
<item> TQ_GLOBAL_STATIC_WITH_ARGS </item>
|
||||
<item> TQ_INIT_RESOURCE </item>
|
||||
<item> TQ_INTERFACES </item>
|
||||
<item> TQ_INVOKABLE </item>
|
||||
<item> TQ_NOREPLY </item>
|
||||
<item> TQ_OBJECT </item>
|
||||
<item> TQ_OVERRIDE </item>
|
||||
<item> TQ_PRIVATE_SLOT </item>
|
||||
<item> TQ_PROPERTY </item>
|
||||
<item> TQ_Q </item>
|
||||
<item> TQ_RETURN_ARG </item>
|
||||
<item> TQ_SCRIPTABLE </item>
|
||||
<item> TQ_SETS </item>
|
||||
<item> TQ_SIGNAL </item>
|
||||
<item> TQ_SIGNALS </item>
|
||||
<item> TQ_SLOT </item>
|
||||
<item> TQ_SLOTS </item>
|
||||
<item> TQ_UNUSED </item>
|
||||
<item> TQT_SIGNAL </item>
|
||||
<item> TQT_SLOT </item>
|
||||
<item> TQT_TQOBJECT </item>
|
||||
<item> connect </item>
|
||||
<item> disconnect </item>
|
||||
<item> emit </item>
|
||||
<item> signals </item>
|
||||
<item> slots </item>
|
||||
<item> foreach </item>
|
||||
<item> forever </item>
|
||||
<item> qint8 </item>
|
||||
<item> qint16 </item>
|
||||
<item> qint32 </item>
|
||||
<item> qint64 </item>
|
||||
<item> qlonglong </item>
|
||||
<item> qptrdiff </item>
|
||||
<item> qreal </item>
|
||||
<item> quint8 </item>
|
||||
<item> quint16 </item>
|
||||
<item> quint32 </item>
|
||||
<item> quint64 </item>
|
||||
<item> quintptr </item>
|
||||
<item> qulonglong </item>
|
||||
</list>
|
||||
|
||||
<list name="types">
|
||||
<item> bool </item>
|
||||
<item> char </item>
|
||||
<item> char16_t </item>
|
||||
<item> char32_t </item>
|
||||
<item> double </item>
|
||||
<item> float </item>
|
||||
<item> int </item>
|
||||
<item> long </item>
|
||||
<item> short </item>
|
||||
<item> signed </item>
|
||||
<item> unsigned </item>
|
||||
<item> void </item>
|
||||
<item> int8_t </item>
|
||||
<item> int16_t </item>
|
||||
<item> int32_t </item>
|
||||
<item> int64_t </item>
|
||||
<item> uint8_t </item>
|
||||
<item> uint16_t </item>
|
||||
<item> uint32_t </item>
|
||||
<item> uint64_t </item>
|
||||
<item> wchar_t </item>
|
||||
</list>
|
||||
<list name="modifiers">
|
||||
<item> const </item>
|
||||
<item> extern </item>
|
||||
<item> mutable </item>
|
||||
<item> register </item>
|
||||
<item> static </item>
|
||||
<item> thread_local </item>
|
||||
<item> volatile </item>
|
||||
</list>
|
||||
<list name="StdMacros">
|
||||
<item> __FILE__ </item>
|
||||
<item> __LINE__ </item>
|
||||
<item> __DATE__ </item>
|
||||
<item> __TIME__ </item>
|
||||
<item> __STDC__ </item>
|
||||
<item> __STDC_VERSION__ </item>
|
||||
<item> __STDC_HOSTED__ </item>
|
||||
<item> __STDC_ISO_10646__ </item>
|
||||
<item> __STDC_MB_MIGHT_NEQ_WC__ </item>
|
||||
<item> __cplusplus </item>
|
||||
<item> __func__ </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<RegExpr attribute="Preprocessor" context="Outscoped" String="(#|%\:|\?\?=)\s*if\s+(0|false)\s*" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<RegExpr attribute="Preprocessor" context="Inscoped" String="(#|%\:|\?\?=)\s*if\s+(1|true)\s*" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<IncludeRules context="Main" />
|
||||
</context>
|
||||
|
||||
<context name="Main" attribute="Normal Text" lineEndContext="#stay">
|
||||
<!-- Match preprocessor directives -->
|
||||
<DetectChar context="AfterHash" char="#" firstNonSpace="true" lookAhead="true" />
|
||||
<Detect2Chars context="AfterHash" char="%" char1=":" firstNonSpace="true" lookAhead="true" />
|
||||
<StringDetect context="AfterHash" String="??=" firstNonSpace="true" lookAhead="true" />
|
||||
<Detect2Chars attribute="Error" context="#stay" char="%" char1=":" />
|
||||
<StringDetect attribute="Error" String="??=" context="#stay" />
|
||||
<!-- Match special comments for region markers -->
|
||||
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
|
||||
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
|
||||
<!-- ATTENTION Special case `operator""` cuz Kate doesn't recognize
|
||||
`operator` joined w/ quotes as a keyword here. BUG??
|
||||
-->
|
||||
<RegExpr attribute="Normal Text" context="UDLOperator" String="operator\s*"" _[_0-9A-Za-z]*\b" lookAhead="true" />
|
||||
<RegExpr attribute="Error" context="#stay" String="operator\s*"" [_0-9A-Za-z]*\b" />
|
||||
<!-- Match keywords -->
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords" />
|
||||
<!-- Detect attributes -->
|
||||
<Detect2Chars attribute="Normal Text" context="Attribute" char="[" char1="[" />
|
||||
<!-- Match GCC extensions -->
|
||||
<IncludeRules context="DetectGccExtensions##GCCExtensions" />
|
||||
<!-- Match numbers -->
|
||||
<!-- ATTENTION Builtin number detectors have strange behaviour and definitely lack of required features
|
||||
-->
|
||||
<!-- NOTE Order is important! -->
|
||||
<RegExpr attribute="Hex" context="#stay" String="[\+\-]?0x[0-9A-Fa-f]+([Uu][Ll]{0,2}|[Ll]{0,2}[Uu]?|_[_0-9A-Za-z]*)?\b" />
|
||||
<RegExpr attribute="Float" context="#stay" String="[\+\-]?([0-9]+[Ee][\+\-]?[0-9]+|([0-9]+\.|\.[0-9]+|[0-9]+\.[0-9]+)([Ee][\+\-]?[0-9]+)?)[FfLl]?" />
|
||||
<RegExpr attribute="Octal" context="#stay" String="[\+\-]?0[0-7]+([Uu][Ll]{0,2}|[Ll]{0,2}[Uu]?|_[_0-9A-Za-z]*)?\b" />
|
||||
<RegExpr attribute="Decimal" context="#stay" String="[\+\-]?(0|[1-9][0-9]*)([Uu][Ll]{0,2}|[Ll]{0,2}[Uu]?|_[_0-9A-Za-z]*)?\b" />
|
||||
<RegExpr attribute="Error" context="#stay" String="[\+\-]?(0|[1-9][0-9]*)[0-9A-Za-z][_0-9A-Za-z]*\b" />
|
||||
<!-- Match string literals -->
|
||||
<DetectChar attribute="String" context="String" char=""" />
|
||||
<Detect2Chars attribute="String" context="String" char="U" char1=""" />
|
||||
<Detect2Chars attribute="String" context="String" char="u" char1=""" />
|
||||
<Detect2Chars attribute="String" context="String" char="L" char1=""" />
|
||||
<StringDetect attribute="String" context="String" String="u8"" />
|
||||
<RegExpr attribute="String" context="RawString" String="(u|u8|U|L)?R"([^\(]{0,16})\(" lookAhead="true" />
|
||||
<RegExpr attribute="Error" context="#stay" String="(u|u8|U|L)?R"([^\(]{16,})\(" />
|
||||
<DetectChar attribute="String" context="Char Literal" char="'" />
|
||||
<Detect2Chars attribute="String" context="Char Literal" char="L" char1="'" />
|
||||
<Detect2Chars attribute="String" context="U-Char Literal" char="u" char1="'" />
|
||||
<Detect2Chars attribute="String" context="U-Char Literal" char="U" char1="'" />
|
||||
<!-- Match most used namespaces and styles -->
|
||||
<StringDetect attribute="Standard Classes" context="Standard Classes" String="std::" />
|
||||
<StringDetect attribute="Boost Stuff" context="Boost Stuff" String="boost::" />
|
||||
<StringDetect attribute="Boost Stuff" context="Boost Stuff" String="BOOST_" />
|
||||
<StringDetect attribute="Internals" context="InternalsNS" String="detail::" />
|
||||
<StringDetect attribute="Internals" context="InternalsNS" String="details::" />
|
||||
<StringDetect attribute="Internals" context="InternalsNS" String="aux::" />
|
||||
<StringDetect attribute="Internals" context="InternalsNS" String="internals::" />
|
||||
<keyword attribute="Data Type" context="#stay" String="types" />
|
||||
<keyword attribute="Type Modifiers" context="#stay" String="modifiers" />
|
||||
<keyword attribute="Standard Macros" context="#stay" String="StdMacros" />
|
||||
<RegExpr attribute="Internals" context="#stay" String="_[a-zA-Z0-9_]+" />
|
||||
<RegExpr attribute="Internals" context="#stay" String="[a-zA-Z][a-zA-Z0-9_]*__\b" />
|
||||
<RegExpr attribute="Data Members (m_*)" context="#stay" String="[a-z][a-zA-Z0-9_]*_\b" />
|
||||
<RegExpr attribute="Data Members (m_*)" context="#stay" String="m_[a-zA-Z0-9_]+" />
|
||||
<RegExpr attribute="Globals (g_*)" context="#stay" String="g_[a-zA-Z0-9_]+" />
|
||||
<RegExpr attribute="Statics (s_*)" context="#stay" String="s_[a-zA-Z0-9_]+" />
|
||||
<RegExpr attribute="CONSTS/MACROS" context="#stay" String="[A-Z][A-Z0-9_]{2,}\b" />
|
||||
<RegExpr attribute="Types (*_t/*_type)" context="#stay" String="[a-zA-Z][a-zA-Z0-9_]*_t(ype)?\b" />
|
||||
<DetectIdentifier />
|
||||
<!-- Match comments -->
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<IncludeRules context="AlignedComments" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment" />
|
||||
<!-- Match scope regions -->
|
||||
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
|
||||
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
|
||||
<!-- Match punctuators -->
|
||||
<AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" />
|
||||
<AnyChar attribute="Symbol" context="#stay" String="&punctuators;" />
|
||||
<!-- Match invalid symbols -->
|
||||
<DetectChar attribute="Error" context="#stay" char="#" />
|
||||
<DetectChar attribute="Error" context="#stay" char="$" />
|
||||
<DetectChar attribute="Error" context="#stay" char="@" />
|
||||
<DetectChar attribute="Error" context="#stay" char="`" />
|
||||
</context>
|
||||
|
||||
<context name="UDLOperator" attribute="Normal Text" lineEndContext="#pop">
|
||||
<StringDetect attribute="Keyword" context="#stay" String="operator" />
|
||||
<StringDetect attribute="String" context="#stay" String="""" />
|
||||
<DetectIdentifier context="#pop" />
|
||||
</context>
|
||||
|
||||
<context name="Char Literal" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="Universal Char" />
|
||||
<DetectChar attribute="String Char" context="Simple Esc" char="\" />
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
</context>
|
||||
|
||||
<context name="U-Char Literal" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="Universal Char" />
|
||||
<DetectChar attribute="String Char" context="Simple Esc" char="\" />
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
<RegExpr attribute="Error" context="#stay" String="[^']{2,}" />
|
||||
<RegExpr attribute="String" context="#stay" String=".{1}" />
|
||||
</context>
|
||||
|
||||
<context name="Simple Esc" attribute="String Char" lineEndContext="#pop">
|
||||
<AnyChar attribute="String Char" context="#pop" String="tnvbrfa'"\" />
|
||||
<RegExpr attribute="String Char" context="#pop" String="[0-7]{1,3}" />
|
||||
<RegExpr attribute="String Char" context="#pop" String="x[0-9A-Fa-f]{1,}" />
|
||||
<RegExpr attribute="String" context="#pop" String="." />
|
||||
</context>
|
||||
|
||||
<context name="Universal Char" attribute="String Char" lineEndContext="#pop">
|
||||
<RegExpr attribute="String Char" context="#stay" String="\\u[0-9A-Fa-f]{4}" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\\u.{0,3}" />
|
||||
<RegExpr attribute="String Char" context="#stay" String="\\U[0-9A-Fa-f]{8}" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\\U.{0,7}" />
|
||||
</context>
|
||||
|
||||
<context name="String" attribute="String" lineEndContext="#pop">
|
||||
<LineContinue attribute="String" context="#stay" />
|
||||
<HlCStringChar attribute="String Char" context="#stay" />
|
||||
<IncludeRules context="Universal Char" />
|
||||
<RegExpr attribute="String Char" context="#stay" String="%[^"&convspec;]*[&convspec;]" />
|
||||
<DetectChar attribute="String" context="UDLStringSuffix" char=""" />
|
||||
</context>
|
||||
|
||||
<context name="UDLStringSuffix" attribute="String" lineEndContext="#pop#pop">
|
||||
<RegExpr attribute="String" context="#pop#pop" String="_[_0-9A-Z-a-z]*\b" />
|
||||
<!-- TODO Is there any better way to quit the current context ?? -->
|
||||
<RegExpr context="#pop#pop" String=".*" lookAhead="true" />
|
||||
</context>
|
||||
|
||||
<context name="Attribute" attribute="Attribute" lineEndContext="#stay">
|
||||
<keyword attribute="Attribute" context="#stay" String="attributes" />
|
||||
<Detect2Chars attribute="Normal Text" context="#pop" char="]" char1="]" />
|
||||
<DetectIdentifier context="#stay" attribute="Error" />
|
||||
</context>
|
||||
|
||||
<context name="RawString" attribute="String" lineEndContext="#stay" dynamic="true">
|
||||
<LineContinue attribute="String" context="#stay" />
|
||||
<RegExpr attribute="String Char" context="#stay" String="%[^"&convspec;]*[&convspec;]" />
|
||||
<RegExpr attribute="String" context="#pop" String="\)%2"" dynamic="true"/>
|
||||
</context>
|
||||
|
||||
<context name="DetectIdentifierEnd" attribute="Normal Text" lineEndContext="#pop">
|
||||
<AnyChar context="#pop" String="&punctuators;" attribute="Symbol" />
|
||||
</context>
|
||||
|
||||
<context name="Region Marker" attribute="Region Marker" lineEndContext="#pop" />
|
||||
|
||||
<context name="DetectNSEnd" attribute="Normal Text" lineEndContext="#pop">
|
||||
<keyword attribute="Keyword" context="#stay" String="template" />
|
||||
<DetectIdentifier context="#stay" />
|
||||
<AnyChar context="#pop" String="&separators;" attribute="Separator Symbol" />
|
||||
<AnyChar context="#pop" String="&ns_punctuators;" attribute="Symbol" />
|
||||
<AnyChar context="#stay" String="&space;" attribute="Normal Text" />
|
||||
</context>
|
||||
|
||||
<context name="Standard Classes" attribute="Standard Classes" lineEndContext="#pop">
|
||||
<IncludeRules context="DetectNSEnd" />
|
||||
</context>
|
||||
|
||||
<context name="Boost Stuff" attribute="Boost Stuff" lineEndContext="#pop">
|
||||
<IncludeRules context="DetectNSEnd" />
|
||||
</context>
|
||||
|
||||
<context name="InternalsNS" attribute="Internals" lineEndContext="#pop">
|
||||
<IncludeRules context="DetectNSEnd" />
|
||||
</context>
|
||||
|
||||
<context name="Commentar 1" attribute="Comment" lineEndContext="#pop">
|
||||
<LineContinue attribute="Comment" context="#stay" />
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
<DetectIdentifier />
|
||||
</context>
|
||||
|
||||
<context name="Commentar 2" attribute="Comment" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<LineContinue attribute="Comment" context="#stay" />
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
<DetectIdentifier />
|
||||
</context>
|
||||
|
||||
<context name="AfterHash" attribute="Error" lineEndContext="#pop">
|
||||
<!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="(#|%\:|\?\?=)\s*if(?:def|ndef)?(?=(?:\(|\s+)\S)" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="(#|%\:|\?\?=)\s*endif" endRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<!-- Switch to seperate context for multiline #defines -->
|
||||
<RegExpr attribute="Preprocessor" context="Define" String="(#|%\:|\?\?=)\s*(cmake)?define.*((?=\\))" firstNonSpace="true" lookAhead="true" insensitive="false" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="(#|%\:|\?\?=)\s*(?:el(?:se|if)|include(?:_next)?|(cmake)?define|undef|line|error|warning|pragma)" insensitive="false" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="(#|%\:|\?\?=)\s+[0-9]+" firstNonSpace="true" insensitive="false" />
|
||||
</context>
|
||||
|
||||
<context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop">
|
||||
<LineContinue attribute="Preprocessor" context="#stay" />
|
||||
<keyword attribute="Standard Macros" context="#stay" String="StdMacros" />
|
||||
<IncludeRules context="GNUMacros##GCCExtensions" />
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1=""" />
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">" />
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
|
||||
<IncludeRules context="AlignedComments" />
|
||||
</context>
|
||||
|
||||
<context name="Define" attribute="Preprocessor" lineEndContext="#pop">
|
||||
<LineContinue attribute="Separator Symbol" context="#stay" />
|
||||
<DetectChar attribute="Error" context="#stay" char="\\" />
|
||||
<keyword attribute="Standard Macros" context="#stay" String="StdMacros" />
|
||||
<IncludeRules context="GNUMacros##GCCExtensions" />
|
||||
</context>
|
||||
|
||||
<context name="Commentar/Preprocessor" attribute="Comment" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
|
||||
<DetectIdentifier />
|
||||
</context>
|
||||
|
||||
<context name="Outscoped Common" attribute="Comment" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
<DetectIdentifier />
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<IncludeRules context="AlignedComments" />
|
||||
<!-- Do not try to detect "C" style comments inside outscoped text
|
||||
to prevent incorrect highlighting in case of overlapped (or not closed properly)
|
||||
comment block...
|
||||
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment" />
|
||||
-->
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="(#|%\:|\?\?=)\s*if" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<LineContinue context="#stay" />
|
||||
</context>
|
||||
|
||||
<context name="Outscoped" attribute="Comment" lineEndContext="#stay">
|
||||
<IncludeRules context="Outscoped Common" />
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="(#|%\:|\?\?=)\s*el(?:se|if)" firstNonSpace="true" insensitive="false" />
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="(#|%\:|\?\?=)\s*endif" endRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
</context>
|
||||
|
||||
<context name="Outscoped 2" attribute="Comment" lineEndContext="#stay">
|
||||
<IncludeRules context="Outscoped Common" />
|
||||
<RegExpr attribute="Preprocessor" context="#pop#pop" String="(#|%\:|\?\?=)\s*endif" endRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
</context>
|
||||
|
||||
<context name="Inscoped" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<RegExpr attribute="Preprocessor" context="Outscoped" String="(#|%\:|\?\?=)\s*if\s+(0|false)\s*" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<RegExpr attribute="Preprocessor" context="Outscoped 2" String="(#|%\:|\?\?=)\s*el(?:se|if)" firstNonSpace="true" insensitive="false" />
|
||||
<IncludeRules context="Main" />
|
||||
</context>
|
||||
|
||||
<context name="Outscoped intern" attribute="Comment" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
<DetectIdentifier />
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<IncludeRules context="AlignedComments" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment" />
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="(#|%\:|\?\?=)\s*if" beginRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
<RegExpr attribute="Comment" context="#pop" String="(#|%\:|\?\?=)\s*endif" endRegion="PP" firstNonSpace="true" insensitive="false" />
|
||||
</context>
|
||||
|
||||
<context name="AlignedComments" lineEndContext="#stay" attribute="Comment">
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="0" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="4" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="8" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="12" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="16" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="20" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="24" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="28" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="32" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="36" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="40" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="44" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="48" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="52" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="56" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Region Marker" context="Commentar 1" column="60" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/" />
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false" />
|
||||
<itemData name="Type Modifiers" defStyleNum="dsDataType" spellChecking="false" />
|
||||
<itemData name="Attribute" defStyleNum="dsKeyword" spellChecking="false" bold="false" italic="true" />
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false" />
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false" />
|
||||
<itemData name="String" defStyleNum="dsString" spellChecking="true" />
|
||||
<itemData name="String Char" defStyleNum="dsChar" spellChecking="false" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
|
||||
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Separator Symbol" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Data Members (m_*)" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Globals (g_*)" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Statics (s_*)" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Types (*_t/*_type)" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="CONSTS/MACROS" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Standard Macros" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Standard Classes" defStyleNum="dsNormal" spellChecking="false" color="#59ff00" selColor="#59ff00" />
|
||||
<itemData name="Boost Stuff" defStyleNum="dsNormal" spellChecking="false" color="#23a45b" selColor="#23a45b" />
|
||||
<itemData name="Internals" defStyleNum="dsNormal" spellChecking="false" color="#808080" selColor="#808080" />
|
||||
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//" />
|
||||
<comment name="multiLine" start="/*" end="*/" region="Comment" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
||||
<!-- kate: indent-width 2; tab-width 2; -->
|
@ -0,0 +1,855 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
|
||||
<!--
|
||||
|
||||
Kate CSS syntax highlighting definition
|
||||
|
||||
Changelog:
|
||||
|
||||
- Version 2.06, by Mte90:
|
||||
- CSS3 tag
|
||||
|
||||
- Version 2.03, by Milian Wolff:
|
||||
- Make it spelling aware
|
||||
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
||||
|
||||
|
||||
|
||||
<language name="CSS/PHP" hidden="true" version="2.07" kateversion="2.5" section="Other" extensions="" indenter="cstyle" mimetype="" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<list name="properties">
|
||||
<!-- CSS2 -->
|
||||
<item> azimuth </item>
|
||||
<item> background </item>
|
||||
<item> background-attachment </item>
|
||||
<item> background-break </item>
|
||||
<item> background-clip </item>
|
||||
<item> background-color </item>
|
||||
<item> background-image </item>
|
||||
<item> background-position </item>
|
||||
<item> background-origin </item>
|
||||
<item> background-repeat </item>
|
||||
<item> border </item>
|
||||
<item> border-bottom </item>
|
||||
<item> border-bottom-color </item>
|
||||
<item> border-bottom-style </item>
|
||||
<item> border-bottom-width </item>
|
||||
<item> border-collapse </item>
|
||||
<item> border-color </item>
|
||||
<item> border-left </item>
|
||||
<item> border-left-color </item>
|
||||
<item> border-left-style </item>
|
||||
<item> border-left-width </item>
|
||||
<item> border-right </item>
|
||||
<item> border-right-color </item>
|
||||
<item> border-right-style </item>
|
||||
<item> border-right-width </item>
|
||||
<item> border-spacing </item>
|
||||
<item> border-style </item>
|
||||
<item> border-top </item>
|
||||
<item> border-top-color </item>
|
||||
<item> border-top-style </item>
|
||||
<item> border-top-width </item>
|
||||
<item> border-width </item>
|
||||
<item> bottom </item>
|
||||
<item> caption-side </item>
|
||||
<item> clear </item>
|
||||
<item> clip </item>
|
||||
<item> color </item>
|
||||
<item> content </item>
|
||||
<item> counter-increment </item>
|
||||
<item> counter-reset </item>
|
||||
<item> cue </item>
|
||||
<item> cue-after </item>
|
||||
<item> cue-before </item>
|
||||
<item> cursor </item>
|
||||
<item> direction </item>
|
||||
<item> display </item>
|
||||
<item> elevation </item>
|
||||
<item> empty-cells </item>
|
||||
<item> float </item>
|
||||
<item> font </item>
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-size-adjust </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> font-stretch </item>
|
||||
<item> height </item>
|
||||
<item> left </item>
|
||||
<item> letter-spacing </item>
|
||||
<item> line-height </item>
|
||||
<item> list-style </item>
|
||||
<item> list-style-image </item>
|
||||
<item> list-style-keyword </item>
|
||||
<item> list-style-position </item>
|
||||
<item> list-style-type </item>
|
||||
<item> margin </item>
|
||||
<item> margin-bottom </item>
|
||||
<item> margin-left </item>
|
||||
<item> margin-right </item>
|
||||
<item> margin-top </item>
|
||||
<item> marker-offset </item>
|
||||
<item> max-height </item>
|
||||
<item> max-width </item>
|
||||
<item> min-height </item>
|
||||
<item> min-width </item>
|
||||
<item> orphans </item>
|
||||
<item> outline </item>
|
||||
<item> outline-color </item>
|
||||
<item> outline-style </item>
|
||||
<item> outline-width </item>
|
||||
<item> overflow </item>
|
||||
<item> padding </item>
|
||||
<item> padding-bottom </item>
|
||||
<item> padding-left </item>
|
||||
<item> padding-right </item>
|
||||
<item> padding-top </item>
|
||||
<item> page </item>
|
||||
<item> page-break-after </item>
|
||||
<item> page-break-before </item>
|
||||
<item> page-break-inside </item>
|
||||
<item> pause </item>
|
||||
<item> pause-after </item>
|
||||
<item> pause-before </item>
|
||||
<item> pitch </item>
|
||||
<item> pitch-range </item>
|
||||
<item> play-during </item>
|
||||
<item> position </item>
|
||||
<item> quotes </item>
|
||||
<item> richness </item>
|
||||
<item> right </item>
|
||||
<item> size </item>
|
||||
<item> speak </item>
|
||||
<item> speak-header </item>
|
||||
<item> speak-numeral </item>
|
||||
<item> speak-punctuation </item>
|
||||
<item> speech-rate </item>
|
||||
<item> stress </item>
|
||||
<item> table-layout </item>
|
||||
<item> text-align </item>
|
||||
<item> text-decoration </item>
|
||||
<item> text-decoration-color </item>
|
||||
<item> text-indent </item>
|
||||
<item> text-shadow </item>
|
||||
<item> text-transform </item>
|
||||
<item> top </item>
|
||||
<item> unicode-bidi </item>
|
||||
<item> vertical-align </item>
|
||||
<item> visibility </item>
|
||||
<item> voice-family </item>
|
||||
<item> volume </item>
|
||||
<item> white-space </item>
|
||||
<item> widows </item>
|
||||
<item> width </item>
|
||||
<item> word-spacing </item>
|
||||
<item> z-index </item>
|
||||
|
||||
<!-- CSS3 -->
|
||||
<item> animation-name </item>
|
||||
<item> animation-duration </item>
|
||||
<item> animation-iteration </item>
|
||||
<item> animation-direction </item>
|
||||
<item> animation-delay </item>
|
||||
<item> animation-play-state </item>
|
||||
<item> animation-fill-mode </item>
|
||||
<item> animation-timing-function </item>
|
||||
<item> background-size </item>
|
||||
<item> border-bottom-image </item>
|
||||
<item> border-bottom-left-image </item>
|
||||
<item> border-bottom-left-radius </item>
|
||||
<item> border-bottom-right-image </item>
|
||||
<item> border-bottom-right-radius </item>
|
||||
<item> border-collapse </item>
|
||||
<item> border-corner-image </item>
|
||||
<item> border-image </item>
|
||||
<item> border-left-image </item>
|
||||
<item> border-radius </item>
|
||||
<item> border-right-image </item>
|
||||
<item> border-top-image </item>
|
||||
<item> border-top-left-image </item>
|
||||
<item> border-top-left-radius </item>
|
||||
<item> border-top-right-image </item>
|
||||
<item> border-top-right-radius </item>
|
||||
<item> box-align </item>
|
||||
<item> box-direction </item>
|
||||
<item> box-flex </item>
|
||||
<item> box-shadow </item>
|
||||
<item> box-sizing </item>
|
||||
<item> column-count </item>
|
||||
<item> column-fill </item>
|
||||
<item> column-gap </item>
|
||||
<item> column-rule-color </item>
|
||||
<item> column-rule-style </item>
|
||||
<item> column-rule-width </item>
|
||||
<item> column-span </item>
|
||||
<item> column-wisth </item>
|
||||
<item> hyphens </item>
|
||||
<item> linear-gradient </item>
|
||||
<item> opacity </item>
|
||||
<item> outline </item>
|
||||
<item> outline-offset </item>
|
||||
<item> overflow-x </item>
|
||||
<item> overflow-y </item>
|
||||
<item> pointer-events </item>
|
||||
<item> resize </item>
|
||||
<item> rotation </item>
|
||||
<item> rotation-point </item>
|
||||
<item> table-layout </item>
|
||||
<item> text-overflow </item>
|
||||
<item> text-shadow </item>
|
||||
<item> text-wrap </item>
|
||||
<item> transform-origin </item>
|
||||
<item> transition </item>
|
||||
<item> transition-property </item>
|
||||
<item> transition-duration </item>
|
||||
<item> word-wrap </item>
|
||||
|
||||
<!-- Gecko rendering engine CSS property extensions -->
|
||||
<item> -moz-animation-name </item>
|
||||
<item> -moz-animation-duration </item>
|
||||
<item> -moz-animation-iteration </item>
|
||||
<item> -moz-animation-direction </item>
|
||||
<item> -moz-animation-delay </item>
|
||||
<item> -moz-animation-play-state </item>
|
||||
<item> -moz-animation-fill-mode </item>
|
||||
<item> -moz-background-size </item>
|
||||
<item> -moz-border-image </item>
|
||||
<item> -moz-border-bottom-colors </item>
|
||||
<item> -moz-border-left-colors </item>
|
||||
<item> -moz-border-radius </item>
|
||||
<item> -moz-border-radius-topleft </item>
|
||||
<item> -moz-border-radius-topright </item>
|
||||
<item> -moz-border-radius-bottomleft </item>
|
||||
<item> -moz-border-radius-bottomright </item>
|
||||
<item> -moz-border-right-colors </item>
|
||||
<item> -moz-border-top-colors </item>
|
||||
<item> -moz-box </item>
|
||||
<item> -moz-box-flex </item>
|
||||
<item> -moz-box-shadow </item>
|
||||
<item> -moz-box-sizing </item>
|
||||
<item> -moz-column-count </item>
|
||||
<item> -moz-column-gap </item>
|
||||
<item> -moz-hyphens </item>
|
||||
<item> -moz-linear-gradient </item>
|
||||
<item> -moz-opacity </item>
|
||||
<item> -moz-outline-style </item>
|
||||
<item> -moz-perspective </item>
|
||||
<item> -moz-radial-gradient </item>
|
||||
<item> -moz-resize </item>
|
||||
<item> -moz-transform </item>
|
||||
<item> -moz-transform-origin </item>
|
||||
<item> -moz-transform-style </item>
|
||||
<item> -moz-transition </item>
|
||||
<item> -moz-transition-property </item>
|
||||
<item> -moz-transition-duration </item>
|
||||
|
||||
<!-- Opera rendering engine CSS property extensions -->
|
||||
<item> -o-background-size </item>
|
||||
<item> -o-linear-gradient </item>
|
||||
<item> -o-text-overflow </item>
|
||||
<item> -o-transition </item>
|
||||
<item> -o-transform-origin </item>
|
||||
|
||||
<!-- konq specific -->
|
||||
<item> konq_bgpos_x </item>
|
||||
<item> konq_bgpos_y </item>
|
||||
<item> -khtml-background-size </item>
|
||||
<item> -khtml-border-top-left-radius </item>
|
||||
<item> -khtml-border-top-right-radius </item>
|
||||
<item> -khtml-border-bottom-left-radius </item>
|
||||
<item> -khtml-border-bottom-right-radius </item>
|
||||
<item> -khtml-border-radius </item>
|
||||
<item> -khtml-box-shadow </item>
|
||||
<item> -khtml-opacity </item>
|
||||
|
||||
<!-- Webkit rendering engine CSS property extensions -->
|
||||
<item> -webkit-appearance </item>
|
||||
<item> -webkit-animation-name </item>
|
||||
<item> -webkit-animation-duration </item>
|
||||
<item> -webkit-animation-iteration </item>
|
||||
<item> -webkit-animation-direction </item>
|
||||
<item> -webkit-animation-delay </item>
|
||||
<item> -webkit-animation-play-state </item>
|
||||
<item> -webkit-animation-fill-mode </item>
|
||||
<item> -webkit-background-size </item>
|
||||
<item> -webkit-border-image </item>
|
||||
<item> -webkit-border-bottom-colors </item>
|
||||
<item> -webkit-border-left-colors </item>
|
||||
<item> -webkit-border-radius </item>
|
||||
<item> -webkit-border-right-colors </item>
|
||||
<item> -webkit-border-top-colors </item>
|
||||
<item> -webkit-border-top-left-radius </item>
|
||||
<item> -webkit-border-top-right-radius </item>
|
||||
<item> -webkit-border-bottom-left-radius </item>
|
||||
<item> -webkit-border-bottom-right-radius </item>
|
||||
<item> -webkit-border-radius-bottomleft </item>
|
||||
<item> -webkit-border-radius-bottomright </item>
|
||||
<item> -webkit-box-flex </item>
|
||||
<item> -webkit-box-reflect</item>
|
||||
<item> -webkit-box-shadow </item>
|
||||
<item> -webkit-box-sizing </item>
|
||||
<item> -webkit-column-count </item>
|
||||
<item> -webkit-column-gap </item>
|
||||
<item> -webkit-hyphens </item>
|
||||
<item> -webkit-linear-gradient </item>
|
||||
<item> -webkit-gradient </item>
|
||||
<item> -webkit-perspective </item>
|
||||
<item> -webkit-text-fill-color </item>
|
||||
<item> -webkit-text-stroke-color </item>
|
||||
<item> -webkit-text-stroke-width </item>
|
||||
<item> -webkit-text-size-adjust </item>
|
||||
<item> -webkit-transform </item>
|
||||
<item> -webkit-transform-origin </item>
|
||||
<item> -webkit-transform-style </item>
|
||||
<item> -webkit-transition </item>
|
||||
<item> -webkit-transition-property </item>
|
||||
<item> -webkit-transition-duration </item>
|
||||
|
||||
<!-- Trident (a.k.a., MSHTML) CSS property extensions -->
|
||||
<item> filter </item>
|
||||
<item> zoom </item>
|
||||
<item> -ms-animation-name </item>
|
||||
<item> -ms-animation-duration </item>
|
||||
<item> -ms-animation-iteration </item>
|
||||
<item> -ms-animation-direction </item>
|
||||
<item> -ms-animation-delay </item>
|
||||
<item> -ms-animation-play-state </item>
|
||||
<item> -ms-animation-fill-mode </item>
|
||||
<item> -ms-box-sizing </item>
|
||||
<item> -ms-filter </item>
|
||||
<item> -ms-interpolation-mode </item>
|
||||
<item> -ms-linear-gradient </item>
|
||||
<item> -ms-text-size-adjust </item>
|
||||
<item> -ms-transform </item>
|
||||
<item> -ms-transition </item>
|
||||
|
||||
<!-- font properties in @font-face -->
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> unicode-range </item>
|
||||
<item> units-per-em </item>
|
||||
<item> src </item>
|
||||
<item> panose-1 </item>
|
||||
<item> stemv </item>
|
||||
<item> stemh </item>
|
||||
<item> slope </item>
|
||||
<item> cap-height </item>
|
||||
<item> x-height </item>
|
||||
<item> ascent </item>
|
||||
<item> descent </item>
|
||||
<item> widths </item>
|
||||
<item> bbox </item>
|
||||
<item> definition-src </item>
|
||||
<item> baseline </item>
|
||||
<item> centerline </item>
|
||||
<item> mathline </item>
|
||||
<item> topline </item>
|
||||
</list>
|
||||
|
||||
<list name="types">
|
||||
<item> inherit </item>
|
||||
<item> none </item>
|
||||
<item> hidden </item>
|
||||
<item> dotted </item>
|
||||
<item> dashed </item>
|
||||
<item> solid </item>
|
||||
<item> double </item>
|
||||
<item> groove </item>
|
||||
<item> ridge </item>
|
||||
<item> inset </item>
|
||||
<item> outset </item>
|
||||
<item> xx-small </item>
|
||||
<item> x-small </item>
|
||||
<item> small </item>
|
||||
<item> medium </item>
|
||||
<item> large </item>
|
||||
<item> x-large </item>
|
||||
<item> xx-large </item>
|
||||
<item> smaller </item>
|
||||
<item> larger </item>
|
||||
<item> italic </item>
|
||||
<item> oblique </item>
|
||||
<item> small-caps </item>
|
||||
<item> normal </item>
|
||||
<item> bold </item>
|
||||
<item> bolder </item>
|
||||
<item> lighter </item>
|
||||
<item> light </item>
|
||||
<item> 100 </item>
|
||||
<item> 200 </item>
|
||||
<item> 300 </item>
|
||||
<item> 400 </item>
|
||||
<item> 500 </item>
|
||||
<item> 600 </item>
|
||||
<item> 700 </item>
|
||||
<item> 800 </item>
|
||||
<item> 900 </item>
|
||||
<item> transparent </item>
|
||||
<item> repeat </item>
|
||||
<item> repeat-x </item>
|
||||
<item> repeat-y </item>
|
||||
<item> no-repeat </item>
|
||||
<item> baseline </item>
|
||||
<item> sub </item>
|
||||
<item> super </item>
|
||||
<item> top </item>
|
||||
<item> text-top </item>
|
||||
<item> middle </item>
|
||||
<item> bottom </item>
|
||||
<item> text-bottom </item>
|
||||
<item> left </item>
|
||||
<item> right </item>
|
||||
<item> center </item>
|
||||
<item> justify </item>
|
||||
<item> konq-center </item>
|
||||
<item> disc </item>
|
||||
<item> circle </item>
|
||||
<item> square </item>
|
||||
<item> box </item>
|
||||
<item> decimal </item>
|
||||
<item> decimal-leading-zero </item>
|
||||
<item> lower-roman </item>
|
||||
<item> upper-roman </item>
|
||||
<item> lower-greek </item>
|
||||
<item> lower-alpha </item>
|
||||
<item> lower-latin </item>
|
||||
<item> upper-alpha </item>
|
||||
<item> upper-latin </item>
|
||||
<item> hebrew </item>
|
||||
<item> armenian </item>
|
||||
<item> georgian </item>
|
||||
<item> cjk-ideographic </item>
|
||||
<item> hiragana </item>
|
||||
<item> katakana </item>
|
||||
<item> hiragana-iroha </item>
|
||||
<item> katakana-iroha </item>
|
||||
<item> inline </item>
|
||||
<item> inline-block </item>
|
||||
<item> block </item>
|
||||
<item> list-item </item>
|
||||
<item> run-in </item>
|
||||
<item> compact </item>
|
||||
<item> marker </item>
|
||||
<item> table </item>
|
||||
<item> inline-table </item>
|
||||
<item> table-row-group </item>
|
||||
<item> table-header-group </item>
|
||||
<item> table-footer-group </item>
|
||||
<item> table-row </item>
|
||||
<item> table-column-group </item>
|
||||
<item> table-column </item>
|
||||
<item> table-cell </item>
|
||||
<item> table-caption </item>
|
||||
<item> auto </item>
|
||||
<item> crosshair </item>
|
||||
<item> default </item>
|
||||
<item> pointer </item>
|
||||
<item> move </item>
|
||||
<item> e-resize </item>
|
||||
<item> ne-resize </item>
|
||||
<item> nw-resize </item>
|
||||
<item> n-resize </item>
|
||||
<item> se-resize </item>
|
||||
<item> sw-resize </item>
|
||||
<item> s-resize </item>
|
||||
<item> w-resize </item>
|
||||
<item> text </item>
|
||||
<item> wait </item>
|
||||
<item> help </item>
|
||||
<item> above </item>
|
||||
<item> absolute </item>
|
||||
<item> always </item>
|
||||
<item> avoid </item>
|
||||
<item> below </item>
|
||||
<item> bidi-override </item>
|
||||
<item> blink </item>
|
||||
<item> both </item>
|
||||
<item> capitalize </item>
|
||||
<item> caption </item>
|
||||
<item> clip </item>
|
||||
<item> close-quote </item>
|
||||
<item> collapse </item>
|
||||
<item> condensed </item>
|
||||
<item> crop </item>
|
||||
<item> cross </item>
|
||||
<item> ellipsis </item>
|
||||
<item> ellipsis-word </item>
|
||||
<item> embed </item>
|
||||
<item> expanded </item>
|
||||
<item> extra-condensed </item>
|
||||
<item> extra-expanded </item>
|
||||
<item> fixed </item>
|
||||
<item> hand </item>
|
||||
<item> hide </item>
|
||||
<item> higher </item>
|
||||
<item> icon </item>
|
||||
<item> inside </item>
|
||||
<item> invert </item>
|
||||
<item> landscape </item>
|
||||
<item> level </item>
|
||||
<item> line-through </item>
|
||||
<item> loud </item>
|
||||
<item> lower </item>
|
||||
<item> lowercase </item>
|
||||
<item> ltr </item>
|
||||
<item> menu </item>
|
||||
<item> message-box </item>
|
||||
<item> mix </item>
|
||||
<item> narrower </item>
|
||||
<item> no-close-quote </item>
|
||||
<item> no-open-quote </item>
|
||||
<item> nowrap </item>
|
||||
<item> open-quote </item>
|
||||
<item> outside </item>
|
||||
<item> overline </item>
|
||||
<item> portrait </item>
|
||||
<item> pre </item>
|
||||
<item> pre-line </item>
|
||||
<item> pre-wrap </item>
|
||||
<item> relative </item>
|
||||
<item> rtl </item>
|
||||
<item> scroll </item>
|
||||
<item> semi-condensed </item>
|
||||
<item> semi-expanded </item>
|
||||
<item> separate </item>
|
||||
<item> show </item>
|
||||
<item> small-caption </item>
|
||||
<item> static </item>
|
||||
<item> static-position </item>
|
||||
<item> status-bar </item>
|
||||
<item> thick </item>
|
||||
<item> thin </item>
|
||||
<item> ultra-condensed </item>
|
||||
<item> ultra-expanded </item>
|
||||
<item> underline </item>
|
||||
<item> uppercase </item>
|
||||
<item> visible </item>
|
||||
<item> wider </item>
|
||||
<item> break </item>
|
||||
<item> serif </item>
|
||||
<item> sans-serif </item>
|
||||
<item> cursive </item>
|
||||
<item> fantasy </item>
|
||||
<item> monospace </item>
|
||||
<item> border-box </item>
|
||||
<item> content-box </item>
|
||||
<item> -epub-hyphens </item>
|
||||
</list>
|
||||
|
||||
|
||||
<list name="colors">
|
||||
<item> aqua </item>
|
||||
<item> black </item>
|
||||
<item> blue </item>
|
||||
<item> cyan </item>
|
||||
<item> fuchsia </item>
|
||||
<item> gray </item>
|
||||
<item> green </item>
|
||||
<item> lime </item>
|
||||
<item> maroon </item>
|
||||
<item> navy </item>
|
||||
<item> olive </item>
|
||||
<item> purple </item>
|
||||
<item> red </item>
|
||||
<item> silver </item>
|
||||
<item> teal </item>
|
||||
<item> white </item>
|
||||
<item> yellow </item>
|
||||
<item> ActiveBorder </item>
|
||||
<item> ActiveCaption </item>
|
||||
<item> AppWorkspace </item>
|
||||
<item> Background </item>
|
||||
<item> ButtonFace </item>
|
||||
<item> ButtonHighlight </item>
|
||||
<item> ButtonShadow </item>
|
||||
<item> ButtonText </item>
|
||||
<item> CaptionText </item>
|
||||
<item> GrayText </item>
|
||||
<item> Highlight </item>
|
||||
<item> HighlightText </item>
|
||||
<item> InactiveBorder </item>
|
||||
<item> InactiveCaption </item>
|
||||
<item> InactiveCaptionText </item>
|
||||
<item> InfoBackground </item>
|
||||
<item> InfoText </item>
|
||||
<item> Menu </item>
|
||||
<item> MenuText </item>
|
||||
<item> Scrollbar </item>
|
||||
<item> ThreeDDarkShadow </item>
|
||||
<item> ThreeDFace </item>
|
||||
<item> ThreeDHighlight </item>
|
||||
<item> ThreeDLightShadow </item>
|
||||
<item> ThreeDShadow </item>
|
||||
<item> Window </item>
|
||||
<item> WindowFrame </item>
|
||||
<item> WindowText </item>
|
||||
</list>
|
||||
|
||||
<list name="paren">
|
||||
<item> url </item>
|
||||
<item> attr </item>
|
||||
<item> rect </item>
|
||||
<item> rgb </item>
|
||||
<item> rgba </item>
|
||||
<item> hsl </item>
|
||||
<item> hsla </item>
|
||||
<item> counter </item>
|
||||
<item> counters </item>
|
||||
|
||||
<!-- in @font-face -->
|
||||
<item> local </item>
|
||||
<item> format </item>
|
||||
|
||||
<!-- Trident (a.k.a., MSHTML) rendering engine functional notation extensions -->
|
||||
<item> expression </item>
|
||||
|
||||
</list>
|
||||
|
||||
<list name="mediatypes">
|
||||
<item> all </item>
|
||||
<item> aural </item>
|
||||
<item> braille </item>
|
||||
<item> embossed </item>
|
||||
<item> handheld </item>
|
||||
<item> print </item>
|
||||
<item> projection </item>
|
||||
<item> screen </item>
|
||||
<item> tty </item>
|
||||
<item> tv </item>
|
||||
</list>
|
||||
|
||||
<list name="pseudoclasses">
|
||||
<item> hover </item>
|
||||
<item> link </item>
|
||||
<item> visited </item>
|
||||
<item> active </item>
|
||||
<item> focus </item>
|
||||
<item> first-child </item>
|
||||
<item> last-child </item>
|
||||
<item> only-child </item>
|
||||
<item> first-of-type </item>
|
||||
<item> last-of-type </item>
|
||||
<item> only-of-type </item>
|
||||
<item> first-letter </item>
|
||||
<item> first-line </item>
|
||||
<item> before </item>
|
||||
<item> after </item>
|
||||
<item> selection </item>
|
||||
<item> root </item>
|
||||
<item> empty </item>
|
||||
<item> target </item>
|
||||
<item> enabled </item>
|
||||
<item> disabled </item>
|
||||
<item> checked </item>
|
||||
<item> indeterminate </item>
|
||||
<item> nth-child </item>
|
||||
<item> nth-last-child </item>
|
||||
<item> nth-of-type </item>
|
||||
<item> nth-last-of-type </item>
|
||||
<item> not </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Base">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<LineContinue/>
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="FindRuleSets" />
|
||||
</context>
|
||||
|
||||
<!-- to be included -->
|
||||
<!-- finds rules and detects nesting -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindRuleSets">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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="[" />
|
||||
<RegExpr attribute="Selector Id" context="#stay" String="#([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
|
||||
<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" />
|
||||
</context>
|
||||
|
||||
<!-- finds arguments to properties -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindValues">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="String" context="StringDQ" char=""" />
|
||||
<DetectChar attribute="String" context="StringSQ" char="'" />
|
||||
</context>
|
||||
|
||||
<!-- finds comments -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindComments">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Media" context="Media2" char="{" beginRegion="media" />
|
||||
<keyword attribute="Media" context="#stay" String="mediatypes" />
|
||||
<DetectChar attribute="Media" context="#stay" char="," />
|
||||
<IncludeRules context="FindComments" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S+" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Media2">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Media" context="#pop#pop" char="}" endRegion="media" />
|
||||
<IncludeRules context="FindRuleSets" />
|
||||
</context>
|
||||
|
||||
<context attribute="Selector Attr" lineEndContext="#stay" name="SelAttr">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Selector Attr" context="#pop" char="]" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
</context>
|
||||
|
||||
<context attribute="Selector Pseudo" lineEndContext="#pop" name="SelPseudo"
|
||||
fallthrough="true" fallthroughContext="#pop">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Import">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectSpaces/>
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="RuleSet">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Rule">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Property" context="Rule2" char=":" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Rule2">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<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" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="PropParen">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="PropParen2" char="(" />
|
||||
<IncludeRules context="FindComments" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="PropParen2">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="#pop#pop" char=")" />
|
||||
<IncludeRules context="FindValues" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<!-- string contexts -->
|
||||
<context attribute="String" lineEndContext="#stay" name="StringDQ">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="StringSQ">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="InsideString">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="String" context="#stay" String="\\["']" />
|
||||
<DetectIdentifier/>
|
||||
</context>
|
||||
|
||||
<context name="FindPHP">
|
||||
<RegExpr context="##PHP/PHP" String="<\?(?:=|php)?" lookAhead="true" />
|
||||
</context>
|
||||
</contexts>
|
||||
<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="dsChar" 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="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>
|
||||
<general>
|
||||
<keywords casesensitive="0" weakDeliminator="-%"/>
|
||||
<comments>
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
@ -0,0 +1,364 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd"
|
||||
[
|
||||
<!-- qualification of entities -->
|
||||
<!ENTITY qualify "([A-Z][a-zA-Z0-9_']*\.)*">
|
||||
<!-- identifier -->
|
||||
<!ENTITY ident "[a-z][a-zA-Z0-9_']*">
|
||||
<!-- Type -->
|
||||
<!ENTITY type "[A-Z][a-zA-Z0-9_']*">
|
||||
<!-- infix operator characters -->
|
||||
<!ENTITY infixchar "~!@#\$%\^&\*\+\-=<>\?\./\|&backslash;:">
|
||||
<!-- identifier in prefix notation, e.g.: id, ($) -->
|
||||
<!ENTITY prefixIdent "(&ident;|\([&infixchar;]+\))">
|
||||
|
||||
<!-- Characters allowed in character escape sequence, e.g., \n -->
|
||||
<!ENTITY escSeqChar "abfnrtv\"'" >
|
||||
<!-- Ascii escape sequence, e.g., \NUL -->
|
||||
<!ENTITY escSeqAscii "NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL" >
|
||||
<!-- Control escape sequence, e.g., \^X -->
|
||||
<!ENTITY escSeqCntrl "\^[A-Z@\[&backslash;\]\^_]" >
|
||||
|
||||
<!-- octal number -->
|
||||
<!ENTITY octal "[0-7]+" >
|
||||
<!-- decimal number -->
|
||||
<!ENTITY decimal "[0-9]+" >
|
||||
<!-- hexadecimal number -->
|
||||
<!ENTITY hexadecimal "[0-9a-fA-F]+" >
|
||||
<!-- a backslash, escaped for use in regular expressions -->
|
||||
<!ENTITY backslash "\\" >
|
||||
<!-- dashes introducing a currydoc comment -->
|
||||
<!ENTITY currydoc "---" >
|
||||
]>
|
||||
<language name="Curry" version="0.4" kateversion="2.5"
|
||||
section="Sources" extensions="*.curry" mimetype="text/x-curry"
|
||||
author="Björn Peemöller (bjp@informatik.uni-kiel.de)" license="LGPL"
|
||||
indenter="haskell">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> case </item>
|
||||
<item> data </item>
|
||||
<item> do </item>
|
||||
<item> else </item>
|
||||
<item> external </item>
|
||||
<item> fcase </item>
|
||||
<item> free </item>
|
||||
<item> if </item>
|
||||
<!-- Although import is a keyword, it is handled in a special context
|
||||
to highlight "qualified", "as" and "hiding" in keyword style,
|
||||
albeit these lexemes are no keywords.
|
||||
<item> import </item>
|
||||
-->
|
||||
<item> in </item>
|
||||
<item> infix </item>
|
||||
<item> infixl </item>
|
||||
<item> infixr </item>
|
||||
<item> let </item>
|
||||
<item> module </item>
|
||||
<item> of </item>
|
||||
<item> then </item>
|
||||
<item> type </item>
|
||||
<item> where </item>
|
||||
</list>
|
||||
<list name="Prelude Func">
|
||||
<item> and </item>
|
||||
<item> all </item>
|
||||
<item> any </item>
|
||||
<item> appendFile </item>
|
||||
<item> best </item>
|
||||
<item> break </item>
|
||||
<item> browse </item>
|
||||
<item> browseList </item>
|
||||
<item> chr </item>
|
||||
<item> concat </item>
|
||||
<item> concatMap </item>
|
||||
<item> const </item>
|
||||
<item> curry </item>
|
||||
<item> div </item>
|
||||
<item> done </item>
|
||||
<item> doSolve </item>
|
||||
<item> drop </item>
|
||||
<item> dropWhile </item>
|
||||
<item> either </item>
|
||||
<item> elem </item>
|
||||
<item> ensureNotFree </item>
|
||||
<item> ensureSpine </item>
|
||||
<item> enumFrom </item>
|
||||
<item> enumFromThen </item>
|
||||
<item> enumFromTo </item>
|
||||
<item> enumFromThenTo </item>
|
||||
<item> error </item>
|
||||
<item> failed </item>
|
||||
<item> filter </item>
|
||||
<item> findall </item>
|
||||
<item> flip </item>
|
||||
<item> foldl </item>
|
||||
<item> foldl1 </item>
|
||||
<item> foldr </item>
|
||||
<item> foldr1 </item>
|
||||
<item> fst </item>
|
||||
<item> getChar </item>
|
||||
<item> getLine </item>
|
||||
<item> id </item>
|
||||
<item> if_then_else </item>
|
||||
<item> iterate </item>
|
||||
<item> head </item>
|
||||
<item> length </item>
|
||||
<item> lines </item>
|
||||
<item> lookup </item>
|
||||
<item> map </item>
|
||||
<item> mapIO </item>
|
||||
<item> mapIO_ </item>
|
||||
<item> max </item>
|
||||
<item> maybe </item>
|
||||
<item> min </item>
|
||||
<item> mod </item>
|
||||
<item> negate </item>
|
||||
<item> not </item>
|
||||
<item> notElem </item>
|
||||
<item> null </item>
|
||||
<item> once </item>
|
||||
<item> or </item>
|
||||
<item> ord </item>
|
||||
<item> otherwise </item>
|
||||
<item> print </item>
|
||||
<item> putChar </item>
|
||||
<item> putStr </item>
|
||||
<item> putStrLn </item>
|
||||
<item> readFile </item>
|
||||
<item> repeat </item>
|
||||
<item> replicate </item>
|
||||
<item> return </item>
|
||||
<item> reverse </item>
|
||||
<item> seq </item>
|
||||
<item> sequenceIO </item>
|
||||
<item> sequenceIO_ </item>
|
||||
<item> show </item>
|
||||
<item> snd </item>
|
||||
<item> solveAll </item>
|
||||
<item> span </item>
|
||||
<item> splitAt </item>
|
||||
<item> success </item>
|
||||
<item> tail </item>
|
||||
<item> take </item>
|
||||
<item> takeWhile </item>
|
||||
<item> try </item>
|
||||
<item> uncurry </item>
|
||||
<item> unknown </item>
|
||||
<item> unlines </item>
|
||||
<item> unpack </item>
|
||||
<item> until </item>
|
||||
<item> unwords </item>
|
||||
<item> unzip </item>
|
||||
<item> unzip3 </item>
|
||||
<item> writeFile </item>
|
||||
<item> words </item>
|
||||
<item> zip </item>
|
||||
<item> zip3 </item>
|
||||
<item> zipWith </item>
|
||||
<item> zipWith3 </item>
|
||||
</list>
|
||||
<list name="Prelude Type">
|
||||
<item> Bool </item>
|
||||
<item> Char </item>
|
||||
<item> Either </item>
|
||||
<item> Float </item>
|
||||
<item> Int </item>
|
||||
<item> IO </item>
|
||||
<item> Maybe </item>
|
||||
<item> Ordering </item>
|
||||
<item> String </item>
|
||||
<item> Success </item>
|
||||
</list>
|
||||
<list name="Prelude Cons">
|
||||
<item> False </item>
|
||||
<item> True </item>
|
||||
<item> Left </item>
|
||||
<item> Right </item>
|
||||
<item> Just </item>
|
||||
<item> Nothing </item>
|
||||
<item> EQ </item>
|
||||
<item> LT </item>
|
||||
<item> GT </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context name="Normal" attribute="Normal" lineEndContext="#stay">
|
||||
<!-- pragmas, currydoc, comments -->
|
||||
<StringDetect attribute="Pragma" context="Pragma" String="{-#" beginRegion="Pragma" />
|
||||
<Detect2Chars attribute="Comment" context="Multiline Comment" char="{" char1="-" beginRegion="Multiline Comment" />
|
||||
<StringDetect attribute="Currydoc" context="Currydoc" String="&currydoc;" />
|
||||
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-" />
|
||||
|
||||
<!-- keywords, Prelude entities -->
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords" />
|
||||
<keyword attribute="Prelude Function" context="#stay" String="Prelude Func" />
|
||||
<keyword attribute="Prelude Type" context="#stay" String="Prelude Type" />
|
||||
<keyword attribute="Prelude Constructor" context="#stay" String="Prelude Cons" />
|
||||
<RegExpr attribute="Keyword" context="Import" String="import\s+(qualified)?" />
|
||||
|
||||
<!-- Literals -->
|
||||
<Float attribute="Float" context="#stay" />
|
||||
<RegExpr attribute="Octal" context="#stay" String="0(o|O)&octal;" />
|
||||
<HlCHex attribute="Hex" context="#stay" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<DetectChar attribute="Char" context="Char" char="'" />
|
||||
<DetectChar attribute="String" context="String" char=""" />
|
||||
|
||||
<!-- Others -->
|
||||
<RegExpr attribute="Special Symbol" context="#stay" String="(::|:=|:>|\->|<\-|\.\.)" />
|
||||
<RegExpr attribute="Signature" context="#stay" String="\s*&prefixIdent;\s*(,\s*&prefixIdent;)*\s*(?=::[^&infixchar;])" />
|
||||
<RegExpr attribute="Function" context="#stay" String="&qualify;&ident;" />
|
||||
<RegExpr attribute="Operator" context="#stay" String="&qualify;[&infixchar;]+" />
|
||||
<RegExpr attribute="Type, Constructor" context="#stay" String="&qualify;&type;" />
|
||||
<DetectChar attribute="Infix Application" context="Infix" char="`" />
|
||||
|
||||
<!-- Folding of braces -->
|
||||
<DetectChar char="(" context="#stay" beginRegion="nested" attribute="Braces" />
|
||||
<DetectChar char=")" context="#stay" endRegion="nested" attribute="Braces" />
|
||||
<DetectChar char="[" context="#stay" beginRegion="list" attribute="Braces" />
|
||||
<DetectChar char="]" context="#stay" endRegion="list" attribute="Braces" />
|
||||
<DetectChar char="{" context="#stay" beginRegion="curly" attribute="Braces" />
|
||||
<DetectChar char="}" context="#stay" endRegion="curly" attribute="Braces" />
|
||||
</context>
|
||||
|
||||
<!-- Pragma -->
|
||||
<context name="Pragma" attribute="Pragma" lineEndContext="#stay" >
|
||||
<StringDetect attribute="Pragma" context="#pop" String="#-}" endRegion="Pragma" />
|
||||
</context>
|
||||
|
||||
<!-- Multiline comment -->
|
||||
<context name="Multiline Comment" attribute="Comment" lineEndContext="#stay" >
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="Multiline Comment" />
|
||||
</context>
|
||||
|
||||
<!-- Currydoc -->
|
||||
<context name="Currydoc" attribute="Currydoc" lineEndContext="#pop" />
|
||||
|
||||
<!-- Single line comment -->
|
||||
<context name="Comment" attribute="Comment" lineEndContext="#pop" />
|
||||
|
||||
<!-- Import section -->
|
||||
<context name="Import" attribute="Normal" lineEndContext="#pop" >
|
||||
<!-- pragmas, currydoc, comments -->
|
||||
<StringDetect attribute="Pragma" context="Pragma" String="{-#" beginRegion="Pragma" />
|
||||
<Detect2Chars attribute="Comment" context="Multiline Comment" char="{" char1="-" beginRegion="Multiline Comment" />
|
||||
<StringDetect attribute="Currydoc" context="Currydoc" String="&currydoc;" />
|
||||
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-" />
|
||||
|
||||
<RegExpr attribute="Type, Constructor" context="#stay" String="&qualify;&type;" />
|
||||
<Detect2Chars attribute="Keyword" context="#stay" char="a" char1="s" />
|
||||
<StringDetect attribute="Keyword" context="#stay" String="hiding" />
|
||||
<!-- Pop context at open paren to highlight imported entities -->
|
||||
<DetectChar attribute="Braces" context="#pop" char="(" beginRegion="nested" />
|
||||
<RegExpr attribute="Syntax Error" context="#stay" String="\S+" />
|
||||
</context>
|
||||
|
||||
<!-- A single characters, with escape sequences -->
|
||||
<context name="Char" attribute="Char" lineEndContext="CharSyntaxError" >
|
||||
<DetectChar attribute="Syntax Error" context="#pop" char="'" />
|
||||
<DetectChar attribute="Char" context="CharEscape" char="\" />
|
||||
<RegExpr attribute="Char" context="CharEnd" String="[^'&backslash;]" />
|
||||
</context>
|
||||
|
||||
<!-- Character escape sequence -->
|
||||
<context name="CharEscape" attribute="Char" lineEndContext="#popCharSyntaxError" >
|
||||
<AnyChar attribute="Char" context="#popCharEnd" String="&escSeqChar;" />
|
||||
<RegExpr attribute="Char" context="#popCharEnd" String="o&octal;" />
|
||||
<RegExpr attribute="Char" context="#popCharEnd" String="&decimal;" />
|
||||
<RegExpr attribute="Char" context="#popCharEnd" String="x&hexadecimal;" />
|
||||
<RegExpr attribute="Char" context="#popCharEnd" String="&escSeqCntrl;" />
|
||||
<RegExpr attribute="Char" context="#popCharEnd" String="&escSeqAscii;" />
|
||||
<RegExpr attribute="Syntax Error" context="#popCharEnd" String="." />
|
||||
</context>
|
||||
|
||||
<!-- Ending quote of character literal -->
|
||||
<context name="CharEnd" attribute="Char" lineEndContext="#popCharSyntaxError" >
|
||||
<DetectChar attribute="Char" context="#pop#pop" char="'" />
|
||||
<RegExpr attribute="Syntax Error" context="#stay" String="." />
|
||||
</context>
|
||||
|
||||
<!-- Character syntax error: Newline inside literal -->
|
||||
<context name="CharSyntaxError" attribute="Syntax Error" lineEndContext="#stay" >
|
||||
<DetectChar attribute="Syntax Error" context="#pop#pop" char="'" />
|
||||
</context>
|
||||
|
||||
<!-- A string, with escape sequences -->
|
||||
<context name="String" attribute="String" lineEndContext="StringSyntaxError" >
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
<DetectChar attribute="String Escape" context="StringEscape" char="\" />
|
||||
<RegExpr attribute="String" context="#stay" String="[^"&backslash;]*" />
|
||||
</context>
|
||||
|
||||
<!-- String escape sequence -->
|
||||
<context name="StringEscape" attribute="String" lineEndContext="StringGap" >
|
||||
<AnyChar attribute="String Escape" context="#pop" String="&escSeqChar;&" />
|
||||
<RegExpr attribute="String Escape" context="#pop" String="o&octal;" />
|
||||
<RegExpr attribute="String Escape" context="#pop" String="&decimal;" />
|
||||
<RegExpr attribute="String Escape" context="#pop" String="x&hexadecimal;" />
|
||||
<RegExpr attribute="String Escape" context="#pop" String="&escSeqCntrl;" />
|
||||
<RegExpr attribute="String Escape" context="#pop" String="&escSeqAscii;" />
|
||||
<DetectSpaces attribute="String Escape" context="StringGap" />
|
||||
<RegExpr attribute="Syntax Error" context="#pop" String="." />
|
||||
</context>
|
||||
|
||||
<context name="StringGap" attribute="String" lineEndContext="#stay" >
|
||||
<DetectSpaces attribute="String Escape" context="#stay" />
|
||||
<DetectChar attribute="String Escape" context="#pop#pop#popString" char="\" />
|
||||
<DetectChar attribute="Syntax Error" context="#pop#pop#pop" char=""" />
|
||||
<RegExpr attribute="Syntax Error" context="#stay" String="." />
|
||||
</context>
|
||||
|
||||
<!-- String syntax error: Newline inside literal -->
|
||||
<context name="StringSyntaxError" attribute="Syntax Error" lineEndContext="#stay" >
|
||||
<DetectChar attribute="Syntax Error" context="#pop#pop" char=""" />
|
||||
</context>
|
||||
|
||||
<!-- Infix application -->
|
||||
<context name="Infix" attribute="Infix Application" lineEndContext="#stay" >
|
||||
<DetectChar attribute="Infix Application" context="#pop" char="`"/>
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" />
|
||||
|
||||
<!-- Comments -->
|
||||
<itemData name="Pragma" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Currydoc" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF"/>
|
||||
|
||||
<!-- Keywords, predefined entities -->
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<itemData name="Prelude Type" defStyleNum="dsDataType" spellChecking="false" />
|
||||
<itemData name="Prelude Function" defStyleNum="dsFunction" spellChecking="false" />
|
||||
<itemData name="Prelude Constructor" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
|
||||
<!-- Literals -->
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false" />
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false" />
|
||||
<itemData name="String Escape" defStyleNum="dsChar" spellChecking="false" />
|
||||
<itemData name="String" defStyleNum="dsString" />
|
||||
|
||||
<!-- Others -->
|
||||
<itemData name="Braces" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Signature" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Function" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Operator" defStyleNum="dsFunction" spellChecking="false" />
|
||||
<itemData name="Type, Constructor" defStyleNum="dsDataType" spellChecking="false" />
|
||||
<itemData name="Special Symbol" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Infix Application" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Syntax Error" defStyleNum="dsError" spellChecking="false" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<folding indentationsensitive="1"/>
|
||||
<comments>
|
||||
<comment name="singleLine" start="--" />
|
||||
<comment name="multiLine" start="{-" end="-}" region="Multiline Comment" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,574 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd"
|
||||
[
|
||||
<!ENTITY space " ">
|
||||
<!ENTITY separators ",;">
|
||||
<!ENTITY ns_punctuators "!%&space;&()+-/.*<=>?[]{|}~^&separators;">
|
||||
<!ENTITY punctuators ":&ns_punctuators;">
|
||||
]>
|
||||
<!--
|
||||
Copyright (c) 2012 by Alex Turbov (i.zaufi@gmail.com)
|
||||
|
||||
Homepage: http://kde-files.org/content/show.php?content=90660
|
||||
-->
|
||||
<language
|
||||
name="GCCExtensions"
|
||||
version="0.4"
|
||||
kateversion="2.5"
|
||||
section="Sources"
|
||||
extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;"
|
||||
mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr;text/x-csrc"
|
||||
author="Alex Turbov (i.zaufi@gmail.com)"
|
||||
license="LGPL"
|
||||
hidden="true"
|
||||
priority="5"
|
||||
>
|
||||
<!--
|
||||
The main purpose of this file is to hold GNU gcc extensions syntax in a single place,
|
||||
so later it can be included to other (C++ based) syntaxes.
|
||||
|
||||
NOTE Default colors are set to 'Normal Text', so if u don't want to highight it,
|
||||
just leave colors as is...
|
||||
|
||||
Based on GCC documentation
|
||||
-->
|
||||
<highlighting>
|
||||
<list name="GNUTypes">
|
||||
<!-- NOTE From gcc's info: 6.10 Additional Floating Types -->
|
||||
<item> __float80 </item>
|
||||
<item> __float128 </item>
|
||||
<!-- NOTE From gcc's 4.7.1 info: 6.13 Decimal Floating Types -->
|
||||
<item> _Decimal32 </item>
|
||||
<item> _Decimal64 </item>
|
||||
<item> _Decimal128 </item>
|
||||
<!-- NOTE From gcc's info: 6.8 128-bits integers -->
|
||||
<item> __int128 </item>
|
||||
<!-- NOTE From gcc's 4.7.1 info: 6.12 Half-Precision Floating Point -->
|
||||
<item> __fp16 </item>
|
||||
<!-- NOTE From gcc's 4.7.1 info: 6.15 Fixed-Point Types -->
|
||||
<item> _Fract </item>
|
||||
<item> _Sat </item>
|
||||
<item> _Accum </item>
|
||||
</list>
|
||||
<list name="GNUKeywords">
|
||||
<!-- NOTE that __attribute__ handled separately -->
|
||||
<item> __asm__ </item>
|
||||
<item> __const__ </item>
|
||||
<item> __extension__ </item>
|
||||
<item> __inline__ </item>
|
||||
<item> __label__ </item>
|
||||
<item> __complex__ </item>
|
||||
<item> __real__ </item>
|
||||
<item> __restrict__ </item>
|
||||
<item> __restrict </item>
|
||||
<item> __imag__ </item>
|
||||
<!-- NOTE From gcc's info: 6.6 Referring to a Type with `typeof' -->
|
||||
<item> __typeof__ </item>
|
||||
<item> typeof </item>
|
||||
<!-- NOTE From gcc's 4.7.1 info: 6.38 -->
|
||||
<item> __alignof__ </item>
|
||||
<!-- NOTE From gcc's info: 6.59 Thread-Local storage -->
|
||||
<item> __thread </item>
|
||||
</list>
|
||||
<!-- NOTE Everything started from `__builtin_' handled separately -->
|
||||
<list name="GNUFunctions">
|
||||
<!-- NOTE From gcc's info: 7.9 Type Traits -->
|
||||
<item> __has_nothrow_assign </item>
|
||||
<item> __has_nothrow_copy </item>
|
||||
<item> __has_nothrow_constructor </item>
|
||||
<item> __has_trivial_assign </item>
|
||||
<item> __has_trivial_copy </item>
|
||||
<item> __has_trivial_constructor </item>
|
||||
<item> __has_trivial_destructor </item>
|
||||
<item> __has_virtual_destructor </item>
|
||||
<item> __is_abstract </item>
|
||||
<item> __is_base_of </item>
|
||||
<item> __is_class </item>
|
||||
<item> __is_empty </item>
|
||||
<item> __is_enum </item>
|
||||
<item> __is_pod </item>
|
||||
<item> __is_polymorphic </item>
|
||||
<item> __is_union </item>
|
||||
<!-- NOTE From gcc's info: 6.49 -->
|
||||
<item> __sync_fetch_and_add </item>
|
||||
<item> __sync_fetch_and_sub </item>
|
||||
<item> __sync_fetch_and_or </item>
|
||||
<item> __sync_fetch_and_and </item>
|
||||
<item> __sync_fetch_and_xor </item>
|
||||
<item> __sync_fetch_and_nand </item>
|
||||
<item> __sync_add_and_fetch </item>
|
||||
<item> __sync_sub_and_fetch </item>
|
||||
<item> __sync_or_and_fetch </item>
|
||||
<item> __sync_and_and_fetch </item>
|
||||
<item> __sync_xor_and_fetch </item>
|
||||
<item> __sync_nand_and_fetch </item>
|
||||
<item> __sync_bool_compare_and_swap </item>
|
||||
<item> __sync_val_compare_and_swap </item>
|
||||
<item> __sync_synchronize </item>
|
||||
<item> __sync_lock_test_and_set </item>
|
||||
<item> __sync_lock_release </item>
|
||||
<!-- NOTE From gcc 4.7.x info: 6.52 -->
|
||||
<item> __atomic_load_n </item>
|
||||
<item> __atomic_load </item>
|
||||
<item> __atomic_store_n </item>
|
||||
<item> __atomic_store </item>
|
||||
<item> __atomic_exchange_n </item>
|
||||
<item> __atomic_exchange </item>
|
||||
<item> __atomic_compare_exchange_n </item>
|
||||
<item> __atomic_compare_exchange </item>
|
||||
<item> __atomic_add_fetch </item>
|
||||
<item> __atomic_sub_fetch </item>
|
||||
<item> __atomic_and_fetch </item>
|
||||
<item> __atomic_or_fetch </item>
|
||||
<item> __atomic_xor_fetch </item>
|
||||
<item> __atomic_nand_fetch </item>
|
||||
<item> __atomic_fetch_add </item>
|
||||
<item> __atomic_fetch_sub </item>
|
||||
<item> __atomic_fetch_and </item>
|
||||
<item> __atomic_fetch_or </item>
|
||||
<item> __atomic_fetch_xor </item>
|
||||
<item> __atomic_fetch_nand </item>
|
||||
<item> __atomic_test_and_set </item>
|
||||
<item> __atomic_clear </item>
|
||||
<item> __atomic_thread_fence </item>
|
||||
<item> __atomic_always_lock_free </item>
|
||||
<item> __atomic_is_lock_free </item>
|
||||
</list>
|
||||
<!-- From http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
|
||||
plus a lot of platform specific predefines found by my script
|
||||
git@github.com:zaufi/kate-stuff.git/support/genpredefmacrolist.sh
|
||||
-->
|
||||
<list name="GNUMacros">
|
||||
<item> _FORTIFY_SOURCE </item>
|
||||
<item> _GNU_SOURCE </item>
|
||||
<item> _ILP32 </item>
|
||||
<item> _LP64 </item>
|
||||
<item> _REENTRANT </item>
|
||||
<item> _STDC_PREDEF_H </item>
|
||||
<item> __3dNOW_A__ </item>
|
||||
<item> __3dNOW__ </item>
|
||||
<item> __ABM__ </item>
|
||||
<item> __ADX__ </item>
|
||||
<item> __AES__ </item>
|
||||
<item> __ATOMIC_ACQUIRE </item>
|
||||
<item> __ATOMIC_ACQ_REL </item>
|
||||
<item> __ATOMIC_CONSUME </item>
|
||||
<item> __ATOMIC_HLE_ACQUIRE </item>
|
||||
<item> __ATOMIC_HLE_RELEASE </item>
|
||||
<item> __ATOMIC_RELAXED </item>
|
||||
<item> __ATOMIC_RELEASE </item>
|
||||
<item> __ATOMIC_SEQ_CST </item>
|
||||
<item> __AVX2__ </item>
|
||||
<item> __AVX__ </item>
|
||||
<item> __BASE_FILE__ </item>
|
||||
<item> __BIGGEST_ALIGNMENT__ </item>
|
||||
<item> __BMI2__ </item>
|
||||
<item> __BMI__ </item>
|
||||
<item> __BYTE_ORDER__ </item>
|
||||
<item> __CHAR16_TYPE__ </item>
|
||||
<item> __CHAR32_TYPE__ </item>
|
||||
<item> __CHAR_BIT__ </item>
|
||||
<item> __CHAR_UNSIGNED__ </item>
|
||||
<item> __COUNTER__ </item>
|
||||
<item> __DBL_DECIMAL_DIG__ </item>
|
||||
<item> __DBL_DENORM_MIN__ </item>
|
||||
<item> __DBL_DIG__ </item>
|
||||
<item> __DBL_EPSILON__ </item>
|
||||
<item> __DBL_HAS_DENORM__ </item>
|
||||
<item> __DBL_HAS_INFINITY__ </item>
|
||||
<item> __DBL_HAS_QUIET_NAN__ </item>
|
||||
<item> __DBL_MANT_DIG__ </item>
|
||||
<item> __DBL_MAX_10_EXP__ </item>
|
||||
<item> __DBL_MAX_EXP__ </item>
|
||||
<item> __DBL_MAX__ </item>
|
||||
<item> __DBL_MIN_10_EXP__ </item>
|
||||
<item> __DBL_MIN_EXP__ </item>
|
||||
<item> __DBL_MIN__ </item>
|
||||
<item> __DEC128_EPSILON__ </item>
|
||||
<item> __DEC128_MANT_DIG__ </item>
|
||||
<item> __DEC128_MAX_EXP__ </item>
|
||||
<item> __DEC128_MAX__ </item>
|
||||
<item> __DEC128_MIN_EXP__ </item>
|
||||
<item> __DEC128_MIN__ </item>
|
||||
<item> __DEC128_SUBNORMAL_MIN__ </item>
|
||||
<item> __DEC32_EPSILON__ </item>
|
||||
<item> __DEC32_MANT_DIG__ </item>
|
||||
<item> __DEC32_MAX_EXP__ </item>
|
||||
<item> __DEC32_MAX__ </item>
|
||||
<item> __DEC32_MIN_EXP__ </item>
|
||||
<item> __DEC32_MIN__ </item>
|
||||
<item> __DEC32_SUBNORMAL_MIN__ </item>
|
||||
<item> __DEC64_EPSILON__ </item>
|
||||
<item> __DEC64_MANT_DIG__ </item>
|
||||
<item> __DEC64_MAX_EXP__ </item>
|
||||
<item> __DEC64_MAX__ </item>
|
||||
<item> __DEC64_MIN_EXP__ </item>
|
||||
<item> __DEC64_MIN__ </item>
|
||||
<item> __DEC64_SUBNORMAL_MIN__ </item>
|
||||
<item> __DECIMAL_BID_FORMAT__ </item>
|
||||
<item> __DECIMAL_DIG__ </item>
|
||||
<item> __DEC_EVAL_METHOD__ </item>
|
||||
<item> __DEPRECATED </item>
|
||||
<item> __ELF__ </item>
|
||||
<item> __EXCEPTIONS </item>
|
||||
<item> __F16C__ </item>
|
||||
<item> __FAST_MATH__ </item>
|
||||
<item> __FINITE_MATH_ONLY__ </item>
|
||||
<item> __FLOAT_WORD_ORDER__ </item>
|
||||
<item> __FLT_DECIMAL_DIG__ </item>
|
||||
<item> __FLT_DENORM_MIN__ </item>
|
||||
<item> __FLT_DIG__ </item>
|
||||
<item> __FLT_EPSILON__ </item>
|
||||
<item> __FLT_EVAL_METHOD__ </item>
|
||||
<item> __FLT_HAS_DENORM__ </item>
|
||||
<item> __FLT_HAS_INFINITY__ </item>
|
||||
<item> __FLT_HAS_QUIET_NAN__ </item>
|
||||
<item> __FLT_MANT_DIG__ </item>
|
||||
<item> __FLT_MAX_10_EXP__ </item>
|
||||
<item> __FLT_MAX_EXP__ </item>
|
||||
<item> __FLT_MAX__ </item>
|
||||
<item> __FLT_MIN_10_EXP__ </item>
|
||||
<item> __FLT_MIN_EXP__ </item>
|
||||
<item> __FLT_MIN__ </item>
|
||||
<item> __FLT_RADIX__ </item>
|
||||
<item> __FMA4__ </item>
|
||||
<item> __FMA__ </item>
|
||||
<item> __FP_FAST_FMA </item>
|
||||
<item> __FP_FAST_FMAF </item>
|
||||
<item> __FSGSBASE__ </item>
|
||||
<item> __FUNCTION__ </item>
|
||||
<item> __FXSR__ </item>
|
||||
<item> __GCC_ATOMIC_BOOL_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_CHAR16_T_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_CHAR32_T_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_CHAR_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_INT_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_LLONG_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_LONG_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_POINTER_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_SHORT_LOCK_FREE </item>
|
||||
<item> __GCC_ATOMIC_TEST_AND_SET_TRUEVAL </item>
|
||||
<item> __GCC_ATOMIC_WCHAR_T_LOCK_FREE </item>
|
||||
<item> __GCC_HAVE_DWARF2_CFI_ASM </item>
|
||||
<item> __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 </item>
|
||||
<item> __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 </item>
|
||||
<item> __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 </item>
|
||||
<item> __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 </item>
|
||||
<item> __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 </item>
|
||||
<item> __GFORTRAN__ </item>
|
||||
<item> __GNUC_GNU_INLINE__ </item>
|
||||
<item> __GNUC_MINOR__ </item>
|
||||
<item> __GNUC_PATCHLEVEL__ </item>
|
||||
<item> __GNUC_STDC_INLINE__ </item>
|
||||
<item> __GNUC__ </item>
|
||||
<item> __GNUG__ </item>
|
||||
<item> __GXX_ABI_VERSION </item>
|
||||
<item> __GXX_EXPERIMENTAL_CXX0X__ </item>
|
||||
<item> __GXX_RTTI </item>
|
||||
<item> __GXX_WEAK__ </item>
|
||||
<item> __ILP32__ </item>
|
||||
<item> __INCLUDE_LEVEL__ </item>
|
||||
<item> __INT16_C </item>
|
||||
<item> __INT16_MAX__ </item>
|
||||
<item> __INT16_TYPE__ </item>
|
||||
<item> __INT32_C </item>
|
||||
<item> __INT32_MAX__ </item>
|
||||
<item> __INT32_TYPE__ </item>
|
||||
<item> __INT64_C </item>
|
||||
<item> __INT64_MAX__ </item>
|
||||
<item> __INT64_TYPE__ </item>
|
||||
<item> __INT8_C </item>
|
||||
<item> __INT8_MAX__ </item>
|
||||
<item> __INT8_TYPE__ </item>
|
||||
<item> __INTMAX_C </item>
|
||||
<item> __INTMAX_MAX__ </item>
|
||||
<item> __INTMAX_TYPE__ </item>
|
||||
<item> __INTPTR_MAX__ </item>
|
||||
<item> __INTPTR_TYPE__ </item>
|
||||
<item> __INT_FAST16_MAX__ </item>
|
||||
<item> __INT_FAST16_TYPE__ </item>
|
||||
<item> __INT_FAST32_MAX__ </item>
|
||||
<item> __INT_FAST32_TYPE__ </item>
|
||||
<item> __INT_FAST64_MAX__ </item>
|
||||
<item> __INT_FAST64_TYPE__ </item>
|
||||
<item> __INT_FAST8_MAX__ </item>
|
||||
<item> __INT_FAST8_TYPE__ </item>
|
||||
<item> __INT_LEAST16_MAX__ </item>
|
||||
<item> __INT_LEAST16_TYPE__ </item>
|
||||
<item> __INT_LEAST32_MAX__ </item>
|
||||
<item> __INT_LEAST32_TYPE__ </item>
|
||||
<item> __INT_LEAST64_MAX__ </item>
|
||||
<item> __INT_LEAST64_TYPE__ </item>
|
||||
<item> __INT_LEAST8_MAX__ </item>
|
||||
<item> __INT_LEAST8_TYPE__ </item>
|
||||
<item> __INT_MAX__ </item>
|
||||
<item> __LDBL_DENORM_MIN__ </item>
|
||||
<item> __LDBL_DIG__ </item>
|
||||
<item> __LDBL_EPSILON__ </item>
|
||||
<item> __LDBL_HAS_DENORM__ </item>
|
||||
<item> __LDBL_HAS_INFINITY__ </item>
|
||||
<item> __LDBL_HAS_QUIET_NAN__ </item>
|
||||
<item> __LDBL_MANT_DIG__ </item>
|
||||
<item> __LDBL_MAX_10_EXP__ </item>
|
||||
<item> __LDBL_MAX_EXP__ </item>
|
||||
<item> __LDBL_MAX__ </item>
|
||||
<item> __LDBL_MIN_10_EXP__ </item>
|
||||
<item> __LDBL_MIN_EXP__ </item>
|
||||
<item> __LDBL_MIN__ </item>
|
||||
<item> __LONG_LONG_MAX__ </item>
|
||||
<item> __LONG_MAX__ </item>
|
||||
<item> __LP64__ </item>
|
||||
<item> __LWP__ </item>
|
||||
<item> __LZCNT__ </item>
|
||||
<item> __MMX__ </item>
|
||||
<item> __NEXT_RUNTIME__ </item>
|
||||
<item> __NO_INLINE__ </item>
|
||||
<item> __OPTIMIZE_SIZE__ </item>
|
||||
<item> __OPTIMIZE__ </item>
|
||||
<item> __ORDER_BIG_ENDIAN__ </item>
|
||||
<item> __ORDER_LITTLE_ENDIAN__ </item>
|
||||
<item> __ORDER_PDP_ENDIAN__ </item>
|
||||
<item> __PCLMUL__ </item>
|
||||
<item> __PIC__ </item>
|
||||
<item> __PIE__ </item>
|
||||
<item> __POPCNT__ </item>
|
||||
<item> __PRAGMA_REDEFINE_EXTNAME </item>
|
||||
<item> __PRETTY_FUNCTION__ </item>
|
||||
<item> __PRFCHW__ </item>
|
||||
<item> __PTRDIFF_MAX__ </item>
|
||||
<item> __PTRDIFF_TYPE__ </item>
|
||||
<item> __RDRND__ </item>
|
||||
<item> __RDSEED__ </item>
|
||||
<item> __REGISTER_PREFIX__ </item>
|
||||
<item> __RTM__ </item>
|
||||
<item> __SANITIZE_ADDRESS__ </item>
|
||||
<item> __SCHAR_MAX__ </item>
|
||||
<item> __SHRT_MAX__ </item>
|
||||
<item> __SIG_ATOMIC_MAX__ </item>
|
||||
<item> __SIG_ATOMIC_MIN__ </item>
|
||||
<item> __SIG_ATOMIC_TYPE__ </item>
|
||||
<item> __SIZEOF_DOUBLE__ </item>
|
||||
<item> __SIZEOF_FLOAT__ </item>
|
||||
<item> __SIZEOF_INT128__ </item>
|
||||
<item> __SIZEOF_INT__ </item>
|
||||
<item> __SIZEOF_LONG_DOUBLE__ </item>
|
||||
<item> __SIZEOF_LONG_LONG__ </item>
|
||||
<item> __SIZEOF_LONG__ </item>
|
||||
<item> __SIZEOF_POINTER__ </item>
|
||||
<item> __SIZEOF_PTRDIFF_T__ </item>
|
||||
<item> __SIZEOF_SHORT__ </item>
|
||||
<item> __SIZEOF_SIZE_T__ </item>
|
||||
<item> __SIZEOF_WCHAR_T__ </item>
|
||||
<item> __SIZEOF_WINT_T__ </item>
|
||||
<item> __SIZE_MAX__ </item>
|
||||
<item> __SIZE_TYPE__ </item>
|
||||
<item> __SSE2_MATH__ </item>
|
||||
<item> __SSE2__ </item>
|
||||
<item> __SSE3__ </item>
|
||||
<item> __SSE4A__ </item>
|
||||
<item> __SSE4_1__ </item>
|
||||
<item> __SSE4_2__ </item>
|
||||
<item> __SSE_MATH__ </item>
|
||||
<item> __SSE__ </item>
|
||||
<item> __SSP_ALL__ </item>
|
||||
<item> __SSP__ </item>
|
||||
<item> __SSSE3__ </item>
|
||||
<item> __STDC_HOSTED__ </item>
|
||||
<item> __STDC_IEC_559_COMPLEX__ </item>
|
||||
<item> __STDC_IEC_559__ </item>
|
||||
<item> __STDC_ISO_10646__ </item>
|
||||
<item> __STDC_NO_THREADS__ </item>
|
||||
<item> __STDC_UTF_16__ </item>
|
||||
<item> __STDC_UTF_32__ </item>
|
||||
<item> __STDC_VERSION__ </item>
|
||||
<item> __STDC__ </item>
|
||||
<item> __STRICT_ANSI__ </item>
|
||||
<item> __TBM__ </item>
|
||||
<item> __TIMESTAMP__ </item>
|
||||
<item> __UINT16_C </item>
|
||||
<item> __UINT16_MAX__ </item>
|
||||
<item> __UINT16_TYPE__ </item>
|
||||
<item> __UINT32_C </item>
|
||||
<item> __UINT32_MAX__ </item>
|
||||
<item> __UINT32_TYPE__ </item>
|
||||
<item> __UINT64_C </item>
|
||||
<item> __UINT64_MAX__ </item>
|
||||
<item> __UINT64_TYPE__ </item>
|
||||
<item> __UINT8_C </item>
|
||||
<item> __UINT8_MAX__ </item>
|
||||
<item> __UINT8_TYPE__ </item>
|
||||
<item> __UINTMAX_C </item>
|
||||
<item> __UINTMAX_MAX__ </item>
|
||||
<item> __UINTMAX_TYPE__ </item>
|
||||
<item> __UINTPTR_MAX__ </item>
|
||||
<item> __UINTPTR_TYPE__ </item>
|
||||
<item> __UINT_FAST16_MAX__ </item>
|
||||
<item> __UINT_FAST16_TYPE__ </item>
|
||||
<item> __UINT_FAST32_MAX__ </item>
|
||||
<item> __UINT_FAST32_TYPE__ </item>
|
||||
<item> __UINT_FAST64_MAX__ </item>
|
||||
<item> __UINT_FAST64_TYPE__ </item>
|
||||
<item> __UINT_FAST8_MAX__ </item>
|
||||
<item> __UINT_FAST8_TYPE__ </item>
|
||||
<item> __UINT_LEAST16_MAX__ </item>
|
||||
<item> __UINT_LEAST16_TYPE__ </item>
|
||||
<item> __UINT_LEAST32_MAX__ </item>
|
||||
<item> __UINT_LEAST32_TYPE__ </item>
|
||||
<item> __UINT_LEAST64_MAX__ </item>
|
||||
<item> __UINT_LEAST64_TYPE__ </item>
|
||||
<item> __UINT_LEAST8_MAX__ </item>
|
||||
<item> __UINT_LEAST8_TYPE__ </item>
|
||||
<item> __USER_LABEL_PREFIX__ </item>
|
||||
<item> __USING_SJLJ_EXCEPTIONS__ </item>
|
||||
<item> __VA_ARGS__ </item>
|
||||
<item> __VERSION__ </item>
|
||||
<item> __WCHAR_MAX__ </item>
|
||||
<item> __WCHAR_MIN__ </item>
|
||||
<item> __WCHAR_TYPE__ </item>
|
||||
<item> __WCHAR_UNSIGNED__ </item>
|
||||
<item> __WINT_MAX__ </item>
|
||||
<item> __WINT_MIN__ </item>
|
||||
<item> __WINT_TYPE__ </item>
|
||||
<item> __XOP__ </item>
|
||||
<item> __XSAVEOPT__ </item>
|
||||
<item> __XSAVE__ </item>
|
||||
<item> __amd64 </item>
|
||||
<item> __amd64__ </item>
|
||||
<item> __amdfam10 </item>
|
||||
<item> __amdfam10__ </item>
|
||||
<item> __athlon </item>
|
||||
<item> __athlon__ </item>
|
||||
<item> __athlon_sse__ </item>
|
||||
<item> __atom </item>
|
||||
<item> __atom__ </item>
|
||||
<item> __bdver1 </item>
|
||||
<item> __bdver1__ </item>
|
||||
<item> __bdver2 </item>
|
||||
<item> __bdver2__ </item>
|
||||
<item> __bdver3 </item>
|
||||
<item> __bdver3__ </item>
|
||||
<item> __btver1 </item>
|
||||
<item> __btver1__ </item>
|
||||
<item> __btver2 </item>
|
||||
<item> __btver2__ </item>
|
||||
<item> __code_model_32__ </item>
|
||||
<item> __code_model_small__ </item>
|
||||
<item> __core2 </item>
|
||||
<item> __core2__ </item>
|
||||
<item> __core_avx2 </item>
|
||||
<item> __core_avx2__ </item>
|
||||
<item> __corei7 </item>
|
||||
<item> __corei7__ </item>
|
||||
<item> __cplusplus </item>
|
||||
<item> __geode </item>
|
||||
<item> __geode__ </item>
|
||||
<item> __gnu_linux__ </item>
|
||||
<item> __i386 </item>
|
||||
<item> __i386__ </item>
|
||||
<item> __i486 </item>
|
||||
<item> __i486__ </item>
|
||||
<item> __i586 </item>
|
||||
<item> __i586__ </item>
|
||||
<item> __i686 </item>
|
||||
<item> __i686__ </item>
|
||||
<item> __k6 </item>
|
||||
<item> __k6_2__ </item>
|
||||
<item> __k6_3__ </item>
|
||||
<item> __k6__ </item>
|
||||
<item> __k8 </item>
|
||||
<item> __k8__ </item>
|
||||
<item> __linux </item>
|
||||
<item> __linux__ </item>
|
||||
<item> __nocona </item>
|
||||
<item> __nocona__ </item>
|
||||
<item> __pentium </item>
|
||||
<item> __pentium4 </item>
|
||||
<item> __pentium4__ </item>
|
||||
<item> __pentium__ </item>
|
||||
<item> __pentium_mmx__ </item>
|
||||
<item> __pentiumpro </item>
|
||||
<item> __pentiumpro__ </item>
|
||||
<item> __pic__ </item>
|
||||
<item> __pie__ </item>
|
||||
<item> __tune_amdfam10__ </item>
|
||||
<item> __tune_athlon__ </item>
|
||||
<item> __tune_athlon_sse__ </item>
|
||||
<item> __tune_atom__ </item>
|
||||
<item> __tune_bdver1__ </item>
|
||||
<item> __tune_bdver2__ </item>
|
||||
<item> __tune_bdver3__ </item>
|
||||
<item> __tune_btver1__ </item>
|
||||
<item> __tune_btver2__ </item>
|
||||
<item> __tune_core2__ </item>
|
||||
<item> __tune_core_avx2__ </item>
|
||||
<item> __tune_corei7__ </item>
|
||||
<item> __tune_geode__ </item>
|
||||
<item> __tune_i386__ </item>
|
||||
<item> __tune_i486__ </item>
|
||||
<item> __tune_i586__ </item>
|
||||
<item> __tune_i686__ </item>
|
||||
<item> __tune_k6_2__ </item>
|
||||
<item> __tune_k6_3__ </item>
|
||||
<item> __tune_k6__ </item>
|
||||
<item> __tune_k8__ </item>
|
||||
<item> __tune_nocona__ </item>
|
||||
<item> __tune_pentium2__ </item>
|
||||
<item> __tune_pentium3__ </item>
|
||||
<item> __tune_pentium4__ </item>
|
||||
<item> __tune_pentium__ </item>
|
||||
<item> __tune_pentium_mmx__ </item>
|
||||
<item> __tune_pentiumpro__ </item>
|
||||
<item> __unix </item>
|
||||
<item> __unix__ </item>
|
||||
<item> __x86_64 </item>
|
||||
<item> __x86_64__ </item>
|
||||
<item> i386 </item>
|
||||
<item> linux </item>
|
||||
<item> unix </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context name="DetectGccExtensions" attribute="Normal Text" lineEndContext="#stay">
|
||||
<keyword attribute="GNU Macros" context="#stay" String="GNUMacros" />
|
||||
<keyword attribute="GNU Functions" context="#stay" String="GNUFunctions" />
|
||||
<keyword attribute="GNU Types" context="#stay" String="GNUTypes" />
|
||||
<StringDetect attribute="GNU Extensions" context="AttrArgs" String="__attribute__" />
|
||||
<StringDetect attribute="GNU Extensions" context="AttrArgs" String="__declspec" />
|
||||
<keyword attribute="GNU Extensions" context="#stay" String="GNUKeywords" />
|
||||
<RegExpr attribute="GNU Functions" context="#stay" String="__builtin_[a-zA-Z0-9_]+" />
|
||||
<!-- (gcc info 6.57) Binary constants using the `0b' prefix -->
|
||||
<RegExpr attribute="GNU Extensions" context="#stay" String="0[Bb][01]+([Uu][Ll]{0,2}|[Ll]{0,2}[Uu]?|_[_0-9A-Za-z]*)?\b" />
|
||||
</context>
|
||||
|
||||
<context name="GNUMacros" attribute="Normal Text" lineEndContext="#stay">
|
||||
<keyword attribute="GNU Macros" context="#stay" String="GNUMacros" />
|
||||
</context>
|
||||
|
||||
<context name="AttrArgs" attribute="GNU Extensions" lineEndContext="#pop">
|
||||
<Detect2Chars attribute="GNU Extensions" context="#stay" char="(" char1="(" />
|
||||
<Detect2Chars attribute="GNU Extensions" context="#pop" char=")" char1=")" />
|
||||
<DetectChar attribute="GNU Extensions" context="Close" char="(" />
|
||||
</context>
|
||||
|
||||
<context name="Close" attribute="GNU Extensions" lineEndContext="#stay">
|
||||
<DetectChar attribute="GNU Extensions" context="#pop" char=")" />
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="GNU Extensions" defStyleNum="dsOthers" spellChecking="false" italic="1" />
|
||||
<itemData name="GNU Functions" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="GNU Macros" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="GNU Types" defStyleNum="dsOthers" spellChecking="false" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//"/>
|
||||
</comments>
|
||||
<keywords casesensitive="1"/>
|
||||
</general>
|
||||
</language>
|
||||
<!-- kate: indent-width 2; tab-width 2; -->
|
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Git Rebase" version="1.01" kateversion="2.5" section="Other" extensions="git-rebase-todo" license="LGPL" mimetype="text/vnd.git.rebase" author="Orgad Shaneh (orgads@gmail.com)">
|
||||
<highlighting>
|
||||
<list name="pick">
|
||||
<item>p</item>
|
||||
<item>pick</item>
|
||||
</list>
|
||||
<list name="reword">
|
||||
<item>r</item>
|
||||
<item>reword</item>
|
||||
</list>
|
||||
<list name="edit">
|
||||
<item>e</item>
|
||||
<item>edit</item>
|
||||
</list>
|
||||
<list name="squash">
|
||||
<item>s</item>
|
||||
<item>squash</item>
|
||||
</list>
|
||||
<list name="fixup">
|
||||
<item>f</item>
|
||||
<item>fixup</item>
|
||||
</list>
|
||||
<list name="exec">
|
||||
<item>x</item>
|
||||
<item>exec</item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Normal">
|
||||
<DetectChar char="#" attribute="Comment" context="Comment" column="0"/>
|
||||
<keyword attribute="Pick" context="Commit" String="pick" />
|
||||
<keyword attribute="Reword" context="Commit" String="reword" />
|
||||
<keyword attribute="Edit" context="Commit" String="edit" />
|
||||
<keyword attribute="Squash" context="Commit" String="squash" />
|
||||
<keyword attribute="Fixup" context="Commit" String="fixup" />
|
||||
<keyword attribute="Exec" context="Commit" String="exec" />
|
||||
</context>
|
||||
<context attribute="Commit" lineEndContext="#pop" name="Commit">
|
||||
<RegExpr attribute="Commit" context="Summary" String="[0-9a-f]{7,40}" />
|
||||
</context>
|
||||
<context attribute="Summary" lineEndContext="#pop" name="Summary" />
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Comment">
|
||||
<RegExpr attribute="Commit" context="#stay" String="[0-9a-f]{7,40}" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||
<itemData name="Pick" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Reword" defStyleNum="dsDecVal"/>
|
||||
<itemData name="Edit" defStyleNum="dsDataType"/>
|
||||
<itemData name="Squash" defStyleNum="dsChar"/>
|
||||
<itemData name="Fixup" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Exec" defStyleNum="dsOthers"/>
|
||||
<itemData name="Commit" defStyleNum="dsFunction"/>
|
||||
<itemData name="Summary" defStyleNum="dsString"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#"/>
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,888 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Gnuplot" version="0.2" kateversion="2.5" section="Scripts" extensions="*.gnuplot;*.gp;*.gplt" casesensitive="1" >
|
||||
<highlighting>
|
||||
<list name="set_no_keywords">
|
||||
<item> noarrow </item>
|
||||
<item> noborder </item>
|
||||
<item> noclabel </item>
|
||||
<item> noclip </item>
|
||||
<item> nocontour </item>
|
||||
<item> nodgrid3d </item>
|
||||
<item> nogrid </item>
|
||||
<item> nohidden3d </item>
|
||||
<item> nokey </item>
|
||||
<item> nolabel </item>
|
||||
<item> nolinestyle </item>
|
||||
<item> nomultiplot </item>
|
||||
<item> nomx2tics </item>
|
||||
<item> nomxtics </item>
|
||||
<item> nomy2tics </item>
|
||||
<item> nomytics </item>
|
||||
<item> nomztics </item>
|
||||
<item> nooffsets </item>
|
||||
<item> noparametric </item>
|
||||
<item> nopolar </item>
|
||||
<item> nosurface </item>
|
||||
<item> notimestamp </item>
|
||||
<item> nox2dtics </item>
|
||||
<item> nox2mtics </item>
|
||||
<item> nox2tics </item>
|
||||
<item> nox2zeroaxis </item>
|
||||
<item> noxdtics </item>
|
||||
<item> noxmtics </item>
|
||||
<item> noxtics </item>
|
||||
<item> noxzeroaxis </item>
|
||||
<item> noy2dtics </item>
|
||||
<item> noy2mtics </item>
|
||||
<item> noy2tics </item>
|
||||
<item> noy2zeroaxis </item>
|
||||
<item> noydtics </item>
|
||||
<item> noymtics </item>
|
||||
<item> noytics </item>
|
||||
<item> noyzeroaxis </item>
|
||||
<item> nozdtics </item>
|
||||
<item> nozeroaxis </item>
|
||||
<item> nozmtics </item>
|
||||
<item> noztics </item>
|
||||
</list>
|
||||
|
||||
<list name="set_simple_keywords">
|
||||
<item> grid </item>
|
||||
<item> parametric </item>
|
||||
</list>
|
||||
|
||||
<list name="showkeywords">
|
||||
<item> angles </item>
|
||||
<item> arrow </item>
|
||||
<item> bar </item>
|
||||
<item> border </item>
|
||||
<item> boxwidth </item>
|
||||
<item> clip </item>
|
||||
<item> cntrparam </item>
|
||||
<item> data </item>
|
||||
<item> dgrid3d </item>
|
||||
<item> dummy </item>
|
||||
<item> encoding </item>
|
||||
<item> format </item>
|
||||
<item> function </item>
|
||||
<item> functions </item>
|
||||
<item> hidden3d </item>
|
||||
<item> isosamples </item>
|
||||
<item> label </item>
|
||||
<item> linestyle </item>
|
||||
<item> mapping </item>
|
||||
<item> margin </item>
|
||||
<item> mx2tics </item>
|
||||
<item> mxtics </item>
|
||||
<item> my2tics </item>
|
||||
<item> mytics </item>
|
||||
<item> mztics </item>
|
||||
<item> offsets </item>
|
||||
<item> origin </item>
|
||||
<item> parametric </item>
|
||||
<item> pointsize </item>
|
||||
<item> polar </item>
|
||||
<item> samples </item>
|
||||
<item> size </item>
|
||||
<item> data style </item>
|
||||
<item> function style </item>
|
||||
<item> surface </item>
|
||||
<item> tics </item>
|
||||
<item> ticscale </item>
|
||||
<item> ticslevel </item>
|
||||
<item> timefmt </item>
|
||||
<item> timestamp </item>
|
||||
<item> variables </item>
|
||||
<item> version </item>
|
||||
<item> view </item>
|
||||
<item> x2data </item>
|
||||
<item> x2dtics </item>
|
||||
<item> x2label </item>
|
||||
<item> x2mtics </item>
|
||||
<item> x2tics </item>
|
||||
<item> x2zeroaxis </item>
|
||||
<item> xdata </item>
|
||||
<item> xdtics </item>
|
||||
<item> xmtics </item>
|
||||
<item> xtics </item>
|
||||
<item> xzeroaxis </item>
|
||||
<item> y2data </item>
|
||||
<item> y2dtics </item>
|
||||
<item> y2mtics </item>
|
||||
<item> y2tics </item>
|
||||
<item> y2zeroaxis </item>
|
||||
<item> ydata </item>
|
||||
<item> ydtics </item>
|
||||
<item> ymtics </item>
|
||||
<item> ytics </item>
|
||||
<item> yzeroaxis </item>
|
||||
<item> zdata </item>
|
||||
<item> zdtics </item>
|
||||
<item> zero </item>
|
||||
<item> zeroaxis </item>
|
||||
<item> zmtics </item>
|
||||
<item> ztics </item>
|
||||
</list>
|
||||
|
||||
<list name="set_label_keywords">
|
||||
<item> clabel </item>
|
||||
<item> title </item>
|
||||
<item> xlabel </item>
|
||||
<item> x2label </item>
|
||||
<item> ylabel </item>
|
||||
<item> y2label </item>
|
||||
<item> zlabel </item>
|
||||
</list>
|
||||
|
||||
<list name="set_range_keywords">
|
||||
<item> rrange </item>
|
||||
<item> trange </item>
|
||||
<item> urange </item>
|
||||
<item> vrange </item>
|
||||
<item> x2range </item>
|
||||
<item> xrange </item>
|
||||
<item> y2range </item>
|
||||
<item> yrange </item>
|
||||
<item> zrange </item>
|
||||
</list>
|
||||
|
||||
<list name="set_contour_keywords">
|
||||
<item> base </item>
|
||||
<item> surface </item>
|
||||
<item> both </item>
|
||||
</list>
|
||||
|
||||
<list name="set_key_keywords">
|
||||
<item> left </item>
|
||||
<item> right </item>
|
||||
<item> top </item>
|
||||
<item> bottom </item>
|
||||
<item> outside </item>
|
||||
<item> below </item>
|
||||
<item> Left </item>
|
||||
<item> Right </item>
|
||||
<item> noreverse </item>
|
||||
<item> reverse </item>
|
||||
</list>
|
||||
|
||||
<list name="set_scale_keywords">
|
||||
<item> noautoscale </item>
|
||||
<item> autoscale </item>
|
||||
<item> nologscale </item>
|
||||
</list>
|
||||
|
||||
<list name="set_scale_axes_keywords">
|
||||
<item> x </item>
|
||||
<item> y </item>
|
||||
<item> z </item>
|
||||
<item> x2 </item>
|
||||
<item> y2 </item>
|
||||
<item> xy </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_keywords">
|
||||
<item> aed512 </item>
|
||||
<item> aed767 </item>
|
||||
<item> aifm </item>
|
||||
<item> bitgraph </item>
|
||||
<item> cgm </item>
|
||||
<item> dumb </item>
|
||||
<item> dxf </item>
|
||||
<item> dxy800a </item>
|
||||
<item> eepic </item>
|
||||
<item> epson-180dpi </item>
|
||||
<item> epson-60dpi </item>
|
||||
<item> epson-lx800 </item>
|
||||
<item> excl </item>
|
||||
<item> gpic </item>
|
||||
<item> hp2623a </item>
|
||||
<item> hp2648 </item>
|
||||
<item> kc-tek40xx </item>
|
||||
<item> km-tek40xx </item>
|
||||
<item> kyo </item>
|
||||
<item> mf </item>
|
||||
<item> mif </item>
|
||||
<item> mp </item>
|
||||
<item> nec-cp6 </item>
|
||||
<item> okidata </item>
|
||||
<item> prescribe </item>
|
||||
<item> pstricks </item>
|
||||
<item> qms </item>
|
||||
<item> regis </item>
|
||||
<item> rgip </item>
|
||||
<item> selanar </item>
|
||||
<item> starc </item>
|
||||
<item> table </item>
|
||||
<item> tandy-60dpi </item>
|
||||
<item> tek40xx </item>
|
||||
<item> tek410x </item>
|
||||
<item> texdraw </item>
|
||||
<item> uniplex </item>
|
||||
<item> unixplot </item>
|
||||
<item> vttek </item>
|
||||
<item> vx384 </item>
|
||||
<item> x11 </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_ps_keywords">
|
||||
<item> landscape </item>
|
||||
<item> portrait </item>
|
||||
<item> eps </item>
|
||||
<item> default </item>
|
||||
<item> enhanced </item>
|
||||
<item> noenhanced </item>
|
||||
<item> solid </item>
|
||||
<item> dashed </item>
|
||||
<item> defaultplex </item>
|
||||
<item> simplex </item>
|
||||
<item> duplex </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_latex_keywords">
|
||||
<item> courier </item>
|
||||
<item> roman </item>
|
||||
<item> default </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_pstex_keywords">
|
||||
<item> color </item>
|
||||
<item> monochrome </item>
|
||||
<item> dashed </item>
|
||||
<item> rotate </item>
|
||||
<item> norotate </item>
|
||||
<item> auxfile </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_png_keywords">
|
||||
<item> transparent </item>
|
||||
<item> notransparent </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_pbm_keywords">
|
||||
<item> small </item>
|
||||
<item> medium </item>
|
||||
<item> large </item>
|
||||
<item> monochrome </item>
|
||||
<item> gray </item>
|
||||
<item> color </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_tgif_keywords">
|
||||
<item> landscape </item>
|
||||
<item> portrait </item>
|
||||
<item> solid </item>
|
||||
<item> dashed </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_fig_keywords">
|
||||
<item> monochrome </item>
|
||||
<item> color </item>
|
||||
<item> small </item>
|
||||
<item> big </item>
|
||||
<item> pointsmax </item>
|
||||
<item> landscape </item>
|
||||
<item> portrait </item>
|
||||
<item> metric </item>
|
||||
<item> inches </item>
|
||||
<item> fontsize </item>
|
||||
<item> size </item>
|
||||
<item> thickness </item>
|
||||
<item> depth </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_corel_keywords">
|
||||
<item> monochrome </item>
|
||||
<item> color </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_hppj_keywords">
|
||||
<item> FNT5X9 </item>
|
||||
<item> FNT9X17 </item>
|
||||
<item> FNT13X25 </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_pcl5_keywords">
|
||||
<item> mode </item>
|
||||
<item> landscape </item>
|
||||
<item> portrait </item>
|
||||
<item> monochrome </item>
|
||||
<item> color </item>
|
||||
<item> solid </item>
|
||||
<item> dashed </item>
|
||||
<item> letter </item>
|
||||
<item> legal </item>
|
||||
<item> noextended </item>
|
||||
<item> extended </item>
|
||||
<item> stick </item>
|
||||
<item> univers </item>
|
||||
<item> cg_times </item>
|
||||
<item> zapf_dingbats </item>
|
||||
<item> antique_olive </item>
|
||||
<item> arial </item>
|
||||
<item> courier </item>
|
||||
<item> garamond_antigua </item>
|
||||
<item> letter_gothic </item>
|
||||
<item> cg_omega </item>
|
||||
<item> albertus </item>
|
||||
<item> times_new_roman </item>
|
||||
<item> clarendon </item>
|
||||
<item> coronet </item>
|
||||
<item> marigold </item>
|
||||
<item> truetype_symbols </item>
|
||||
<item> wingdings </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_hpdj_keywords">
|
||||
<item> 75 </item>
|
||||
<item> 100 </item>
|
||||
<item> 150 </item>
|
||||
<item> 300 </item>
|
||||
</list>
|
||||
|
||||
<list name="set_terminal_imagen_keywords">
|
||||
<item> landscape </item>
|
||||
<item> portrait </item>
|
||||
</list>
|
||||
|
||||
<list name="plot_smooth_keywords">
|
||||
<item> acsplines </item>
|
||||
<item> bezier </item>
|
||||
<item> csplines </item>
|
||||
<item> sbezier </item>
|
||||
<item> unique </item>
|
||||
</list>
|
||||
|
||||
<list name="plot_axes_keywords">
|
||||
<item> x1y1 </item>
|
||||
<item> x2y1 </item>
|
||||
<item> x1y2 </item>
|
||||
<item> x2y2 </item>
|
||||
</list>
|
||||
|
||||
<list name="splot_style_keywords">
|
||||
<item> lines </item>
|
||||
<item> l </item>
|
||||
<item> points </item>
|
||||
<item> p </item>
|
||||
<item> linespoints </item>
|
||||
<item> linesp </item>
|
||||
<item> impulses </item>
|
||||
<item> i </item>
|
||||
<item> dots </item>
|
||||
<item> d </item>
|
||||
<item> steps </item>
|
||||
<item> fsteps </item>
|
||||
<item> histeps </item>
|
||||
</list>
|
||||
|
||||
<list name="plot_style_keywords">
|
||||
<item> errorbars </item>
|
||||
<item> xerrorbars </item>
|
||||
<item> yerrorbars </item>
|
||||
<item> xyerrorbars </item>
|
||||
<item> boxes </item>
|
||||
<item> boxerrorbars </item>
|
||||
<item> boxxyerrorbars </item>
|
||||
<item> financebars </item>
|
||||
<item> candlesticks </item>
|
||||
<item> vector </item>
|
||||
</list>
|
||||
|
||||
<list name="plot_astyle_keywords">
|
||||
<item> linestyle </item>
|
||||
<item> ls </item>
|
||||
<item> linetype </item>
|
||||
<item> lt </item>
|
||||
<item> linewidth </item>
|
||||
<item> lw </item>
|
||||
<item> pointtype </item>
|
||||
<item> pt </item>
|
||||
<item> pointsize </item>
|
||||
<item> ps </item>
|
||||
</list>
|
||||
|
||||
<list name="simple_commands">
|
||||
<item> replot </item>
|
||||
<item> exit </item>
|
||||
<item> quit </item>
|
||||
<item> clear </item>
|
||||
<item> reset </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Normal Text" name="default" lineEndContext="#stay">
|
||||
<RegExpr attribute="Keyword" context="#stay" String="^#!\/.*" />
|
||||
<StringDetect attribute="Keyword" context="show" String="show" />
|
||||
<StringDetect attribute="Keyword" context="set" String="set" />
|
||||
<StringDetect attribute="Keyword" context="plot" String="plot" />
|
||||
<StringDetect attribute="Keyword" context="splot" String="splot" />
|
||||
<StringDetect attribute="Keyword" context="pause" String="pause"/>
|
||||
<keyword attribute="Keyword" context="#stay" String="simple_commands"/>
|
||||
<StringDetect attribute="Keyword" context="pause_1" String="load"/>
|
||||
<StringDetect attribute="Keyword" context="save" String="save"/>
|
||||
<RegExpr attribute="Comment" context="comment" String="#" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="pause" lineEndContext="default">
|
||||
<Int attribute="Decimal" context="pause_1" />
|
||||
<Detect2Chars attribute="Decimal" context="pause_1" char="-" char1="1" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="pause_1" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="label_string2" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="save" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="save1" String="functions"/>
|
||||
<StringDetect attribute="Funktion" context="save1" String="var"/>
|
||||
<StringDetect attribute="Funktion" context="save1" String="variables"/>
|
||||
<StringDetect attribute="Funktion" context="save1" String="set"/>
|
||||
<DetectChar attribute="Data Type" context="label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="label_string2" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="save1" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="label_string2" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="show" lineEndContext="default">
|
||||
<keyword attribute="Funktion" context="default" String="showkeywords" />
|
||||
<keyword attribute="Funktion" context="default" String="set_label_keywords" />
|
||||
<keyword attribute="Funktion" context="default" String="set_simple_keywords" />
|
||||
<keyword attribute="Funktion" context="default" String="set_range_keywords" />
|
||||
<StringDetect attribute="Funktion" context="default" String="contour" />
|
||||
<StringDetect attribute="Funktion" context="default" String="terminal" />
|
||||
<StringDetect attribute="Funktion" context="default" String="term" />
|
||||
<StringDetect attribute="Funktion" context="default" String="all" />
|
||||
<StringDetect attribute="Funktion" context="default" String="autoscale" />
|
||||
<StringDetect attribute="Funktion" context="default" String="logscale" />
|
||||
<StringDetect attribute="Funktion" context="default" String="key" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set" lineEndContext="default">
|
||||
<keyword attribute="Funktion" context="set_2" String="showkeywords" />
|
||||
<keyword attribute="Funktion" context="set_label" String="set_label_keywords" />
|
||||
<keyword attribute="Funktion" context="set_range" String="set_range_keywords" />
|
||||
<keyword attribute="Funktion" context="default" String="set_simple_keywords" />
|
||||
<keyword attribute="Funktion" context="default" String="set_no_keywords" />
|
||||
<keyword attribute="Funktion" context="set_autoscale" String="set_scale_keywords" /> <StringDetect attribute="Funktion" context="set_contour" String="contour" />
|
||||
<StringDetect attribute="Funktion" context="set_terminal" String="terminal" />
|
||||
<StringDetect attribute="Funktion" context="set_terminal" String="term" />
|
||||
<StringDetect attribute="Funktion" context="set_logscale" String="logscale" />
|
||||
<StringDetect attribute="Funktion" context="set_key" String="key" />
|
||||
</context>
|
||||
|
||||
<context attribute="Data Type" name="set_2" lineEndContext="default" />
|
||||
|
||||
<context attribute="Normal Text" name="set_label" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="label_string2" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="label_string1" lineEndContext="#stay">
|
||||
<DetectChar attribute="Data Type" context="default" char="'"/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="label_string2" lineEndContext="#stay">
|
||||
<DetectChar attribute="Data Type" context="default" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_range" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="set_range_1" char="["/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="set_range_1" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="default" char="]"/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_key" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_key_keywords" />
|
||||
<StringDetect attribute="Funktion" context="set_key_1" String="samplen" />
|
||||
<StringDetect attribute="Funktion" context="set_key_2" String="spacing" />
|
||||
<StringDetect attribute="Funktion" context="set_key_3" String="with" />
|
||||
<StringDetect attribute="Funktion" context="set_key_4" String="title" />
|
||||
<StringDetect attribute="Funktion" context="default" String="nobox" />
|
||||
<StringDetect attribute="Funktion" context="set_key_5" String="box" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_1" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="set_key_11" />
|
||||
<Float attribute="Data Type" context="set_key_11" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_11" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="set_key_2" String="spacing" />
|
||||
<StringDetect attribute="Funktion" context="set_key_3" String="with" />
|
||||
<StringDetect attribute="Funktion" context="set_key_4" String="title" />
|
||||
<StringDetect attribute="Funktion" context="default" String="nobox" />
|
||||
<StringDetect attribute="Funktion" context="set_key_5" String="box" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_2" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="set_key_21" />
|
||||
<Float attribute="Data Type" context="set_key_21" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_21" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="set_key_3" String="with" />
|
||||
<StringDetect attribute="Funktion" context="set_key_4" String="title" />
|
||||
<StringDetect attribute="Funktion" context="default" String="nobox" />
|
||||
<StringDetect attribute="Funktion" context="set_key_5" String="box" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_3" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="set_key_31" />
|
||||
<Float attribute="Data Type" context="set_key_31" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_31" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="set_key_4" String="title" />
|
||||
<StringDetect attribute="Funktion" context="default" String="nobox" />
|
||||
<StringDetect attribute="Funktion" context="set_key_5" String="box" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_4" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="set_key_41" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="set_key_41" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="set_key_42" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="set_key_42" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="default" String="nobox" />
|
||||
<StringDetect attribute="Funktion" context="set_key_5" String="box" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_key_5" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="plot_astyle_keywords" />
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_contour" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="default" String="set_contour_keywords" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_autoscale" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="set_autoscale_1" String="set_scale_axes_keywords"/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_autoscale_1" lineEndContext="default">
|
||||
<StringDetect attribute="Data Type" context="default" String="min" />
|
||||
<StringDetect attribute="Data Type" context="default" String="max" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_logscale" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_scale_axes_keywords"/>
|
||||
<Int attribute="Data Type" context="default" />
|
||||
<Float attribute="Data Type" context="default" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_terminal" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="default" String="set_terminal_keywords" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_ps" String="postscript" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_ps" String="post" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_latex" String="latex" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_latex" String="emtex" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_pstex" String="pslatex" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_pstex" String="pstex" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_tpic" String="tpic" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_png" String="png" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_pbm" String="pbm" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_tgif" String="tgif" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_fig" String="fig" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_corel" String="corel" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_hpgl" String="hpgl" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_pcl5" String="pcl5" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_hpdj" String="hpdj" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_hpdj" String="hpljii" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_hp500c" String="hp500c" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_hppj" String="hppj" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_imagen" String="imagen" />
|
||||
<StringDetect attribute="Data Type" context="set_terminal_tkcanvas" String="tkcanvas" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="set_terminal_ps" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_ps_keywords" />
|
||||
<Int attribute="Decimal" context="default" />
|
||||
<DetectChar attribute="Data Type" context="set_terminal_ps_font" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="set_terminal_ps_font" lineEndContext="#stay">
|
||||
<DetectChar attribute="Data Type" context="#pop" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_latex" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_latex_keywords" />
|
||||
<Int attribute="Decimal" context="default" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_png" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_png_keywords" />
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_pbm_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_pbm" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_pbm_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_pstex" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_pstex_keywords" />
|
||||
<Int attribute="Decimal" context="default" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_tgif" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_tgif_keywords" />
|
||||
<Int attribute="Decimal" context="default" />
|
||||
<DetectChar attribute="Data Type" context="set_terminal_ps_font" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_tpic" lineEndContext="default">
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<Float attribute="Decimal" context="#stay" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_fig" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_fig_keywords" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_corel" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_corel_keywords" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<Float attribute="Decimal" context="#stay" />
|
||||
<DetectChar attribute="Data Type" context="set_terminal_ps_font" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_hpgl" lineEndContext="default">
|
||||
<StringDetect attribute="Data Type" context="default" String="eject" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_pcl5" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_pcl5_keywords" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_hpdj" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_hpdj_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_hp500c" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_hpdj_keywords" />
|
||||
<StringDetect attribute="Data Type" context="#stay" String="color" />
|
||||
<StringDetect attribute="Data Type" context="#stay" String="compression" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_hppj" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="default" String="set_terminal_hppj_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_imagen" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="set_terminal_imagen_keywords" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<DetectChar attribute="Decimal" context="#stay" char="["/>
|
||||
<DetectChar attribute="Decimal" context="default" char="]"/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="set_terminal_tkcanvas" lineEndContext="default">
|
||||
<StringDetect attribute="Data Type" context="#stay" String="perltk" />
|
||||
<StringDetect attribute="Data Type" context="#stay" String="interactive" />
|
||||
</context>
|
||||
|
||||
<context attribute="FloatFunc" name="plot" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="plot_range" char="["/>
|
||||
<DetectChar attribute="String" context="plot_string1" char="'"/>
|
||||
<DetectChar attribute="String" context="plot_string2" char="""/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String="axes"/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String=" a "/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w \"/>
|
||||
<DetectChar attribute="Keyword" context="#stay" char=","/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="plot_range" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="#pop" char="]"/>
|
||||
</context>
|
||||
|
||||
<context attribute="String" name="plot_string1" lineEndContext="default">
|
||||
<DetectChar attribute="String" context="plot_string_end" char="'"/>
|
||||
</context>
|
||||
<context attribute="String" name="plot_string2" lineEndContext="default">
|
||||
<DetectChar attribute="String" context="plot_string_end" char="""/>
|
||||
</context>
|
||||
<context attribute="String" name="plot_string_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="plot_index" String="index"/>
|
||||
<StringDetect attribute="Funktion" context="plot_using" String="using"/>
|
||||
<StringDetect attribute="Funktion" context="plot_using" String=" u "/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String="smooth"/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String=" s "/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String="axes"/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String=" a "/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_using" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Data Type" context="#stay" char=":"/>
|
||||
<StringDetect attribute="Funktion" context="plot_index" String="index"/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String="smooth"/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String=" s "/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String="axes"/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String=" a "/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_index" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Data Type" context="#stay" char=":"/>
|
||||
<StringDetect attribute="Funktion" context="plot_using" String="using"/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String="smooth"/>
|
||||
<StringDetect attribute="Funktion" context="plot_smooth" String=" s "/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String="axes"/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String=" a "/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_smooth" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="plot_smooth_end" String="plot_smooth_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="plot_smooth_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String="axes"/>
|
||||
<StringDetect attribute="Funktion" context="plot_axes" String=" a "/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_axes" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="plot_axes_end" String="plot_axes_keywords" />
|
||||
</context>
|
||||
<context attribute="Normal Text" name="plot_axes_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="plot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="plot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="plot_label_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_title" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="plot_label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="plot_label_string2" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="plot_label_string1" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="plot_label_end" char="'"/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="plot_label_string2" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="plot_label_end" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="plot_label_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="plot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="plot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_with" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="plot_with_1" String="plot_style_keywords" />
|
||||
<keyword attribute="Data Type" context="plot_with_1" String="splot_style_keywords" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="plot_with_1" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="#stay" String="plot_astyle_keywords" />
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Keyword" context="plot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="FloatFunc" name="splot" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="plot_range" char="["/>
|
||||
<DetectChar attribute="String" context="splot_string1" char="'"/>
|
||||
<DetectChar attribute="String" context="splot_string2" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="String" name="splot_string1" lineEndContext="default">
|
||||
<DetectChar attribute="String" context="splot_string_end" char="'"/>
|
||||
</context>
|
||||
<context attribute="String" name="splot_string2" lineEndContext="default">
|
||||
<DetectChar attribute="String" context="splot_string_end" char="""/>
|
||||
</context>
|
||||
<context attribute="String" name="splot_string_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="#stay" String="binary"/>
|
||||
<StringDetect attribute="Funktion" context="#stay" String="matrix"/>
|
||||
<StringDetect attribute="Funktion" context="splot_index" String="index"/>
|
||||
<StringDetect attribute="Funktion" context="splot_using" String="using"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="splot_title_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="splot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="splot_using" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Data Type" context="#stay" char=":"/>
|
||||
<StringDetect attribute="Funktion" context="splot_index" String="index"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="splot_title_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="splot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="splot_index" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Data Type" context="#stay" char=":"/>
|
||||
<StringDetect attribute="Funktion" context="splot_using" String="using"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String="title"/>
|
||||
<StringDetect attribute="Funktion" context="splot_title" String=" t "/>
|
||||
<StringDetect attribute="Funktion" context="splot_title_end" String="notitle"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="splot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="splot_title" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="splot_label_string1" char="'"/>
|
||||
<DetectChar attribute="Data Type" context="splot_label_string2" char="""/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="splot_label_string1" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="splot_title_end" char="'"/>
|
||||
</context>
|
||||
<context attribute="Data Type" name="splot_label_string2" lineEndContext="default">
|
||||
<DetectChar attribute="Data Type" context="splot_title_end" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" name="splot_title_end" lineEndContext="default">
|
||||
<StringDetect attribute="Funktion" context="splot_with" String="with"/>
|
||||
<StringDetect attribute="Funktion" context="splot_with" String=" w "/>
|
||||
<DetectChar attribute="Keyword" context="splot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="splot_with" lineEndContext="default">
|
||||
<keyword attribute="Data Type" context="splot_with_1" String="splot_style_keywords" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" name="splot_with_1" lineEndContext="default">
|
||||
<Int attribute="Data Type" context="#stay" />
|
||||
<DetectChar attribute="Keyword" context="splot" char=","/>
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" name="comment" lineEndContext="default" />
|
||||
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Funktion" defStyleNum="dsOthers" />
|
||||
<itemData name="Data Type" defStyleNum="dsDataType" />
|
||||
<itemData name="String" defStyleNum="dsBaseN" />
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" />
|
||||
<itemData name="FloatFunc" defStyleNum="dsFloat" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
|
||||
</language>
|
||||
|
@ -0,0 +1,523 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Haml" version="1.2" kateversion="2.5" section="Markup"
|
||||
extensions="*.haml"
|
||||
author="Cies Breijs (cies_at_kde_nl)" license="LGPL"
|
||||
mimetype="text/x-haml">
|
||||
<!-- mimetype="text/x-haml" this might be a problem as is doesn't exist -->
|
||||
|
||||
<!-- learned and copied a lot from rhtml.xml -->
|
||||
<!-- ripped out some functionality from rhtml, like GDL, maybe put this back in some day... -->
|
||||
<!-- rhtml is rails specific, i ripped the rails helper keywords out as i'm a _merb_ guy... -->
|
||||
|
||||
<!-- 1.1: fixed many many many buggers, clearly shows how arbitrary the title '1.0' was -->
|
||||
|
||||
<!-- TODO: multi-line-based-on-indenting (comments, filters) don't work, mark more errors with error_hl_test.haml(?) (currently only unpaired spaces on indentation), give ruby code a little background, pipe character as a multiline splitter can use a little color (can it be escaped? "\|"), use hamls unittests for inspiration for better *_test.haml files -->
|
||||
|
||||
<highlighting>
|
||||
|
||||
<list name="keywords">
|
||||
<item> BEGIN </item>
|
||||
<item> END </item>
|
||||
<item> and </item>
|
||||
<item> begin </item>
|
||||
<item> break </item>
|
||||
<item> case </item>
|
||||
<item> defined? </item>
|
||||
<item> do </item>
|
||||
<item> else </item>
|
||||
<item> elsif </item>
|
||||
<item> end </item>
|
||||
<item> ensure </item>
|
||||
<item> for </item>
|
||||
<item> if </item>
|
||||
<item> in </item>
|
||||
<item> include </item>
|
||||
<item> next </item>
|
||||
<item> not </item>
|
||||
<item> or </item>
|
||||
<item> redo </item>
|
||||
<item> rescue </item>
|
||||
<item> retry </item>
|
||||
<item> return </item>
|
||||
<item> then </item>
|
||||
<item> unless </item>
|
||||
<item> until </item>
|
||||
<item> when </item>
|
||||
<item> while </item>
|
||||
<item> yield </item>
|
||||
</list>
|
||||
|
||||
<list name="access-control">
|
||||
<item> private_class_method </item>
|
||||
<item> private </item>
|
||||
<item> protected </item>
|
||||
<item> public_class_method </item>
|
||||
<item> public </item>
|
||||
</list>
|
||||
|
||||
<list name="attribute-definitions">
|
||||
<item> attr_reader </item>
|
||||
<item> attr_writer </item>
|
||||
<item> attr_accessor </item>
|
||||
</list>
|
||||
|
||||
<list name="definitions">
|
||||
<item> alias </item>
|
||||
<item> module </item>
|
||||
<item> class </item>
|
||||
<item> def </item>
|
||||
<item> undef </item>
|
||||
</list>
|
||||
|
||||
<list name="pseudo-variables">
|
||||
<item> self </item>
|
||||
<item> super </item>
|
||||
<item> nil </item>
|
||||
<item> false </item>
|
||||
<item> true </item>
|
||||
<item> caller </item>
|
||||
<item> __FILE__ </item>
|
||||
<item> __LINE__ </item>
|
||||
</list>
|
||||
|
||||
<list name="default-globals">
|
||||
<item> $stdout </item>
|
||||
<item> $defout </item>
|
||||
<item> $stderr </item>
|
||||
<item> $deferr </item>
|
||||
<item> $stdin </item>
|
||||
</list>
|
||||
|
||||
<!-- Kernel module methods.
|
||||
NOTE: Methods ending in ? or !
|
||||
are included below as regexes.
|
||||
-->
|
||||
<list name="kernel-methods">
|
||||
<!-- backquote ` -->
|
||||
<item> abort </item>
|
||||
<item> at_exit </item>
|
||||
<item> autoload </item>
|
||||
<item> autoload? </item>
|
||||
<item> binding </item>
|
||||
<item> block_given? </item>
|
||||
<item> callcc </item>
|
||||
<item> caller </item>
|
||||
<item> catch </item>
|
||||
<item> chomp </item>
|
||||
<item> chomp! </item>
|
||||
<item> chop </item>
|
||||
<item> chop! </item>
|
||||
<item> eval </item>
|
||||
<item> exec </item>
|
||||
<item> exit </item>
|
||||
<item> exit! </item>
|
||||
<item> fail </item>
|
||||
<item> fork </item>
|
||||
<item> format </item>
|
||||
<item> getc </item>
|
||||
<item> gets </item>
|
||||
<item> global_variables </item>
|
||||
<item> gsub </item>
|
||||
<item> gsub! </item>
|
||||
<item> iterator? </item>
|
||||
<item> lambda </item>
|
||||
<item> load </item>
|
||||
<item> local_variables </item>
|
||||
<item> loop </item>
|
||||
<item> method_missing </item>
|
||||
<item> open </item>
|
||||
<item> p </item>
|
||||
<item> print </item>
|
||||
<item> printf </item>
|
||||
<item> proc </item>
|
||||
<item> putc </item>
|
||||
<item> puts </item>
|
||||
<item> raise </item>
|
||||
<item> rand </item>
|
||||
<item> readline </item>
|
||||
<item> readlines </item>
|
||||
<item> require </item>
|
||||
<item> scan </item>
|
||||
<item> select </item>
|
||||
<item> set_trace_func </item>
|
||||
<item> sleep </item>
|
||||
<item> split </item>
|
||||
<item> sprintf </item>
|
||||
<item> srand </item>
|
||||
<item> sub </item>
|
||||
<item> sub! </item>
|
||||
<item> syscall </item>
|
||||
<item> system </item>
|
||||
<item> test </item>
|
||||
<item> throw </item>
|
||||
<item> trace_var </item>
|
||||
<item> trap </item>
|
||||
<item> untrace_var </item>
|
||||
<item> warn </item>
|
||||
</list>
|
||||
|
||||
<list name="attention">
|
||||
<item> TODO </item>
|
||||
<item> FIXME </item>
|
||||
<item> NOTE </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="normal" >
|
||||
<RegExpr attribute="Error" firstNonSpace="false" context="#stay" String="^[ ]{1}([ ]{2})*[^ ]+" />
|
||||
<RegExpr attribute="Doctype" context="#stay" String="^!!!.*$"/>
|
||||
|
||||
<!-- 2 failed attempts to implement multiline comments -->
|
||||
|
||||
<!-- <RegExpr attribute="Comment" String="/.*$" context="#stay" beginRegion="comment0" column="0"/>
|
||||
<RegExpr attribute="Comment" String="[^ /]" context="#stay" endRegion="comment0" column="0"/>
|
||||
|
||||
<RegExpr attribute="Comment" String="^[ ]{2}/.*$" context="#stay" beginRegion="comment2" column="0"/>
|
||||
<RegExpr attribute="Comment" String="^[^ ]{4}" context="#stay" endRegion="comment2" column="0"/>-->
|
||||
|
||||
<!-- <RegExpr attribute="Comment" context="comment0" String="^/.*" />
|
||||
<RegExpr attribute="Comment" context="comment2" String="^[ ]{2}/.*" />
|
||||
<RegExpr attribute="Comment" context="comment4" String="^[ ]{4}/.*" />-->
|
||||
|
||||
<DetectSpaces/>
|
||||
<DetectChar attribute="Escaped Text" context="escaped" char="\" />
|
||||
<DetectChar attribute="Comment" context="comment" char="/" />
|
||||
|
||||
<Detect2Chars attribute="Keyword" context="unquoted" char="=" char1="=" />
|
||||
<DetectChar attribute="Keyword" context="rubysourceline" char="=" />
|
||||
<DetectChar attribute="Keyword" context="rubysourceline" char="-" />
|
||||
<DetectChar attribute="Keyword" context="rubysourceline" char="~" />
|
||||
<Detect2Chars attribute="Keyword" context="rubysourceline" char="!" char1="=" />
|
||||
<Detect2Chars attribute="Keyword" context="rubysourceline" char="&" char1="=" />
|
||||
|
||||
<DetectChar attribute="Operator" context="array" char="[" beginRegion="Array" />
|
||||
<DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
|
||||
|
||||
<RegExpr attribute="Filter" firstNonSpace="true" context="#stay" String=":[a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Tag" firstNonSpace="true" context="#stay" String="%[a-zA-Z_][a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Div Id" firstNonSpace="true" context="#stay" String="#[a-zA-Z_][a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Div Class" firstNonSpace="true" context="#stay" String="\.[a-zA-Z_][a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Element Id" context="#stay" String="#[a-zA-Z_][a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Element Class" context="#stay" String="\.[a-zA-Z_][a-zA-Z0-9_\-]*" />
|
||||
<RegExpr attribute="Entity" context="#stay" String="&[a-zA-Z]+;" />
|
||||
</context>
|
||||
|
||||
<context attribute="Array" lineEndContext="#stay" name="array">
|
||||
<DetectSpaces/>
|
||||
<DetectChar attribute="Operator" context="#pop" char="]" endRegion="Array" />
|
||||
<IncludeRules context="rubysourceline" />
|
||||
</context>
|
||||
|
||||
<context attribute="Hash" lineEndContext="#stay" name="hash">
|
||||
<DetectSpaces/>
|
||||
<DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" />
|
||||
<IncludeRules context="rubysourceline" />
|
||||
</context>
|
||||
|
||||
<context attribute="Unquoted String" lineEndContext="#pop" name="unquoted">
|
||||
<IncludeRules context="Quoted String" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="string">
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="String" context="#pop" char="'" endRegion="String" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="stringx">
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="String" context="#pop" char=""" endRegion="String" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="comment0">
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
<!-- <RegExpr attribute="Comment" context="#pop" String="^[^/ ]" endRegion="comment" /> attempt for multiline comments -->
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="comment2">
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
<RegExpr attribute="Comment" context="#pop" String="^[ ]{2}[^ /]" endRegion="comment" />
|
||||
</context>
|
||||
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="comment">
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
|
||||
</context>
|
||||
|
||||
<context attribute="Escaped Text" lineEndContext="#pop" name="escaped">
|
||||
</context>
|
||||
|
||||
<context name="rubysourceline" attribute="Ruby embedded in haml" lineEndContext="#pop">
|
||||
<IncludeRules context="rubysource" />
|
||||
</context>
|
||||
|
||||
<context name="rubysource" attribute="Ruby embedded in haml" lineEndContext="#stay">
|
||||
<!-- ruby ignores newline after \ -->
|
||||
<LineContinue attribute="Ruby Normal Text" context="Line Continue"/>
|
||||
|
||||
<!-- "def" - "end" blocks -->
|
||||
<!-- check for statement modifiers with regexes -->
|
||||
<RegExpr attribute="Keyword" String="(\=|\(|\[|\{)\s*(if|unless|while|until)\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block" firstNonSpace="true"/>
|
||||
<RegExpr attribute="Keyword" String="\;\s*(while|until)\b(?!.*\bdo\b)" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" beginRegion="def block" firstNonSpace="true"/>
|
||||
<RegExpr attribute="Keyword" String="\;\s*(if|unless)\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bclass\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bmodule\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bbegin\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bfor\b(?!.*\bdo\b)" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bcase\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bdo\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bdef\b" context="#stay" beginRegion="def block"/>
|
||||
<RegExpr attribute="Keyword" String="\bend\b" context="#stay" endRegion="def block"/>
|
||||
<!-- elsif/else close the current block and start a new one -->
|
||||
<RegExpr attribute="Keyword" String="(\b|^\s*)(else|elsif|rescue|ensure)(\s+|$)" context="#stay" endRegion="def block" beginRegion="def block"/>
|
||||
|
||||
<StringDetect attribute="Operator" String="..." context="#stay"/>
|
||||
<Detect2Chars attribute="Operator" char="." char1="." context="#stay"/>
|
||||
|
||||
<!-- marks a message (being sent, not defined) -->
|
||||
<RegExpr attribute="Message" String="\.[_a-z][_a-zA-Z0-9]*(\?|\!|\b)" context="#stay"/>
|
||||
|
||||
<!-- Check for "ASCII code operator". e.g.: ?a -->
|
||||
<RegExpr attribute="Dec" String="\s\?(\\M\-)?(\\C\-)?\\?\S" context="#stay"/>
|
||||
|
||||
<keyword attribute="Keyword" String="keywords" context="#stay"/>
|
||||
<keyword attribute="Attribute Definition" String="attribute-definitions" context="#stay"/>
|
||||
<keyword attribute="Access Control" String="access-control" context="#stay"/>
|
||||
<keyword attribute="Definition" String="definitions" context="#stay" />
|
||||
<keyword attribute="Pseudo variable" String="pseudo-variables" context="#stay"/>
|
||||
<keyword attribute="Default globals" String="default-globals" context="#stay"/>
|
||||
<keyword attribute="Kernel methods" String="kernel-methods" context="#stay"/>
|
||||
|
||||
<!-- (global) vars starting with $
|
||||
Match them before $_.
|
||||
-->
|
||||
<RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+" context="#stay"/>
|
||||
<RegExpr attribute="Global Variable" String="\$\-[a-zA-z_]\b" context="#stay"/>
|
||||
<!-- special-character globals -->
|
||||
<RegExpr attribute="Default globals" String="\$[\d_*`\!:?'/\\\-\&]" context="#stay"/>
|
||||
<RegExpr attribute="Global Constant" String="\b[_A-Z]+[A-Z_0-9]+\b" context="#stay"/>
|
||||
<!-- Generally a module or class name like "File", "MyModule_1", .. -->
|
||||
<RegExpr attribute="Constant" String="\b[A-Z]+_*([0-9]|[a-z])[_a-zA-Z0-9]*\b" context="#stay"/>
|
||||
|
||||
<RegExpr attribute="Hex" String="\b\-?0[xX][_0-9a-fA-F]+" context="#stay"/>
|
||||
<RegExpr attribute="Bin" String="\b\-?0[bB][_01]+" context="#stay"/>
|
||||
<RegExpr attribute="Octal" String="\b\-?0[1-7][_0-7]*" context="#stay"/>
|
||||
<RegExpr attribute="Float" String="\b\-?[0-9][0-9_]*\.[0-9][0-9_]*([eE]\-?[1-9][0-9]*(\.[0-9]*)?)?" context="#stay"/>
|
||||
<RegExpr attribute="Dec" String="\b\-?[1-9][0-9_]*\b" context="#stay"/>
|
||||
<Int attribute="Dec" context="#stay"/>
|
||||
<HlCChar attribute="Char" context="#stay"/>
|
||||
|
||||
<!-- Check for =begin before assignment operator. -->
|
||||
<StringDetect attribute="Blockcomment" String="=begin" context="Embedded documentation" beginRegion="comment block" column="0"/>
|
||||
|
||||
<DetectChar attribute="Operator" char="." context="#stay"/>
|
||||
<Detect2Chars attribute="Operator" char="&" char1="&" context="#stay"/>
|
||||
<Detect2Chars attribute="Operator" char="|" char1="|" context="#stay"/>
|
||||
<RegExpr attribute="Operator" String="\s[\?\:\%/]\s" context="#stay"/>
|
||||
<RegExpr attribute="Operator" String="[|&<>\^\+*~\-=]+" context="#stay"/>
|
||||
<!-- regexp hack -->
|
||||
<RegExpr attribute="Operator" String="\s!" context="#stay"/>
|
||||
<RegExpr attribute="Operator" String="/=\s" context="#stay" insensitive="0"/>
|
||||
<StringDetect attribute="Operator" String="%=" context="#stay" insensitive="0"/>
|
||||
<Detect2Chars attribute="Operator" char=":" char1=":" context="Member Access"/>
|
||||
|
||||
<RegExpr attribute="Symbol" String=":[a-zA-Z_][a-zA-Z0-9_]*" context="#stay"/>
|
||||
|
||||
<DetectChar attribute="String" char=""" context="Quoted String"/>
|
||||
<DetectChar attribute="Raw String" char="'" context="Apostrophed String"/>
|
||||
<DetectChar attribute="Command" char="`" context="Command String"/>
|
||||
|
||||
<StringDetect attribute="Normal Text" String="?#" context="#stay"/>
|
||||
|
||||
<RegExpr attribute="Comment" String="#\s*BEGIN.*$" context="#stay" beginRegion="marker" column="0"/>
|
||||
<RegExpr attribute="Comment" String="#\s*END.*$" context="#stay" endRegion="marker" column="0"/>
|
||||
<RegExpr attribute="Comment" String="#" context="General Comment"/>
|
||||
|
||||
<RegExpr attribute="Delimiter" String="[\[\]]+" context="#stay"/>
|
||||
<DetectChar attribute="Delimiter" char="{" context="#stay" beginRegion="def block"/>
|
||||
<DetectChar attribute="Delimiter" char="}" context="#stay" endRegion="def block"/>
|
||||
|
||||
<RegExpr attribute="Instance Variable" String="@[a-zA-Z_0-9]+" context="#stay"/>
|
||||
<RegExpr attribute="Class Variable" String="@@[a-zA-Z_0-9]+" context="#stay"/>
|
||||
|
||||
<!-- handle the different regular expression formats -->
|
||||
<DetectChar attribute="Regular Expression" char="/" context="RegEx 1"/>
|
||||
</context>
|
||||
|
||||
<context name="Line Continue" attribute="Ruby Normal Text" lineEndContext="#pop">
|
||||
<RegExpr attribute="Keyword" String="(while|until)\b(?!.*\bdo\b)" context="#stay" firstNonSpace="true"/>
|
||||
<RegExpr attribute="Keyword" String="(if|unless)\b" context="#stay" firstNonSpace="true"/>
|
||||
<IncludeRules context="rubysource"/>
|
||||
</context>
|
||||
|
||||
<context name="Quoted String" attribute="String" lineEndContext="#stay">
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\"" context="#stay"/>
|
||||
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
|
||||
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
|
||||
<!--HlCChar attribute="Char" context="#pop"/-->
|
||||
<DetectChar char=""" attribute="String" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Apostrophed String" attribute="Raw String" lineEndContext="#stay">
|
||||
<!-- <HlCChar attribute="Char" context="#pop"/> -->
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\'" context="#stay"/>
|
||||
<DetectChar char="'" attribute="Raw String" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Command String" attribute="Command" lineEndContext="#stay">
|
||||
<StringDetect attribute="String" String="\\" context="#stay"/>
|
||||
<RegExpr attribute="String" String="\\\`" context="#stay"/>
|
||||
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
|
||||
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
|
||||
<HlCChar attribute="Char" context="#pop"/>
|
||||
<DetectChar char="`" attribute="Command" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Embedded documentation" attribute="Ruby Comment" lineEndContext="#stay">
|
||||
<StringDetect attribute="Ruby Comment" String="=end" context="#pop" endRegion="comment block" column="0"/>
|
||||
</context>
|
||||
|
||||
<context name="RegEx 1" attribute="Regular Expression" lineEndContext="#stay">
|
||||
<RegExpr attribute="Regular Expression" String="\\\/" context="#stay"/>
|
||||
<RegExpr attribute="Regular Expression" String="[^\\]$" context="#pop"/>
|
||||
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
|
||||
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
|
||||
<RegExpr attribute="Regular Expression" String="/[uiomxn]*" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<!-- Substitutions can be nested -->
|
||||
<context name="Subst" attribute="Ruby Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Substitution" char="}" context="#pop"/>
|
||||
<!-- Highlight substitution as code. -->
|
||||
<IncludeRules context="rubysource"/>
|
||||
</context>
|
||||
|
||||
<context name="Short Subst" attribute="Substitution" lineEndContext="#pop">
|
||||
<!-- Check for e.g.: "#@var#@@xy" -->
|
||||
<RegExpr attribute="Substitution" String="#@{1,2}" context="#stay"/>
|
||||
<RegExpr attribute="Substitution" String="\w(?!\w)" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<!-- This handles access of nested module classes and class methods -->
|
||||
<context name="Member Access" attribute="Member" lineEndContext="#pop">
|
||||
<!-- marks a message (being sent, not defined) -->
|
||||
<RegExpr attribute="Message" String="\.?[_a-z]\w*(\?|\!)?(?=[^\w\d\.\:])" context="#pop"/>
|
||||
<RegExpr attribute="Message" String="\.?[_a-z]\w*(\?|\!)?" context="#stay"/>
|
||||
<RegExpr attribute="Constant" String="[A-Z]+_*(\d|[a-z])\w*(?=[^\w\d\.\:])" context="#pop"/>
|
||||
<RegExpr attribute="Constant" String="[A-Z]+_*([0-9]|[a-z])\w*" context="#stay"/>
|
||||
<RegExpr attribute="Constant Value" String="[_A-Z][_A-Z0-9]*(?=[^\w\d\.\:])" context="#pop"/>
|
||||
<RegExpr attribute="Constant Value" String="[_A-Z][_A-Z0-9]*" context="#stay"/>
|
||||
<Detect2Chars attribute="Operator" char=":" char1=":" context="#stay"/>
|
||||
<DetectChar attribute="Member" char="." context="#stay"/>
|
||||
|
||||
<AnyChar attribute="Operator" String="=+-*/%|&[]{}~" context="#pop"/>
|
||||
<DetectChar attribute="Ruby Comment" char="#" context="#pop"/>
|
||||
<AnyChar attribute="Ruby Normal Text" String="()\" context="#pop"/>
|
||||
<RegExpr attribute="Member" String="\W" context="#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Comment Line" attribute="Ruby Comment" lineEndContext="#pop">
|
||||
<keyword attribute="Alert" String="attention" context="#stay"/>
|
||||
<RegExpr attribute="Keyword" context="#pop#pop" String="-?%>" />
|
||||
</context>
|
||||
|
||||
<context name="General Comment" attribute="Ruby Comment" lineEndContext="#pop">
|
||||
<keyword attribute="Dec" String="attention" context="#stay"/>
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
|
||||
|
||||
|
||||
<itemDatas>
|
||||
<!-- BEGIN Ruby itemData -->
|
||||
<itemData name="Ruby Normal Text" defStyleNum="dsNormal"/>
|
||||
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Attribute Definition" defStyleNum="dsOthers"/>
|
||||
<itemData name="Access Control" defStyleNum="dsKeyword" color="#0000FF"/>
|
||||
<itemData name="Definition" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Pseudo variable" defStyleNum="dsDecVal"/>
|
||||
|
||||
<itemData name="Dec" defStyleNum="dsDecVal"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat"/>
|
||||
<itemData name="Char" defStyleNum="dsChar"/>
|
||||
<itemData name="Octal" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Hex" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Bin" defStyleNum="dsBaseN"/>
|
||||
|
||||
<itemData name="Symbol" defStyleNum="dsString" color="#D40000"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="Unquoted String" defStyleNum="dsString"/>
|
||||
<itemData name="Raw String" defStyleNum="dsString" color="#DD4A4A" selColor="#DD4A4A"/>
|
||||
<itemData name="Command" defStyleNum="dsString" color="#AA3000"/>
|
||||
<itemData name="Message" defStyleNum="dsNormal" color="#4000A7"/> <!-- #4A00C0 -->
|
||||
<itemData name="Regular Expression" defStyleNum="dsOthers" color="#4A5704"/>
|
||||
<itemData name="Substitution" defStyleNum="dsOthers"/>
|
||||
<itemData name="Data" defStyleNum="dsNormal"/>
|
||||
<!-- short for 'general delimited input' -->
|
||||
<itemData name="GDL input" defStyleNum="dsOthers" />
|
||||
|
||||
<itemData name="Default globals" defStyleNum="dsDataType" color="#C00000" bold="1"/>
|
||||
<itemData name="Global Variable" defStyleNum="dsDataType" color="#C00000"/>
|
||||
<itemData name="Global Constant" defStyleNum="dsDataType" color="#bb1188" bold="1"/>
|
||||
<itemData name="Constant" defStyleNum="dsDataType"/>
|
||||
<itemData name="Constant Value" defStyleNum="dsDataType" color="#bb1188"/>
|
||||
<itemData name="Kernel methods" defStyleNum="dsNormal" color="#000080" selColor="#ffffff"/> <!-- #CC0E86 -->
|
||||
<itemData name="Member" defStyleNum="dsNormal"/>
|
||||
<itemData name="Instance Variable" defStyleNum="dsOthers"/>
|
||||
<itemData name="Class Variable" defStyleNum="dsOthers"/>
|
||||
|
||||
<itemData name="Ruby Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Blockcomment" defStyleNum="dsComment"/>
|
||||
<itemData name="Region Marker" defStyleNum="dsNormal" color="#0000ff"/>
|
||||
<itemData name="RDoc Value" defStyleNum="dsOthers"/>
|
||||
|
||||
<!-- use these to mark errors and alerts things -->
|
||||
<itemData name="Error" defStyleNum="dsError" />
|
||||
<itemData name="Alert" defStyleNum="dsAlert" />
|
||||
|
||||
<itemData name="Delimiter" defStyleNum="dsChar"/>
|
||||
<itemData name="Expression" defStyleNum="dsOthers"/>
|
||||
<itemData name="Operator" defStyleNum="dsChar"/>
|
||||
|
||||
<!-- HAML itemData -->
|
||||
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Hash" defStyleNum="dsNormal" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Symbol" defStyleNum="dsDataType" />
|
||||
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" />
|
||||
<itemData name="Filter" defStyleNum="dsOthers" />
|
||||
<itemData name="Element Id" defStyleNum="dsFloat" bold="1" />
|
||||
<itemData name="Element Class" defStyleNum="dsFloat" />
|
||||
<itemData name="Div Id" defStyleNum="dsDecVal" bold="1" />
|
||||
<itemData name="Div Class" defStyleNum="dsDecVal" />
|
||||
<itemData name="String" defStyleNum="dsNormal" />
|
||||
<itemData name="Tag" defStyleNum="dsKeyword" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Entity" defStyleNum="dsDecVal" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<folding indentationsensitive="1" />
|
||||
<emptyLines>
|
||||
<emptyLine regexpr="\s+" casesensitive="false"/>
|
||||
</emptyLines>
|
||||
<comments>
|
||||
<comment name="singleLine" start="/"/>
|
||||
</comments>
|
||||
<keywords casesensitive="1"/>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,247 @@
|
||||
<?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;);">
|
||||
]>
|
||||
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
||||
|
||||
|
||||
|
||||
<language name="PHP (HTML)" version="1.99" kateversion="2.4" section="Scripts" extensions="*.php;*.php3;*.wml;*.phtml;*.phtm;*.inc" mimetype="text/x-php4-src;text/x-php3-src;text/vnd.wap.wml;application/x-php" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<IncludeRules context="FindHTML" />
|
||||
</context>
|
||||
|
||||
<context name="FindHTML" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectSpaces/>
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||
<StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" />
|
||||
<RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" beginRegion="doctype" />
|
||||
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||
<RegExpr attribute="Element" context="CSS" String="<style\b" insensitive="TRUE" beginRegion="style" />
|
||||
<RegExpr attribute="Element" context="JS" String="<script\b" insensitive="TRUE" beginRegion="script" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<pre\b" insensitive="TRUE" beginRegion="pre" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<div\b" insensitive="TRUE" beginRegion="div" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<table\b" insensitive="TRUE" beginRegion="table" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<ul\b" insensitive="TRUE" beginRegion="ul" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<ol\b" insensitive="TRUE" beginRegion="ol" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<dl\b" insensitive="TRUE" beginRegion="dl" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<&name;" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</pre\b" insensitive="TRUE" endRegion="pre" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</div\b" insensitive="TRUE" endRegion="div" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</table\b" insensitive="TRUE" endRegion="table" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</ul\b" insensitive="TRUE" endRegion="ul" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</ol\b" insensitive="TRUE" endRegion="ol" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</dl\b" insensitive="TRUE" endRegion="dl" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</&name;" />
|
||||
<!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
|
||||
<AnyChar attribute="Error" context="#stay" String="&<" />
|
||||
</context>
|
||||
|
||||
<context name="FindPEntityRefs" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
|
||||
<RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
|
||||
<AnyChar attribute="Error" context="#stay" String="&%" />
|
||||
</context>
|
||||
|
||||
<context name="FindAttributes" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Attribute" context="#stay" String="&name;" column="0"/>
|
||||
<RegExpr attribute="Attribute" context="#stay" String="\s+&name;" />
|
||||
<DetectChar attribute="Attribute" context="Value" char="=" />
|
||||
</context>
|
||||
|
||||
<context name="FindDTDRules" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Doctype" context="Doctype Markupdecl" String="<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
|
||||
</context>
|
||||
|
||||
|
||||
<context name="Comment" attribute="Comment" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
|
||||
<RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" />
|
||||
</context>
|
||||
|
||||
<context name="CDATA" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectSpaces/>
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="CDATA" context="#pop" String="]]>" endRegion="cdata" />
|
||||
<StringDetect attribute="EntityRef" context="#stay" String="]]&gt;" />
|
||||
</context>
|
||||
|
||||
<context name="PI" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Doctype" context="#pop" char=">" endRegion="doctype" />
|
||||
<DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Internal Subset" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
|
||||
<IncludeRules context="FindDTDRules" />
|
||||
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Doctype" context="#pop" char=">" />
|
||||
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char=""" />
|
||||
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="'" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="#pop" char=""" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="#pop" char="'" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="El Open" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" />
|
||||
<DetectChar attribute="Element" context="#pop" char=">" />
|
||||
<IncludeRules context="FindAttributes" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="El Close" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Element" context="#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="El Close 2" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Element" context="#pop#pop#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="El Close 3" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Element" context="#pop#pop#pop#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="CSS" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="style" />
|
||||
<DetectChar attribute="Element" context="CSS content" char=">" />
|
||||
<IncludeRules context="FindAttributes" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="CSS content" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Element" context="El Close 2" String="</style\b" insensitive="TRUE" endRegion="style" />
|
||||
<IncludeRules context="##CSS/PHP" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="JS" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="script" />
|
||||
<DetectChar attribute="Element" context="JS content" char=">" />
|
||||
<IncludeRules context="FindAttributes" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="JS content" attribute="Other Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="TRUE" endRegion="script" />
|
||||
<RegExpr attribute="Comment" context="JS comment close" String="//(?=.*</script\b)" insensitive="TRUE" />
|
||||
<IncludeRules context="##JavaScript/PHP" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="JS comment close" attribute="Comment" lineEndContext="#pop">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Element" context="El Close 3" String="</script\b" insensitive="TRUE" endRegion="script" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context name="Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="Value NQ">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="Value DQ" char=""" />
|
||||
<DetectChar attribute="Value" context="Value SQ" char="'" />
|
||||
<DetectSpaces />
|
||||
</context>
|
||||
|
||||
<context name="Value NQ" attribute="Other Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
<RegExpr attribute="Value" context="#stay" String="/(?!>)" />
|
||||
<RegExpr attribute="Value" context="#stay" String="[^/><"'\s]" />
|
||||
</context>
|
||||
|
||||
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="#pop#pop" char=""" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Value" context="#pop#pop" char="'" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="FindPHP">
|
||||
<RegExpr context="##PHP/PHP" String="<\?(?:=|php)?" lookAhead="true" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Other Text" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="false" />
|
||||
<itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<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="EntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="multiLine" start="<!--" end="-->" />
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
||||
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
@ -0,0 +1,243 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<!-- Author: Anders Lund <anders@alweb.dk> //-->
|
||||
<!-- Minor changes: Joseph Wenninger <jowenn@kde.org> //-->
|
||||
<!-- Full JavaScript 1.0 support by Whitehawk Stormchaser //-->
|
||||
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
||||
|
||||
|
||||
|
||||
<language name="JavaScript/PHP" hidden="true" version="1.23" kateversion="2.5" section="Other" extensions=""
|
||||
mimetype="" indenter="cstyle"
|
||||
author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> break </item>
|
||||
<item> case </item>
|
||||
<item> catch </item>
|
||||
<item> const </item>
|
||||
<item> continue </item>
|
||||
<item> debugger </item>
|
||||
<item> default </item>
|
||||
<item> delete </item>
|
||||
<item> do </item>
|
||||
<item> else </item>
|
||||
<item> finally </item>
|
||||
<item> for </item>
|
||||
<item> function </item>
|
||||
<item> if </item>
|
||||
<item> in </item>
|
||||
<item> instanceof </item>
|
||||
<item> new </item>
|
||||
<item> return </item>
|
||||
<item> switch </item>
|
||||
<item> this </item>
|
||||
<item> throw </item>
|
||||
<item> try </item>
|
||||
<item> typeof </item>
|
||||
<item> var </item>
|
||||
<item> void </item>
|
||||
<item> while </item>
|
||||
<item> with </item>
|
||||
</list>
|
||||
<list name="reserved">
|
||||
<item> class </item>
|
||||
<item> enum </item>
|
||||
<item> export </item>
|
||||
<item> extends </item>
|
||||
<item> import </item>
|
||||
<item> super </item>
|
||||
|
||||
<!-- The following keywords are reserved only in strict-mode -->
|
||||
<item> implements </item>
|
||||
<item> interface </item>
|
||||
<item> let </item>
|
||||
<item> package </item>
|
||||
<item> private </item>
|
||||
<item> protected </item>
|
||||
<item> public </item>
|
||||
<item> static </item>
|
||||
<item> yield </item>
|
||||
</list>
|
||||
<list name="primitives">
|
||||
<item> Infinity </item>
|
||||
<item> NaN </item>
|
||||
<item> false </item>
|
||||
<item> null </item>
|
||||
<item> true </item>
|
||||
<item> undefined </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectSpaces/>
|
||||
<StringDetect attribute="Region Marker" context="region_marker" String="//BEGIN" beginRegion="Region1" />
|
||||
<StringDetect attribute="Region Marker" context="region_marker" String="//END" endRegion="Region1" />
|
||||
|
||||
<Float attribute="Float" context="NoRegExp" />
|
||||
<HlCOct attribute="Octal" context="NoRegExp" />
|
||||
<HlCHex attribute="Hex" context="NoRegExp" />
|
||||
<Int attribute="Decimal" context="NoRegExp" />
|
||||
<AnyChar context="NoRegExp" String="])" />
|
||||
|
||||
<keyword attribute="Keyword" String="keywords" />
|
||||
<keyword attribute="Reserved" String="reserved" />
|
||||
<keyword attribute="Keyword" context="NoRegExp" String="primitives" />
|
||||
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr attribute="Objects" context="Object Member" String="[a-zA-Z_$][\w$]*(?=\s*\.)" />
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr attribute="Object Member" context="NoRegExp" String="[a-zA-Z_$][\w$]*(?=\s*\()" />
|
||||
<DetectChar context="Object Member" char="." />
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr context="NoRegExp" String="[a-zA-Z_$][\w$]*" />
|
||||
|
||||
<DetectChar attribute="String" context="String" char=""" />
|
||||
<DetectChar attribute="String" context="String SQ" char="'" />
|
||||
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/" />
|
||||
<Detect2Chars attribute="Comment" context="Multi/inline Comment" char="/" char1="*" beginRegion="Comment" />
|
||||
|
||||
<DetectChar attribute="Regular Expression" context="(regex caret first check)" char="/" />
|
||||
|
||||
<DetectChar attribute="Symbol" context="Object" char="{" beginRegion="Brace" />
|
||||
<DetectChar attribute="Symbol" context="Conditional Expression" char="?" />
|
||||
|
||||
<AnyChar attribute="Symbol" String=":!%&+,-/.*<=>?|~^;" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop" name="Object Member">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar char="." />
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr attribute="Objects" context="Object Member" String="[a-zA-Z_$][\w$]*(?=\s*\.)" />
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr attribute="Object Member" String="[a-zA-Z_$][\w$]*" />
|
||||
<!-- NoRegExp without DetectSpaces. TODO: code reuse without detecting spaces as object member? -->
|
||||
<Detect2Chars context="#pop" lookAhead="true" char="/" char1="/" />
|
||||
<Detect2Chars context="#pop" lookAhead="true" char="/" char1="*" />
|
||||
<DetectChar context="#pop" char="/" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop" name="NoRegExp">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<Detect2Chars context="#pop" lookAhead="true" char="/" char1="/" />
|
||||
<Detect2Chars context="#pop" lookAhead="true" char="/" char1="*" />
|
||||
<DetectChar context="#pop" char="/" />
|
||||
<DetectSpaces/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Conditional Expression">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar context="#pop" char=":" />
|
||||
<IncludeRules context="Normal" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Object">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<!-- Mostly required for define: in switch blocks -->
|
||||
<keyword attribute="Keyword" String="keywords" />
|
||||
<!--DetectIdentifier-->
|
||||
<RegExpr attribute="JSON" String="[a-zA-Z_$][\w$]*\s*(?=:)" />
|
||||
<DetectChar attribute="Symbol" char="}" endRegion="Brace" context="#pop" />
|
||||
<IncludeRules context="Normal" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#pop" name="String">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<HlCStringChar attribute="Char" />
|
||||
<LineContinue/>
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
</context>
|
||||
<context attribute="String" lineEndContext="#pop" name="String SQ">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<HlCStringChar attribute="Char" />
|
||||
<LineContinue/>
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Comment">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Multi/inline Comment">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" />
|
||||
</context>
|
||||
|
||||
<context attribute="Regular Expression" lineEndContext="#stay" name="Regular Expression">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr attribute="Regular Expression" context="#pop#pop" String="/\w*" />
|
||||
<RegExpr attribute="Pattern Internal Operator" String="\{[\d, ]+\}" />
|
||||
<RegExpr attribute="Pattern Internal Operator" String="\\[bB]" />
|
||||
<RegExpr attribute="Pattern Character Class" String="\\[nrtvfDdSsWw]" />
|
||||
<DetectChar attribute="Pattern Character Class" context="(charclass caret first check)" char="[" />
|
||||
<RegExpr attribute="Pattern Internal Operator" String="\\." />
|
||||
<RegExpr attribute="Pattern Internal Operator" String="\$(?=/)" />
|
||||
<AnyChar attribute="Pattern Internal Operator" String="?+*()|" />
|
||||
</context>
|
||||
<context attribute="Pattern Character Class" lineEndContext="#stay" name="Regular Expression Character Class">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<RegExpr String="\\[\[\]]" />
|
||||
<RegExpr attribute="Pattern Internal Operator" String="\\." />
|
||||
<DetectChar attribute="Pattern Character Class" context="#pop#pop" char="]" />
|
||||
</context>
|
||||
<context attribute="Pattern Internal Operator" lineEndContext="#pop" name="(regex caret first check)" fallthrough="true" fallthroughContext="Regular Expression">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Pattern Internal Operator" context="Regular Expression" char="^" />
|
||||
</context>
|
||||
<context attribute="Pattern Internal Operator" lineEndContext="#pop" name="(charclass caret first check)" fallthrough="true" fallthroughContext="Regular Expression Character Class">
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectChar attribute="Pattern Internal Operator" context="Regular Expression Character Class" char="^" />
|
||||
</context>
|
||||
|
||||
<context name="region_marker" attribute="Region Marker" lineEndContext="#pop" >
|
||||
<IncludeRules context="FindPHP" />
|
||||
<DetectIdentifier/>
|
||||
<DetectSpaces/>
|
||||
</context>
|
||||
<context name="FindPHP">
|
||||
<RegExpr context="##PHP/PHP" String="<\?(?:=|php)?" lookAhead="true" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
|
||||
<itemData name="Reserved" defStyleNum="dsKeyword" italic="true" spellChecking="false" />
|
||||
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false" />
|
||||
<itemData name="Objects" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Object Member" defStyleNum="dsFunction" spellChecking="false" />
|
||||
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" />
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false" />
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false" />
|
||||
<itemData name="String" defStyleNum="dsString" />
|
||||
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false" />
|
||||
<itemData name="Regular Expression" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Pattern Internal Operator" defStyleNum="dsFloat" spellChecking="false" />
|
||||
<itemData name="Pattern Character Class" defStyleNum="dsBaseN" spellChecking="false" />
|
||||
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
|
||||
<itemData name="JSON" defStyleNum="dsDataType" spellChecking="false" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//" />
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
||||
|
||||
|
||||
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
|
@ -0,0 +1,291 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
====================================================================
|
||||
Julia syntax highlighting file for the TDE editors Kate and Kwrite
|
||||
====================================================================
|
||||
|
||||
This was adapted from the Matlab syntax highlighting file
|
||||
|
||||
Most of this XML file is straightforward. Only the character ' (')
|
||||
needs nontrivial treatment, since it is both a postfix operator indicating
|
||||
complex conjugate transpose (adjoint) and a character delimiter. It is an
|
||||
adjoint operator in the following positions:
|
||||
1) immediately after an identifier (variable, function, but not keyword)
|
||||
2) immediately after a number literal
|
||||
3) immediately after the closing parenthesis ), ] and }
|
||||
4) immediately after a simple transpose operator .'
|
||||
5) immediately after another adjoint operator '
|
||||
Otherwise it is a character delimiter.
|
||||
|
||||
This is implemented using look-ahead regexps. If one of the entities in the
|
||||
above cases 1-4 (identifier, number literal, ...) matches and look-ahead
|
||||
shows that it is followed by a ', the entity is highlighted and control is
|
||||
passed to the special context _adjoint, whose sole purpose is to correctly
|
||||
highlight a series of ' (thus covering case 5 as well). _adjoint immediately
|
||||
returns to the default context _normal.
|
||||
|
||||
Author: Timothy E. Holy, Washington University in St. Louis
|
||||
-->
|
||||
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
|
||||
<language name="Julia" section="Sources" version="0.3" kateversion="2.5" extensions="*.jl" casesensitive="1" priority="5" license="MIT">
|
||||
|
||||
<highlighting>
|
||||
<list name="block_begin">
|
||||
<item> begin </item>
|
||||
<item> do </item>
|
||||
<item> for </item>
|
||||
<item> function </item>
|
||||
<item> if </item>
|
||||
<item> let </item>
|
||||
<item> quote </item>
|
||||
<item> try </item>
|
||||
<item> type </item>
|
||||
<item> while </item>
|
||||
</list>
|
||||
<list name="block_eb">
|
||||
<item> catch </item>
|
||||
<item> else </item>
|
||||
<item> elseif </item>
|
||||
</list>
|
||||
<list name="block_end">
|
||||
<item> end </item>
|
||||
</list>
|
||||
<list name="keywords">
|
||||
<item> abstract </item>
|
||||
<item> bitstype </item>
|
||||
<item> break </item>
|
||||
<item> ccall </item>
|
||||
<item> const </item>
|
||||
<item> continue </item>
|
||||
<item> export </item>
|
||||
<item> global </item>
|
||||
<item> import </item>
|
||||
<item> in </item>
|
||||
<item> local </item>
|
||||
<item> macro </item>
|
||||
<item> module </item>
|
||||
<item> return </item>
|
||||
<item> typealias </item>
|
||||
</list>
|
||||
<list name="types">
|
||||
<item> AbstractArray </item>
|
||||
<item> AbstractMatrix </item>
|
||||
<item> AbstractVector </item>
|
||||
<item> Any </item>
|
||||
<item> Array </item>
|
||||
<item> ASCIIString </item>
|
||||
<item> Associative </item>
|
||||
<item> Bool </item>
|
||||
<item> ByteString </item>
|
||||
<item> Char </item>
|
||||
<item> Complex </item>
|
||||
<item> Complex64 </item>
|
||||
<item> Complex128 </item>
|
||||
<item> ComplexPair </item>
|
||||
<item> DArray </item>
|
||||
<item> Dict </item>
|
||||
<item> Exception </item>
|
||||
<item> Expr </item>
|
||||
<item> Float </item>
|
||||
<item> Float32 </item>
|
||||
<item> Float64 </item>
|
||||
<item> Function </item>
|
||||
<item> ObjectIdDict </item>
|
||||
<item> Int </item>
|
||||
<item> Int8 </item>
|
||||
<item> Int16 </item>
|
||||
<item> Int32 </item>
|
||||
<item> Int64 </item>
|
||||
<item> Integer </item>
|
||||
<item> IntSet </item>
|
||||
<item> IO </item>
|
||||
<item> IOStream </item>
|
||||
<item> Matrix </item>
|
||||
<item> Nothing </item>
|
||||
<item> None </item>
|
||||
<item> NTuple </item>
|
||||
<item> Number </item>
|
||||
<item> Ptr </item>
|
||||
<item> Range </item>
|
||||
<item> Range1 </item>
|
||||
<item> Ranges </item>
|
||||
<item> Rational </item>
|
||||
<item> Real </item>
|
||||
<item> Regex </item>
|
||||
<item> RegexMatch </item>
|
||||
<item> Set </item>
|
||||
<item> Signed </item>
|
||||
<item> StridedArray </item>
|
||||
<item> StridedMatrix </item>
|
||||
<item> StridedVecOrMat </item>
|
||||
<item> StridedVector </item>
|
||||
<item> String </item>
|
||||
<item> SubArray </item>
|
||||
<item> SubString </item>
|
||||
<item> Symbol </item>
|
||||
<item> Task </item>
|
||||
<item> Tuple </item>
|
||||
<item> Type </item>
|
||||
<item> Uint </item>
|
||||
<item> Uint8 </item>
|
||||
<item> Uint16 </item>
|
||||
<item> Uint32 </item>
|
||||
<item> Uint64 </item>
|
||||
<item> Union </item>
|
||||
<item> Unsigned </item>
|
||||
<item> UTF8String </item>
|
||||
<item> VecOrMat </item>
|
||||
<item> Vector </item>
|
||||
<item> Void </item>
|
||||
<item> WeakRef </item>
|
||||
</list>
|
||||
<contexts>
|
||||
|
||||
<context name="_normal" attribute="Normal Text" lineEndContext="#stay">
|
||||
|
||||
<DetectSpaces />
|
||||
|
||||
<!-- Blocks -->
|
||||
<keyword context="#stay" attribute="Keyword" String="block_begin"
|
||||
beginRegion="block" />
|
||||
<keyword context="#stay" attribute="Keyword" String="block_eb"
|
||||
endRegion="block" beginRegion="block" />
|
||||
<keyword context="#stay" attribute="Keyword" String="block_end"
|
||||
endRegion="block" />
|
||||
<StringDetect String="#BEGIN" context="region_marker" attribute="FoldingComment" beginRegion="user_region" />
|
||||
<StringDetect String="#END" context="region_marker" attribute="FoldingComment" endRegion="user_region" />
|
||||
|
||||
<!-- Keywords, types, and comments -->
|
||||
<keyword context="#stay" attribute="Keyword" String="keywords" />
|
||||
<keyword context="#stay" attribute="Data Type" String="types" />
|
||||
<DetectChar char="#" context="1-comment" attribute="Comment"/>
|
||||
|
||||
<!-- Lists and arrays -->
|
||||
<!-- <DetectChar char="(" context="nested" beginRegion="nested" attribute="Delimiter" />
|
||||
<DetectChar char="[" context="squared" beginRegion="squared" attribute="Delimiter" />
|
||||
<DetectChar char="{" context="curly" beginRegion="curly" attribute="Delimiter" /> -->
|
||||
|
||||
<!-- Strings -->
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
|
||||
<!-- Multi-character operators -->
|
||||
<StringDetect context="#stay" attribute="Operator" String="..."/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="::"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=">>>"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=">>"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="<<"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="=="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="!="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="<="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=">="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="&&"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="||"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=".*"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=".^"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="./"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=".'"/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="+="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="-="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="*="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="/="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="&="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="|="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="$="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=">>>="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String=">>="/>
|
||||
<StringDetect context="#stay" attribute="Operator" String="<<="/>
|
||||
|
||||
<!-- Look-ahead for adjoint ' after variable, number literal, closing braces and .' -->
|
||||
<RegExpr context="_adjoint" attribute="Variable" String="[a-zA-Z]\w*(?=')" />
|
||||
<RegExpr context="_adjoint" attribute="Float" String="(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)?(im)?(?=')" />
|
||||
<RegExpr context="_adjoint" attribute="Delimiter" String="[\)\]}](?=')" />
|
||||
<RegExpr context="_adjoint" attribute="Operator" String="\.'(?=')" />
|
||||
|
||||
<!-- If ' is not the adjoint operator, it starts a character or an unterminated char -->
|
||||
<RegExpr context="#stay" attribute="Char" String="'[^']*(''[^']*)*'(?=[^']|$)" />
|
||||
<RegExpr context="#stay" attribute="Incomplete Char" String="'[^']*(''[^']*)*" />
|
||||
|
||||
<!-- Identifiers, numbers and braces -->
|
||||
<!-- We can't use HlCHex, Int, and Float because we need to allow the "im" at the end of complex numbers -->
|
||||
<DetectIdentifier context="#stay" attribute="Variable" />
|
||||
<RegExpr context="#stay" attribute="Hex" String="0x[0-9a-fA-F]+(im)?" />
|
||||
<RegExpr context="#stay" attribute="Float" String="(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)?(im)?" />
|
||||
<AnyChar context="#stay" attribute="Delimiter" String="()[]{}"/>
|
||||
|
||||
<!-- Single-character operators -->
|
||||
<AnyChar context="#stay" attribute="Operator" String="*+-/\&|<>~$!^=,;:@"/>
|
||||
|
||||
</context>
|
||||
|
||||
<!-- Context for user block (#BEGIN...#END) -->
|
||||
<context name="region_marker" lineEndContext="#pop" attribute="FoldingComment" >
|
||||
<IncludeRules context="1-comment" />
|
||||
</context>
|
||||
|
||||
<!-- Contexts entered after beginning a list or array -->
|
||||
<context name="nested" attribute="Normal text" lineEndContext="#stay">
|
||||
<DetectChar char=")" context="#pop" endRegion="nested" attribute="Delimiter" />
|
||||
</context>
|
||||
<context name="squared" attribute="Normal text" lineEndContext="#stay">
|
||||
<DetectChar char="]" context="#pop" endRegion="squared" attribute="Delimiter" />
|
||||
</context>
|
||||
<context name="curly" attribute="Normal text" lineEndContext="#stay">
|
||||
<DetectChar char="}" context="#pop" endRegion="curly" attribute="Delimiter" />
|
||||
</context>
|
||||
|
||||
<!-- Context entered after encountering an ' adjoint operator -->
|
||||
<context name="_adjoint" attribute="Operator" lineEndContext="#pop">
|
||||
<RegExpr context="#pop" attribute="Operator" String="'+" />
|
||||
</context>
|
||||
|
||||
<!-- Context entered after encountering an " (string) -->
|
||||
<context attribute="String" lineEndContext="#pop" name="String">
|
||||
<DetectSpaces />
|
||||
<DetectIdentifier />
|
||||
<LineContinue attribute="String" context="#stay"/>
|
||||
<HlCStringChar attribute="String Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="#pop" char="""/>
|
||||
</context>
|
||||
|
||||
<!-- 1-line comment: #pop@EOL -->
|
||||
<context name="1-comment" lineEndContext="#pop" attribute="Comment">
|
||||
<DetectSpaces />
|
||||
<DetectIdentifier />
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Variable" defStyleNum="dsNormal" />
|
||||
<itemData name="Operator" defStyleNum="dsNormal"/>
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" />
|
||||
<itemData name="Float" defStyleNum="dsFloat" />
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" />
|
||||
<itemData name="Delimiter" defStyleNum="dsNormal" />
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="Char" defStyleNum="dsChar"/>
|
||||
<itemData name="Incomplete Char" defStyleNum="dsChar"/>
|
||||
<itemData name="System" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Data Type" defStyleNum="dsDataType"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="FoldingComment" defStyleNum="dsComment" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" weakDeliminator=""/>
|
||||
</general>
|
||||
|
||||
</language>
|
||||
|
||||
<!-- It's recommended to put the following line in the Variables field under Settings->Configure Kate->Open/Save->Modes&Filetypes -->
|
||||
<!-- kate: space-indent on; indent-width 4; mixed-indent off; indent-mode cstyle; -->
|
@ -0,0 +1,674 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="LessCSS" version="0.2" kateversion="2.5" section="Markup" extensions="*.less" indenter="cstyle" author="Massimiliano Torromeo (massimiliano.torromeo@gmail.com)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<list name="properties">
|
||||
<!-- CSS2 -->
|
||||
<item> azimuth </item>
|
||||
<item> background </item>
|
||||
<item> background-attachment </item>
|
||||
<item> background-color </item>
|
||||
<item> background-image </item>
|
||||
<item> background-position </item>
|
||||
<item> background-repeat </item>
|
||||
<item> border </item>
|
||||
<item> border-bottom </item>
|
||||
<item> border-bottom-color </item>
|
||||
<item> border-bottom-style </item>
|
||||
<item> border-bottom-width </item>
|
||||
<item> border-collapse </item>
|
||||
<item> border-color </item>
|
||||
<item> border-left </item>
|
||||
<item> border-left-color </item>
|
||||
<item> border-left-style </item>
|
||||
<item> border-left-width </item>
|
||||
<item> border-right </item>
|
||||
<item> border-right-color </item>
|
||||
<item> border-right-style </item>
|
||||
<item> border-right-width </item>
|
||||
<item> border-spacing </item>
|
||||
<item> border-style </item>
|
||||
<item> border-top </item>
|
||||
<item> border-top-color </item>
|
||||
<item> border-top-style </item>
|
||||
<item> border-top-width </item>
|
||||
<item> border-width </item>
|
||||
<item> bottom </item>
|
||||
<item> caption-side </item>
|
||||
<item> clear </item>
|
||||
<item> clip </item>
|
||||
<item> color </item>
|
||||
<item> content </item>
|
||||
<item> counter-increment </item>
|
||||
<item> counter-reset </item>
|
||||
<item> cue </item>
|
||||
<item> cue-after </item>
|
||||
<item> cue-before </item>
|
||||
<item> cursor </item>
|
||||
<item> direction </item>
|
||||
<item> display </item>
|
||||
<item> elevation </item>
|
||||
<item> empty-cells </item>
|
||||
<item> float </item>
|
||||
<item> font </item>
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-size-adjust </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> height </item>
|
||||
<item> left </item>
|
||||
<item> letter-spacing </item>
|
||||
<item> line-height </item>
|
||||
<item> list-style </item>
|
||||
<item> list-style-image </item>
|
||||
<item> list-style-keyword </item>
|
||||
<item> list-style-position </item>
|
||||
<item> list-style-type </item>
|
||||
<item> margin </item>
|
||||
<item> margin-bottom </item>
|
||||
<item> margin-left </item>
|
||||
<item> margin-right </item>
|
||||
<item> margin-top </item>
|
||||
<item> marker-offset </item>
|
||||
<item> max-height </item>
|
||||
<item> max-width </item>
|
||||
<item> min-height </item>
|
||||
<item> min-width </item>
|
||||
<item> orphans </item>
|
||||
<item> outline </item>
|
||||
<item> outline-color </item>
|
||||
<item> outline-style </item>
|
||||
<item> outline-width </item>
|
||||
<item> overflow </item>
|
||||
<item> padding </item>
|
||||
<item> padding-bottom </item>
|
||||
<item> padding-left </item>
|
||||
<item> padding-right </item>
|
||||
<item> padding-top </item>
|
||||
<item> page </item>
|
||||
<item> page-break-after </item>
|
||||
<item> page-break-before </item>
|
||||
<item> page-break-inside </item>
|
||||
<item> pause </item>
|
||||
<item> pause-after </item>
|
||||
<item> pause-before </item>
|
||||
<item> pitch </item>
|
||||
<item> pitch-range </item>
|
||||
<item> play-during </item>
|
||||
<item> position </item>
|
||||
<item> quotes </item>
|
||||
<item> richness </item>
|
||||
<item> right </item>
|
||||
<item> size </item>
|
||||
<item> speak </item>
|
||||
<item> speak-header </item>
|
||||
<item> speak-numeral </item>
|
||||
<item> speak-punctuation </item>
|
||||
<item> speech-rate </item>
|
||||
<item> stress </item>
|
||||
<item> table-layout </item>
|
||||
<item> text-align </item>
|
||||
<item> text-decoration </item>
|
||||
<item> text-decoration-color </item>
|
||||
<item> text-indent </item>
|
||||
<item> text-shadow </item>
|
||||
<item> text-transform </item>
|
||||
<item> top </item>
|
||||
<item> unicode-bidi </item>
|
||||
<item> vertical-align </item>
|
||||
<item> visibility </item>
|
||||
<item> voice-family </item>
|
||||
<item> volume </item>
|
||||
<item> white-space </item>
|
||||
<item> widows </item>
|
||||
<item> width </item>
|
||||
<item> word-spacing </item>
|
||||
<item> z-index </item>
|
||||
|
||||
<!-- CSS3 -->
|
||||
<item> box-sizing </item>
|
||||
<item> opacity </item>
|
||||
<item> text-shadow </item>
|
||||
|
||||
<!-- konq specific -->
|
||||
<item> konq_bgpos_x </item>
|
||||
<item> konq_bgpos_y </item>
|
||||
|
||||
<!-- font properties in @font-face -->
|
||||
<item> font-family </item>
|
||||
<item> font-size </item>
|
||||
<item> font-stretch </item>
|
||||
<item> font-style </item>
|
||||
<item> font-variant </item>
|
||||
<item> font-weight </item>
|
||||
<item> unicode-range </item>
|
||||
<item> units-per-em </item>
|
||||
<item> src </item>
|
||||
<item> panose-1 </item>
|
||||
<item> stemv </item>
|
||||
<item> stemh </item>
|
||||
<item> slope </item>
|
||||
<item> cap-height </item>
|
||||
<item> x-height </item>
|
||||
<item> ascent </item>
|
||||
<item> descent </item>
|
||||
<item> widths </item>
|
||||
<item> bbox </item>
|
||||
<item> definition-src </item>
|
||||
<item> baseline </item>
|
||||
<item> centerline </item>
|
||||
<item> mathline </item>
|
||||
<item> topline </item>
|
||||
</list>
|
||||
|
||||
<list name="types">
|
||||
<item> inherit </item>
|
||||
<item> none </item>
|
||||
<item> hidden </item>
|
||||
<item> dotted </item>
|
||||
<item> dashed </item>
|
||||
<item> solid </item>
|
||||
<item> double </item>
|
||||
<item> groove </item>
|
||||
<item> ridge </item>
|
||||
<item> inset </item>
|
||||
<item> outset </item>
|
||||
<item> xx-small </item>
|
||||
<item> x-small </item>
|
||||
<item> small </item>
|
||||
<item> medium </item>
|
||||
<item> large </item>
|
||||
<item> x-large </item>
|
||||
<item> xx-large </item>
|
||||
<item> smaller </item>
|
||||
<item> larger </item>
|
||||
<item> italic </item>
|
||||
<item> oblique </item>
|
||||
<item> small-caps </item>
|
||||
<item> normal </item>
|
||||
<item> bold </item>
|
||||
<item> bolder </item>
|
||||
<item> lighter </item>
|
||||
<item> light </item>
|
||||
<item> 100 </item>
|
||||
<item> 200 </item>
|
||||
<item> 300 </item>
|
||||
<item> 400 </item>
|
||||
<item> 500 </item>
|
||||
<item> 600 </item>
|
||||
<item> 700 </item>
|
||||
<item> 800 </item>
|
||||
<item> 900 </item>
|
||||
<item> transparent </item>
|
||||
<item> repeat </item>
|
||||
<item> repeat-x </item>
|
||||
<item> repeat-y </item>
|
||||
<item> no-repeat </item>
|
||||
<item> baseline </item>
|
||||
<item> sub </item>
|
||||
<item> super </item>
|
||||
<item> top </item>
|
||||
<item> text-top </item>
|
||||
<item> middle </item>
|
||||
<item> bottom </item>
|
||||
<item> text-bottom </item>
|
||||
<item> left </item>
|
||||
<item> right </item>
|
||||
<item> center </item>
|
||||
<item> justify </item>
|
||||
<item> konq-center </item>
|
||||
<item> disc </item>
|
||||
<item> circle </item>
|
||||
<item> square </item>
|
||||
<item> box </item>
|
||||
<item> decimal </item>
|
||||
<item> decimal-leading-zero </item>
|
||||
<item> lower-roman </item>
|
||||
<item> upper-roman </item>
|
||||
<item> lower-greek </item>
|
||||
<item> lower-alpha </item>
|
||||
<item> lower-latin </item>
|
||||
<item> upper-alpha </item>
|
||||
<item> upper-latin </item>
|
||||
<item> hebrew </item>
|
||||
<item> armenian </item>
|
||||
<item> georgian </item>
|
||||
<item> cjk-ideographic </item>
|
||||
<item> hiragana </item>
|
||||
<item> katakana </item>
|
||||
<item> hiragana-iroha </item>
|
||||
<item> katakana-iroha </item>
|
||||
<item> inline </item>
|
||||
<item> inline-block </item>
|
||||
<item> block </item>
|
||||
<item> list-item </item>
|
||||
<item> run-in </item>
|
||||
<item> compact </item>
|
||||
<item> marker </item>
|
||||
<item> table </item>
|
||||
<item> inline-table </item>
|
||||
<item> table-row-group </item>
|
||||
<item> table-header-group </item>
|
||||
<item> table-footer-group </item>
|
||||
<item> table-row </item>
|
||||
<item> table-column-group </item>
|
||||
<item> table-column </item>
|
||||
<item> table-cell </item>
|
||||
<item> table-caption </item>
|
||||
<item> auto </item>
|
||||
<item> crosshair </item>
|
||||
<item> default </item>
|
||||
<item> pointer </item>
|
||||
<item> move </item>
|
||||
<item> e-resize </item>
|
||||
<item> ne-resize </item>
|
||||
<item> nw-resize </item>
|
||||
<item> n-resize </item>
|
||||
<item> se-resize </item>
|
||||
<item> sw-resize </item>
|
||||
<item> s-resize </item>
|
||||
<item> w-resize </item>
|
||||
<item> text </item>
|
||||
<item> wait </item>
|
||||
<item> help </item>
|
||||
<item> above </item>
|
||||
<item> absolute </item>
|
||||
<item> always </item>
|
||||
<item> avoid </item>
|
||||
<item> below </item>
|
||||
<item> bidi-override </item>
|
||||
<item> blink </item>
|
||||
<item> both </item>
|
||||
<item> capitalize </item>
|
||||
<item> caption </item>
|
||||
<item> close-quote </item>
|
||||
<item> collapse </item>
|
||||
<item> condensed </item>
|
||||
<item> crop </item>
|
||||
<item> cross </item>
|
||||
<item> embed </item>
|
||||
<item> expanded </item>
|
||||
<item> extra-condensed </item>
|
||||
<item> extra-expanded </item>
|
||||
<item> fixed </item>
|
||||
<item> hand </item>
|
||||
<item> hide </item>
|
||||
<item> higher </item>
|
||||
<item> icon </item>
|
||||
<item> inside </item>
|
||||
<item> invert </item>
|
||||
<item> landscape </item>
|
||||
<item> level </item>
|
||||
<item> line-through </item>
|
||||
<item> loud </item>
|
||||
<item> lower </item>
|
||||
<item> lowercase </item>
|
||||
<item> ltr </item>
|
||||
<item> menu </item>
|
||||
<item> message-box </item>
|
||||
<item> mix </item>
|
||||
<item> narrower </item>
|
||||
<item> no-close-quote </item>
|
||||
<item> no-open-quote </item>
|
||||
<item> nowrap </item>
|
||||
<item> open-quote </item>
|
||||
<item> outside </item>
|
||||
<item> overline </item>
|
||||
<item> portrait </item>
|
||||
<item> pre </item>
|
||||
<item> pre-line </item>
|
||||
<item> pre-wrap </item>
|
||||
<item> relative </item>
|
||||
<item> rtl </item>
|
||||
<item> scroll </item>
|
||||
<item> semi-condensed </item>
|
||||
<item> semi-expanded </item>
|
||||
<item> separate </item>
|
||||
<item> show </item>
|
||||
<item> small-caption </item>
|
||||
<item> static </item>
|
||||
<item> static-position </item>
|
||||
<item> status-bar </item>
|
||||
<item> thick </item>
|
||||
<item> thin </item>
|
||||
<item> ultra-condensed </item>
|
||||
<item> ultra-expanded </item>
|
||||
<item> underline </item>
|
||||
<item> uppercase </item>
|
||||
<item> visible </item>
|
||||
<item> wider </item>
|
||||
<item> break </item>
|
||||
<item> serif </item>
|
||||
<item> sans-serif </item>
|
||||
<item> cursive </item>
|
||||
<item> fantasy </item>
|
||||
<item> monospace </item>
|
||||
<item> border-box </item>
|
||||
<item> content-box </item>
|
||||
</list>
|
||||
|
||||
|
||||
<list name="colors">
|
||||
<item> aqua </item>
|
||||
<item> black </item>
|
||||
<item> blue </item>
|
||||
<item> fuchsia </item>
|
||||
<item> gray </item>
|
||||
<item> green </item>
|
||||
<item> lime </item>
|
||||
<item> maroon </item>
|
||||
<item> navy </item>
|
||||
<item> olive </item>
|
||||
<item> purple </item>
|
||||
<item> red </item>
|
||||
<item> silver </item>
|
||||
<item> teal </item>
|
||||
<item> white </item>
|
||||
<item> yellow </item>
|
||||
<item> ActiveBorder </item>
|
||||
<item> ActiveCaption </item>
|
||||
<item> AppWorkspace </item>
|
||||
<item> Background </item>
|
||||
<item> ButtonFace </item>
|
||||
<item> ButtonHighlight </item>
|
||||
<item> ButtonShadow </item>
|
||||
<item> ButtonText </item>
|
||||
<item> CaptionText </item>
|
||||
<item> GrayText </item>
|
||||
<item> Highlight </item>
|
||||
<item> HighlightText </item>
|
||||
<item> InactiveBorder </item>
|
||||
<item> InactiveCaption </item>
|
||||
<item> InactiveCaptionText </item>
|
||||
<item> InfoBackground </item>
|
||||
<item> InfoText </item>
|
||||
<item> Menu </item>
|
||||
<item> MenuText </item>
|
||||
<item> Scrollbar </item>
|
||||
<item> ThreeDDarkShadow </item>
|
||||
<item> ThreeDFace </item>
|
||||
<item> ThreeDHighlight </item>
|
||||
<item> ThreeDLightShadow </item>
|
||||
<item> ThreeDShadow </item>
|
||||
<item> Window </item>
|
||||
<item> WindowFrame </item>
|
||||
<item> WindowText </item>
|
||||
</list>
|
||||
|
||||
<list name="paren">
|
||||
<item> url </item>
|
||||
<item> attr </item>
|
||||
<item> rect </item>
|
||||
<item> rgb </item>
|
||||
<item> counter </item>
|
||||
<item> counters </item>
|
||||
|
||||
<!-- in @font-face -->
|
||||
<item> local </item>
|
||||
<item> format </item>
|
||||
</list>
|
||||
|
||||
<list name="mediatypes">
|
||||
<item> all </item>
|
||||
<item> aural </item>
|
||||
<item> braille </item>
|
||||
<item> embossed </item>
|
||||
<item> handheld </item>
|
||||
<item> print </item>
|
||||
<item> projection </item>
|
||||
<item> screen </item>
|
||||
<item> tty </item>
|
||||
<item> tv </item>
|
||||
</list>
|
||||
|
||||
<list name="pseudoclasses">
|
||||
<item> hover </item>
|
||||
<item> link </item>
|
||||
<item> visited </item>
|
||||
<item> active </item>
|
||||
<item> focus </item>
|
||||
<item> first-child </item>
|
||||
<item> last-child </item>
|
||||
<item> only-child </item>
|
||||
<item> first-of-type </item>
|
||||
<item> last-of-type </item>
|
||||
<item> only-of-type </item>
|
||||
<item> first-letter </item>
|
||||
<item> first-line </item>
|
||||
<item> before </item>
|
||||
<item> after </item>
|
||||
<item> selection </item>
|
||||
<item> root </item>
|
||||
<item> empty </item>
|
||||
<item> target </item>
|
||||
<item> enabled </item>
|
||||
<item> disabled </item>
|
||||
<item> checked </item>
|
||||
<item> indeterminate </item>
|
||||
<item> nth-child </item>
|
||||
<item> nth-last-child </item>
|
||||
<item> nth-of-type </item>
|
||||
<item> nth-last-of-type </item>
|
||||
<item> not </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Base">
|
||||
<LineContinue/>
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="FindRuleSets" />
|
||||
</context>
|
||||
|
||||
<!-- finds rules -->
|
||||
<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" />
|
||||
<RegExpr attribute="Variable" context="Variable Declaration" String="@[A-Za-z0-9_-]+(?=\s*:)" />
|
||||
<DetectChar attribute="Property" context="RuleSet" char="{" beginRegion="ruleset" />
|
||||
<!--parse selectors-->
|
||||
<DetectChar attribute="Selector Attr" context="SelAttr" char="[" />
|
||||
<RegExpr attribute="Selector Id" context="#stay" String="#[A-Za-z0-9][\w\-]*" />
|
||||
<RegExpr attribute="Selector Class" context="#stay" String="\.[A-Za-z0-9][\w\-]*" />
|
||||
<RegExpr attribute="Selector Pseudo" context="#stay" String=":lang\([\w_-]+\)" />
|
||||
<DetectChar attribute="Selector Pseudo" context="SelPseudo" char=":" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<!-- finds arguments to properties -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindValues">
|
||||
<RegExpr attribute="Variable" context="#stay" String="@[A-Za-z0-9_-]+" />
|
||||
<RegExpr attribute="Value" context="#stay" String="[-+]?[0-9.]+(em|ex|px|in|cm|mm|pt|pc|deg|rad|grad|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">
|
||||
<DetectChar attribute="String" context="StringDQ" char=""" />
|
||||
<DetectChar attribute="String" context="StringSQ" char="'" />
|
||||
</context>
|
||||
|
||||
<!-- finds comments -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindComments">
|
||||
<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="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Multi/inline Comment" char="/" char1="*" beginRegion="comment" />
|
||||
</context>
|
||||
|
||||
<!-- other contexts -->
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Media">
|
||||
<DetectChar attribute="Media" context="Media2" char="{" beginRegion="media" />
|
||||
<keyword attribute="Media" context="#stay" String="mediatypes" />
|
||||
<DetectChar attribute="Media" context="#stay" char="," />
|
||||
<IncludeRules context="FindComments" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S+" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Media2">
|
||||
<DetectChar attribute="Media" context="#pop#pop" char="}" endRegion="media" />
|
||||
<IncludeRules context="FindRuleSets" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Variable Declaration">
|
||||
<DetectChar attribute="Property" context="Variable Declaration 2" char=":" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Variable Declaration 2">
|
||||
<DetectChar attribute="Property" context="#pop#pop" char=";" />
|
||||
<IncludeRules context="FindPropertyValues" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<context attribute="Selector Attr" lineEndContext="#stay" name="SelAttr">
|
||||
<DetectChar attribute="Selector Attr" context="#pop" char="]" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
</context>
|
||||
|
||||
<context attribute="Selector Pseudo" lineEndContext="#pop" name="SelPseudo" fallthrough="true" fallthroughContext="#pop">
|
||||
<keyword attribute="Selector Pseudo" context="#pop" String="pseudoclasses" />
|
||||
<RegExpr attribute="Unknown Selector Pseudo" context="#pop" String="[A-Za-z_-]+(?=\s*\{)" />
|
||||
</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="Multi/inline Comment">
|
||||
<DetectSpaces/>
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Comment">
|
||||
<DetectSpaces />
|
||||
<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="Mixin" context="Mixin" String="\.[A-Za-z_-]+(?=\s*\()" />
|
||||
<RegExpr attribute="Unknown Property" context="Rule" String="[A-Za-z_-]+(?=\s*:)" />
|
||||
<IncludeRules context="FindComments" />
|
||||
<IncludeRules context="FindRuleSets" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Rule">
|
||||
<DetectChar attribute="Property" context="Rule2" char=":" />
|
||||
<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" />
|
||||
<IncludeRules context="FindPropertyValues" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="FindPropertyValues">
|
||||
<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>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Mixin">
|
||||
<DetectChar attribute="Mixin" context="Mixin2" char="(" />
|
||||
<DetectChar attribute="Property" context="#pop" char=";" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Mixin2">
|
||||
<DetectChar attribute="Mixin" context="#pop" char=")" />
|
||||
<DetectChar attribute="Mixin" 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" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</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>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="PropParen2">
|
||||
<DetectChar attribute="Value" context="#pop#pop" char=")" />
|
||||
<IncludeRules context="FindValues" />
|
||||
<IncludeRules context="FindStrings" />
|
||||
<IncludeRules context="FindComments" />
|
||||
</context>
|
||||
|
||||
<!-- string contexts -->
|
||||
<context attribute="String" lineEndContext="#stay" name="StringDQ">
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="StringSQ">
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
<IncludeRules context="InsideString" />
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#stay" name="InsideString">
|
||||
<RegExpr attribute="String" context="#stay" String="\\["']" />
|
||||
<DetectIdentifier/>
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||
<itemData name="Property" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Unknown Property" defStyleNum="dsKeyword" italic="1"/>
|
||||
<itemData name="Media" defStyleNum="dsDecVal" bold="1"/>
|
||||
<itemData name="At Rule" defStyleNum="dsDecVal" />
|
||||
<itemData name="String" defStyleNum="dsString" />
|
||||
<itemData name="Value" defStyleNum="dsDataType" />
|
||||
<itemData name="Variable" defStyleNum="dsDataType" bold="1" />
|
||||
<itemData name="Important" defStyleNum="dsKeyword" />
|
||||
<itemData name="Mixin" defStyleNum="dsKeyword" bold="1" />
|
||||
<itemData name="Selector Attr" defStyleNum="dsChar" />
|
||||
<itemData name="Selector Id" defStyleNum="dsFloat" bold="1"/>
|
||||
<itemData name="Selector Class" defStyleNum="dsFloat" />
|
||||
<itemData name="Selector Pseudo" defStyleNum="dsDecVal" />
|
||||
<itemData name="Unknown Selector Pseudo" defStyleNum="dsDecVal" italic="1" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Region Marker" defStyleNum="dsRegionMarker"/>
|
||||
<itemData name="Alert" defStyleNum="dsAlert"/>
|
||||
<itemData name="Error" defStyleNum="dsError"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<keywords casesensitive="0" weakDeliminator="-%"/>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//" />
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Literate Curry" version="0.3" kateversion="2.5"
|
||||
section="Sources" extensions="*.lcurry" mimetype="text/x-curry"
|
||||
author="Björn Peemöller (bjp@informatik.uni-kiel.de)" license="LGPL"
|
||||
indenter="haskell">
|
||||
<highlighting>
|
||||
<contexts>
|
||||
|
||||
<context attribute="Text" lineEndContext="#stay" name="Text">
|
||||
<!-- Bird Tracks -->
|
||||
<DetectChar attribute="BirdTrack" context="Code" char=">" column="0"/>
|
||||
<DetectChar attribute="BirdTrack" context="Code" char="<" column="0"/>
|
||||
<!-- \begin{code} and \begin{spec} -->
|
||||
<StringDetect attribute="Text" context="normals" String="\begin{code}"/>
|
||||
<StringDetect attribute="Text" context="normals" String="\begin{spec}"/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal" lineEndContext="#pop" name="Code">
|
||||
<RegExpr attribute="Comment" context="multiline" String="\{-[^#]" />
|
||||
<IncludeRules context="##Curry" />
|
||||
</context>
|
||||
|
||||
<context attribute="Normal" lineEndContext="#stay" name="normals">
|
||||
<StringDetect attribute="Normal" context="#pop" String="\end{code}"/>
|
||||
<StringDetect attribute="Normal" context="#pop" String="\end{spec}"/>
|
||||
<IncludeRules context="##Curry" />
|
||||
</context>
|
||||
|
||||
<!-- Handle comments in presence of bird tracks -->
|
||||
<context attribute="Comment" lineEndContext="lineend" name="multiline" >
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" />
|
||||
</context>
|
||||
|
||||
<context attribute="Text" lineEndContext="#stay" name="lineend">
|
||||
<DetectChar attribute="BirdTrack" context="restart" char=">" column="0"/>
|
||||
<DetectChar attribute="BirdTrack" context="restart" char="<" column="0"/>
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="restart">
|
||||
<Detect2Chars attribute="Comment" context="#pop#pop#pop" char="-" char1="}" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Text" defStyleNum="dsNormal" spellChecking="true" />
|
||||
<itemData name="BirdTrack" defStyleNum="dsOthers" spellChecking="false" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
</language>
|
@ -0,0 +1,255 @@
|
||||
<?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;);">
|
||||
]>
|
||||
<language name="Mako" version="1.01" kateversion="2.5" section="Markup" extensions="*.mako;*.mak" author="Massimiliano Torromeo (massimiliano.torromeo@gmail.com)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<list name="flow">
|
||||
<item> endfor </item>
|
||||
<item> endif </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindMako" />
|
||||
<IncludeRules context="FindHTML" />
|
||||
</context>
|
||||
|
||||
<context name="FindMako" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="MakoKeyword" context="NoMakoHTML" String="<%text(?:\s+[^>]*)?>" beginRegion="nomako" />
|
||||
<Detect2Chars attribute="MakoKeyword" context="Mako" char="<" char1="%" />
|
||||
<RegExpr attribute="MakoKeyword" context="Mako" String="</?%" />
|
||||
<RegExpr attribute="MakoKeyword" context="MakoOneLiner" String="^\s*% " />
|
||||
<Detect2Chars attribute="MakoKeyword" context="MakoPrint" char="$" char1="{" />
|
||||
</context>
|
||||
|
||||
<context name="Mako" attribute="Mako" lineEndContext="#stay">
|
||||
<RegExpr attribute="MakoKeyword" context="#pop" String="[%/]?>" />
|
||||
<IncludeRules context="##Python" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="MakoOneLiner" attribute="MakoKeyword" lineEndContext="#pop">
|
||||
<keyword attribute="Flow Control Keyword" String="flow" context="#stay"/>
|
||||
<IncludeRules context="##Python" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="MakoPrint" attribute="Mako" lineEndContext="#stay">
|
||||
<DetectChar attribute="MakoKeyword" context="#pop" char="}" />
|
||||
<IncludeRules context="##Python" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="NoMakoHTML" attribute="Normal Text" lineEndContext="#stay">
|
||||
<StringDetect attribute="MakoKeyword" context="#pop" String="</%text>" endRegion="nomako" />
|
||||
<IncludeRules context="##HTML" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="NoMakoJS" attribute="Normal Text" lineEndContext="#stay">
|
||||
<StringDetect attribute="MakoKeyword" context="#pop" String="</%text>" endRegion="nomako" />
|
||||
<IncludeRules context="##JavaScript" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="FindHTML" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces/>
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||
<StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" />
|
||||
<RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" beginRegion="doctype" />
|
||||
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||
<RegExpr attribute="Element" context="CSS" String="<style\b" insensitive="TRUE" beginRegion="style" />
|
||||
<RegExpr attribute="Element" context="JS" String="<script\b" insensitive="TRUE" beginRegion="script" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<pre\b" insensitive="TRUE" beginRegion="pre" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<div\b" insensitive="TRUE" beginRegion="div" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<table\b" insensitive="TRUE" beginRegion="table" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<ul\b" insensitive="TRUE" beginRegion="ul" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<ol\b" insensitive="TRUE" beginRegion="ol" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<dl\b" insensitive="TRUE" beginRegion="dl" />
|
||||
<RegExpr attribute="Element" context="El Open" String="<&name;" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</pre\b" insensitive="TRUE" endRegion="pre" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</div\b" insensitive="TRUE" endRegion="div" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</table\b" insensitive="TRUE" endRegion="table" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</ul\b" insensitive="TRUE" endRegion="ul" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</ol\b" insensitive="TRUE" endRegion="ol" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</dl\b" insensitive="TRUE" endRegion="dl" />
|
||||
<RegExpr attribute="Element" context="El Close" String="</&name;" />
|
||||
<!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="FindEntityRefs" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
|
||||
<AnyChar attribute="Error" context="#stay" String="&<" />
|
||||
</context>
|
||||
|
||||
<context name="FindPEntityRefs" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
|
||||
<RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
|
||||
<AnyChar attribute="Error" context="#stay" String="&%" />
|
||||
</context>
|
||||
|
||||
<context name="FindAttributes" attribute="Normal 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="&name;" />
|
||||
<DetectChar attribute="Attribute" context="Value" char="=" />
|
||||
</context>
|
||||
|
||||
<context name="FindDTDRules" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Doctype" context="Doctype Markupdecl" String="<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
|
||||
</context>
|
||||
|
||||
<context name="Comment" attribute="Comment" lineEndContext="#stay">
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
|
||||
<RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" />
|
||||
</context>
|
||||
|
||||
<context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces/>
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="CDATA" context="#pop" String="]]>" endRegion="cdata" />
|
||||
<StringDetect attribute="EntityRef" context="#stay" String="]]&gt;" />
|
||||
</context>
|
||||
|
||||
<context name="PI" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Doctype" context="#pop" char=">" endRegion="doctype" />
|
||||
<DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Internal Subset" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
|
||||
<IncludeRules context="FindDTDRules" />
|
||||
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Doctype" context="#pop" char=">" />
|
||||
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char=""" />
|
||||
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="'" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
|
||||
<DetectChar attribute="Value" context="#pop" char=""" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
|
||||
<DetectChar attribute="Value" context="#pop" char="'" />
|
||||
<IncludeRules context="FindPEntityRefs" />
|
||||
</context>
|
||||
|
||||
<context name="El Open" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" />
|
||||
<DetectChar attribute="Element" context="#pop" char=">" />
|
||||
<IncludeRules context="FindAttributes" />
|
||||
<IncludeRules context="FindMako" />
|
||||
</context>
|
||||
|
||||
<context name="El Close" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Element" context="#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="El Close 2" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Element" context="#pop#pop#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="El Close 3" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Element" context="#pop#pop#pop#pop" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="CSS" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="style" />
|
||||
<DetectChar attribute="Element" context="CSS content" char=">" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="CSS content" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Element" context="El Close 2" String="</style\b" insensitive="TRUE" endRegion="style" />
|
||||
<IncludeRules context="##CSS" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="JS" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="script" />
|
||||
<DetectChar attribute="Element" context="JS content" char=">" />
|
||||
<IncludeRules context="FindAttributes" />
|
||||
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||
</context>
|
||||
|
||||
<context name="JS content" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="TRUE" endRegion="script" />
|
||||
<RegExpr attribute="Comment" context="JS comment close" String="//(?=.*</script\b)" insensitive="TRUE" />
|
||||
<RegExpr attribute="MakoKeyword" context="NoMakoJS" String="<%text(?:\s+[^>]*)?>" beginRegion="nomako" />
|
||||
<IncludeRules context="FindMako" />
|
||||
<IncludeRules context="##JavaScript" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="JS comment close" attribute="Comment" lineEndContext="#pop">
|
||||
<RegExpr attribute="Element" context="El Close 3" String="</script\b" insensitive="TRUE" endRegion="script" />
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context name="Value" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="Value NQ">
|
||||
<DetectChar attribute="Value" context="Value DQ" char=""" />
|
||||
<DetectChar attribute="Value" context="Value SQ" char="'" />
|
||||
<DetectSpaces />
|
||||
</context>
|
||||
|
||||
<context name="Value NQ" attribute="Normal Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
<RegExpr attribute="Value" context="#stay" String="/(?!>)" />
|
||||
<RegExpr attribute="Value" context="#stay" String="[^/><"'\s]" />
|
||||
</context>
|
||||
|
||||
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
|
||||
<DetectChar attribute="Value" context="#pop#pop" char=""" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
<IncludeRules context="FindMako" />
|
||||
</context>
|
||||
|
||||
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
|
||||
<DetectChar attribute="Value" context="#pop#pop" char="'" />
|
||||
<IncludeRules context="FindEntityRefs" />
|
||||
<IncludeRules context="FindMako" />
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="CDATA" defStyleNum="dsBaseN" bold="1" />
|
||||
<itemData name="Processing Instruction" defStyleNum="dsKeyword" />
|
||||
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" />
|
||||
<itemData name="Element" defStyleNum="dsKeyword" />
|
||||
<itemData name="Flow Control Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
|
||||
<itemData name="Attribute" defStyleNum="dsOthers" />
|
||||
<itemData name="Value" defStyleNum="dsString" color="#a00" />
|
||||
<itemData name="EntityRef" defStyleNum="dsDecVal" />
|
||||
<itemData name="PEntityRef" defStyleNum="dsDecVal" />
|
||||
<itemData name="Error" defStyleNum="dsError" />
|
||||
<itemData name="Mako" defStyleNum="dsDataType" />
|
||||
<itemData name="MakoVar" defStyleNum="dsOthers" bold="1" />
|
||||
<itemData name="MakoString" defStyleNum="dsString" />
|
||||
<itemData name="MakoKeyword" defStyleNum="dsDataType" bold="1" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="multiLine" start="<!--" end="-->" />
|
||||
<comment name="multiLine" start="<%doc>" end="</%doc>" />
|
||||
<comment name="singleLine" start="##" position="afterwhitespace"/>
|
||||
</comments>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,192 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="nesC" author="Shakthi Kannan" license="GPLv2" version="1.01" kateversion="2.5" section="Sources" extensions="*.nc" mimetype="text/x-ncsrc" priority="5">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> break </item>
|
||||
<item> case </item>
|
||||
<item> continue </item>
|
||||
<item> default </item>
|
||||
<item> do </item>
|
||||
<item> else </item>
|
||||
<item> enum </item>
|
||||
<item> extern </item>
|
||||
<item> for </item>
|
||||
<item> goto </item>
|
||||
<item> if </item>
|
||||
<item> inline </item>
|
||||
<item> return </item>
|
||||
<item> sizeof </item>
|
||||
<item> struct </item>
|
||||
<item> switch </item>
|
||||
<item> typedef </item>
|
||||
<item> union </item>
|
||||
<item> while </item> <item> interface </item>
|
||||
<item> module </item>
|
||||
<item> configuration </item>
|
||||
<item> implementation </item>
|
||||
<item> components </item>
|
||||
<item> as </item>
|
||||
<item> uses </item>
|
||||
<item> provides </item>
|
||||
<item> includes </item>
|
||||
<item> command </item>
|
||||
<item> event </item>
|
||||
<item> async </item>
|
||||
<item> task </item>
|
||||
<item> norace </item>
|
||||
<item> default </item>
|
||||
<item> __attribute__ </item>
|
||||
<item> atomic </item>
|
||||
<item> call </item>
|
||||
<item> signal </item>
|
||||
<item> post </item>
|
||||
|
||||
</list>
|
||||
<list name="types">
|
||||
<item> auto </item>
|
||||
<item> char </item>
|
||||
<item> const </item>
|
||||
<item> double </item>
|
||||
<item> float </item>
|
||||
<item> int </item>
|
||||
<item> long </item>
|
||||
<item> register </item>
|
||||
<item> restrict </item>
|
||||
<item> short </item>
|
||||
<item> signed </item>
|
||||
<item> static </item>
|
||||
<item> unsigned </item>
|
||||
<item> void </item>
|
||||
<item> volatile </item>
|
||||
<item> _Imaginary </item>
|
||||
<item> _Complex </item>
|
||||
<item> _Bool </item>
|
||||
<item> bool </item>
|
||||
<item> uint8_t </item>
|
||||
<item> uint16_t </item>
|
||||
<item> uint32_t </item>
|
||||
<item> uint64_t </item>
|
||||
<item> result_t </item>
|
||||
<item> SUCCESS </item>
|
||||
<item> FAIL </item>
|
||||
<item> TRUE </item>
|
||||
<item> FALSE </item>
|
||||
<item> TOSH_INTERRUPT </item>
|
||||
<item> TOSH_SIGNAL </item>
|
||||
<item> TOS_MsgPtr </item>
|
||||
<item> TOS_Msg </item>
|
||||
</list>
|
||||
<list name="attention">
|
||||
<item> FIXME </item>
|
||||
<item> TODO </item>
|
||||
<item> ### </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
||||
<keyword attribute="Data Type" context="#stay" String="types"/>
|
||||
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
|
||||
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
|
||||
<Float attribute="Float" context="#stay">
|
||||
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
||||
</Float>
|
||||
<HlCOct attribute="Octal" context="#stay"/>
|
||||
<HlCHex attribute="Hex" context="#stay"/>
|
||||
<Int attribute="Decimal" context="#stay">
|
||||
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
|
||||
</Int>
|
||||
<HlCChar attribute="Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
||||
<StringDetect attribute="Preprocessor" context="Outscoped" String="#if 0" insensitive="FALSE"/>
|
||||
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#"/>
|
||||
<RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*[(])"/>
|
||||
<RegExpr attribute="Symbol" context="Member" String="[.]{1,1}"/>
|
||||
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/>
|
||||
</context>
|
||||
<context attribute="String" lineEndContext="#pop" name="String">
|
||||
<LineContinue attribute="String" context="#stay"/>
|
||||
<HlCStringChar attribute="String Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="#pop" char="""/>
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Member">
|
||||
<RegExpr attribute="Function" context="#pop" String="\b[_\w][_\w\d]*(?=[\s]*)"/>
|
||||
</context>
|
||||
|
||||
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
|
||||
<IncludeRules context="##Alerts"/>
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
|
||||
<keyword attribute="Decimal" context="#stay" String="attention"/>
|
||||
</context>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
|
||||
<LineContinue attribute="Preprocessor" context="#stay"/>
|
||||
<RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
|
||||
<RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/>
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2"/>
|
||||
</context>
|
||||
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
|
||||
<LineContinue attribute="Preprocessor" context="#stay"/>
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2"/>
|
||||
</context>
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Some Context"/>
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Some Context2"/>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Outscoped">
|
||||
<keyword attribute="Decimal" context="#stay" String="attention"/>
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="^#if"/>
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="#endif"/>
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="#else"/>
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="#if"/>
|
||||
<RegExpr attribute="Comment" context="#pop" String="#endif"/>
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Function" defStyleNum="dsKeyword" color="#000080" selColor="#ffffff" bold="0" italic="0"/>
|
||||
<itemData name="Data Type" defStyleNum="dsDataType"/>
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal"/>
|
||||
<itemData name="Octal" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Hex" defStyleNum="dsBaseN"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat"/>
|
||||
<itemData name="Char" defStyleNum="dsChar"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="String Char" defStyleNum="dsChar"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Symbol" defStyleNum="dsNormal"/>
|
||||
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
|
||||
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//"/>
|
||||
<comment name="multiLine" start="/*" end="*/"/>
|
||||
</comments>
|
||||
<keywords casesensitive="1"/>
|
||||
</general>
|
||||
</language>
|
@ -0,0 +1,257 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="OpenCL" section="Sources"
|
||||
version="1.45" kateversion="2.5"
|
||||
indenter="cstyle"
|
||||
extensions="*.cl"
|
||||
mimetype="text/x-clsrc"
|
||||
priority="5">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> __constant </item>
|
||||
<item> __global </item>
|
||||
<item> __local </item>
|
||||
<item> __private </item>
|
||||
<item> __kernel </item>
|
||||
<item> __read_only </item>
|
||||
<item> __write_only </item>
|
||||
<item> constant </item>
|
||||
<item> global </item>
|
||||
<item> local </item>
|
||||
<item> private </item>
|
||||
<item> kernel </item>
|
||||
<item> read_only </item>
|
||||
<item> write_only </item>
|
||||
<item> break </item>
|
||||
<item> case </item>
|
||||
<item> continue </item>
|
||||
<item> default </item>
|
||||
<item> do </item>
|
||||
<item> else </item>
|
||||
<item> enum </item>
|
||||
<item> for </item>
|
||||
<item> goto </item>
|
||||
<item> if </item>
|
||||
<item> inline </item>
|
||||
<item> return </item>
|
||||
<item> sizeof </item>
|
||||
<item> struct </item>
|
||||
<item> switch </item>
|
||||
<item> typedef </item>
|
||||
<item> union </item>
|
||||
<item> while </item>
|
||||
</list>
|
||||
<list name="types">
|
||||
<item> bool </item>
|
||||
<item> uchar </item>
|
||||
<item> uchar2 </item>
|
||||
<item> uchar3 </item>
|
||||
<item> uchar4 </item>
|
||||
<item> uchar8 </item>
|
||||
<item> uchar16 </item>
|
||||
<item> char </item>
|
||||
<item> char2 </item>
|
||||
<item> char3 </item>
|
||||
<item> char4 </item>
|
||||
<item> char8 </item>
|
||||
<item> char16 </item>
|
||||
<item> const </item>
|
||||
<item> double </item>
|
||||
<item> double2 </item>
|
||||
<item> double3 </item>
|
||||
<item> double4 </item>
|
||||
<item> double8 </item>
|
||||
<item> double16 </item>
|
||||
<item> event_t </item>
|
||||
<item> float </item>
|
||||
<item> float2 </item>
|
||||
<item> float3 </item>
|
||||
<item> float4 </item>
|
||||
<item> float8 </item>
|
||||
<item> float16 </item>
|
||||
<item> half </item>
|
||||
<item> half2 </item>
|
||||
<item> half3 </item>
|
||||
<item> half4 </item>
|
||||
<item> half8 </item>
|
||||
<item> half16 </item>
|
||||
<item> image1d_t </item>
|
||||
<item> image2d_t </item>
|
||||
<item> image3d_t </item>
|
||||
<item> uint </item>
|
||||
<item> uint2 </item>
|
||||
<item> uint3 </item>
|
||||
<item> uint4 </item>
|
||||
<item> uint8 </item>
|
||||
<item> uint16 </item>
|
||||
<item> int </item>
|
||||
<item> int2 </item>
|
||||
<item> int3 </item>
|
||||
<item> int4 </item>
|
||||
<item> int8 </item>
|
||||
<item> int16 </item>
|
||||
<item> ulong </item>
|
||||
<item> ulong2 </item>
|
||||
<item> ulong3 </item>
|
||||
<item> ulong4 </item>
|
||||
<item> ulong8 </item>
|
||||
<item> ulong16 </item>
|
||||
<item> long </item>
|
||||
<item> long2 </item>
|
||||
<item> long3 </item>
|
||||
<item> long4 </item>
|
||||
<item> long8 </item>
|
||||
<item> long16 </item>
|
||||
<item> restrict </item>
|
||||
<item> sampler_t </item>
|
||||
<item> ushort </item>
|
||||
<item> ushort2 </item>
|
||||
<item> ushort3 </item>
|
||||
<item> ushort4 </item>
|
||||
<item> ushort8 </item>
|
||||
<item> ushort16 </item>
|
||||
<item> short </item>
|
||||
<item> short2 </item>
|
||||
<item> short3 </item>
|
||||
<item> short4 </item>
|
||||
<item> short8 </item>
|
||||
<item> short16 </item>
|
||||
<item> signed </item>
|
||||
<item> static </item>
|
||||
<item> unsigned </item>
|
||||
<item> void </item>
|
||||
<item> volatile </item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
|
||||
<DetectSpaces />
|
||||
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0\s*$" beginRegion="PP" firstNonSpace="true" />
|
||||
<DetectChar context="AfterHash" char="#" firstNonSpace="true" lookAhead="true" />
|
||||
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
|
||||
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
||||
<keyword attribute="Data Type" context="#stay" String="types"/>
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
|
||||
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
|
||||
<Float attribute="Float" context="#stay">
|
||||
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
||||
</Float>
|
||||
<HlCOct attribute="Octal" context="#stay"/>
|
||||
<HlCHex attribute="Hex" context="#stay"/>
|
||||
<Int attribute="Decimal" context="#stay" >
|
||||
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
|
||||
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
|
||||
</Int>
|
||||
<HlCChar attribute="Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
||||
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/>
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#pop" name="String">
|
||||
<LineContinue attribute="String" context="#stay"/>
|
||||
<HlCStringChar attribute="String Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="#pop" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
|
||||
<LineContinue attribute="Comment" context="#stay"/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context attribute="Error" lineEndContext="#pop" name="AfterHash">
|
||||
<!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
|
||||
</context>
|
||||
|
||||
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
|
||||
<LineContinue attribute="Preprocessor" context="#stay"/>
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/>
|
||||
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/" />
|
||||
</context>
|
||||
|
||||
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
|
||||
<LineContinue attribute="Preprocessor" context="#stay"/>
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
|
||||
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Alerts" />
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<IncludeRules context="##Doxygen" />
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
||||
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
|
||||
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
|
||||
<itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="String Char" defStyleNum="dsChar"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
|
||||
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
|
||||
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
|
||||
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
|
||||
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//" />
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" additionalDeliminator="'"" />
|
||||
</general>
|
||||
</language>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE language SYSTEM "language.dtd" []>
|
||||
|
||||
<!--
|
||||
The following documentation is available for PPD:
|
||||
- File Format Specification: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
|
||||
- Update to the Specification: http://partners.adobe.com/public/developer/en/ps/5645.PPD_Update.pdf
|
||||
- CUPS PPD Extensions: http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html
|
||||
-->
|
||||
|
||||
<language name="PostScript Printer Description" version="0.2" kateversion="2.5" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="public domain">
|
||||
|
||||
<highlighting>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Option" lineEndContext="#stay" name="contextNormal">
|
||||
<Detect2Chars context="contextComment" char="*" char1="%" column="0"/>
|
||||
<DetectChar attribute="Colon" context="contextValue" char=":" />
|
||||
<StringDetect attribute="Keyword" String="*OpenUI" beginRegion="ui"/>
|
||||
<StringDetect attribute="Keyword" String="*CloseUI" endRegion="ui"/>
|
||||
<StringDetect attribute="Keyword" String="*OpenGroup" beginRegion="group"/>
|
||||
<StringDetect attribute="Keyword" String="*CloseGroup" endRegion="group"/>
|
||||
<RegExpr attribute="Keyword" String="\*[!-.0-9;-~]*"/> <!-- According to http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf page 16 (page 20 in the PDF file), all characters from 33 to 126 are allowed, except ':' and '/'. -->
|
||||
</context>
|
||||
<context attribute="Comment" lineEndContext="#pop" name="contextComment">
|
||||
<IncludeRules context="##Alerts"/>
|
||||
</context>
|
||||
<context attribute="Value" lineEndContext="#pop" name="contextValue"></context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Colon" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Value" defStyleNum="dsString"/>
|
||||
<itemData name="Option" defStyleNum="dsOthers"/>
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="*%"/>
|
||||
</comments>
|
||||
</general>
|
||||
|
||||
</language>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Protobuf" version="2.41" kateversion="2.5" section="Sources" extensions="*.proto" mimetype="text/x-protobuf" author="Slawomir Mikula (slawek.mikula@gmail.com)" license="LGPL">
|
||||
<highlighting>
|
||||
<list name="keywords">
|
||||
<item> message </item>
|
||||
<item> required </item>
|
||||
<item> optional </item>
|
||||
<item> repeated </item>
|
||||
<item> packed </item>
|
||||
<item> enum </item>
|
||||
<item> default </item>
|
||||
<item> import </item>
|
||||
<item> public </item>
|
||||
<item> extensions </item>
|
||||
<item> package </item>
|
||||
<item> option </item>
|
||||
<item> deprecated </item>
|
||||
<item> extend </item>
|
||||
</list>
|
||||
<list name="operators">
|
||||
<item> = </item>
|
||||
<item> ; </item>
|
||||
</list>
|
||||
<list name="datatypes">
|
||||
<item> double </item>
|
||||
<item> float </item>
|
||||
<item> int32 </item>
|
||||
<item> int64 </item>
|
||||
<item> uint32 </item>
|
||||
<item> uint64 </item>
|
||||
<item> sint32 </item>
|
||||
<item> sint64 </item>
|
||||
<item> fixed32 </item>
|
||||
<item> fixed64 </item>
|
||||
<item> sfixed32 </item>
|
||||
<item> sfixed64 </item>
|
||||
<item> bool </item>
|
||||
<item> string </item>
|
||||
<item> bytes </item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
|
||||
<DetectSpaces />
|
||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
||||
<keyword attribute="Operator" context="#stay" String="operators"/>
|
||||
<keyword attribute="Data Type" context="#stay" String="datatypes"/>
|
||||
<RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" />
|
||||
<DetectIdentifier />
|
||||
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
|
||||
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
|
||||
<DetectChar attribute="String" context="String" char="""/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
|
||||
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
||||
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/>
|
||||
<Float attribute="Float" context="#stay">
|
||||
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
||||
</Float>
|
||||
<HlCOct attribute="Octal" context="#stay"/>
|
||||
<HlCHex attribute="Hex" context="#stay"/>
|
||||
<Int attribute="Decimal" context="#stay">
|
||||
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
|
||||
</Int>
|
||||
<HlCChar attribute="Char" context="#stay"/>
|
||||
<RegExpr attribute="Char" context="#stay" String="'\\u[0-9a-fA-F]{4}'"/>
|
||||
</context>
|
||||
|
||||
<context attribute="String" lineEndContext="#pop" name="String">
|
||||
<LineContinue attribute="String" context="#stay"/>
|
||||
<HlCStringChar attribute="String Char" context="#stay"/>
|
||||
<DetectChar attribute="String" context="#pop" char="""/>
|
||||
</context>
|
||||
|
||||
<context attribute="Normal Text" lineEndContext="#pop" name="Imports">
|
||||
<RegExpr attribute="Imports" context="#pop" String="\s*.*;" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
|
||||
<LineContinue attribute="Comment" context="#stay"/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
|
||||
<IncludeRules context="##Alerts" />
|
||||
</context>
|
||||
|
||||
<context attribute="Comment" lineEndContext="#stay" name="Commentar">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
|
||||
<itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
|
||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||
<itemData name="Imports" defStyleNum="dsOthers"/>
|
||||
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>
|
||||
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
|
||||
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="String Char" defStyleNum="dsChar"/>
|
||||
|
||||
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
|
||||
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
|
||||
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="//" />
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Restructured Text" version="1.01" kateversion="2.5" section="Markup" extensions="*.rst" author="Massimiliano Torromeo (massimiliano.torromeo@gmail.com)" license="LGPL">
|
||||
|
||||
<highlighting>
|
||||
<contexts>
|
||||
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Emphasys" String="\*[^* ].*\S\*" context="#stay" />
|
||||
<RegExpr attribute="Strong" String="\*\*\S.*\S\*\*" context="#stay" />
|
||||
<RegExpr attribute="Literal" String="``\S.*\S``" context="#stay" />
|
||||
<RegExpr attribute="Directive" String="^\.\. " context="Directive" />
|
||||
<RegExpr attribute="Title" String="^(#{3,}|\*{3,}|={3,}|-{3,}|\^{3,}|"{3,}|'{3,}|~{3,}|`{3,}|\+{3,})$" context="#stay" />
|
||||
<RegExpr attribute="OrderedList" String="[#0-9]\.\s" firstNonSpace="1" context="#stay" />
|
||||
<AnyChar attribute="UnorderedList" String="*+-" firstNonSpace="1" context="#stay" />
|
||||
<DetectChar attribute="Link" char="`" context="Link" />
|
||||
<RegExpr attribute="Code" String="::$" context="CodeBlock" />
|
||||
</context>
|
||||
|
||||
<context name="CodeBlock" attribute="Code" lineEndContext="#stay">
|
||||
<RegExpr attribute="Code" String="^\s" context="Code" />
|
||||
</context>
|
||||
|
||||
<context name="Code" attribute="Code" lineEndContext="#stay">
|
||||
<RegExpr attribute="Normal" String="^\S" lookAhead="true" context="#pop#pop" />
|
||||
</context>
|
||||
|
||||
<context name="Directive" attribute="Directive" lineEndContext="#pop">
|
||||
<RegExpr attribute="Keyword" String="\w+" context="#stay" />
|
||||
</context>
|
||||
|
||||
<context name="Link" attribute="Link" lineEndContext="#pop">
|
||||
<DetectChar attribute="Link" char="<" context="URL" />
|
||||
<Detect2Chars attribute="Link" char="`" char1="_" context="#pop" />
|
||||
</context>
|
||||
|
||||
<context name="URL" attribute="LinkUrl" lineEndContext="#stay">
|
||||
<RegExpr attribute="LinkUrl" String="[^>]+" context="#stay" />
|
||||
<DetectChar attribute="Link" char=">" context="#pop" />
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Directive" defStyleNum="dsDecVal" />
|
||||
<itemData name="Emphasys" defStyleNum="dsNormal" italic="1" />
|
||||
<itemData name="Strong" defStyleNum="dsNormal" bold="1" />
|
||||
<itemData name="Literal" defStyleNum="dsDataType" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="OrderedList" defStyleNum="dsDecVal" />
|
||||
<itemData name="UnorderedList" defStyleNum="dsFloat" />
|
||||
<itemData name="Link" defStyleNum="dsString" />
|
||||
<itemData name="LinkUrl" defStyleNum="dsString" bold="1" />
|
||||
<itemData name="Title" defStyleNum="dsKeyword" bold="1" />
|
||||
<itemData name="Code" defStyleNum="dsDataType" />
|
||||
<itemData name="Error" defStyleNum="dsError" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
</language>
|
@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Kate syntax highlight filter for Textile formatted documents
|
||||
|
||||
Copyright 2012 alexander Kabakov. http://kabakov.wordpress.com/
|
||||
Licensed under GPL license.
|
||||
-->
|
||||
|
||||
<!DOCTYPE language SYSTEM "language.dtd"
|
||||
[
|
||||
<!ENTITY strongregex "(\s|^)\*[^*]\w.*\w[^*]\*(\s|\.|,|;|:|\-|\?|$)">
|
||||
<!ENTITY strikeoutregex "(\s|^)-[^-]\w.*\w[^-]-(\s|\.|,|;|:|\-|\?|$)">
|
||||
<!ENTITY blockattrsregex "(\(\w+(#\w+)?\))?">
|
||||
<!ENTITY formatregex "(>|<|=|<>)?">
|
||||
<!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
|
||||
]>
|
||||
|
||||
<language section="Markup" name="Textile"
|
||||
version="1.2" kateversion="2.5"
|
||||
extensions="*.textile" priority="15"
|
||||
author="Alexander Kabakov (kabakov.as@gmail.com)"
|
||||
license="LGPL" >
|
||||
<highlighting>
|
||||
<contexts>
|
||||
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text" >
|
||||
<StringDetect attribute="comment" context="comment" String="<!--" beginRegion="comment" />
|
||||
<RegExpr attribute="macro" String="\{\{&name;\}\}" />
|
||||
|
||||
<RegExpr context="sectiontitle_block" String="^h1" />
|
||||
<RegExpr context="sectionheader_block" String="^h2" />
|
||||
<RegExpr context="sectionheader_block" String="^h3" />
|
||||
<RegExpr context="sectionheader_block" String="^h4" />
|
||||
<RegExpr context="sectionheader_block" String="^h5" />
|
||||
|
||||
<RegExpr attribute="textblock" String="^p&blockattrsregex;&formatregex;\." />
|
||||
<RegExpr attribute="textblock" String="^pre&blockattrsregex;&formatregex;\." />
|
||||
<RegExpr attribute="textblock" String="^bq&blockattrsregex;&formatregex;\." />
|
||||
<RegExpr attribute="textblock" String="^bc&blockattrsregex;&formatregex;\." />
|
||||
<RegExpr context="image" String="!"/>
|
||||
|
||||
<IncludeRules context="inc" />
|
||||
|
||||
<RegExpr attribute="itemlist" String="^[\*\#]+\s" />
|
||||
<RegExpr attribute="htmllink" String='".*":http(s)?:[\w_/\\\d\.%\?&=-]*' />
|
||||
</context>
|
||||
|
||||
<context name="image" lineEndContext="#pop" attribute="image">
|
||||
<RegExpr String="&blockattrsregex;" attribute="blockattrs" />
|
||||
<RegExpr String="\w+\.(png|jpg|jpeg|gif|bmp)" attribute="imagefilename" />
|
||||
<DetectChar char="!" context="#pop" attribute="image"/>
|
||||
</context>
|
||||
|
||||
<context name="sectiontitle_block" lineEndContext="#pop" attribute="sectiontitle">
|
||||
<RegExpr String="&blockattrsregex;" attribute="sectionblockattrs" />
|
||||
</context>
|
||||
|
||||
<context name="sectionheader_block" lineEndContext="#pop" attribute="sectionheader">
|
||||
<RegExpr String="&blockattrsregex;" attribute="sectionblockattrs" />
|
||||
</context>
|
||||
|
||||
<context name="comment" attribute="comment" lineEndContext="#stay">
|
||||
<DetectSpaces/>
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="comment" context="#pop" String="-->" endRegion="comment" />
|
||||
</context>
|
||||
|
||||
<context attribute="common" name="inc" lineEndContext="#stay" >
|
||||
<RegExpr attribute="strong" String="&strongregex;" />
|
||||
<RegExpr attribute="strikeout" minimal="true" String="&strikeoutregex;"/>
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
|
||||
<itemData name="sectiontitle" defStyleNum="dsKeyword" bold="true" />
|
||||
<itemData name="sectionheader" defStyleNum="dsFunction" bold="true" />
|
||||
<itemData name="sectionblockattrs" defStyleNum="dsComment" bold="true"/>
|
||||
<itemData name="blockattrs" defStyleNum="dsComment" />
|
||||
<itemData name="textblock" defStyleNum="dsComment" />
|
||||
|
||||
<itemData name="strong" defStyleNum="dsNormal" bold="true" />
|
||||
<itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" />
|
||||
|
||||
<itemData name="itemlist" defStyleNum="dsDataType" />
|
||||
|
||||
<itemData name="macro" defStyleNum="dsComment" bold="true"/>
|
||||
<itemData name="comment" defStyleNum="dsComment" />
|
||||
|
||||
<itemData name="image" defStyleNum="dsFloat" />
|
||||
<itemData name="imagefilename" defStyleNum="dsKeyword" />
|
||||
<itemData name="htmllink" defStyleNum="dsDataType" />
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="multiLine" start="<!--" end="-->" />
|
||||
</comments>
|
||||
</general>
|
||||
|
||||
</language>
|
@ -0,0 +1,220 @@
|
||||
<!DOCTYPE DEFINITIONS>
|
||||
<DEFINITIONS>
|
||||
<Definition name="ABAP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/abap.xml" version="1.01"/>
|
||||
<Definition name="ABC" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/abc.xml" version="1.11"/>
|
||||
<Definition name="ActionScript 2.0" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/actionscript.xml" version="1.01"/>
|
||||
<Definition name="Ada" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ada.xml" version="1.08"/>
|
||||
<Definition name="AHDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahdl.xml" version="1.05"/>
|
||||
<Definition name="AutoHotKey" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ahk.xml" version="1.01"/>
|
||||
<Definition name="Alerts" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert.xml" version="1.09"/>
|
||||
<Definition name="Alerts_indent" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/alert_indent.xml" version="1.10"/>
|
||||
<Definition name="AMPLE" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ample.xml" version="0.3"/>
|
||||
<Definition name="ANSI C89" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansic89.xml" version="1.11"/>
|
||||
<Definition name="Ansys" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ansys.xml" version="1.3"/>
|
||||
<Definition name="Apache Configuration" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/apache.xml" version="1.12"/>
|
||||
<Definition name="AVR Assembler" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asm-avr.xml" version="1.05"/>
|
||||
<Definition name="Motorola DSP56k" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asm-dsp56k.xml" version="1.02"/>
|
||||
<Definition name="Motorola 68k (VASM/Devpac)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asm-m68k.xml" version="1.02"/>
|
||||
<Definition name="Asm6502" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asm6502.xml" version="1.05"/>
|
||||
<Definition name="ASN.1" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asn1.xml" version="1.02"/>
|
||||
<Definition name="ASP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asp.xml" version="1.05"/>
|
||||
<Definition name="Asterisk" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/asterisk.xml" version="1.01"/>
|
||||
<Definition name="AWK" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/awk.xml" version="0.93"/>
|
||||
<Definition name="Bash" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/bash.xml" version="2.18"/>
|
||||
<Definition name="BibTeX" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/bibtex.xml" version="1.18"/>
|
||||
<Definition name="B-Method" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/bmethod.xml" version="0.3"/>
|
||||
<Definition name="C" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/c.xml" version="1.46"/>
|
||||
<Definition name="CleanCSS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ccss.xml" version="1.01"/>
|
||||
<Definition name="Cg" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cg.xml" version="1.12"/>
|
||||
<Definition name="CGiS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cgis.xml" version="1.03"/>
|
||||
<Definition name="ChangeLog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/changelog.xml" version="1.05"/>
|
||||
<Definition name="Chicken" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/chicken.xml" version="1.13"/>
|
||||
<Definition name="Cisco" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cisco.xml" version="1.11"/>
|
||||
<Definition name="Clipper" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/clipper.xml" version="1.06"/>
|
||||
<Definition name="Clojure" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/clojure.xml" version="2.01"/>
|
||||
<Definition name="CMake" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cmake.xml" version="1.24"/>
|
||||
<Definition name="CoffeeScript" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/coffee.xml" version="1.5"/>
|
||||
<Definition name="ColdFusion" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/coldfusion.xml" version="1.05"/>
|
||||
<Definition name="Common Lisp" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/commonlisp.xml" version="1.06"/>
|
||||
<Definition name="Component-Pascal" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/component-pascal.xml" version="1.06"/>
|
||||
<Definition name="ConTeXt" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/context.xml" version="1.2"/>
|
||||
<Definition name="C++" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cpp.xml" version="1.52"/>
|
||||
<Definition name="C++11" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cpp11.xml" version="1.63"/>
|
||||
<Definition name="Crack" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/crk.xml" version="1.2"/>
|
||||
<Definition name="C#" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cs.xml" version="1.16"/>
|
||||
<Definition name="CSS/PHP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/css-php.xml" version="2.07"/>
|
||||
<Definition name="CSS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/css.xml" version="2.07"/>
|
||||
<Definition name="CUE Sheet" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/cue.xml" version="0.92"/>
|
||||
<Definition name="Curry" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/curry.xml" version="0.4"/>
|
||||
<Definition name="D" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/d.xml" version="1.63"/>
|
||||
<Definition name="Ddoc" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ddoc.xml" version="1.15"/>
|
||||
<Definition name="Debian Changelog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/debianchangelog.xml" version="0.69"/>
|
||||
<Definition name="Debian Control" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/debiancontrol.xml" version="0.85"/>
|
||||
<Definition name=".desktop" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/desktop.xml" version="1.06"/>
|
||||
<Definition name="Diff" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/diff.xml" version="1.12"/>
|
||||
<Definition name="Django HTML Template" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/djangotemplate.xml" version="1.4"/>
|
||||
<Definition name="MS-DOS Batch" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/dosbat.xml" version="0.31"/>
|
||||
<Definition name="dot" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/dot.xml" version="1.2"/>
|
||||
<Definition name="Doxygen" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/doxygen.xml" version="1.36"/>
|
||||
<Definition name="DoxygenLua" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/doxygenlua.xml" version="1.02"/>
|
||||
<Definition name="DTD" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/dtd.xml" version="1.03"/>
|
||||
<Definition name="E Language" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/e.xml" version="0.23"/>
|
||||
<Definition name="Eiffel" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/eiffel.xml" version="1.03"/>
|
||||
<Definition name="Email" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/email.xml" version="1.01"/>
|
||||
<Definition name="Erlang" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/erlang.xml" version="1.03"/>
|
||||
<Definition name="Euphoria" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/euphoria.xml" version="2.09"/>
|
||||
<Definition name="ferite" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ferite.xml" version="1.05"/>
|
||||
<Definition name="4GL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/fgl-4gl.xml" version="1.02"/>
|
||||
<Definition name="4GL-PER" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/fgl-per.xml" version="1.02"/>
|
||||
<Definition name="Fortran" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/fortran.xml" version="1.14"/>
|
||||
<Definition name="FreeBASIC" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/freebasic.xml" version="0.15"/>
|
||||
<Definition name="FSharp" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/fsharp.xml" version="0.0.2"/>
|
||||
<Definition name="fstab" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/fstab.xml" version="1.01"/>
|
||||
<Definition name="GAP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gap.xml" version="0.3"/>
|
||||
<Definition name="GCCExtensions" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gcc.xml" version="0.4"/>
|
||||
<Definition name="GDB Backtrace" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gdb.xml" version="1.01"/>
|
||||
<Definition name="GDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gdl.xml" version="1.02"/>
|
||||
<Definition name="GNU Gettext" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gettext.xml" version="2.01"/>
|
||||
<Definition name="Git Rebase" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/git-rebase.xml" version="1.01"/>
|
||||
<Definition name="GlossTex" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/glosstex.xml" version="0.02"/>
|
||||
<Definition name="GLSL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/glsl.xml" version="1.04"/>
|
||||
<Definition name="GNU Assembler" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gnuassembler.xml" version="1.11"/>
|
||||
<Definition name="Gnuplot" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/gnuplot.xml" version="0.2"/>
|
||||
<Definition name="Go" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/go.xml" version="1.05"/>
|
||||
<Definition name="KDev-PG[-Qt] Grammar" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/grammar.xml" version="0.25"/>
|
||||
<Definition name="Haml" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/haml.xml" version="1.2"/>
|
||||
<Definition name="Haskell" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/haskell.xml" version="2.3"/>
|
||||
<Definition name="PHP (HTML)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/html-php.xml" version="2.00"/>
|
||||
<Definition name="HTML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/html.xml" version="2.00"/>
|
||||
<Definition name="Quake Script" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/idconsole.xml" version="1.03"/>
|
||||
<Definition name="IDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/idl.xml" version="1.08"/>
|
||||
<Definition name="ILERPG" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ilerpg.xml" version="1.06"/>
|
||||
<Definition name="Inform" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/inform.xml" version="1.24"/>
|
||||
<Definition name="INI Files" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ini.xml" version="1.2"/>
|
||||
<Definition name="Jam" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/jam.xml" version="0.4"/>
|
||||
<Definition name="Java" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/java.xml" version="1.22"/>
|
||||
<Definition name="Javadoc" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/javadoc.xml" version="1.05"/>
|
||||
<Definition name="JavaScript/PHP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/javascript-php.xml" version="1.23"/>
|
||||
<Definition name="JavaScript" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/javascript.xml" version="1.23"/>
|
||||
<Definition name="JSON" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/json.xml" version="1.3"/>
|
||||
<Definition name="JSP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/jsp.xml" version="1.03"/>
|
||||
<Definition name="Julia" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/julia.xml" version="0.3"/>
|
||||
<Definition name="KBasic" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/kbasic.xml" version="1.03"/>
|
||||
<Definition name="LaTeX" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/latex.xml" version="1.56"/>
|
||||
<Definition name="LDIF" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ldif.xml" version="1.03"/>
|
||||
<Definition name="LessCSS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/less.xml" version="0.2"/>
|
||||
<Definition name="Lex/Flex" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/lex.xml" version="1.02"/>
|
||||
<Definition name="LilyPond" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/lilypond.xml" version="2.21"/>
|
||||
<Definition name="Literate Curry" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/literate-curry.xml" version="0.3"/>
|
||||
<Definition name="Literate Haskell" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/literate-haskell.xml" version="2.0.2"/>
|
||||
<Definition name="Logtalk" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/logtalk.xml" version="1.52"/>
|
||||
<Definition name="LPC" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/lpc.xml" version="0.77"/>
|
||||
<Definition name="Lua" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/lua.xml" version="1.07"/>
|
||||
<Definition name="M3U" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/m3u.xml" version="1.11"/>
|
||||
<Definition name="GNU M4" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/m4.xml" version="1.2"/>
|
||||
<Definition name="MAB-DB" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mab.xml" version="1.04"/>
|
||||
<Definition name="Makefile" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/makefile.xml" version="2.01"/>
|
||||
<Definition name="Mako" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mako.xml" version="1.01"/>
|
||||
<Definition name="Mason" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mason.xml" version="1.07"/>
|
||||
<Definition name="Matlab" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/matlab.xml" version="1.32"/>
|
||||
<Definition name="Maxima" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/maxima.xml" version="0.17"/>
|
||||
<Definition name="MediaWiki" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mediawiki.xml" version="1.10"/>
|
||||
<Definition name="MEL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mel.xml" version="1.02"/>
|
||||
<Definition name="mergetag text" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mergetagtext.xml" version="0.1"/>
|
||||
<Definition name="MIPS Assembler" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mips.xml" version="1.04"/>
|
||||
<Definition name="Modelica" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/modelica.xml" version="3.3"/>
|
||||
<Definition name="Modelines" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/modelines.xml" version="1.01"/>
|
||||
<Definition name="Modula-2" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/modula-2.xml" version="1.04"/>
|
||||
<Definition name="MonoBasic" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/monobasic.xml" version="1.02"/>
|
||||
<Definition name="Music Publisher" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mup.xml" version="1.07"/>
|
||||
<Definition name="Intel x86 (NASM)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/nasm.xml" version="1.41"/>
|
||||
<Definition name="Nemerle" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/nemerle.xml" version="0.33"/>
|
||||
<Definition name="nesC" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/nesc.xml" version="1.01"/>
|
||||
<Definition name="noweb" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/noweb.xml" version="1.01"/>
|
||||
<Definition name="Objective-C" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/objectivec.xml" version="1.08"/>
|
||||
<Definition name="Objective-C++" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/objectivecpp.xml" version="1.02"/>
|
||||
<Definition name="Objective Caml" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ocaml.xml" version="1.06"/>
|
||||
<Definition name="Octave" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/octave.xml" version="1.02"/>
|
||||
<Definition name="OORS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/oors.xml" version="1.2"/>
|
||||
<Definition name="OPAL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/opal.xml" version="1.2"/>
|
||||
<Definition name="OpenCL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/opencl.xml" version="1.45"/>
|
||||
<Definition name="Pango" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/pango.xml" version="0.2"/>
|
||||
<Definition name="Pascal" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/pascal.xml" version="1.23"/>
|
||||
<Definition name="Perl" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/perl.xml" version="1.30"/>
|
||||
<Definition name="PGN" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/pgn.xml" version="2.02"/>
|
||||
<Definition name="PHP/PHP" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/php.xml" version="1.45"/>
|
||||
<Definition name="PicAsm" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/picsrc.xml" version="1.08"/>
|
||||
<Definition name="Pig" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/pig.xml" version="3.1"/>
|
||||
<Definition name="Pike" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/pike.xml" version="1.08"/>
|
||||
<Definition name="PostScript" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/postscript.xml" version="1.02"/>
|
||||
<Definition name="POV-Ray" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/povray.xml" version="1.2"/>
|
||||
<Definition name="PostScript Printer Description" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ppd.xml" version="0.2"/>
|
||||
<Definition name="progress" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/progress.xml" version="1.11"/>
|
||||
<Definition name="Prolog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/prolog.xml" version="1.2"/>
|
||||
<Definition name="Protobuf" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/protobuf.xml" version="2.41"/>
|
||||
<Definition name="PureBasic" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/purebasic.xml" version="3.92"/>
|
||||
<Definition name="Python" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/python.xml" version="2.23"/>
|
||||
<Definition name="QMake" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/qmake.xml" version="1.3"/>
|
||||
<Definition name="QML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/qml.xml" version="1.4"/>
|
||||
<Definition name="C++11/Qt4" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/qt4.xml" version="1.01"/>
|
||||
<Definition name="R Script" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/r.xml" version="2.08"/>
|
||||
<Definition name="RapidQ" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rapidq.xml" version="1.02"/>
|
||||
<Definition name="RELAX NG" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/relaxng.xml" version="0.9"/>
|
||||
<Definition name="RelaxNG-Compact" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/relaxngcompact.xml" version="0.3"/>
|
||||
<Definition name="reStructuredText" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rest.xml" version="1.02"/>
|
||||
<Definition name="Restructured Text" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/restructuredtext.xml" version="1.01"/>
|
||||
<Definition name="REXX" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rexx.xml" version="1.02"/>
|
||||
<Definition name="Ruby/Rails/RHTML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rhtml.xml" version="1.02"/>
|
||||
<Definition name="RenderMan RIB" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rib.xml" version="1.01"/>
|
||||
<Definition name="RPM Spec" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rpmspec.xml" version="2.04"/>
|
||||
<Definition name="RSI IDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/rsiidl.xml" version="1.05"/>
|
||||
<Definition name="Ruby" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/ruby.xml" version="1.28"/>
|
||||
<Definition name="Sather" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sather.xml" version="1.04"/>
|
||||
<Definition name="Scala" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/scala.xml" version="1.01"/>
|
||||
<Definition name="Scheme" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/scheme.xml" version="1.14"/>
|
||||
<Definition name="scilab" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sci.xml" version="1.04"/>
|
||||
<Definition name="SCSS" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/scss.xml" version="2.05"/>
|
||||
<Definition name="sed" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sed.xml" version="1.01"/>
|
||||
<Definition name="SGML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sgml.xml" version="1.03"/>
|
||||
<Definition name="Sieve" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sieve.xml" version="1.06"/>
|
||||
<Definition name="SiSU" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sisu.xml" version="1.03"/>
|
||||
<Definition name="SML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sml.xml" version="1.07"/>
|
||||
<Definition name="Spice" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/spice.xml" version="1.02"/>
|
||||
<Definition name="SQL (MySQL)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sql-mysql.xml" version="1.15"/>
|
||||
<Definition name="SQL (PostgreSQL)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sql-postgresql.xml" version="1.13"/>
|
||||
<Definition name="SQL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/sql.xml" version="1.17"/>
|
||||
<Definition name="Stata" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/stata.xml" version="2.01"/>
|
||||
<Definition name="SystemC" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/systemc.xml" version="0.02"/>
|
||||
<Definition name="SystemVerilog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/systemverilog.xml" version="1.51"/>
|
||||
<Definition name="TADS 3" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/tads3.xml" version="1.01"/>
|
||||
<Definition name="Tcl/Tk" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/tcl.xml" version="1.12"/>
|
||||
<Definition name="Tcsh" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/tcsh.xml" version="0.3"/>
|
||||
<Definition name="TT2" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/template-toolkit.xml" version="0.04"/>
|
||||
<Definition name="Texinfo" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/texinfo.xml" version="0.3"/>
|
||||
<Definition name="Textile" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/textile.xml" version="1.2"/>
|
||||
<Definition name="TI Basic" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/tibasic.xml" version="1.02"/>
|
||||
<Definition name="txt2tags" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/txt2tags.xml" version="1.21"/>
|
||||
<Definition name="UnrealScript" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/uscript.xml" version="0.93"/>
|
||||
<Definition name="Valgrind Suppression" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/valgrind-suppression.xml" version="1.01"/>
|
||||
<Definition name="Varnish Configuration Language" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/varnish.xml" version="0.4"/>
|
||||
<Definition name="Varnish Test Case language" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/varnishtest.xml" version="0.2"/>
|
||||
<Definition name="vCard, vCalendar, iCalendar" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/vcard.xml" version="0.2"/>
|
||||
<Definition name="Velocity" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/velocity.xml" version="1.05"/>
|
||||
<Definition name="Vera" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/vera.xml" version="1.01"/>
|
||||
<Definition name="Verilog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/verilog.xml" version="1.10"/>
|
||||
<Definition name="VHDL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/vhdl.xml" version="1.11"/>
|
||||
<Definition name="VRML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/vrml.xml" version="1.02"/>
|
||||
<Definition name="WINE Config" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/winehq.xml" version="1.04"/>
|
||||
<Definition name="Wesnoth Markup Language" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/wml.xml" version="0.42"/>
|
||||
<Definition name="xHarbour" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xharbour.xml" version="1.05"/>
|
||||
<Definition name="XML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xml.xml" version="2.04"/>
|
||||
<Definition name="XML (Debug)" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xmldebug.xml" version="1.04"/>
|
||||
<Definition name="x.org Configuration" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xorg.xml" version="1.01"/>
|
||||
<Definition name="xslt" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xslt.xml" version="1.04"/>
|
||||
<Definition name="XUL" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/xul.xml" version="0.11"/>
|
||||
<Definition name="yacas" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/yacas.xml" version="1.03"/>
|
||||
<Definition name="Yacc/Bison" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/yacc.xml" version="1.04"/>
|
||||
<Definition name="YAML" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/yaml.xml" version="1.3"/>
|
||||
<Definition name="Zonnon" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/zonnon.xml" version="1.01"/>
|
||||
<Definition name="Zsh" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/zsh.xml" version="0.2"/>
|
||||
</DEFINITIONS>
|
@ -0,0 +1,349 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Varnish Configuration Language" version="0.4" kateversion="2.5" section="Configuration" extensions="*.vcl;" mimetype="" author="Xavier Guerrin (xavier@tuxfamily.org)" license="WTFPL">
|
||||
<highlighting>
|
||||
<list name="vclStandardSubs">
|
||||
<item>vcl_recv</item>
|
||||
<item>vcl_pipe</item>
|
||||
<item>vcl_pass</item>
|
||||
<item>vcl_hash</item>
|
||||
<item>vcl_hit</item>
|
||||
<item>vcl_miss</item>
|
||||
<item>vcl_fetch</item>
|
||||
<item>vcl_deliver</item>
|
||||
<item>vcl_init</item>
|
||||
<item>vcl_fini</item>
|
||||
<item>vcl_error</item>
|
||||
</list>
|
||||
<list name="vclConditionalKeywords">
|
||||
<item> if </item>
|
||||
<item> else </item>
|
||||
<item> elsif </item>
|
||||
<item> elseif </item>
|
||||
</list>
|
||||
<list name="vclKeywords">
|
||||
<item> set </item>
|
||||
<item> call </item>
|
||||
<item> error </item>
|
||||
<item> esi </item>
|
||||
<item> include </item>
|
||||
<item> remove </item>
|
||||
<item> unset </item>
|
||||
<item> panic </item>
|
||||
<item> rollback </item>
|
||||
<item> purge </item>
|
||||
<item> synthetic </item>
|
||||
</list>
|
||||
<list name="vclStandardFunctions">
|
||||
<item> hash_data </item>
|
||||
<item> regsub </item>
|
||||
<item> regsuball </item>
|
||||
<item> ban </item>
|
||||
<item> ban_url </item>
|
||||
</list>
|
||||
<list name="vclModes">
|
||||
<item>deliver</item>
|
||||
<item>error</item>
|
||||
<item>fetch</item>
|
||||
<item>hash</item>
|
||||
<item>hit_for_pass</item>
|
||||
<item>lookup</item>
|
||||
<item>ok</item>
|
||||
<item>pass</item>
|
||||
<item>pipe</item>
|
||||
<item>restart</item>
|
||||
</list>
|
||||
<list name="vclDirectorTypes">
|
||||
<item>random</item>
|
||||
<item>client</item>
|
||||
<item>hash</item>
|
||||
<item>round-robin</item>
|
||||
<item>dns</item>
|
||||
<item>fallback</item>
|
||||
</list>
|
||||
<!--
|
||||
2013-06-16
|
||||
This list was generated from https://www.varnish-cache.org/vmods, taking
|
||||
only vmods having the "Used in production" status, excluding the
|
||||
non-free ones.
|
||||
-->
|
||||
<list name="knownVMods">
|
||||
<item>std</item>
|
||||
<item>example</item>
|
||||
<item>abtest</item>
|
||||
<item>threescale</item>
|
||||
<item>authentication</item>
|
||||
<item>boltsort</item>
|
||||
<item>crashhandler</item>
|
||||
<item>curl</item>
|
||||
<item>digest</item>
|
||||
<item>dns</item>
|
||||
<item>header</item>
|
||||
<item>memcached</item>
|
||||
<item>null</item>
|
||||
<item>querystring</item>
|
||||
<item>shield</item>
|
||||
<item>softpurge</item>
|
||||
<item>statsd</item>
|
||||
<item>throttle</item>
|
||||
<item>timeutils</item>
|
||||
<item>urlcode</item>
|
||||
<item>var</item>
|
||||
<item>timers</item>
|
||||
</list>
|
||||
<contexts>
|
||||
<context name="normal_text" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="comments" />
|
||||
<RegExpr attribute="Keyword" context="sub_declaration" String="^\s*sub\s+" />
|
||||
<RegExpr attribute="Keyword" context="probe_declaration" String="^\s*probe\s+" />
|
||||
<RegExpr attribute="Keyword" context="backend_declaration" String="^\s*backend\s+" />
|
||||
<RegExpr attribute="Keyword" context="director_declaration" String="^\s*director\s+" />
|
||||
<RegExpr attribute="Keyword" context="acl_declaration" String="^\s*acl\s+" />
|
||||
<RegExpr attribute="Keyword" context="import_declaration" String="^\s*import\s+" />
|
||||
<RegExpr attribute="Keyword" context="include_declaration" String="^\s*include\s+" />
|
||||
<IncludeRules context="embedded-c" />
|
||||
</context>
|
||||
<context name="embedded-c" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars char="C" char1="{" context="embedded-c_enclosure" attribute="Region Marker" beginRegion="embedded_c_block" />
|
||||
</context>
|
||||
<context name="embedded-c_enclosure" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars char="}" char1="C" context="#pop" attribute="Region Marker" endRegion="embedded_c_block" />
|
||||
<IncludeRules context="##C" />
|
||||
</context>
|
||||
<context name="shell-like-comment" attribute="Comment" lineEndContext="#pop">
|
||||
</context>
|
||||
<context name="c-like-comment" attribute="Comment" lineEndContext="#stay">
|
||||
<Detect2Chars char="*" char1="/" context="#pop" attribute="Comment" />
|
||||
</context>
|
||||
<context name="cplusplus-like-comment" attribute="Comment" lineEndContext="#pop">
|
||||
</context>
|
||||
<context name="comments" attribute="Comment" lineEndContext="#pop">
|
||||
<DetectChar char="#" context="shell-like-comment" attribute="Comment" />
|
||||
<Detect2Chars char="/" char1="*" context="c-like-comment" attribute="Comment" />
|
||||
<Detect2Chars char="/" char1="/" context="cplusplus-like-comment" attribute="Comment" />
|
||||
</context>
|
||||
<context name="vcl_variables" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Variable" context="#stay" String="now" />
|
||||
<RegExpr attribute="Storage" context="#stay" String="storage\.[a-zA-Z0-9]+(?:\.(?:free_space|used_space|happy))?" />
|
||||
<RegExpr attribute="TCP Property" context="#stay" String="client\.(ip|identity)" />
|
||||
<RegExpr attribute="TCP Property" context="#stay" String="server\.(ip|hostname|identity|port)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="req\.(request|url|proto|backend|restarts|esi_level|ttl|grace|keep|xid|esi|can_gzip|backend\.healthy|hash_ignore_busy|hash_always_miss)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="bereq\.(request|url|proto|connect_timeout|first_byte_timeout|between_bytes_timeout)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="obj\.(proto|status|response|hits|ttl|grace|keep|lastuse)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="beresp\.(proto|saintmode|status|response|do_esi|do_stream|do_gzip|do_gunzip|ttl|grace|keep|backend\.(name|ip|port)|storage|cacheable)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="resp\.(proto|status|response)" />
|
||||
<RegExpr attribute="HTTP X- Header" context="#stay" String="(req|bereq|resp|beresp|obj)\.http\.X-[-_A-Za-z0-9]*" />
|
||||
<RegExpr attribute="HTTP Header" context="#stay" String="(req|bereq|resp|beresp|obj)\.http\.[A-Za-z][-_A-Za-z0-9]*" />
|
||||
</context>
|
||||
<context name="vcl_operators" attribute="Operator" lineEndContext="#stay">
|
||||
<DetectChar attribute="Logical Operator" context="#stay" char="!" />
|
||||
<Detect2Chars attribute="Logical Operator" context="#stay" char="&" char1="&" />
|
||||
<Detect2Chars attribute="Logical Operator" context="#stay" char="|" char1="|" />
|
||||
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="=" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="!" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="<" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char=">" char1="=" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char="<" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char=">" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char="~" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="!" char1="~" />
|
||||
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="+" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="-" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="*" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="/" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="+" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="-" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="*" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="/" char1="=" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="+" char1="+" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="-" char1="-" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char=">" char1=">" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="<" char1="<" />
|
||||
|
||||
<DetectChar attribute="Operator" context="#stay" char="=" />
|
||||
</context>
|
||||
<context name="minimal_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="comments" />
|
||||
<RegExpr attribute="Duration" context="#stay" String="([0-9]+|[0-9]+\.[0-9]+|[0-9]+\.|\.[0-9]+)\s*(w|d|h|m|s|ms)" />
|
||||
<RegExpr attribute="Data Size" context="#stay" String="([0-9]+|[0-9]+\.[0-9]+|[0-9]+\.|\.[0-9]+)\s*[KMGT]?B" />
|
||||
<Float attribute="Float" context="#stay" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<StringDetect attribute="Keyword" context="#stay" String="true" />
|
||||
<StringDetect attribute="Keyword" context="#stay" String="false" />
|
||||
<DetectChar char=""" context="string" attribute="String" />
|
||||
<Detect2Chars attribute="String" char="{" char1=""" context="string_enclosure" beginRegion="string_enclosure_block" />
|
||||
</context>
|
||||
<context name="definition_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="minimal_code" />
|
||||
<DetectChar attribute="Operator" context="#stay" char="=" />
|
||||
</context>
|
||||
<context name="basic_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="minimal_code" />
|
||||
<IncludeRules context="vcl_variables" />
|
||||
<IncludeRules context="vcl_operators" />
|
||||
</context>
|
||||
<context name="regular_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="basic_code" />
|
||||
<keyword attribute="Keyword" context="#stay" String="vclKeywords" />
|
||||
<keyword attribute="Standard VCL Sub" context="#stay" String="vclStandardSubs" />
|
||||
<keyword attribute="Standard VCL Function" context="#stay" String="vclStandardFunctions" />
|
||||
<keyword attribute="Condition Keyword" context="condition_part" String="vclConditionalKeywords" />
|
||||
<StringDetect attribute="Keyword" context="return_statement" String="return" />
|
||||
<IncludeRules context="embedded-c" />
|
||||
</context>
|
||||
<context name="return_statement" attribute="Normal Text" lineEndContext="#stay">
|
||||
<keyword attribute="Action Keyword" context="#stay" String="vclModes" />
|
||||
<DetectChar attribute="Normal Text" char=";" context="#pop" />
|
||||
</context>
|
||||
<context name="string_enclosure" attribute="String" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="String" char=""" char1="}" context="#pop" endRegion="string_enclosure_block" />
|
||||
</context>
|
||||
<context name="sub_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<keyword attribute="Standard VCL Sub" context="#stay" String="vclStandardSubs" />
|
||||
<DetectChar attribute="Region Marker" context="sub_definition" char="{" beginRegion="sub_block" />
|
||||
</context>
|
||||
<context name="sub_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="regular_code" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="sub_block" />
|
||||
</context>
|
||||
<context name="condition_part" attribute="Normal Text" lineEndContext="#stay">
|
||||
<keyword attribute="Condition Keyword" context="#stay" String="vclConditionalKeywords" />
|
||||
<DetectChar attribute="Region Marker" context="conditional_expression" char="(" beginRegion="conditional_expression_block" />
|
||||
<DetectChar attribute="Region Marker" context="conditional_block" char="{" beginRegion="conditional_blockregion" />
|
||||
</context>
|
||||
<context name="conditional_expression" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="basic_code" />
|
||||
<DetectChar attribute="Region Marker" context="conditional_expression" char="(" beginRegion="conditional_expression_block" />
|
||||
<DetectChar attribute="Region Marker" context="#pop" char=")" endRegion="conditional_expression_block" />
|
||||
</context>
|
||||
<context name="conditional_block" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="regular_code" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="conditional_blockregion" />
|
||||
</context>
|
||||
<context name="string" attribute="String" lineEndContext="#pop">
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
</context>
|
||||
<context name="probe_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<DetectChar attribute="Operator" context="#stay" char="=" />
|
||||
<DetectChar attribute="Region Marker" context="probe_definition" char="{" beginRegion="probe_block" />
|
||||
<DetectChar attribute="Normal Text" context="#pop" char=";" />
|
||||
</context>
|
||||
<context name="probe_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Probe Property" context="#stay" String="\.(url|request|window|threshold|initial|expected_response|interval|timeout)" />
|
||||
<IncludeRules context="definition_code" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="probe_block" />
|
||||
</context>
|
||||
<context name="backend_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<DetectChar attribute="Operator" context="#stay" char="=" />
|
||||
<DetectChar attribute="Region Marker" context="backend_definition" char="{" beginRegion="backend_block" />
|
||||
<DetectChar attribute="Normal Text" context="#pop" char=";" />
|
||||
</context>
|
||||
<context name="backend_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Backend Property" context="#stay" String="\.(host|port|host_header|connect_timeout|first_byte_timeout|between_bytes_timeout|max_connections|saintmode_threshold)" />
|
||||
<IncludeRules context="definition_code" />
|
||||
<StringDetect attribute="Backend Property" context="probe_declaration" String=".probe" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="backend_block" />
|
||||
</context>
|
||||
<context name="director_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectSpaces />
|
||||
<keyword attribute="Director Type" String="vclDirectorTypes" />
|
||||
<StringDetect attribute="Director Type" String="round-robin" />
|
||||
<DetectChar attribute="Region Marker" context="director_definition" char="{" beginRegion="director_block" />
|
||||
</context>
|
||||
<context name="director_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="definition_code" />
|
||||
<RegExpr attribute="Director Property" context="#stay" String="\.(retries|ttl|suffix)" />
|
||||
<StringDetect attribute="Director Property" context="backend_declaration" String=".list" />
|
||||
<DetectChar attribute="Region Marker" context="director_backend" char="{" beginRegion="director_backend_block" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="backend_block" />
|
||||
</context>
|
||||
<context name="director_backend" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="definition_code" />
|
||||
<RegExpr attribute="Director Property" context="#stay" String="\.(weight|suffix)" />
|
||||
<StringDetect attribute="Director Property" context="backend_declaration" String=".backend" />
|
||||
<DetectChar attribute="Region Marker" context="#pop" char="}" endRegion="director_backend_block" />
|
||||
</context>
|
||||
<context name="acl_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="acl_definition" char="{" beginRegion="acl_block" />
|
||||
</context>
|
||||
<context name="acl_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="minimal_code" />
|
||||
<DetectChar attribute="Logical Operator" context="#stay" char="!" />
|
||||
<DetectChar attribute="Logical Operator" context="#stay" char="/" />
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="acl_block" />
|
||||
</context>
|
||||
<context name="import_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<keyword attribute="Well-known VMod" context="import_identified" String="knownVMods" />
|
||||
<DetectIdentifier attribute="VMod Identifier" context="import_identified" />
|
||||
</context>
|
||||
<context name="import_identified" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Normal Text" context="#pop#pop" char=";" />
|
||||
<StringDetect attribute="Keyword" context="import_from" String="from" />
|
||||
</context>
|
||||
<context name="import_from" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="import_from_path" attribute="String" />
|
||||
</context>
|
||||
<context name="import_from_path" attribute="String" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="import_from_path_complete" attribute="String" />
|
||||
</context>
|
||||
<context name="import_from_path_complete" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Normal Text" context="#pop#pop#pop#pop#pop" char=";" />
|
||||
</context>
|
||||
<context name="include_declaration" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="include_path" attribute="String" />
|
||||
</context>
|
||||
<context name="include_path" attribute="String" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="include_path_complete" attribute="String" />
|
||||
</context>
|
||||
<context name="include_path_complete" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Normal Text" context="#pop#pop#pop" char=";" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Condition Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Action Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Director Type" defStyleNum="dsDataType" />
|
||||
<itemData name="Standard VCL Function" defStyleNum="dsFunction" />
|
||||
<itemData name="Standard VCL Sub" defStyleNum="dsFunction" bold="1" />
|
||||
<itemData name="Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Comparison Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Arithmetic Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Logical Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="String" defStyleNum="dsString" bold="0" italic="0" />
|
||||
<itemData name="Data Type" defStyleNum="dsDataType" />
|
||||
<itemData name="Region Marker" defStyleNum="dsNormal" />
|
||||
<itemData name="Probe Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="1" italic="0" />
|
||||
<itemData name="Backend Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="1" italic="0" />
|
||||
<itemData name="Director Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="1" italic="0" />
|
||||
<itemData name="Storage" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="0" />
|
||||
<itemData name="TCP Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="1" />
|
||||
<itemData name="HTTP Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="0" />
|
||||
<itemData name="HTTP Header" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" italic="0" />
|
||||
<itemData name="HTTP X- Header" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" italic="1" />
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" />
|
||||
<itemData name="Duration" defStyleNum="dsDecVal" />
|
||||
<itemData name="Data Size" defStyleNum="dsDecVal" />
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
|
||||
<itemData name="VMod Identifier" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" />
|
||||
<itemData name="Well-known VMod" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="1" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
||||
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
|
@ -0,0 +1,482 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
<language name="Varnish Test Case language" version="0.2" kateversion="2.5" section="Configuration" extensions="*.vtc;" mimetype="" author="Xavier Guerrin (xavier@tuxfamily.org)" license="WTFPL">
|
||||
<highlighting>
|
||||
<list name="vtcClientKeywords">
|
||||
<item>fatal</item>
|
||||
<item>gunzip</item>
|
||||
<item>rxchunk</item>
|
||||
</list>
|
||||
<list name="vtcServerKeywords">
|
||||
<item>accept</item>
|
||||
<item>close</item>
|
||||
<item>expect_close</item>
|
||||
<item>fatal</item>
|
||||
<item>rxbody</item>
|
||||
<item>rxhdrs</item>
|
||||
<item>rxreq</item>
|
||||
</list>
|
||||
<contexts>
|
||||
<!-- default context: define main keywords -->
|
||||
<context name="vtcnormal_text" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="global_directives_restricted" />
|
||||
<IncludeRules context="global_directives" />
|
||||
</context>
|
||||
|
||||
<!-- directives that can be encountered at global scope but not within a loop -->
|
||||
<context name="global_directives_restricted" attribute="Normal Text" lineEndContext="#stay">
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="varnishtest_declaration" String="varnishtest" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="feature_instruction" String="feature" />
|
||||
<RegExpr attribute="Keyword" context="#stay" String="^\s*random\s*$" />
|
||||
</context>
|
||||
|
||||
<!-- directives that can be encountered at global scope, either directly or within a loop -->
|
||||
<context name="global_directives" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="comments" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="client_declaration" String="client" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="server_declaration" String="server" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="varnish_declaration" String="varnish" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="sema_instruction" String="sema" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="shell_instruction" String="shell" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="delay_instruction" String="delay" />
|
||||
<StringDetect firstNonSpace="true" attribute="Keyword" context="global_loop_instruction" String="loop" />
|
||||
</context>
|
||||
|
||||
<!-- Strings delimited with double quotes -->
|
||||
<context name="strings" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="string" attribute="String" />
|
||||
</context>
|
||||
<context name="string" attribute="String" lineEndContext="#pop">
|
||||
<Detect2Chars attribute="String" context="#stay" char="\" char1=""" />
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
</context>
|
||||
|
||||
<!-- The following contexts (quoted-, brace- and unquoted- strings) make their parent pop as soon as they parsed a string. -->
|
||||
<context name="quoted-strings" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar char=""" context="quoted-string" attribute="String" />
|
||||
</context>
|
||||
<context name="quoted-string" attribute="String" lineEndContext="#pop#pop">
|
||||
<Detect2Chars attribute="String" context="#stay" char="\" char1=""" />
|
||||
<DetectChar attribute="String" context="#pop#pop" char=""" />
|
||||
</context>
|
||||
|
||||
<context name="brace-strings" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectChar attribute="String" context="brace-string" char="{" beginRegion="string_block" />
|
||||
</context>
|
||||
<context name="brace-string" attribute="String" lineEndContext="#stay">
|
||||
<!--
|
||||
strings delimited with braces do not require to escape closing braces;
|
||||
therefore, we have to use an extra context to keep track of opening and closing braces
|
||||
-->
|
||||
<DetectChar attribute="String" context="brace-string-internal" char="{" />
|
||||
<DetectChar attribute="String" context="#pop#pop" char="}" endRegion="string_block" />
|
||||
</context>
|
||||
<context name="brace-string-internal" attribute="String" lineEndContext="#stay">
|
||||
<DetectChar attribute="String" context="#pop" char="}" />
|
||||
</context>
|
||||
|
||||
<context name="unquoted-strings" attribute="String" lineEndContext="#pop">
|
||||
<RegExpr attribute="String" context="unquoted-string" String="[^ ]" />
|
||||
</context>
|
||||
<context name="unquoted-string" attribute="String" lineEndContext="#pop#pop">
|
||||
<RegExpr attribute="Normal Text" context="#pop#pop" String="\s" />
|
||||
</context>
|
||||
|
||||
<!-- This context exits as soon as it parsed a string, be it defined between braces, quotes or spaces -->
|
||||
<context name="string-arg" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="brace-strings" />
|
||||
<IncludeRules context="quoted-strings" />
|
||||
<IncludeRules context="unquoted-strings" />
|
||||
</context>
|
||||
|
||||
<!-- This context exits as soon as it parsed an integer. -->
|
||||
<context name="int-arg" attribute="Int" lineEndContext="#pop">
|
||||
<Int attribute="Decimal" context="#pop" />
|
||||
</context>
|
||||
|
||||
<!-- Comments -->
|
||||
<context name="shell-like-comment" attribute="Comment" lineEndContext="#pop">
|
||||
<IncludeRules context="##Alerts" />
|
||||
<IncludeRules context="##Modelines" />
|
||||
</context>
|
||||
<context name="comments" attribute="Comment" lineEndContext="#pop">
|
||||
<DetectChar char="#" context="shell-like-comment" attribute="Comment" />
|
||||
</context>
|
||||
|
||||
<!-- Define base elements that used within various contexts -->
|
||||
<context name="base_elements" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="HTTP announce" context="#stay" String="HTTP/[0-9.]+" />
|
||||
<RegExpr attribute="HTTP method" context="#stay" String="\s+(GET|HEAD|POST|PUT|DELETE|TRACE|OPTIONS|CONNECT|PATCH)" />
|
||||
<RegExpr attribute="HTTP WebDAV method" context="#stay" String="\s+(PROPFIND|PROPPATCH|MKCOL|COPY|MOVE|LOCK|UNLOCK|CONNECT|PATCH)" />
|
||||
<RegExpr attribute="HTTP custom method" context="#stay" String="\s+(PURGE|PURGESTR)" />
|
||||
<Float attribute="Float" context="#stay" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<IncludeRules context="strings" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- Define syntax within -expect options -->
|
||||
<context name="expectation_common" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Keyword" context="#stay" String="<undef>" />
|
||||
<IncludeRules context="base_elements" />
|
||||
<IncludeRules context="vcl_operators" />
|
||||
</context>
|
||||
|
||||
<context name="expectation" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="expectation_common" />
|
||||
<IncludeRules context="vcl_variables" />
|
||||
</context>
|
||||
|
||||
<context name="varnish_expectation" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="expectation_common" />
|
||||
<IncludeRules context="varnishstat_variables" />
|
||||
</context>
|
||||
|
||||
<!-- Define macros -->
|
||||
<context name="macro_accepted" attribute="String" lineEndContext="#pop">
|
||||
<Detect2Chars char="$" char1="{" attribute="String" context="macro_identifier" />
|
||||
</context>
|
||||
<context name="macro_identifier" attribute="String" lineEndContext="#pop#pop">
|
||||
<DetectChar char="}" attribute="String" context="#pop" />
|
||||
</context>
|
||||
|
||||
<!-- Define syntax for main keywords' options -->
|
||||
<context name="common_options" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="macro_accepted" />
|
||||
<IncludeRules context="base_elements" />
|
||||
</context>
|
||||
|
||||
<context name="client_options" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Keyword" context="#stay" String="\-(?:run|wait|start|connect)" />
|
||||
<RegExpr attribute="Keyword" context="expectation" String="-expect" />
|
||||
<IncludeRules context="common_options" />
|
||||
</context>
|
||||
|
||||
<context name="server_options" attribute="Normal Text" lineEndContext="#stay" >
|
||||
<RegExpr attribute="Keyword" context="#stay" String="\-(?:start|wait|stop|repeat)" />
|
||||
<RegExpr attribute="Keyword" context="expectation" String="-expect" />
|
||||
<IncludeRules context="common_options" />
|
||||
</context>
|
||||
|
||||
<context name="varnish_options" attribute="Normal Text" lineEndContext="#stay" >
|
||||
<RegExpr attribute="Keyword" context="#stay" String="\-(?:start|stop|wait|wait-running|wait-stopped)" />
|
||||
<RegExpr attribute="Keyword" context="string-arg" String="\-(?:arg|cli|cliok|storage) " />
|
||||
<RegExpr attribute="Keyword" context="clierr_options" String="\-clierr " />
|
||||
<RegExpr attribute="Keyword" context="varnish_expectation" String="-expect" />
|
||||
<IncludeRules context="common_options" />
|
||||
</context>
|
||||
|
||||
<context name="clierr_options" attribute="Normal Text" lineEndContext="#pop">
|
||||
<!-- unlike clikok, clierr requires an integer argument first -->
|
||||
<Int attribute="Decimal" context="clierr_command" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
<context name="clierr_command" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- Define syntax for the client-specific txreq keyword -->
|
||||
<context name="txreq_options" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="comments" />
|
||||
<RegExpr attribute="TxReq Keyword" context="string-arg" String="\-(?:body|hdr|proto|req|url)" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
|
||||
<!-- Define syntax for the client-specific rxresp keyword -->
|
||||
<context name="rxresp_options" attribute="Normal Text" lineEndContext="#pop">
|
||||
<StringDetect attribute="RxResp Keyword" String="-no_obj" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
|
||||
<!-- Define syntax for the server-specific txresp keyword -->
|
||||
<context name="txresp_options" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="comments" />
|
||||
<RegExpr attribute="TxResp Keyword" String="-nolen" />
|
||||
<RegExpr attribute="TxResp Keyword" context="string-arg" String="\-(?:body|gzipbody|hdr|proto|msg) " />
|
||||
<RegExpr attribute="TxResp Keyword" context="int-arg" String="\-(?:bodylen|gzip(?:len|residual|level)|status)" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
|
||||
<!-- varnishtest keyword -->
|
||||
<context name="varnishtest_declaration" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="strings" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- client keyword -->
|
||||
<context name="client_declaration" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectIdentifier attribute="Client Identifier" context="client_identified" />
|
||||
</context>
|
||||
<context name="client_identified" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="client_options" />
|
||||
<DetectChar attribute="Region Marker" context="client_definition" char="{" beginRegion="client_block" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
<context name="client_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="comments" />
|
||||
<!-- basic keywords that take no options -->
|
||||
<keyword attribute="Action Keyword" context="#stay" String="vtcClientKeywords" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="#stay" String="non-fatal" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="expectation" String="expect" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="txreq_options" String="txreq" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="rxresp_options" String="rxresp" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="sema_instruction" String="sema" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="delay_instruction" String="delay" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="send_instruction" String="sendhex" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="send_instruction" String="send" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="timeout_instruction" String="timeout" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="client_loop_instruction" String="loop" />
|
||||
<DetectChar attribute="Region Marker" context="client_postdefinition" char="}" endRegion="client_block" />
|
||||
</context>
|
||||
<context name="client_postdefinition" attribute="Normal Text" lineEndContext="#pop#pop#pop#pop">
|
||||
<IncludeRules context="client_options" />
|
||||
</context>
|
||||
|
||||
<!-- server keyword -->
|
||||
<context name="server_declaration" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectIdentifier attribute="Server Identifier" context="server_identified" />
|
||||
</context>
|
||||
<context name="server_identified" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="server_options" />
|
||||
<DetectChar attribute="Region Marker" context="server_definition" char="{" beginRegion="server_block" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
<context name="server_definition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="comments" />
|
||||
<!-- basic keywords that take no options -->
|
||||
<keyword attribute="Action Keyword" context="#stay" String="vtcServerKeywords" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="#stay" String="non-fatal" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="expectation" String="expect" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="txresp_options" String="txresp" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="sema_instruction" String="sema" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="delay_instruction" String="delay" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="chunkedlen_instruction" String="chunkedlen" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="send_instruction" String="sendhex" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="send_instruction" String="send" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="send_instruction" String="chunked" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="timeout_instruction" String="timeout" />
|
||||
<StringDetect firstNonSpace="true" attribute="Action Keyword" context="server_loop_instruction" String="loop" />
|
||||
<DetectChar attribute="Region Marker" context="server_postdefinition" char="}" endRegion="server_block" />
|
||||
</context>
|
||||
<context name="server_postdefinition" attribute="Normal Text" lineEndContext="#pop#pop#pop#pop">
|
||||
<IncludeRules context="server_options" />
|
||||
</context>
|
||||
|
||||
<!-- varnish keyword -->
|
||||
<context name="varnish_declaration" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectIdentifier attribute="Varnish Identifier" context="varnish_identified" />
|
||||
</context>
|
||||
<context name="varnish_identified" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="varnish_options" />
|
||||
<RegExpr attribute="Keyword" context="varnish_vclannounced" String="\s*\-(?:bad)?vcl(?:\+backend)?" />
|
||||
<LineContinue attribute="Normal Text" context="#stay" />
|
||||
</context>
|
||||
<context name="varnish_vclannounced" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="varnish_vcldefinition" char="{" beginRegion="varnish_block" />
|
||||
</context>
|
||||
<context name="varnish_vcldefinition" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="##Varnish Configuration Language" />
|
||||
<!-- varnish.xml may lack a few properties such as req/bereq/obj.{keep,ttl,grace}-->
|
||||
<!-- also, according to v00033.vtc, storage.xxxx.{free,used}_space are correct Varnish properties;
|
||||
+ have a look at the B/KB/MB/GB/TB notation and everything related to storage.* -->
|
||||
<!-- basically, all v*.vtc files can teach us something about VCL since this is what they test -->
|
||||
<DetectChar attribute="Region Marker" context="varnish_postvcldefinition" char="}" endRegion="varnish_block" />
|
||||
</context>
|
||||
<context name="varnish_postvcldefinition" attribute="Normal Text" lineEndContext="#pop#pop#pop#pop#pop">
|
||||
<IncludeRules context="varnish_options" />
|
||||
</context>
|
||||
|
||||
<!-- sema keyword -->
|
||||
<context name="sema_instruction" attribute="Normal Text" lineEndContext="#pop">
|
||||
<DetectIdentifier attribute="Sema Identifier" context="sema_identified" />
|
||||
</context>
|
||||
<context name="sema_identified" attribute="Normal Text" lineEndContext="#pop#pop">
|
||||
<RegExpr attribute="Keyword" String="sync" />
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- delay keyword -->
|
||||
<context name="delay_instruction" attribute="Normal Text" lineEndContext="#pop">
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<Float attribute="Float" context="#stay" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- feature keyword -->
|
||||
<context name="feature_instruction" attribute="String" lineEndContext="#pop">
|
||||
<IncludeRules context="strings" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- chunkedlen keyword -->
|
||||
<context name="chunkedlen_instruction" attribute="Normal Text" lineEndContext="#pop">
|
||||
<Int attribute="Decimal" context="#stay" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- send / sendhex / chunk keywords -->
|
||||
<context name="send_instruction" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="string-arg" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- timeout keyword -->
|
||||
<context name="timeout_instruction" attribute="Normal Text" lineEndContext="#pop">
|
||||
<IncludeRules context="int-arg" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
|
||||
<!-- loop keyword at global scope -->
|
||||
<context name="global_loop_instruction" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Int attribute="Decimal" context="global_loop_defined" />
|
||||
</context>
|
||||
<context name="global_loop_defined" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="global_loop_code" char="{" beginRegion="loop_block" />
|
||||
</context>
|
||||
<context name="global_loop_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop#pop" char="}" endRegion="loop_block" />
|
||||
<IncludeRules context="global_directives" />
|
||||
</context>
|
||||
|
||||
<!-- loop keyword for client definitions -->
|
||||
<context name="client_loop_instruction" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Int attribute="Decimal" context="client_loop_defined" />
|
||||
</context>
|
||||
<context name="client_loop_defined" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="client_loop_code" char="{" beginRegion="loop_block" />
|
||||
</context>
|
||||
<context name="client_loop_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop#pop" char="}" endRegion="loop_block" />
|
||||
<IncludeRules context="client_definition" />
|
||||
</context>
|
||||
|
||||
<!-- loop keyword for server definitions -->
|
||||
<context name="server_loop_instruction" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Int attribute="Decimal" context="server_loop_defined" />
|
||||
</context>
|
||||
<context name="server_loop_defined" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="server_loop_code" char="{" beginRegion="loop_block" />
|
||||
</context>
|
||||
<context name="server_loop_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop#pop" char="}" endRegion="loop_block" />
|
||||
<IncludeRules context="server_definition" />
|
||||
</context>
|
||||
|
||||
<!-- shell keyword, one-line version -->
|
||||
<context name="shell_instruction" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="shell_code" char="{" beginRegion="shell_block" />
|
||||
<IncludeRules context="quoted-strings" />
|
||||
<IncludeRules context="comments" />
|
||||
</context>
|
||||
<context name="shell_code" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Region Marker" context="#pop#pop" char="}" endRegion="shell_block" />
|
||||
<!-- There does not seem to be a syntax highlighting dedicated to "standard shell" so let's use Bash instead -->
|
||||
<IncludeRules context="##Bash" />
|
||||
</context>
|
||||
|
||||
<!-- Define keywords from other tools: variables and operators from the VCL language, varnishstat metrics -->
|
||||
<context name="vcl_variables" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="Variable" context="#stay" String="now" />
|
||||
<RegExpr attribute="Storage" context="#stay" String="storage\.[a-zA-Z0-9]+(?:\.(?:free_space|used_space|happy))?" />
|
||||
<RegExpr attribute="TCP Property" context="#stay" String="client\.(ip|identity)" />
|
||||
<RegExpr attribute="TCP Property" context="#stay" String="server\.(ip|hostname|identity|port)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="req\.(request|url|proto|backend|restarts|esi_level|ttl|grace|keep|xid|esi|can_gzip|backend\.healthy|hash_ignore_busy|hash_always_miss)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="bereq\.(request|url|proto|connect_timeout|first_byte_timeout|between_bytes_timeout)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="obj\.(proto|status|response|hits|ttl|grace|keep|lastuse)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="beresp\.(proto|saintmode|status|response|do_esi|do_stream|do_gzip|do_gunzip|ttl|grace|keep|backend\.(name|ip|port)|storage|cacheable)" />
|
||||
<RegExpr attribute="HTTP Property" context="#stay" String="resp\.(proto|status|response)" />
|
||||
<RegExpr attribute="HTTP X- Header" context="#stay" String="(req|bereq|resp|beresp|obj)\.http\.X-[-_A-Za-z0-9]*" />
|
||||
<RegExpr attribute="HTTP Header" context="#stay" String="(req|bereq|resp|beresp|obj)\.http\.[A-Za-z][-_A-Za-z0-9]*" />
|
||||
</context>
|
||||
<context name="vcl_operators" attribute="Operator" lineEndContext="#stay">
|
||||
<DetectChar attribute="Logical Operator" context="#stay" char="!" />
|
||||
<Detect2Chars attribute="Logical Operator" context="#stay" char="&" char1="&" />
|
||||
<Detect2Chars attribute="Logical Operator" context="#stay" char="|" char1="|" />
|
||||
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="=" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="!" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="<" char1="=" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char=">" char1="=" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char="<" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char=">" />
|
||||
<DetectChar attribute="Comparison Operator" context="#stay" char="~" />
|
||||
<Detect2Chars attribute="Comparison Operator" context="#stay" char="!" char1="~" />
|
||||
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="+" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="-" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="*" />
|
||||
<DetectChar attribute="Arithmetic Operator" context="#stay" char="/" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="+" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="-" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="*" char1="=" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="/" char1="=" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="+" char1="+" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="-" char1="-" />
|
||||
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char=">" char1=">" />
|
||||
<Detect2Chars attribute="Arithmetic Operator" context="#stay" char="<" char1="<" />
|
||||
|
||||
<DetectChar attribute="Operator" context="#stay" char="=" />
|
||||
</context>
|
||||
<context name="varnishstat_variables" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="client_(?:conn|drop|req|drop_late)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="cache_(?:hit(pass)?|miss)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="backend_(?:conn|unhealthy|busy|fail|reuse|toolate|recycle|retry|req)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="fetch_(?:head|length|chunked|eof|bad|close|oldhttp|zero|failed|1xx|204|304)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="n_(?:sess_mem|sess|object|vampireobject|objectcore|objecthead|waitinglist|vbc|wrk|wrk_(?:create|failed|max|lqueue|queueddrop)|backend|expired|lru_nuked|lru_moved|obj(?:sendfile|write|overflow)|vcl|vcl_avail|vcl_discard|ban|ban_(?:gone|add|retire|obj_test|re_test|dups)|gzip|gunzip)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="(?:losthdr|backend_req|accept_fail|uptime|vmods)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="s_(?:sess|req|pipe|pass|fetch|hdrbytes|bodybytes)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="sess_(?:closed|pipeline|readahead|linger|herd)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="shm_(?:records|writes|flushes|cont|cycles)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="sms_(?:nreq|nobj|nbytes|balloc|bfree)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="hcb_(?:nolock|lock|insert)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="esi_(?:errors|warnings)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="dir_dns_(?:lookups|failed|hit|cache_full)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="LCK\.(?:sm[spaf]|hsl|hcb|hcl|vcl|stat|sessmem|wstat|herder|wq|objhdr|exp|lru|cli|ban|vbp|vbe|backend)\.(?:creat|destroy|locks|colls)" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="SMA\.[a-zA-Z0-9_-]+\.(?:c_(?:req|fail|bytes|freed)|g_(?:alloc|bytes|space))" />
|
||||
<RegExpr attribute="VarnishStat metric" context="#stay" String="VBE\..+\.(?:happy|vcls)" />
|
||||
</context>
|
||||
</contexts>
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="TxReq Keyword" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="TxResp Keyword" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="RxResp Keyword" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Action Keyword" defStyleNum="dsKeyword" />
|
||||
<itemData name="Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Comparison Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Arithmetic Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="Logical Operator" defStyleNum="dsKeyword" color="#008000" bold="0" />
|
||||
<itemData name="String" defStyleNum="dsString" bold="0" italic="0" />
|
||||
<itemData name="Region Marker" defStyleNum="dsNormal" />
|
||||
<itemData name="Storage" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="0" />
|
||||
<itemData name="TCP Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="1" />
|
||||
<itemData name="HTTP Property" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="0" />
|
||||
<itemData name="HTTP Header" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" italic="0" />
|
||||
<itemData name="HTTP X- Header" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" italic="1" />
|
||||
<itemData name="HTTP announce" defStyleNum="dsDataType" color="#562579" selColor="#562579" bold="1" />
|
||||
<itemData name="HTTP method" defStyleNum="dsDataType" color="#562579" selColor="#562579" bold="1" />
|
||||
<itemData name="HTTP WebDAV method" defStyleNum="dsDataType" color="#562579" selColor="#562579" bold="1" />
|
||||
<itemData name="HTTP custom method" defStyleNum="dsDataType" color="#562579" selColor="#562579" bold="1" />
|
||||
<itemData name="VarnishStat metric" defStyleNum="dsDataType" color="#0000FF" selColor="#0000FF" bold="0" italic="0" />
|
||||
<itemData name="Decimal" defStyleNum="dsDecVal" />
|
||||
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
|
||||
<itemData name="Client Identifier" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" underline="1" />
|
||||
<itemData name="Server Identifier" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" underline="1" />
|
||||
<itemData name="Varnish Identifier" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" underline="1" />
|
||||
<itemData name="Sema Identifier" defStyleNum="dsDataType" color="#0D62FF" selColor="#0D62FF" bold="0" underline="1" />
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="#" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
||||
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
|
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE language SYSTEM "language.dtd" []>
|
||||
|
||||
<language name="vCard, vCalendar, iCalendar" version="0.2" kateversion="2.5" section="Markup" extensions="*.iCal;*.iCalendar;.ics;*.ifb;*.iFBf;*.vcal;*.vcalendar;*.vcard;*.vcf;" author="Lukas Sommer" mimetype="text/calendar;text/vcard" license="public domain">
|
||||
|
||||
<highlighting>
|
||||
|
||||
<contexts>
|
||||
<context attribute="Property" lineEndContext="#stay" name="contextProperty">
|
||||
<StringDetect attribute="vCard" String="BEGIN:" beginRegion="region" context="contextAttribute" column="0"/>
|
||||
<StringDetect attribute="vCard" String="END:" endRegion="region" context="contextAttribute" column="0"/>
|
||||
<DetectChar char=" " context="contextAttribute" column="0"/>
|
||||
<DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
|
||||
<DetectChar attribute="Delimiter" context="contextParameterKey" char=";" />
|
||||
</context>
|
||||
<context attribute="Parameter key" lineEndContext="#pop" name="contextParameterKey">
|
||||
<DetectChar attribute="Assignment" context="contextParameterValue" char="=" />
|
||||
<DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
|
||||
</context>
|
||||
<context attribute="Parameter value" lineEndContext="#pop" name="contextParameterValue">
|
||||
<DetectChar attribute="Delimiter" context="contextParameterKey" char=";" />
|
||||
<DetectChar attribute="Delimiter" context="contextAttribute" char=":" />
|
||||
</context>
|
||||
<context attribute="Attribute" lineEndContext="#pop" name="contextAttribute">
|
||||
<DetectChar attribute="Delimiter" char=";" />
|
||||
</context>
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Assignment" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Attribute" defStyleNum="dsString"/>
|
||||
<itemData name="Delimiter" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Parameter key" defStyleNum="dsFunction"/>
|
||||
<itemData name="Parameter value" defStyleNum="dsOthers"/>
|
||||
<itemData name="Property" defStyleNum="dsKeyword"/> <!-- dsDataType -->
|
||||
<itemData name="vCard" defStyleNum="dsRegionMarker"/>
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
</general>
|
||||
|
||||
</language>
|
Loading…
Reference in new issue