Debian Codegraph @

tests/snippets/json/test_comments.txt

raw
1 ---input---
2 {"a//b"//C1
3 :123/////C2
4 }
5
6 /** / **/{"a /**/ b"/*
7 */: 123}
8
9 // Invalid comments
10 /
11 1/
12 /1
13 ""/
14
15 // Unclosed
16
17 ""/**
18
19 ---tokens---
20 '{' Punctuation
21 '"a//b"' Name.Tag
22 '//C1' Comment.Single
23 '\n' Text.Whitespace
24
25 ':' Punctuation
26 '123' Literal.Number.Integer
27 '/////C2' Comment.Single
28 '\n' Text.Whitespace
29
30 '}' Punctuation
31 '\n\n' Text.Whitespace
32
33 '/** / **/' Comment.Multiline
34 '{' Punctuation
35 '"a /**/ b"' Name.Tag
36 '/*\n*/' Comment.Multiline
37 ':' Punctuation
38 ' ' Text.Whitespace
39 '123' Literal.Number.Integer
40 '}' Punctuation
41 '\n\n' Text.Whitespace
42
43 '// Invalid comments' Comment.Single
44 '\n' Text.Whitespace
45
46 '/' Error
47 '\n' Text.Whitespace
48
49 '1' Literal.Number.Integer
50 '/' Error
51 '\n' Text.Whitespace
52
53 '/' Error
54 '1' Literal.Number.Integer
55 '\n' Text.Whitespace
56
57 '""' Literal.String.Double
58 '/' Error
59 '\n\n' Text.Whitespace
60
61 '// Unclosed' Comment.Single
62 '\n\n' Text.Whitespace
63
64 '""' Literal.String.Double
65 '/**\n' Error