Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax highlighting for Syntax::Keyword::MultiSub #80

Open
bscan opened this issue Jul 10, 2023 · 0 comments
Open

Add syntax highlighting for Syntax::Keyword::MultiSub #80

bscan opened this issue Jul 10, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@bscan
Copy link
Owner

bscan commented Jul 10, 2023

This would be defined here https://github.com/bscan/PerlNavigator/blob/main/syntaxes/perl-scopes.json, and pointing to another .json file. The goal would be highlighting the word multi here:

use Syntax::Keyword::MultiSub;
use experimental 'signatures';
 
multi sub max()          { return undef; }
multi sub max($x)        { return $x; }
multi sub max($x, @more) { my $y = max(@more);
                           return $x > $y ? $x : $y; }
 
say max(1, 2, 15, 3, 4);  # prints 15
@bscan bscan added the good first issue Good for newcomers label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant