jeff-hykin / better-perl-syntax

💾 An improvement to the perl syntax for VS Code
MIT License
5 stars 3 forks source link

<=> ligature broken in vscode #1

Closed jeff-hykin closed 4 years ago

jeff-hykin commented 4 years ago

Checklist

The code with a problem is:

1 <=> 2
a <=> a    
} <=> {
) <=> }
: <=> :
| <=> |
! <=> !
#1 <=> 2
#a <=> a    
#} <=> {
#) <=> }
#: <=> :
#| <=> |
#! <=> !

#for my $kw (sort {$candidate_kws{$b}->{weight} <=> $candidate_kws{$a}->{weight} } keys %candidate_kws){}

for my $kw (sort { $candidate_kws{$b}->{weight} <=> $candidate_kws{$a}->{weight} } keys %candidate_kws){}

It looks like:

broken-spaceship-in-sort list-of-broken-spaceships

It should look like:

fixed-spaceship

jeff-hykin commented 4 years ago

Alright fix was pushed just now, thanks for posting the different examples that helped me solve the root problem. Let me know if there are any more cases and I'll reopen this @clscott

clscott commented 4 years ago

This fixes the issues, thank you for the plugin and the rapid turn around on the fix!