Closed nall closed 9 years ago
Can you include a screenshot? And a description of how you think it should be rendered?
Here is how it looks for me, it doesn't appear corrupted at first glance but I'm no perl expert:
I see this (note how things go bad at 715).
Would it be possible for you to include the contents of that entire file in a comment?
A perfect example for this one is http://perldoc.perl.org/perlform.html#Top-of-Form-Processing
# a report on the /etc/passwd file
format STDOUT_TOP =
Passwd File
Name Login Office Uid Gid Home
------------------------------------------------------------------
.
format STDOUT =
@<<<<<<<<<<<<<<<<<< @||||||| @<<<<<<@>>>> @>>>> @<<<<<<<<<<<<<<<<<
$name, $login, $office,$uid,$gid, $home
.
# a report from a bug report form
format STDOUT_TOP =
Bug Reports
@<<<<<<<<<<<<<<<<<<<<<<< @||| @>>>>>>>>>>>>>>>>>>>>>>>
$system, $%, $date
------------------------------------------------------------------
.
format STDOUT =
Subject: @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$subject
Index: @<<<<<<<<<<<<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$index, $description
Priority: @<<<<<<<<<< Date: @<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$priority, $date, $description
From: @<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$from, $description
Assigned to: @<<<<<<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$programmer, $description
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$description
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$description
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$description
~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$description
~ ^<<<<<<<<<<<<<<<<<<<<<<<...
$description
.
The problem here is that <<
will trigger a "here-document" hightlighting (http://perldoc.perl.org/perlop.html#Quote-Like-Operators, e.g. my $asd = <<SQL; .....
)
https://github.com/atom/language-perl/blob/master/grammars/perl.cson#L1090-L1109
I validated this issue and it seems to be fixed on the current build
Added tests in #24 to ensure this won't happen again
@kevinsawicki am i allowed to manage issues? e.g. closing etc.
am i allowed to manage issues? e.g. closing etc.
Absolutely
The following Perl code results in the syntax highlighting becoming corrupted: