mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
font-lock \ #foo in shell mode more correctly
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): \ #foo isn't a comment -- it's a symbol that starts with a space character (bug#17538).
This commit is contained in:
parent
9df254119c
commit
b996117fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -1141,7 +1141,7 @@ subshells can nest."
|
|||
;; metacharacters. The list of special chars is taken from
|
||||
;; the single-unix spec of the shell command language (under
|
||||
;; `quoting') but with `$' removed.
|
||||
("\\(?:[^|&;<>(`\\\"' \t\n]\\|\\${\\)\\(#+\\)" (1 "_"))
|
||||
("\\(?:[^|&;<>(`\\\"' \t\n]\\|\\${\\|\\ \\)\\(#+\\)" (1 "_"))
|
||||
;; In addition, `#' at the beginning of closed parentheses
|
||||
;; does not start a comment if the parentheses are not isolated
|
||||
;; by metacharacters, excluding [()].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue