emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: font-lock confused in sh-script-mode


From: Stefan Monnier
Subject: Re: font-lock confused in sh-script-mode
Date: Wed, 26 Jul 2006 11:13:52 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Open the following file in emacs (emacs -Q sh-bogus-comment.sh):

> --8<---------------cut here---------------start------------->8---
> #!/bin/sh

> do_untrusted()
> {
>   : ${squash:="squash_uids=0-149"}
>   for host in $pc_untrusted; do
>     # force `ro
>     echo "  $host($squash,ro,sync)\\"
>   done
> }

> while read dev point rest; do
>   case $point
>   in ( /Disks/var )
>     echo "$point \\"
>     rw_ro=rw do_hostlist
>     echo
>     echo "#"
>   ;; ( * )
>     :
>   esac
> done < /etc/fstab
> --8<---------------cut here---------------end--------------->8---

> The buffer is font-locked incorrectly, see the attached screen shot:
[...]
> It seems like the unbalanced backquote in the comment «# force `ro» in
> combination with the two «echo "... \\"» confused font-lock.

I don't see anything wrong in the screen shot.
What should be different?


        Stefan




reply via email to

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