diff options
Diffstat (limited to 'kturtle/data/logohighlightstyle.en_US.xml')
-rw-r--r-- | kturtle/data/logohighlightstyle.en_US.xml | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/kturtle/data/logohighlightstyle.en_US.xml b/kturtle/data/logohighlightstyle.en_US.xml new file mode 100644 index 00000000..330fc496 --- /dev/null +++ b/kturtle/data/logohighlightstyle.en_US.xml @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language> +<!-- Logo syntax highlightning v0.2 by Cies Breijs --> +<language name="en_US" version="0.2" kateversion="2.1" section="Logo" extensions="*.logo;*.lgo;*.LOGO;*.Logo" mimetype="text/x-logosrc;text/x-logo;application/x-logo" priority="9" casesensitive="0"> + + +<highlighting> + <list name="metafunctions"> + <item> learn </item> + </list> + + <list name="statements"> + <item> run </item> + <item> clear </item> + <item> ccl </item> + <item> go </item> + <item> gox </item> + <item> gx </item> + <item> goy </item> + <item> gy </item> + <item> forward </item> + <item> fw </item> + <item> backward </item> + <item> bw </item> + <item> direction </item> + <item> dir </item> + <item> turnleft </item> + <item> tl </item> + <item> turnright </item> + <item> tr </item> + <item> center </item> + <item> penwidth </item> + <item> pw </item> + <item> penup </item> + <item> pu </item> + <item> pendown </item> + <item> pd </item> + <item> pencolor </item> + <item> pc </item> + <item> canvascolor </item> + <item> cc </item> + <item> canvassize </item> + <item> cs </item> + <item> show </item> + <item> ss </item> + <item> hide </item> + <item> sh </item> + <item> press </item> + <item> sp </item> + <item> change </item> + <item> sc </item> + <item> message </item> + <item> inputwindow </item> + <item> print </item> + <item> fonttype </item> + <item> fontsize </item> + <item> random </item> + <item> wrapon </item> + <item> wrapoff </item> + <item> reset </item> + </list> + + <list name="controllers"> + <item> while </item> + <item> foreach </item> + <item> in </item> + <item> for </item> + <item> to </item> + <item> do </item> + <item> repeat </item> + <item> rpt </item> + <item> if </item> + <item> else </item> + <item> return </item> + <item> break </item> + <item> wait </item> + </list> + + <list name="boolops"> + <item> and </item> + <item> or </item> + <item> not </item> + </list> + + <contexts> + <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> + + <keyword attribute="MetaFunctions" String="metafunctions" context="#stay"/> + <keyword attribute="Statements" String="statements" context="#stay"/> + <keyword attribute="Execution Controllers" String="controllers" context="#stay"/> + <keyword attribute="Boolean Operators" String="boolops" context="#stay"/> + + <RegExpr attribute="Expressers" String="([!=><][=]|[><])" context="#stay"/> + <RegExpr attribute="Normal" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/> + <RegExpr attribute="Number" String="([0-9]+\.[0-9]*|\.[0-9]+)?|[0-9]*" context="#stay"/> + <RegExpr attribute="Comment" String="#.*$" context="#stay"/> + <RegExpr attribute="Operator" String="[+*/\(\)-]" context="#stay"/> + <RegExpr attribute="Scopes" String="[\[\]]" context="#stay"/> + <DetectChar attribute="String" char=""" context="String"/> + </context> + + <context name="String" attribute="String" lineEndContext="#stay"> + <HlCStringChar attribute="String" context="#stay"/> + <RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/> + <DetectChar attribute="String" char=""" context="#pop"/> + </context> + + </contexts> + + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Normal" defStyleNum="dsNormal"/> + <itemData name="MetaFunctions" defStyleNum="dsKeyword" color="#00bb00" selColor="#ffffff" bold="1" italic="0"/> + <itemData name="Statements" defStyleNum="dsKeyword" color="#006600" selColor="#ffffff" bold="0" italic="0"/> + <itemData name="Execution Controllers" defStyleNum="dsKeyword" color="#006600" selColor="#ffffff" bold="1" italic="0"/> + <itemData name="Expressers" defStyleNum="dsKeyword" color="#1e99cc" selColor="#ffffff" bold="1" italic="0"/> + <itemData name="Boolean Operators" defStyleNum="dsKeyword" color="#9922cc" selColor="#ffffff" bold="1" italic="0"/> + <itemData name="Scopes" defStyleNum="dsKeyword" color="#00bb00" selColor="#ffffff" bold="1" italic="0"/> + <itemData name="Number" defStyleNum="dsFloat" color="#0000ff" selColor="#00eeff" bold="0" italic="0"/> + <itemData name="Comment" defStyleNum="dsComment" color="#999922" selColor="#888888" bold="0" italic="0"/> + <itemData name="String" defStyleNum="dsString" color="#800000" selColor="#ffffff" bold="0" italic="0"/> + <itemData name="Raw String" defStyleNum="dsString" color="#800000" selColor="#ffffff" bold="0" italic="0"/> + <itemData name="Operator" defStyleNum="dsOthers" color="#888888" selColor="#ffffff" bold="0" italic="0"/> + </itemDatas> +</highlighting> + + +<general> + + <folding indentationsensitive="0" /> + + <comments> + <comment name="singleLine" start="#" /> + </comments> + + <keywords casesensitive="0" /> + +</general> + + +</language> |