jrockway / cperl-mode

cperl-mode with 5.10 fixes, mx-declare support, perl6 support, etc.
102 stars 33 forks source link

support indented here-docs #39

Closed vividsnow closed 7 years ago

vividsnow commented 7 years ago

fix #38

choroba commented 7 years ago

Good start, I'd say. Thank you very much. But it doesn't work for me if the closing qtag isn't followed by an empty line.

{
    print <<~ '_INDENTED_';
        asdf
        asdf
    _INDENTED_
    warn "OK";
}

Also, pressing Tab still undoes any indentation inside the HERE-doc.

vividsnow commented 7 years ago

strange - for me it works without empty line out

choroba commented 7 years ago

screenshot from 2017-07-14 22-46-13 screenshot from 2017-07-14 22-59-27

vividsnow commented 7 years ago

Do you still have issue when running emacs -Q --eval '(require (quote cperl-mode) "/pato-to/cperl-mode.el")' ?

choroba commented 7 years ago

Yes, sorry for the confusion, my mistake. The Tab behaviour still needs to be fixed, but it can be probably done later.

renormalist commented 7 years ago

@vividsnow Thanks for contributing. @choroba Thanks for testing it.