]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 a2322a026e3b9520f53950e41883e273b368d9e6..740d95c29e1212975e776736f49096ddad84fda9 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 3c7571e037ba9857eaabeba7d40795e906a696d0..cf9347d0e6d1e238679431128362cbf6efd72f8e 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.