Hash :
2f3da7e8
Author :
Date :
2019-10-16T11:18:57
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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
<#-- comment -->
<#assign x <#-- A comment --> = 123 <#-- A comment -->>
<#function f(x <#-- A comment -->, y <#-- A comment -->)>
<#return <#-- A comment --> 1 <#-- A comment -->>
</#function>
<#assign someHash = {
"foo": 123, <#-- A comment -->
"bar": x <#-- A comment --> + 1,
<#-- A comment -->
"baaz": f(1 <#-- A comment -->, 2 <#-- A comment -->)
} <#-- A comment -->>
----------------------------------------------------
[
["ftl", [
["ftl-comment", "<#-- comment -->"]
]],
["ftl", [
["ftl-directive", [
["punctuation", "<"],
["directive", "#assign"],
["content", [
" x ",
["comment", "<#-- A comment -->"],
["operator", "="],
["number", "123"],
["comment", "<#-- A comment -->"]
]],
["punctuation", ">"]
]]
]],
["ftl", [
["ftl-directive", [
["punctuation", "<"],
["directive", "#function"],
["content", [
["function", "f"],
["punctuation", "("],
"x ",
["comment", "<#-- A comment -->"],
["punctuation", ","],
" y ",
["comment", "<#-- A comment -->"],
["punctuation", ")"]
]],
["punctuation", ">"]
]]
]],
["ftl", [
["ftl-directive", [
["punctuation", "<"],
["directive", "#return"],
["content", [
["comment", "<#-- A comment -->"],
["number", "1"],
["comment", "<#-- A comment -->"]
]],
["punctuation", ">"]
]]
]],
["ftl", [
["ftl-directive", [
["punctuation", "</"],
["directive", "#function"],
["punctuation", ">"]
]]
]],
["ftl", [
["ftl-directive", [
["punctuation", "<"],
["directive", "#assign"],
["content", [
" someHash ",
["operator", "="],
["punctuation", "{"],
["string", [
"\"foo\""
]],
["punctuation", ":"],
["number", "123"],
["punctuation", ","],
["comment", "<#-- A comment -->"],
["string", [
"\"bar\""
]],
["punctuation", ":"],
" x ",
["comment", "<#-- A comment -->"],
["operator", "+"],
["number", "1"],
["punctuation", ","],
["comment", "<#-- A comment -->"],
["string", [
"\"baaz\""
]],
["punctuation", ":"],
["function", "f"],
["punctuation", "("],
["number", "1"],
["comment", "<#-- A comment -->"],
["punctuation", ","],
["number", "2"],
["comment", "<#-- A comment -->"],
["punctuation", ")"],
["punctuation", "}"],
["comment", "<#-- A comment -->"]
]],
["punctuation", ">"]
]]
]]
]
----------------------------------------------------
Checks for comments.