atom-language icon indicating copy to clipboard operation
atom-language copied to clipboard

Syntax Highlighting on lines with < and > is wrong

Open hstejas opened this issue 8 years ago • 2 comments

Describe what you see, what you want to see, and perhaps some linkage to docs, synopses, or irclog chatter.

Syntax Highlighting on lines with < is wrong on the web page the characters after a "<" up to the next ">" are in a single "span" and have a "string" class

Example Code

on https://docs.perl6.org/syntax/loop (loop ( my $i = 0; $i++ < 3;) { $i * 2 }).say; #-> "(2 4 6)"

Picture [optional]

Providing a picture means that if the issue is fixed and linguist updates to include the fix (linguist uses this package to highlight Perl 6 on GitHub), your issue will remain historically viewable.

image

Leave this in. For internal use.

  • [x] Fixed in Master
  • [x] Fixed in Release
  • [x] Has Tests
  • [x] Passes Tests
  • [ ] Needs further fixes

hstejas avatar Jan 08 '17 11:01 hstejas

This is stop-gap fixed in https://github.com/perl6/atom-language-perl6/commit/4b3f6701af4a605f39dfaf1a03493edc3aea476d

Will still show this issue when there is more than 1 space between the + and the < though.

samcv avatar Jan 09 '17 23:01 samcv

Fix for this is in release. Will leave this open until it is fixed with multiple spaces though:

$i++   < 3; #->

samcv avatar Jan 09 '17 23:01 samcv