syntax highlighting and code folding for the KDE Kate editor
Subject: syntax highlighting and code folding for the KDE Kate editor
From: Stavros Macrakis
Date: Mon, 27 Sep 2004 17:30:43 -0400
Thanks for posting this.
I've listed some issues below. Hope this is useful. I don't know
anything about Kate, so perhaps these comments are irrelevant -- but
you might want to take a look at the Emacs file maxima.el for some
ideas (though it is far from perfect).
I don't understand where it specifies the structure of lexical items,
e.g. that a_b and <= are single symbols, but a.b and =- are multiple
symbols.
In your list of "Program Flow", you group together reserved words
(for, do, ...), special forms with function-like syntax (block,
errcatch, ...), global variables (lispdebugmode, errormsg, ...), and
normal functions which happen to take functional arguments (map,
scanmap, ...). Why is it useful to group those?
Missing elseif.
equal in Maxima is just a function and has no special syntax.
Your list of constants is incomplete (missing inf, %gamma, etc.), but
more seriously it is a static list -- what happens when the user
defines new constants with declare(xxx,constant)?
Some things are listed as functions when they're actually variables
(evfun, linenum, ibase).
The syntax of [...] is missing.
What about identifiers which refer to both functions and variables,
e.g. float, gcd, ....?
There doesn't seem to be a syntax specification which would allow the
editor to do indentation properly (or perhaps Kate doesn't handle
indentation?).
-s