Skip to content

Commit d868753

Browse files
committed
Treat _* as operator
1 parent 64b11df commit d868753

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: src/typescript/Scala.tmLanguage.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ export const scalaTmLanguage: TmLanguage = {
681681
name: 'keyword.operator.scala'
682682
},
683683
{ // Operators with two characters
684-
match: `((?:${opchar}|[\\\\]){2,})`,
684+
match: `((?:${opchar}|[\\\\]){2,}|_\\*)`,
685685
captures: {
686686
'1': {
687687
patterns: [
@@ -702,7 +702,7 @@ export const scalaTmLanguage: TmLanguage = {
702702
}
703703
},
704704
{ // Operators with one character
705-
match: `(?<!${letter}_)(${opchar}|\\\\)`,
705+
match: `(?<!_)(${opchar}|\\\\)`,
706706
captures: {
707707
'1': {
708708
patterns: [

0 commit comments

Comments
 (0)