Lisp syntax highlighting for ICSharpCode.TextEditor

Is there any general Lisp.xshd syntax syntax for use with ICSharpCode.TextEditor? I could not find it in google, and the format for writing specification syntax files is so omitted that I can not do very good myself. I can highlight the main keywords, but not much more.

It should have the following:

  • Highlight common Lisp keywords such as list , dolist , read-line . lambda etc.
  • Syntax highlighting for words after defun , defmacro , defvar , etc., so that (defun a () ...) stands out in the text (defun a () ...) . This does not have to be complete, because I can add more, only one or two perfectly show how this is done.
  • Highlight characters such as :a
  • Select the quoted lists both in the form of a back quote, and in a single quote and the screen forms in the quoted lists (screened,, @, etc.) do not "appear"
  • Highlight the name of the called function. For example, in the text (abc) , a
  • Additionally: everything that I missed would be useful (I'm new to Lisp, so I don't know everything that can be highlighted)

Does anyone know where to get the generic Lisp syntax highlighting file for ICSharpCode.TextEditor that has these functions?

+7
source share
1 answer

Here is the beginning of a Scheme marker. Not very bizarre, but shows how recursion works with rule sets.

 <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> 
+3
source

All Articles