diff options
| author | Stefan Monnier | 2014-04-02 15:50:05 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-02 15:50:05 -0400 |
| commit | 8a7fd442120979132a5c7beb0ac910ea3fae165d (patch) | |
| tree | 009a80bd028587d2f6cd441fe00ea0cfeb4da717 | |
| parent | 66f50b12dee4e8eff49dcc07ebbe6dcbb69ccd1e (diff) | |
| download | emacs-8a7fd442120979132a5c7beb0ac910ea3fae165d.tar.gz emacs-8a7fd442120979132a5c7beb0ac910ea3fae165d.zip | |
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
and "for" statement modifiers introducing expressions.
Fixes: debbugs:17116
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a2322a026e3..740d95c29e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * progmodes/perl-mode.el (perl-indent-new-calculate): | 3 | * progmodes/perl-mode.el (perl-indent-new-calculate): |
| 4 | Handle forward-sexp failure (bug#16985). | 4 | Handle forward-sexp failure (bug#16985). |
| 5 | (perl-syntax-propertize-function): Add "foreach" and "for" statement | ||
| 6 | modifiers introducing expressions (bug#17116). | ||
| 5 | 7 | ||
| 6 | 2014-04-02 Glenn Morris <rgm@gnu.org> | 8 | 2014-04-02 Glenn Morris <rgm@gnu.org> |
| 7 | 9 | ||
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 3c7571e037b..cf9347d0e6d 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -276,7 +276,7 @@ | |||
| 276 | ;; perl-font-lock-special-syntactic-constructs. | 276 | ;; perl-font-lock-special-syntactic-constructs. |
| 277 | ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)" | 277 | ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)" |
| 278 | (regexp-opt '("split" "if" "unless" "until" "while" "split" | 278 | (regexp-opt '("split" "if" "unless" "until" "while" "split" |
| 279 | "grep" "map" "not" "or" "and")) | 279 | "grep" "map" "not" "or" "and" "for" "foreach")) |
| 280 | "\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)") | 280 | "\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)") |
| 281 | (2 (ignore | 281 | (2 (ignore |
| 282 | (if (and (match-end 1) ; / at BOL. | 282 | (if (and (match-end 1) ; / at BOL. |