jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/coffeescript/string_feature.test
2016-02-03 18:00:01 -05:00

52 lines
994 B
Plaintext

''
'foo'
'foo\
bar'
""
"foo"
"foo\
bar"
"foo #{interpolation} bar"
''''''
'''foo'''
'''foo
bar'''
""""""
"""foo"""
"""foo
bar"""
"""foo #{interpolation} bar"""
----------------------------------------------------
[
["string", "''"],
["string", "'foo'"],
["string", "'foo\\\r\nbar'"],
["string", ["\"\""]],
["string", ["\"foo\""]],
["string", ["\"foo\\\r\nbar\""]],
["string", [
"\"foo ",
["interpolation", "#{interpolation}"],
" bar\""
]],
["multiline-string", "''''''"],
["multiline-string", "'''foo'''"],
["multiline-string", "'''foo\r\nbar'''"],
["multiline-string", ["\"\"\"\"\"\""]],
["multiline-string", ["\"\"\"foo\"\"\""]],
["multiline-string", ["\"\"\"foo\r\nbar\"\"\""]],
["multiline-string", [
"\"\"\"foo ",
["interpolation", "#{interpolation}"],
" bar\"\"\""
]]
]
----------------------------------------------------
Checks for single-line and multi-line strings and block strings.
Also checks for string interpolation inside double-quoted strings.