]> code.delx.au - gnu-emacs/commitdiff
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Apr 2014 01:56:18 +0000 (21:56 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Apr 2014 01:56:18 +0000 (21:56 -0400)
&, |, +, - and * can't be a division.

Fixes: debbugs:17317
lisp/ChangeLog
lisp/progmodes/perl-mode.el
test/indent/perl.perl

index b76d3c4a194afde5d87594296ab956a6d756e301..f3c94c1818d7485cfce45da2d448b3767c39fc12 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
+       &, |, +, - and * can't be a division (bug#17317).
+
 2014-04-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * term/xterm.el (xterm--version-handler): Don't use modern xterm
index f89fec7b1e0d9495d4e774e7b8118a670d80dd11..ef372a34fdb11a6dd153b71e0f2664d3a778c820 100644 (file)
       ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)"
                (regexp-opt '("split" "if" "unless" "until" "while" "split"
                              "grep" "map" "not" "or" "and" "for" "foreach"))
-               "\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
+               "\\|[-?:.,;|&+*=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
        (2 (ignore
            (if (and (match-end 1)       ; / at BOL.
                     (save-excursion
index 7cb877b0a95d64d80f567f9d7b60df17c599c289..c7a2fbfb2d20b15ee1be3075e03e5d7816c924c7 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 # -*- eval: (bug-reference-mode 1) -*-
 
+if ($c && /====/){xyz;}
+
 print <<"EOF1" . s/he"llo/th'ere/;
 foo
 EOF2