[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: AW: [jed-users] abcmode.sl
From: =?iso-8859-1?Q?Martin_D=F6ring?= <mdoering@xxxxxxxxxxxx>
Thanks, John!
This will not work, because characters like C are also notes to play, not
only keywords. Since which version of jed is the DFA-syntax highlighting
broken?
> -----Ursprüngliche Nachricht-----
> Von: John E. Davis [SMTP:davis@xxxxxxxxxxxxx]
> Gesendet am: Montag, 12. Juli 1999 23:49
> An: jed-users@xxxxxxxxxxx
> Betreff: Re: AW: [jed-users] abcmode.sl
>
> From: "John E. Davis" <davis@xxxxxxxxxxxxx>
>
> Martin Döring <mdoering@xxxxxxxxxxxx> wrote:
> >to use the same keybindings and menus as in other windows programs. But
> this
> >syntax stuff seems to be too complicated for me... :-(
>
> I am not convinced that this format can be handled without using the
> DFA syntax highlighting, which is broken. What about this:
>
> $1 = "abc";
>
> create_syntax_table ($1);
> % Kommentar
> define_syntax ("%", "", '%', $1);
> % Klammerausdruecke
> define_syntax ("([{", ")]}", '(', $1);
> % Gitarrenakkorde
> define_syntax ('"', '"', $1);
> % Delimiter
> define_syntax (":|", ',', $1);
> % Operatoren
> define_syntax ("/*<>^_=", '+', $1);
> % Noten
> define_syntax ("A-Za-z", 'w', $1);
>
> define_keywords ($1, "CKLMOQSTWXZw", 1);
>
> define abc_mode ()
> {
> variable mode = "abc";
> set_mode(mode, 0x4);
> use_syntax_table (mode);
> runhooks("abc_mode_hook");
> }
>
>
> --
> John E. Davis Center for Space Research/AXAF Science
> Center
> 617-258-8119 One Hampshire St., Building NE80-6019
> http://space.mit.edu/~davis Cambridge, MA 02139-4307
>
> --------------------------- ONElist Sponsor ----------------------------
>
> Start a new ONElist list & you can WIN great prizes!
> http://www.onelist.com
> See homepage for details on ONElist's new "FRIENDS & FAMILY" program.
>
> ------------------------------------------------------------------------
> ***** http://www.pub.ro/~vang/jed/
--------------------------- ONElist Sponsor ----------------------------
Why do WOMEN ASTRONAUTS have such BAD HAIRCUTS?
What happens if you CLEAN your self-cleaning OVEN?
The DR. has answers:<a href=" http://www.drscience.com/u ">Click</a>
------------------------------------------------------------------------
***** http://www.pub.ro/~vang/jed/