File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ 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 variableName = `${ letter } (?:${ letterOrDigit } )*`
7
+ const simpleInterpolatedVariable = `${ letter } (?:${ letterOrDigit } )*` // see SIP-11 https://docs.scala-lang.org/sips/string-interpolation.html
8
8
9
9
export const scalaTmLanguage : TmLanguage = {
10
10
fileTypes : [
@@ -320,14 +320,10 @@ export const scalaTmLanguage: TmLanguage = {
320
320
match : "\\$\\$"
321
321
} ,
322
322
{
323
- name : "constant.other.placeholder.scala" ,
324
- match : `(\\$)(${ variableName } )` ,
323
+ match : `(\\$)(${ simpleInterpolatedVariable } )` ,
325
324
captures : {
326
325
"1" : {
327
326
name : "punctuation.definition.template-expression.begin.scala"
328
- } ,
329
- "2" : {
330
- name : "variable.other.scala"
331
327
}
332
328
}
333
329
} ,
You can’t perform that action at this time.
0 commit comments