forked from PrismJS/prism
/
issue2991.test
52 lines (44 loc) · 864 Bytes
/
issue2991.test
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
49
50
51
52
record TestData
{
public string Name { get; init; }
public void Func()
{
}
}
record TestData(string Name);
----------------------------------------------------
[
["keyword", "record"],
["class-name", ["TestData"]],
["punctuation", "{"],
["keyword", "public"],
["return-type", [
["keyword", "string"]
]],
" Name ",
["punctuation", "{"],
["keyword", "get"],
["punctuation", ";"],
["keyword", "init"],
["punctuation", ";"],
["punctuation", "}"],
["keyword", "public"],
["return-type", [
["keyword", "void"]
]],
["function", "Func"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "}"],
["keyword", "record"],
["class-name", ["TestData"]],
["punctuation", "("],
["class-name", [
["keyword", "string"]
]],
" Name",
["punctuation", ")"],
["punctuation", ";"]
]