Debian Codegraph @

tests/languages/neon/string_feature.test

raw
1 foo: ""
2 bar: "fo\"obar"
3 foo: ''
4 foo: "foo" # bar
5 bar: 'bar' # foo
6 multi: '''
7 one line
8 second line
9 third line
10 '''
11 multi: """
12 one line
13 second line
14 third line
15 """
16
17 ----------------------------------------------------
18
19 [
20 ["key", "foo"], ["punctuation", ":"],
21 ["string", "\"\""],
22 ["key", "bar"], ["punctuation", ":"],
23 ["string", "\"fo\\\"obar\""],
24 ["key", "foo"], ["punctuation", ":"],
25 ["string", "''"],
26 ["key", "foo"], ["punctuation", ":"],
27 ["string", "\"foo\""], ["comment", "# bar"],
28 ["key", "bar"], ["punctuation", ":"],
29 ["string", "'bar'"], ["comment", "# foo"],
30 ["key", "multi"], ["punctuation", ":"],
31 ["string", "'''\r\n\tone line\r\n\tsecond line\r\n\tthird line\r\n'''"],
32 ["key", "multi"], ["punctuation", ":"],
33 ["string", "\"\"\"\r\n\tone line\r\n\tsecond line\r\n\tthird line\r\n\"\"\""]
34 ]
35
36 ----------------------------------------------------
37
38 Checks for strings.