* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
and "for" statement modifiers introducing expressions. Fixes: debbugs:17116
This commit is contained in:
parent
66f50b12de
commit
8a7fd44212
2 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
* progmodes/perl-mode.el (perl-indent-new-calculate):
|
||||
Handle forward-sexp failure (bug#16985).
|
||||
(perl-syntax-propertize-function): Add "foreach" and "for" statement
|
||||
modifiers introducing expressions (bug#17116).
|
||||
|
||||
2014-04-02 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@
|
|||
;; perl-font-lock-special-syntactic-constructs.
|
||||
((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)"
|
||||
(regexp-opt '("split" "if" "unless" "until" "while" "split"
|
||||
"grep" "map" "not" "or" "and"))
|
||||
"grep" "map" "not" "or" "and" "for" "foreach"))
|
||||
"\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
|
||||
(2 (ignore
|
||||
(if (and (match-end 1) ; / at BOL.
|
||||
|
|
Loading…
Add table
Reference in a new issue