* lisp/progmodes/sh-script.el (sh-here-doc-open-re): Don't rely on the
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2011 19:46:47 +0000 (14:46 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2011 19:46:47 +0000 (14:46 -0500)
commitba70ab1cad8149357bd92e23af80c96c08be57ea
tree1adc03d3336a754d64541630f6dfbb08812fd399
parent7cb76591b02e831807bff7928b1f5f019761e0de
* lisp/progmodes/sh-script.el (sh-here-doc-open-re): Don't rely on the
font-lock-syntax-table remappings.
(sh-here-doc-markers, sh-here-doc-re): Remove.
(sh-font-lock-close-heredoc): Remove.
(sh-syntax-propertize-here-doc): New function.
(sh-font-lock-open-heredoc): Set the sh-here-doc-marker property
instead of the sh-here-doc-re.
(sh-font-lock-paren): Don't do anything in comments or strings.
Handle line continuations.  Accept a few more chars.
Don't rely on the font-lock-syntax-table remappings.
`esac' is not a valid pattern.
(sh-syntax-propertize-function): Handle here-docs differently, so we
don't bother syntax-propertizing the insides.

Fixes: debbugs:7947
lisp/ChangeLog
lisp/progmodes/sh-script.el