File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 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";
44const letter = "[_a-zA-Z\\$\\p{Lo}\\p{Lt}\\p{Nl}\\p{Ll}\\p{Lu}]"
55const digit = "[0-9]"
66const 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
88
99export const scalaTmLanguage : TmLanguage = {
1010 fileTypes : [
@@ -320,14 +320,10 @@ export const scalaTmLanguage: TmLanguage = {
320320 match : "\\$\\$"
321321 } ,
322322 {
323- name : "constant.other.placeholder.scala" ,
324- match : `(\\$)(${ variableName } )` ,
323+ match : `(\\$)(${ simpleInterpolatedVariable } )` ,
325324 captures : {
326325 "1" : {
327326 name : "punctuation.definition.template-expression.begin.scala"
328- } ,
329- "2" : {
330- name : "variable.other.scala"
331327 }
332328 }
333329 } ,
You can’t perform that action at this time.
0 commit comments