diff options
Diffstat (limited to 'kate/data/spice.xml')
-rw-r--r-- | kate/data/spice.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/kate/data/spice.xml b/kate/data/spice.xml new file mode 100644 index 000000000..03b183acf --- /dev/null +++ b/kate/data/spice.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> + +<language name="Spice" section="Hardware" version="1.01" kateversion="2.3" extensions="*.sp;*.hsp" mimetype="text/spice" author="Steven Robson (s.a.robson@sms.ed.ac.uk) and Anders Lund" license="LGPL"> + <highlighting> + + <contexts> + + <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> + <RegExpr attribute="Keyword" context="#stay" String="\B\.\w+" /> + <Int attribute="Number" context="#stay"/> + <Float attribute="Number" context="#stay"/> + <AnyChar attribute="Comment" String="$*" context="Commentar 1" /> + <DetectChar attribute="String" context="String" char="""/> + <DetectChar attribute="String" context="String" char="'"/> + </context> + + <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/> + + <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="String" lineEndContext="#pop" name="String"> + <LineContinue attribute="String" context="#stay"/> + <HlCStringChar attribute="String Char" context="#stay"/> + <DetectChar attribute="String" context="#pop" char="'"/> + </context> + + </contexts> + + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Keyword" defStyleNum="dsKeyword"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Number" defStyleNum="dsDecVal"/> + </itemDatas> + + </highlighting> + + <general> + <comments> + <comment name="singleLine" start="*" /> + </comments> + <keywords casesensitive="1" weakDeliminator="."/> + </general> +</language> |