File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ export const scalaTmLanguage: TmLanguage = {
645
645
name : 'keyword.operator.arithmetic.scala'
646
646
} ,
647
647
{
648
- match : `(?<!${ opchar } )(!|&&|\\|\\|)(?!${ opchar } )` ,
648
+ match : `(?<!${ opchar } |_ )(!|&&|\\|\\|)(?!${ opchar } )` ,
649
649
name : 'keyword.operator.logical.scala'
650
650
} ,
651
651
{
@@ -921,7 +921,7 @@ export const scalaTmLanguage: TmLanguage = {
921
921
comment : 'For themes: Brackets look nice when colored.'
922
922
} ,
923
923
qualifiedClassName : {
924
- match : ' (\\b([A-Z][\\w]*))' ,
924
+ match : ` (\\b([A-Z][\\w]*)(?:(?<=_) ${ opchar } +)?)` ,
925
925
captures : {
926
926
'1' : {
927
927
name : 'entity.name.class'
Original file line number Diff line number Diff line change
1
+ // SYNTAX TEST "source.scala"
2
+
3
+ defn.Any_!
4
+ // ^^^^^ entity.name.class
5
+ // ^^^^^ - keyword.operator.logical.scala
6
+
7
+ defn.any_!
8
+ // ^^^^^ - keyword.operator.logical.scala
9
+
10
+ def any_!:
11
+ // ^^^^^ entity.name.function.declaration
12
+ // ^^^^^ - keyword.operator.logical.scala
You can’t perform that action at this time.
0 commit comments