[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about bat-generic-mode
From: |
Oleksandr Gavenko |
Subject: |
Re: Questions about bat-generic-mode |
Date: |
Thu, 17 Jan 2013 22:58:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On 2013-01-17, Pascal Quesseveur wrote:
> 2. Labels starting with ':' in goto statements are not
> fontified. There are some cases where the ':' is required as in
> goto :EOF. Perhaps the regexp used for fontification could be
> modified as follows:
>
> "[ \t\n|]\\<\\([gG][oO][tT][oO]\\)\\>[ \t]*\\(:?\\sw+\\)?"
>
Send a patch by M-x report-emacs-bug.
> 3. comment-start is set to REM. It would be interesting to be able to
> set it to ::
>
Its nice thing but you know that :: is an very undocumented hack (invalid
label):
http://xset.tripod.com/tip3.htm
> 4. echo can be followed by a space or a dot (to prevent newline). In
> the later case fontification fails. One modification could be:
>
> '("^[@ \t]*\\([eE][cC][hH][oO]\\)\\([
> \t]+\\|[.]\\)\\(\\([oO]\\([nN]\\|[fF][fF]\\)\\)\\|\\([^>|\r\n]+\\)\\)"
> (1 font-lock-builtin-face)
> (4 font-lock-constant-face t t)
> (6 font-lock-string-face t t))
Send a patch by M-x report-emacs-bug.
I also provide improvement to bat-generic-mode:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5719
[patch] fix bat-generic-mode highlighting pattern for CLI
switch.
--
Best regards!