markwatkinson / luminous

Accurate and powerful syntax highlighting library
http://luminous.asgaard.co.uk
GNU Lesser General Public License v2.1
51 stars 5 forks source link

Perl heredoc slightly broken #9

Closed markwatkinson closed 13 years ago

markwatkinson commented 13 years ago

Reproduce with:

some_function(<<EOF, 2);
argument 1
EOF

Expected: the heredoc string consists of 'argument 1' Actual: the heredoc string begins right after <<EOF.

This is a similar problem/solution to issue #1

markwatkinson commented 13 years ago

On second thoughts, this isn't the same solution as #1 because the Perl scanner is generic/not as explicit.

Also: need to find out if the heredocs can stack like Ruby's can.