Hash :
c805f859
Author :
Date :
2019-03-05T16:56:13
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
<%# this is a block comment %>
<%
=begin %>
block comment
(both lines of both the begin and end tags must be at the start of their lines)
<%
=end %>
<%# this is not %>
<%
=begin %>
not a comment
<%
=end %>
----------------------------------------------------
[
["erb", [
["delimiter", "<%"],
["comment", "# this is a block comment "],
["delimiter", "%>"]
]],
["erb", [
["delimiter", "<%"],
["comment", "=begin %>\n\tblock comment\n\t(both lines of both the begin and end tags must be at the start of their lines)\n<%\n=end"],
["delimiter", "%>"]
]],
["erb", [
["delimiter", "<%"],
["comment", "# this is not "],
["delimiter", "%>"]
]],
["erb", [
["delimiter", "<%"],
["operator", "="],
["keyword", "begin"],
["delimiter", "%>"]
]],
"\n\tnot a comment\n\t",
["erb", [
["delimiter", "<%"],
["operator", "="],
["keyword", "end"],
["delimiter", "%>"]
]]
]
----------------------------------------------------
Checks for block comments (#1767).