emacs-php / php-mode

A powerful and flexible Emacs major mode for editing PHP scripts
GNU General Public License v3.0
583 stars 118 forks source link

Correct the heredoc regexp. #651

Closed antoineB closed 3 years ago

antoineB commented 3 years ago

To support heredoc in this style: <<< 'HEREDOC' instead of <<<'HEREDOC'

cjohansson commented 3 years ago

If you want to use the same RegEx as PHP does you can see it here: https://github.com/cjohansson/emacs-phps-mode/blob/master/phps-mode-lexer.el#L1546

There can be tabs prefixed as well, the label is not any characters and there needs to be a newline following the label

zonuexe commented 3 years ago

@antoineB Thanks!