diff options
| author | Lars Ingebrigtsen | 2019-10-30 15:39:15 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-30 15:39:15 +0100 |
| commit | b996117fe5d561d86665c23f7012871e345a6e77 (patch) | |
| tree | a20d316e73505b9fc4364fe79eacab766883c187 | |
| parent | 9df254119c4de577f273cf1ec1a5892a3509da20 (diff) | |
| download | emacs-b996117fe5d561d86665c23f7012871e345a6e77.tar.gz emacs-b996117fe5d561d86665c23f7012871e345a6e77.zip | |
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).
| -rw-r--r-- | lisp/progmodes/sh-script.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 8177329f32b..62e4e5c49e0 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1141,7 +1141,7 @@ subshells can nest." | |||
| 1141 | ;; metacharacters. The list of special chars is taken from | 1141 | ;; metacharacters. The list of special chars is taken from |
| 1142 | ;; the single-unix spec of the shell command language (under | 1142 | ;; the single-unix spec of the shell command language (under |
| 1143 | ;; `quoting') but with `$' removed. | 1143 | ;; `quoting') but with `$' removed. |
| 1144 | ("\\(?:[^|&;<>(`\\\"' \t\n]\\|\\${\\)\\(#+\\)" (1 "_")) | 1144 | ("\\(?:[^|&;<>(`\\\"' \t\n]\\|\\${\\|\\ \\)\\(#+\\)" (1 "_")) |
| 1145 | ;; In addition, `#' at the beginning of closed parentheses | 1145 | ;; In addition, `#' at the beginning of closed parentheses |
| 1146 | ;; does not start a comment if the parentheses are not isolated | 1146 | ;; does not start a comment if the parentheses are not isolated |
| 1147 | ;; by metacharacters, excluding [()]. | 1147 | ;; by metacharacters, excluding [()]. |