Skip to content

Commit d4e8226

Browse files
committed
Add basic syntax highlighting for json
1 parent 8b0e821 commit d4e8226

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,31 @@ export const scalaTmLanguage: TmLanguage = {
403403
}
404404
}
405405
},
406+
{
407+
begin: `\\b(json)(""")`,
408+
end: `(""")(?!")|\\$\n|(\\$[^\\$"_{${letterChars}])`,
409+
beginCaptures: {
410+
'1': {
411+
name: 'keyword.interpolation.scala'
412+
},
413+
'2': {
414+
name: 'string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala'
415+
}
416+
},
417+
patterns: [
418+
{
419+
"include": "source.json"
420+
},
421+
],
422+
endCaptures: {
423+
'1': {
424+
name: 'string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala'
425+
},
426+
'2': {
427+
name: 'invalid.illegal.unrecognized-string-escape.scala'
428+
}
429+
}
430+
},
406431
{
407432
begin: `\\b(${interpolatorid})(""")`,
408433
end: `(""")(?!")|\\$\n|(\\$[^\\$"_{${letterChars}])`,

0 commit comments

Comments
 (0)