Hi,
I discovered this text editor an hour or so ago via a LifeHacker post. Since I'm still looking for an editor with half-decent Haskell syntax highlighting and because this is one of the few (if not the only) editors that let you define your own scheme, I had a go at it by modifying the Powershell schemedef file. I've almost got it working, except for two issues:
1) The keywords won't work. As far as I can tell I've used the exact same structure as the Powershell file, but the keywords stay black.
2) In a block comment the closing -} is black instead of the comment color.
Could anyone more experienced in making schemes help me fix these errors?
Thanks in advance.
Below are the contents of my haskell.schemedef:
<?xml version="1.0" ?>
<Scheme>
<keyword-classes>
<keyword-class name="keywords">
as case of class data default deriving do forall foreign hiding if then else import infix infixl infixr instance let in mdo module newtype qualified type where
</keyword-class>
<keyword-class name="keychars">
| @ ! :: _ ~
</keyword-class>
</keyword-classes>
<schemedef name="haskell" title="Haskell" author="Remco Niemeijer" folding="true" casesensitive="true" braces="{[()]}">
<strings>
<stringtype id="0" start=""" end=""" multiline="false" />
<stringtype id="1" start="'" end="'" multiline="false" />
</strings>
<identifiers start="[A-Z]" content="[a-zA-Z0-9]" />
<comments>
<line start="--" />
<block start="{-" end="-}" />
</comments>
<numbers start="[0-9]" content="[0-9.]" />
<lexer name="haskell" />
<use-keywords>
<keyword key="0" name="Keywords" class="keywords"/>
<keyword key="1" name="Keywords 2" class="keychars"/>
</use-keywords>
<use-styles>
<style name="Default" key="32" fore="000000"/>
<style name="Line Comment" key="1" class="comment" fore="008800"/>
<style name="Block Comment" key="2" class="comment" fore="008800"/>
<style name="Identifier" key="3" class="identifier" fore="ff8800"/>
<style name="Number" key="4" class="number" fore="008888"/>
<style name="Keywords" key="5" class="keyword" fore="ff0000"/>
<style name="Keywords 2" key="6" class="keyword" fore="f80000" />
<style name="String" key="10" class="string" fore="ff00ff"/>
<style name="String 2" key="11" class="string" fore="ff00ff"/>
<!-- <style name="Special Identifier" key="13" /> -->
</use-styles>
</schemedef>
</Scheme>