lib/rouge/lexers/javascript.rb in rouge-3.29.0 vs lib/rouge/lexers/javascript.rb in rouge-3.30.0
- old
+ new
@@ -147,10 +147,10 @@
state :root do
rule %r/\A\s*#!.*?\n/m, Comment::Preproc, :statement
rule %r((?<=\n)(?=\s|/|<!--)), Text, :expr_start
mixin :comments_and_whitespace
- rule %r(\+\+ | -- | ~ | && | \|\| | \\(?=\n) | << | >>>? | ===
+ rule %r(\+\+ | -- | ~ | \?\?=? | && | \|\| | \\(?=\n) | << | >>>? | ===
| !== )x,
Operator, :expr_start
rule %r([-<>+*%&|\^/!=]=?), Operator, :expr_start
rule %r/[(\[,]/, Punctuation, :expr_start
rule %r/;/, Punctuation, :statement