* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Apr 2014 19:50:05 +0000 (15:50 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Apr 2014 19:50:05 +0000 (15:50 -0400)
and "for" statement modifiers introducing expressions.

Fixes: debbugs:17116

lisp/ChangeLog
lisp/progmodes/perl-mode.el

index a2322a0..740d95c 100644 (file)
@@ -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>
 
index 3c7571e..cf9347d 100644 (file)
       ;; 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.