Hash :
c939df8e
Author :
Date :
2018-12-27T20:56:24
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
"double quoted\"' % string"
"abc // what now?"
multiline_literal = "hello
world"
foo = <<EOF
bar
baz
EOF
bar = <<-EOF_TEXT
bar
"baz"
EOF_TEXT
foo = <<FOO
# I'm not a comment
// me neither
/* this might make a good test */
This string can contain FOO but not at the start of a line.
FOO
----------------------------------------------------
[
["string", ["\"double quoted\\\"' % string\""]],
["string", ["\"abc // what now?\""]],
["property", "multiline_literal"],
["punctuation", "="],
["string", ["\"hello\r\n world\""]],
["property", "foo"],
["punctuation", "="],
["heredoc", "<<EOF\r\n bar\r\n baz\r\n EOF"],
["property", "bar"],
["punctuation", "="],
["heredoc", "<<-EOF_TEXT\r\n bar\r\n \"baz\"\r\n EOF_TEXT"],
["property", "foo"],
["punctuation", "="],
["heredoc", "<<FOO\r\n # I'm not a comment\r\n // me neither\r\n /* this might make a good test */\r\n This string can contain FOO but not at the start of a line.\r\nFOO"]
]
----------------------------------------------------
Checks for strings.