@@ -4,9 +4,6 @@ import { TmLanguage } from "./TMLanguageModel";
4
4
const letter = "[_a-zA-Z\\$\\p{Lo}\\p{Lt}\\p{Nl}\\p{Ll}\\p{Lu}]"
5
5
const digit = "[0-9]"
6
6
const letterOrDigit = `${ letter } |${ digit } `
7
- const opchar = `[!#%&*+\\-\\/:<>=?@\\\\^|~[\\p{Sm}\\p{So}]]`
8
- const op = `${ opchar } +`
9
- const idrest = `${ letter } (?:${ letterOrDigit } )*(?:_${ op } )?`
10
7
const alphaId = `${ letter } +`
11
8
const simpleInterpolatedVariable = `${ letter } (?:${ letterOrDigit } )*` // see SIP-11 https://docs.scala-lang.org/sips/string-interpolation.html
12
9
@@ -234,7 +231,7 @@ export const scalaTmLanguage: TmLanguage = {
234
231
name : 'keyword.interpolation.scala'
235
232
} ,
236
233
'2' : {
237
- name : 'punctuation.definition.string.begin.scala'
234
+ name : 'string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala'
238
235
}
239
236
} ,
240
237
patterns : [
@@ -252,7 +249,7 @@ export const scalaTmLanguage: TmLanguage = {
252
249
] ,
253
250
endCaptures : {
254
251
'0' : {
255
- name : 'punctuation.definition.string.end.scala'
252
+ name : 'string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala'
256
253
}
257
254
}
258
255
} ,
@@ -289,7 +286,7 @@ export const scalaTmLanguage: TmLanguage = {
289
286
name : 'keyword.interpolation.scala'
290
287
} ,
291
288
'2' : {
292
- name : 'punctuation.definition.string.begin.scala'
289
+ name : 'string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala'
293
290
}
294
291
} ,
295
292
patterns : [
@@ -311,7 +308,7 @@ export const scalaTmLanguage: TmLanguage = {
311
308
] ,
312
309
endCaptures : {
313
310
'0' : {
314
- name : 'punctuation.definition.string.end.scala'
311
+ name : 'string.quoted.double.interpolated.scala punctuation.definition.string.end.scala'
315
312
}
316
313
}
317
314
}
0 commit comments