PageRenderTime 84ms CodeModel.GetById 81ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/literate-haskell.xml

#
XML | 37 lines | 19 code | 6 blank | 12 comment | 0 complexity | 2fbd7e45bcbcabd2880ca3f5c8cd2795 MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!DOCTYPE MODE SYSTEM "xmode.dtd">
 4
 5<!--
 6	Literate Haskell mode by Cameron Morrison (c.morrison@iinet.net.au)
 7	Modified version of the Haskell mode by Kristian Ovaska (kristian.ovaska@helsinki.fi)
 8	Based on Haskell 98
 9-->
10
11<MODE>
12
13	<PROPS>
14		<PROPERTY NAME="commentStart" VALUE="{-" />
15		<PROPERTY NAME="commentEnd" VALUE="-}" />
16		<PROPERTY NAME="lineComment" VALUE="--" />
17		<!-- apparently, this is required... -->
18		<PROPERTY NAME="tabSize" VALUE="8" />
19		<PROPERTY NAME="indentSize" VALUE="8" />
20	</PROPS>
21
22	<RULES IGNORE_CASE="FALSE" DEFAULT="COMMENT4">
23		<EOL_SPAN AT_WHITESPACE_END="TRUE" TYPE="FUNCTION" DELEGATE="haskell::MAIN">&gt;</EOL_SPAN>
24		<!-- for LaTeX-style -->
25		<EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT3">%</EOL_SPAN>
26		<SPAN TYPE="LITERAL3" DELEGATE="haskell::MAIN">
27			<BEGIN>\begin{code}</BEGIN>
28			<END>\end{code}</END>
29		</SPAN>
30		<!--
31		<EOL_SPAN_REGEXP HASH_CHAR="\" AT_LINE_START="TRUE" 
32			DELEGATE="latex::MAIN" EXCLUDE_MATCH="FALSE" TYPE="KEYWORD1"
33		>\\\w+</EOL_SPAN_REGEXP>
34		-->
35    </RULES>
36
37</MODE>