Skip to content

Commit

Permalink
Scala lexer: Add support for the '\' operator (#1857)
Browse files Browse the repository at this point in the history
This operator is defined by json4s, which is one of scala's most popular JSON libraries.
  • Loading branch information
lukapeschke committed Jul 9, 2021
1 parent fa7772c commit 1ea5fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/jvm.py
Expand Up @@ -180,7 +180,7 @@ class ScalaLexer(RegexLexer):
operators = (
'<%', '=:=', '<:<', '<%<', '>:', '<:', '=', '==', '!=', '<=', '>=',
'<>', '<', '>', '<-', '←', '->', '→', '=>', '⇒', '?', '@', '|', '-',
'+', '*', '%', '~'
'+', '*', '%', '~', '\\'
)

storage_modifiers = (
Expand Down

0 comments on commit 1ea5fc3

Please sign in to comment.