File: missing-operator.patch

package info (click to toggle)
libjavascript-beautifier-perl 0.25-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 204 kB
  • sloc: perl: 1,004; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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');