[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock confused in sh-script-mode
From: |
Reiner Steib |
Subject: |
Re: font-lock confused in sh-script-mode |
Date: |
Thu, 27 Jul 2006 16:38:29 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Wed, Jul 26 2006, Reiner Steib wrote:
> It seems like the unbalanced backquote in the comment «# force `ro» in
> combination with the two «echo "... \\"» confused font-lock.
Another example:
--8<---------------cut here---------------start------------->8---
#!/bin/sh
echo 'Running $Id: quotas.sh,v 1.16 2006/01/03 14:17:31 ste Exp $'
allusers=`
ypcat passwd | awk -F: '{ if ($3 > 99) printf ("%10s %30s %14s\n", $1, $6,
$7);}' |
while read user home shell; do
if [ -d "$home" -a -x "$shell" -a "$shell" != /bin/false ]; then
echo "$user "
fi
done
`
dev_home=/dev/data/home
dev_Disks=/dev/data/scratch
dev_mail=/dev/data/mail
q_huge="500000 700000 $inodes $dev_home"
q_large="250000 500000 $inodes $dev_home"
q_medium="100000 200000 $inodes $dev_home"
q_guest=" 50000 100000 $inodes $dev_home"
exit 0
--8<---------------cut here---------------end--------------->8---
The line «q_guest=...» is not fontified like the three preceding
similar lines (the whole "..." expression is in
`font-lock-string-face'). See this screen shot:
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/