Announcement

Collapse
No announcement yet.

Support for Perl "here-document" syntax

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aaron
    replied
    Hello,

    BC3's delimited grammar elements do not currently support Regular Expression back references, but it is on our Customer Wishlist to look into expanding and adding this type of behavior.

    In the meantime, you would need to explicitly define the delimited element with the "END" text.

    Leave a comment:


  • MinutemanZ
    started a topic Support for Perl "here-document" syntax

    Support for Perl "here-document" syntax

    I'm running Beyond Compare v3.2.4, and I can't seem to find a good way to add support for Perl's "here-document" syntax for specifying a string. Here's example syntax from wikipedia:

    print <<"END";

    Dear $recipient,

    I wish you to leave Sunnydale and never return.

    Not Quite Love,
    $sender

    END

    I wrote a simple rule for the short term, treating everything from <<EOF to ^EOF$ as a string, but BC's default Perl rules should have something a little more advanced to handle single quotes, double quotes, backticks, bare and multiple here-document tags on a single line.
Working...
X