I’m making a new ST3 format .sublime-syntax file, and I can’t work out how to do string interpolation. Any clues would be great.
Here’s a string:
"this is a string"
and here’s another one:
"""this is also a string"""
(Both can be multiline.)
If there’s a dollar sign:
"this is a $foo string"
then the value of the variable foo
is replaced. Otherwise you have to do this:
"this \$ is a dollar sign"
And you can also supply expressions in parentheses:
"this is a $(foo = cos(2 * pi)) string"
I can’t work out how to start trying to add this to a syntax format…