File: strings2_result.hjson

package info (click to toggle)
hjson-go 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,384 kB
  • sloc: sh: 51; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (3)
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
{
  # Hjson 3 allows the use of single quotes

  key1: a key in single quotes
  "key 2": a key in single quotes
  "key \"": a key in single quotes
  text: [
    single quoted string
    '''You need quotes	for escapes'''
    " untrimmed "
    "untrimmed "
    containing " double quotes
    containing " double quotes
    containing " double quotes
    '''"containing more " double quotes"'''
    containing ' single quotes
    containing ' single quotes
    containing ' single quotes
    "'containing more ' single quotes'"
    "'containing more ' single quotes'"
    "\n"
    "  \n"
    "\n  \n  \n  \n"
    "\t\n"
  ]

  # escapes/no escape

  foo3a: asdf'''
  foo3b: "'''asdf"
  foo4a: "asdf'''\nasdf"
  foo4b: "asdf\n'''asdf"
}