Skip to content

Commit e1277fd

Browse files
committed
Capture using followed by quote splice
1 parent 8ab092c commit e1277fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export const scalaTmLanguage: TmLanguage = {
425425
'using': {
426426
patterns: [
427427
{
428-
match: `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"])`,
428+
match: `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"$])`,
429429
captures: {
430430
'1': {
431431
name: 'keyword.declaration.scala'

tests/unit/#180.test.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// SYNTAX TEST "source.scala"
2+
3+
case '{ Array[T]()(using $ct) =>
4+
// ^^^^^ keyword.declaration.scala

0 commit comments

Comments
 (0)