Skip to content

Commit

Permalink
Capture using followed by quote splice
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jan 11, 2021
1 parent 8ab092c commit e1277fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export const scalaTmLanguage: TmLanguage = {
'using': {
patterns: [
{
match: `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"])`,
match: `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"$])`,
captures: {
'1': {
name: 'keyword.declaration.scala'
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/#180.test.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// SYNTAX TEST "source.scala"

case '{ Array[T]()(using $ct) =>
// ^^^^^ keyword.declaration.scala

0 comments on commit e1277fd

Please sign in to comment.