diff options
| author | Stefan Monnier | 2010-11-02 22:30:12 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-11-02 22:30:12 -0400 |
| commit | 3225dcaadb08bd53744fb3e34cbf692e4cb22e62 (patch) | |
| tree | 57fa8e552969565077fde16c1aa05cf9046d3745 | |
| parent | 6ec9acb3b41c7e6358c3b733828339930d0be9f0 (diff) | |
| download | emacs-3225dcaadb08bd53744fb3e34cbf692e4cb22e62.tar.gz emacs-3225dcaadb08bd53744fb3e34cbf692e4cb22e62.zip | |
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Handle __DATA__ and __END__.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5d8bfae7a7..4cb8061e71e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-11-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/perl-mode.el (perl-syntax-propertize-function): | ||
| 4 | Handle __DATA__ and __END__. | ||
| 5 | |||
| 1 | 2010-11-02 Noah Friedman <friedman@splode.com> | 6 | 2010-11-02 Noah Friedman <friedman@splode.com> |
| 2 | 7 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-recompile-file): If bytecomp-arg is | 8 | * emacs-lisp/bytecomp.el (byte-recompile-file): If bytecomp-arg is |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index ae3acc3cda3..1bc9a397bc7 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -274,6 +274,11 @@ The expansion is entirely correct because it uses the C preprocessor." | |||
| 274 | ;; Be careful not to match "sub { (...) ... }". | 274 | ;; Be careful not to match "sub { (...) ... }". |
| 275 | ("\\<sub\\(?:[[:space:]]+[^{}[:punct:][:space:]]+\\)?[[:space:]]*(\\([^)]+\\))" | 275 | ("\\<sub\\(?:[[:space:]]+[^{}[:punct:][:space:]]+\\)?[[:space:]]*(\\([^)]+\\))" |
| 276 | (1 ".")) | 276 | (1 ".")) |
| 277 | ;; Turn __DATA__ trailer into a comment. | ||
| 278 | ("^\\(_\\)_\\(?:DATA\\|END\\)__[ \t]*\\(?:\\(\n\\)#.-\\*-.*perl.*-\\*-\\|\n.*\\)" | ||
| 279 | (1 "< c") (2 "> c") | ||
| 280 | (0 (ignore (put-text-property (match-beginning 0) (match-end 0) | ||
| 281 | 'syntax-multiline t)))) | ||
| 277 | ;; Regexp and funny quotes. Distinguishing a / that starts a regexp | 282 | ;; Regexp and funny quotes. Distinguishing a / that starts a regexp |
| 278 | ;; match from the division operator is ...interesting. | 283 | ;; match from the division operator is ...interesting. |
| 279 | ;; Basically, / is a regexp match if it's preceded by an infix operator | 284 | ;; Basically, / is a regexp match if it's preceded by an infix operator |