[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shell-mode font-lock for here documents
From: |
Reiner Steib |
Subject: |
shell-mode font-lock for here documents |
Date: |
Thu, 13 Jan 2005 16:48:17 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Save the following lines to "/tmp/EOF-font-lock.sh" and start emacs:
$ emacs-cvs -Q -f global-font-lock-mode /tmp/EOF-font-lock.sh
--8<---------------cut here---------------start------------->8---
#!/bin/bash
cat <<EOF|xmodmap -
keysym 2 = 2 at twosuperior
EOF
# Everything below is in sh-heredoc-face ...
if true; then
false
fi
--8<---------------cut here---------------end--------------->8---
Everything starting from "keysym" is in `sh-heredoc-face'. When I
change "cat <<EOF|xmodmap -" to "cat <<EOF |xmodmap -" (i.e. adding a
space before the pipe, it is fontified correctly.
Bye, Reiner.
Settings follow...
In GNU Emacs 21.3.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 2.4.9)
of 2005-01-13 on bridgekeeper
Distributor `The X.Org Foundation', version 11.0.60801000
configured using `configure '--prefix=/import/xtra/emacs/HEAD' '--with-gtk'
'--exec-prefix=/import/xtra/emacs/HEAD-x86_64''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: POSIX
value of $LC_CTYPE: address@hidden
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US
locale-coding-system: iso-latin-9
default-enable-multibyte-characters: t
Major mode: Shell-script
Minor modes in effect:
mouse-wheel-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
transient-mark-mode: identity
Recent input:
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1>
M-x r e p <tab> <left> <end> o <tab> r <tab> <retu
rn>
Recent messages:
Loading sh-script...done
Setting up indent for shell type bash
Loading regexp-opt...done
setting up indent stuff
Indentation variable are now local.
Indentation setup for shell type bash
Making completion list...
Loading help-mode...done
Making completion list...
Loading emacsbug...done
- shell-mode font-lock for here documents,
Reiner Steib <=