Is there a Common Lisp syntax highlighting .xshd file for use with ICSharpCode.TextEditor? I haven't been able to find one on google, and the format for writing syntax highlighting specification files is so wretchedly documented that I can't make a very good one myself. I can highlight basic keywords, but not much more.
It needs to have the following:
list
, dolist
, read-line
. lambda
, etc.defun
, defmacro
, defvar
, etc, such that in the text (defun a () ...)
, a
is highlighted. It doesn't have to be complete because I can add more, just one or two is fine to show how it's done.:a
,
, @,
, etc)(a b c)
, a
needs to be highlightedDoes anyone know where to get a Common Lisp syntax highlighting file for ICSharpCode.TextEditor that has these features?
Here is a start for a Scheme highlighter. Not very fancy, but shows how recursion works with the rulesets.
<SyntaxDefinition name="Scheme" extensions=".sls;.sps;.ss;.scm"
xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color foreground="Green" name="Comment" />
<Color foreground="Blue" name="Syntax" />
<Color foreground="Blue" name="Library Syntax" />
<Color foreground="Blue" name="Auxilliary Syntax" />
<Color foreground="DarkMagenta" name="Procedure" />
<RuleSet>
<Import ruleSet="Expression"/>
</RuleSet>
<RuleSet name="Expression">
<Span color="Comment" multiline="false">
<Begin>;</Begin>
</Span>
<Span color="Comment" multiline="true" >
<Begin>\#\|</Begin>
<End>\|\#</End>
</Span>
<Span ruleSet="Expression" multiline="true" >
<Begin fontWeight="bold">\(</Begin>
<End fontWeight="bold">\)</End>
</Span>
<Span ruleSet="Expression" multiline="true">
<Begin fontWeight="bold">\#\(</Begin>
<End fontWeight="bold">\)</End>
</Span>
<Keywords color="Library Syntax">
<Word>import</Word>
<Word>export</Word>
<Word>library</Word>
</Keywords>
<Keywords color="Syntax">
<Word>define</Word>
<Word>set!</Word>
<Word>lambda</Word>
<Word>begin</Word>
<Word>if</Word>
<Word>cond</Word>
<Word>let</Word>
<Word>letrec</Word>
</Keywords>
<Keywords color="Auxilliary Syntax">
<Word>else</Word>
</Keywords>
<Keywords color="Procedure">
<Word>map</Word>
<Word>cons</Word>
<Word>car</Word>
</Keywords>
</RuleSet>
</SyntaxDefinition>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With