-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
n-attr_feature.test
37 lines (29 loc) · 1.68 KB
/
n-attr_feature.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
<a n:href="Post:show $post->id">link</a>
<a n:href = "Post:show $post->id">link</a>
<div n:if=$items>
<div n:tag-if='$a > $b'>
<script n:nonce>
----------------------------------------------------
[
["tag", [["tag", [["punctuation", "<"], "a"]],
["n-attr", [["attr-name", "n:href"],
["attr-value", [["punctuation", "="], ["punctuation", "\""], ["php", ["Post", ["punctuation", ":"], ["class-name", "show"], ["variable", "$post"], ["operator", "->"], ["property", "id"]]], ["punctuation", "\""]]]]],
["punctuation", ">"]]],
"link", ["tag", [["tag", [["punctuation", "</"], "a"]], ["punctuation", ">"]]],
["tag", [["tag", [["punctuation", "<"], "a"]],
["n-attr", [["attr-name", "n:href"],
["attr-value", [["punctuation", "="], ["punctuation", "\""], ["php", ["Post", ["punctuation", ":"], ["class-name", "show"], ["variable", "$post"], ["operator", "->"], ["property", "id"]]], ["punctuation", "\""]]]]],
["punctuation", ">"]]],
"link", ["tag", [["tag", [["punctuation", "</"], "a"]], ["punctuation", ">"]]],
["tag", [["tag", [["punctuation", "<"], "div"]],
["n-attr", [["attr-name", "n:if"],
["attr-value", [["punctuation", "="], ["php", [["variable", "$items"]]]]]]],
["punctuation", ">"]]],
["tag", [["tag", [["punctuation", "<"], "div"]],
["n-attr", [["attr-name", "n:tag-if"],
["attr-value", [["punctuation", "="], ["punctuation", "'"], ["php", [["variable", "$a"], ["operator", ">"], ["variable", "$b"]]], ["punctuation", "'"]]]]],
["punctuation", ">"]]],
["tag", [["tag", [["punctuation", "<"], "script"]], ["n-attr", [["attr-name", "n:nonce"]]], ["punctuation", ">"]]]
]
----------------------------------------------------
Checks for operators.