emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mixal-mode.el sync with gnu mdk project


From: Stefan Monnier
Subject: Re: mixal-mode.el sync with gnu mdk project
Date: Sun, 09 Oct 2005 08:56:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>  (defvar mixal-mode-syntax-table
>    (let ((st (make-syntax-table)))
> -    (modify-syntax-entry ?* "<" st)
> -    (modify-syntax-entry ?\n ">" st)
> +    ; (modify-syntax-entry ?* "<" st)    we need to do a bit more to make
> +    ; (modify-syntax-entry ?\n ">" st)    fontlocking for comments work
>      st)
>    "Syntax table for `dot-mode'.")

Re-indenting this code will do the wrong thing: you need 2 semi-colons,
not 1.  Such single-semin-colon comments are indented to comment-column.
 
> +    ("^[A-Z0-9a-z]*[ \t]+[A-ZO-9a-z]+[ \t]+\\(=.*=\\).*$"
> +     (1 font-lock-constant-face))
> +    ("^[A-Z0-9a-z]*[ \t]+[A-Z0-9a-z]+[ \t]+[A-Z0-9a-z,():+-\\*=\" 
> ]*[\t]+\\(.*\\)$"
                                                                       ^^^^
                                                                        \t



        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]