Hash :
748bb9ac
Author :
Date :
2021-08-05T23:07:00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
''
'hello!'
'what\'s up?'
'steve'
'hello ${name}!'
'😁\u{1F642}'
'Microsoft.Web/sites/config@2020-12-01'
'https://${frontDoorName}.azurefd.net/.auth/login/aad/callback'
'''hello!'''
var myVar2 = '''
hello!'''
'''
hello!
'''
'''
this
is
indented
'''
'''
comments // are included
/* because everything is read as-is */
'''
'''interpolation
is ${blocked}'''
----------------------------------------------------
[
["string", "''"],
["string", "'hello!'"],
["string", "'what\\'s up?'"],
["string", "'steve'"],
["interpolated-string", [
["string", "'hello "],
["interpolation", [
["punctuation", "${"],
["expression", ["name"]],
["punctuation", "}"]
]],
["string", "!'"]
]],
["string", "'😁\\u{1F642}'"],
["string", "'Microsoft.Web/sites/config@2020-12-01'"],
["interpolated-string", [
["string", "'https://"],
["interpolation", [
["punctuation", "${"],
["expression", ["frontDoorName"]],
["punctuation", "}"]
]],
["string", ".azurefd.net/.auth/login/aad/callback'"]
]],
["string", "'''hello!'''"],
["keyword", "var"],
" myVar2 ",
["operator", "="],
["string", "'''\r\nhello!'''"],
["string", "'''\r\nhello!\r\n'''"],
["string", "'''\r\n this\r\n is\r\n indented\r\n'''"],
["string", "'''\r\ncomments // are included\r\n/* because everything is read as-is */\r\n'''"],
["string", "'''interpolation\r\nis ${blocked}'''"]
]
----------------------------------------------------
Checks for strings.