atom / language-perl

Perl package for Atom
Other
25 stars 32 forks source link

Code after opening block quote (<<END) is treated as part of the quote #2

Closed scoricov closed 9 years ago

scoricov commented 10 years ago

host pm - users bitman documents dev wz 2014-05-07 16-42-17 2014-05-07 16-44-40

Fank commented 9 years ago

I tried to fix this but i can't find a "reset" option. The "block" which highlight this is https://github.com/atom/language-perl/blob/master/grammars/perl.cson#L1090-L1109

The problem is that the <<SQL_END ...... SQL_END matches everything inside, if you remove following https://github.com/atom/language-perl/blob/master/grammars/perl.cson#L1097-L1098 it will look like: language-perl_5

But i can't enable perl highlighting between <<SQL_END, <HERE> until the line ends: langugage-perl12312312131

I tried following selector ((<<) *((?![=\\d\\$\\( ])[^;,\'"\s)]))(.)\n?` to catch area which needs perl highlighting, but i didn't found a solution to use parent highlighting or tell him to use "$self" aka "source.perl". Can someone tell me how to use different highlightings in different "regex/capture groups"?