author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (side-by-side diff) | |
tree | ad6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/sml.xml | |
parent | 67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff) | |
download | opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2 |
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/sml.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/sml.xml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/share/tinykate/syntax/sml.xml b/share/tinykate/syntax/sml.xml new file mode 100644 index 0000000..0d882fd --- a/dev/null +++ b/share/tinykate/syntax/sml.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name="SML" version="1.00" kateversion="2.0" section="Scripts" extensions="*.sml" mimetype=""> + <highlighting> + <list name="keywords"> + <item> abstype </item> + <item> and </item> + <item> andalso </item> + <item> as </item> + <item> case </item> + <item> do </item> + <item> datatype </item> + <item> else </item> + <item> end </item> + <item> eqtype </item> + <item> exception </item> + <item> fn </item> + <item> fun </item> + <item> functor </item> + <item> handle </item> + <item> if </item> + <item> in </item> + <item> include </item> + <item> infix </item> + <item> infixr </item> + <item> let </item> + <item> local </item> + <item> nonfix </item> + <item> of </item> + <item> op </item> + <item> open </item> + <item> orelse </item> + <item> raise </item> + <item> rec </item> + <item> sharing </item> + <item> sig </item> + <item> signature </item> + <item> struct </item> + <item> structure </item> + <item> then </item> + <item> type </item> + <item> val </item> + <item> where </item> + <item> with </item> + <item> withtype </item> + <item> while </item> + </list> + <list name="types"> + <item> unit </item> + <item> int </item> + <item> real </item> + <item> char </item> + <item> string </item> + <item> substring </item> + <item> word </item> + <item> ref </item> + <item> array </item> + <item> vector </item> + <item> bool </item> + <item> list </item> + <item> option </item> + <item> order </item> + </list> + <contexts> + <context attribute="0" lineEndContext="#stay" name="Normal"> + <Detect2Chars attribute="6" context="1" char="(" char1="*" /> + <DetectChar attribute="5" context="2" char=""" /> + <keyword attribute="1" context="#stay" String="keywords" /> + <keyword attribute="2" context="#stay" String="types" /> + <Float attribute="4" context="#stay"> + <AnyChar String="fF" attribute="4" context="#stay"/> + </Float> + <HlCHex attribute="3" context="#stay"/> + <Int attribute="3" context="#stay" /> + </context> + <context attribute="6" lineEndContext="#stay" name="Multiline/Inline Comment"> + <Detect2Chars attribute="6" context="#pop" char="*" char1=")" /> + </context> + <context attribute="5" lineEndContext="#stay" name="String"> + <DetectChar attribute="5" context="#pop" char=""" /> + </context> + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Keyword" defStyleNum="dsKeyword"/> + <itemData name="Data Type" defStyleNum="dsDataType"/> + <itemData name="Decimal" defStyleNum="dsDecVal"/> + <itemData name="Float" defStyleNum="dsFloat"/> + <itemData name="String" defStyleNum="dsString"/> + <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="Notice" defStyleNum="dsString" /> + </itemDatas> + </highlighting> + <general> + <keywords casesensitive="1" /> + <comments> + <comment name="multiLine" start="(*" end="*)" /> + </comments> + </general> +</language> |