Skip to content

Commit

Permalink
Treat _* as operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jentsch committed Oct 11, 2024
1 parent 64b11df commit d868753
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ export const scalaTmLanguage: TmLanguage = {
name: 'keyword.operator.scala'
},
{ // Operators with two characters
match: `((?:${opchar}|[\\\\]){2,})`,
match: `((?:${opchar}|[\\\\]){2,}|_\\*)`,
captures: {
'1': {
patterns: [
Expand All @@ -702,7 +702,7 @@ export const scalaTmLanguage: TmLanguage = {
}
},
{ // Operators with one character
match: `(?<!${letter}_)(${opchar}|\\\\)`,
match: `(?<!_)(${opchar}|\\\\)`,
captures: {
'1': {
patterns: [
Expand Down
Loading

0 comments on commit d868753

Please sign in to comment.