Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Problem with emacs mode

From: d4marcus:dtek:chalmers:se at: 29-Apr-2001 22:30

CC'ing to the list here, as this could concern more people. On Sat, 28 Apr 2001, Chris wrote:
> I have attached a copy of the source that caused the problems I described. > Try going to line 405 and pressing the tab key, that should reproduce the 60 > space indent.
Yes I see. It's the semicolon in the braced string that gets interpreted as a comment-starter. You see, the problem with Emacs is that even though the braced string can be fontified as a "string", it isn't syntactically recognized as a string. There's no way I can help this, or so it seems when I read the elisp doc. In other words, Emacs doesn't allow for a balanced string expression (i.e. with a start and end string char"). The cause is not lost however. There may be ways to make the syntax table for comments, or perhaps the comment-start variable, smarter. This will take quite some time to investigate though. My recommended solution is instead that you escape all semicolons within braced strings with a caret, as in { ... nbsp^; ...}. I don't think this will affect the Rebol program in any way, but will allow indentation to work properly. To the list: If someone has a better idea, please let me know. Marcus ------------------------------------ If you find that life spits on you calm down and pretend it's raining