Skip to content

Commit 9d191dd

Browse files
nicolasstuckiPanAeon
authored andcommitted
Move as pattern to keywords patterns
1 parent 3356756 commit 9d191dd

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,6 @@ export const scalaTmLanguage: TmLanguage = {
246246
{
247247
include: '#using'
248248
},
249-
{
250-
include: '#as'
251-
},
252249
{
253250
include: '#constants'
254251
},
@@ -416,16 +413,6 @@ export const scalaTmLanguage: TmLanguage = {
416413
}
417414
]
418415
},
419-
'as': {
420-
patterns: [
421-
{
422-
match: '\\s(as)\\s',
423-
captures: {
424-
'1': { name: 'keyword.declaration.scala' }
425-
}
426-
}
427-
]
428-
},
429416
'string-interpolation': {
430417
patterns: [
431418
{
@@ -559,6 +546,12 @@ export const scalaTmLanguage: TmLanguage = {
559546
{
560547
match: '(<-|←|->|→|=>|⇒|\\?|\\:+|@|\\|)+',
561548
name: 'keyword.operator.scala'
549+
},
550+
{
551+
match: '\\s(as)\\s',
552+
captures: {
553+
'1': { name: 'keyword.declaration.scala' }
554+
}
562555
}
563556
]
564557
},

0 commit comments

Comments
 (0)