Hi Jose,
Good work... I have a highlighter for vim, and it helps pick up many
typos while in vim, but one for emacs will be handy.
You may also be interested in a algol68.vim syntax highlighting
* http://www.vim.org/scripts/script.php?script_id=1927
It does not handle indenting or block BEGIN/END matching.
And for GeSHi and MediaWiki:
* http://textmb.git.sourceforge.net/git/gitweb.cgi?p=textmb/upb;a=blob;f=includes/inc/geshi/algol68.php
Example: http://rosettacode.org/wiki/Knapsack_problem/Unbounded#ALGOL_68
[ Wikipedia will pick up on this .php with the next release of GeSHi,
watch http://en.wikipedia.org/wiki/User:NevilleDNZ/GeSHi_sandbox#ALGOL_68 ]
Both only crudely handle "variables with space in their names" if
UPPERCASE tokens shouldn't abut "lower case tokens". Otherwise they
handle UPPER stropping (and unicode) OK, and give some nice output.
They also know about algol68g library routines/preludes.
I do wonder if I could include/parse the algol68g compiler source/header
into a short program and then generate the above, "next release" maybe..
NevilleDNZ
On Thu, 2011-03-03 at 22:14 +0100, Jose E. Marchesi wrote:
> Hi all.
>
> I am writing an Emacs mode for editing Algol 68 programs. You can get
> it in http://www.jemarch.net/a68-mode.html
>
> It is by no means complete, but it already supports basic syntax
> highlighting and context-sensitive indentation. I am improving the mode
> as I use it.
>
> Contributions are welcome :)
>
> Cheers,
--
Neville Dempsey <Nev...@sg...>
|