aboutsummaryrefslogtreecommitdiff
path: root/plugins/editorconfig/tests/parser/comments.in
blob: c49fba86a0ef6fc08837097a3658355001476985 (plain)
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
; test comments

root = true

[test3.c]
; Comment before properties ignored
key=value

[test4.c]
key1=value1
; Comment between properties ignored
key2=value2

; Semicolon or hash at end of value read as part of value
[test5.c]
key1=value; not comment
key2=value # not comment

; Backslash before a semicolon or hash is part of the value
[test6.c]
key1=value \; not comment
key2=value \# not comment

; Escaped semicolon in section name
[test\;.c]
key=value

[test9.c]
# Comment before properties ignored
key=value

[test10.c]
key1=value1
# Comment between properties ignored
key2=value2

# Octothorpe at end of value read as part of value
[test11.c]
key=value# not comment

# Escaped octothorpe in value
[test12.c]
key=value \# not comment

# Escaped octothorpe in section name
[test\#.c]
key=value