summaryrefslogtreecommitdiff
path: root/tests/snippets/mason/test_handles_tags_correctly.txt
blob: 2f3f064fbde7876ab3b8b78e0a1fbb4385e7c424 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---input---
<%class>
has 'foo';
has 'bar' => (required => 1);
has 'baz' => (isa => 'Int', default => 17);
</%class>

---tokens---
'<%class>'    Name.Tag
'\n'          Text

''            Name
'has'         Name
' '           Text
"'foo'"       Literal.String
';'           Punctuation
'\n'          Text

''            Name
'has'         Name
' '           Text
"'bar'"       Literal.String
' '           Text
'='           Operator
'>'           Operator
' '           Text
'('           Punctuation
''            Name
'required'    Name
' '           Text
'='           Operator
'>'           Operator
' '           Text
'1'           Literal.Number.Integer
')'           Punctuation
';'           Punctuation
'\n'          Text

''            Name
'has'         Name
' '           Text
"'baz'"       Literal.String
' '           Text
'='           Operator
'>'           Operator
' '           Text
'('           Punctuation
''            Name
'isa'         Name
' '           Text
'='           Operator
'>'           Operator
' '           Text
"'Int'"       Literal.String
','           Punctuation
' '           Text
''            Name
'default'     Name
' '           Text
'='           Operator
'>'           Operator
' '           Text
'17'          Literal.Number.Integer
')'           Punctuation
';'           Punctuation
'\n'          Text

'</%class>'   Name.Tag
'\n'          Text