File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ contexts:
132
132
# highlighting them as compiler pragmas could be misleading. We scope them
133
133
# as plain comments by default, and add some detailed meta scopes for
134
134
# enterprising users wishing to add more color.
135
- - match : (//)([a-z]+)(:)({{directive}})[ ]?
135
+ - match : (//)([a-z]+[a-z-]* )(:)({{directive}})[ ]?
136
136
captures :
137
137
1 : punctuation.definition.comment.go
138
138
2 : meta.keyword.annotation.go
Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ You may have to disable Go-specific linters when working on this file.
70
70
// ^^ meta.keyword.annotation.go
71
71
// ^^^^^^^^ meta.variable.function.go
72
72
// ^^^^^^^^^^^^^ meta.variable.parameter.go
73
+ // ^ comment.line.go -meta.annotation
74
+
75
+ //go-sumtype:decl MySumType
76
+ // ^ -comment -meta -punctuation
77
+ // ^^ punctuation.definition.comment.go
78
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.annotation.go comment.line.go
79
+ // ^^^^^^^^^^ meta.keyword.annotation.go
80
+ // ^^^^ meta.variable.function.go
81
+ // ^^^^^^^^^ meta.variable.parameter.go
73
82
// ^ comment.line.go -meta.annotation
74
83
75
84
//lint:ignore U1000 Reason.
You can’t perform that action at this time.
0 commit comments