File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -577,18 +577,18 @@ export const scalaTmLanguage: TmLanguage = {
577
577
inline : {
578
578
patterns : [
579
579
{
580
- match : `\\b(inline)\\b (?=(?:.(?!\\b(?: val|def|given)\\b))*\\b(if|match )\\b )` ,
580
+ match : `\\b(inline)\\s+ (?=(([\\w\\s]*\\b( val|def|given)\\b)|( ${ plainid } | ${ backQuotedId } )\\s*:) )` ,
581
581
captures : {
582
582
'1' : {
583
- name : 'keyword.control.flow.scala '
583
+ name : 'storage.modifier.other '
584
584
}
585
585
}
586
586
} ,
587
587
{
588
- match : `\\b(inline)\\s+ (?=(([\\w\\s]*\\b( val|def|given)\\b)|( ${ plainid } | ${ backQuotedId } )\\s*:) )` ,
588
+ match : `\\b(inline)\\b (?=(?:.(?!\\b(?: val|def|given)\\b))*\\b(if|match )\\b )` ,
589
589
captures : {
590
590
'1' : {
591
- name : 'storage.modifier.other '
591
+ name : 'keyword.control.flow.scala '
592
592
}
593
593
}
594
594
}
Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ val x = inline[T]
71
71
// ^^^^^^ storage.modifier.other
72
72
// ^^^^^^ variable.parameter.scala
73
73
74
+ inline def inline (inline x : Int ): Double = if
75
+ // ^^^^^^ storage.modifier.other
76
+ // ^^^^^^ entity.name.function.declaration
77
+ // ^^^^^^ storage.modifier.other
78
+ // ^ variable.parameter.scala
79
+
74
80
inline if (n == 0 ) 1 else 2 ; val x = 2
75
81
// ^^^^^^ keyword.control.flow.scala
76
82
// ^^ keyword.control.flow.scala
You can’t perform that action at this time.
0 commit comments