Skip to content
Snippets Groups Projects
Commit af5bf10f authored by Yadd's avatar Yadd
Browse files

Add missing "=>" operator (ES6)

Closes: #931379
parent 8b2913e3
No related branches found
No related tags found
No related merge requests found
Description: Add missing ES6 "=>" operator
Author: Xavier Guimard <yadd@debian.org>
Bug: https://rt.cpan.org/Ticket/Display.html?id=129976
Bug-Debian: https://bugs.debian.org/931379
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=129976
Last-Update: 2019-07-03
--- a/lib/JavaScript/Beautifier.pm
+++ b/lib/JavaScript/Beautifier.pm
@@ -18,7 +18,7 @@
my @wordchar = split('', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$');
my @digits = split('', '0123456789');
# <!-- is a special case (ok, it's a minor hack actually)
-my @punct = split(' ', '+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::');
+my @punct = split(' ', '+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= => >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::');
# words which should always start on new line.
my @line_starter = split(',', 'continue,try,throw,return,var,if,switch,case,default,for,while,break,function');
remove-pl-extension.patch
missing-operator.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment