File: comments_test.hjson

package info (click to toggle)
python-hjson 3.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 3,098; makefile: 13; sh: 8
file content (48 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (5)
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
// test
# all
// comment
/*
styles
*/
# with lf



# !

{
  # hjson style comment
  foo1: This is a string value. # part of the string
  foo2: "This is a string value." # a comment

  // js style comment
  bar1: This is a string value. // part of the string
  bar2: "This is a string value." // a comment

  /* js block style comments */foobar1:/* more */This is a string value./* part of the string */
  /* js block style comments */foobar2:/* more */"This is a string value."/* a comment */

  rem1: "# test"
  rem2: "// test"
  rem3: "/* test */"

  num1: 0 # comment
  num2: 0.0 // comment
  num3: 2 /* comment */

  true1: true # comment
  true2: true // comment
  true3: true /* comment */

  false1: false # comment
  false2: false // comment
  false3: false /* comment */

  null1: null # comment
  null2: null // comment
  null3: null /* comment */

  str1: 00 # part of the string
  str2: 00.0 // part of the string
  str3: 02 /* part of the string */
}