Skip to content

Commit 4c8a433

Browse files
Merge pull request #64 from nicolasstucki/fix-#51
Fix #51: Support vals with multi-assignment
2 parents 6aa481b + 25af05a commit 4c8a433

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export const scalaTmLanguage: TmLanguage = {
507507
}
508508
},
509509
{
510-
match: `\\b(val)\\s+(${idUpper})\\b`,
510+
match: `\\b(val)\\s+(${idUpper}(\\s*,\\s*${idUpper})*)\\b`,
511511
captures: {
512512
'1': {
513513
name: 'keyword.declaration.stable.scala'

0 commit comments

Comments
 (0)