File tree Expand file tree Collapse file tree 6 files changed +22
-7
lines changed Expand file tree Collapse file tree 6 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 453
453
"imports" : {
454
454
"patterns" : [
455
455
{
456
- "match" : " ^\\ s*(import)\\ s+((?:[`][^$`]+[`]|[^` $.]+)(?:\\ .(?:[`][^$`]+[`]|[^` $.]+))*)(?:\\ s+(as)\\ s+([`][^$`]+[`]|[^` $.]+))?$ " ,
456
+ "match" : " ^\\ s*(import)\\ s+((?:[`][^$`]+[`]|[^` $.]+)(?:\\ .(?:[`][^$`]+[`]|[^` $.]+))*)(?:\\ s+(as)\\ s+([`][^$`]+[`]|[^` $.]+))?" ,
457
457
"captures" : {
458
458
"1" : {
459
459
"name" : " keyword.other.import.kotlin"
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ repository:
125
125
imports :
126
126
patterns :
127
127
-
128
- match : ' ^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))?$ '
128
+ match : ' ^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))?'
129
129
captures :
130
130
' 1 ' : {name: keyword.other.import.kotlin}
131
131
' 2 ' : {name: storage.modifier.import.kotlin}
Original file line number Diff line number Diff line change 686
686
<array >
687
687
<dict >
688
688
<key >match </key >
689
- <string >^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))?$ </string >
689
+ <string >^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))? </string >
690
690
<key >captures </key >
691
691
<dict >
692
692
<key >1 </key >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ repository:
2
2
imports :
3
3
patterns :
4
4
-
5
- match : ' ^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))?$ '
5
+ match : ' ^\s*(import)\s+((?:[`][^$`]+[`]|[^` $.]+)(?:\.(?:[`][^$`]+[`]|[^` $.]+))*)(?:\s+(as)\s+([`][^$`]+[`]|[^` $.]+))?'
6
6
captures :
7
7
' 1 ' :
8
8
name : keyword.other.import.kotlin
Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ repository:
71
71
-
72
72
include : ' #string-content'
73
73
repository :
74
- # https://kotlinlang.org/docs/strings.html#raw-strings
75
- # Raw strings do not contain escape sequences.
76
74
raw-string-content :
77
75
patterns :
78
76
-
Original file line number Diff line number Diff line change 31
31
// ^ source.kotlin meta.import.kotlin
32
32
// ^^ source.kotlin meta.import.kotlin keyword.other.kotlin
33
33
// ^ source.kotlin meta.import.kotlin
34
- // ^^^^ source.kotlin meta.import.kotlin entity.name.type
34
+ // ^^^^ source.kotlin meta.import.kotlin entity.name.type
35
+
36
+ import com.google.test.CommentedClass // comment
37
+ // ^^^^^^ source.kotlin meta.import.kotlin keyword.other.import.kotlin
38
+ // ^ source.kotlin meta.import.kotlin
39
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.kotlin meta.import.kotlin storage.modifier.import.kotlin
40
+ // ^^ source.kotlin punctuation.definition.comment.kotlin comment.line.double-slash.kotlin
41
+
42
+ import com.google.test.CommentedClass /* comment*/ as Another
43
+ // ^^^^^^ source.kotlin meta.import.kotlin keyword.other.import.kotlin
44
+ // ^ source.kotlin meta.import.kotlin
45
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.kotlin meta.import.kotlin storage.modifier.import.kotlin
46
+ // ^^ source.kotlin comment.block.kotlin punctuation.definition.comment.begin.kotlin
47
+ // ^^ source.kotlin comment.block.kotlin punctuation.definition.comment.end.kotlin
48
+ // ^ source.kotlin
49
+ // ^^ source.kotlin keyword.operator.kotlin
50
+ // ^ source.kotlin
51
+ // ^^^^^^^ source.kotlin entity.name.type.class.kotlin
You can’t perform that action at this time.
0 commit comments