[Top][All Lists]

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

shell-script-mode: please ignore quotes in here documents

From: Dan Jacobson
Subject: shell-script-mode: please ignore quotes in here documents
Date: 18 Oct 2001 11:32:13 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

For those of you who have emacs set up so shell scripts are in many colors,
save the rest of this message to /tmp/file.sh and then do find-file on it.

cat <<EOF
this is a file that shows emacs' disregard for the EOF that ends a
"here" document in terms of turning off the colors after hitting a
single apostrophe.  notice how the whole rest of the file is in ugly
"quotation color."

echo even though we are alreay here.
#and here too.  Idea: act like the shell: apostrophies are not treated
#specially in "here" documents.  Yes, I am not sure emacs is capble of 
#such inerpretation here.
#also--- "in" etc. reserved words should not be special
#inside here docs.

reply via email to

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