prism/tests/languages/erb/issue1767.test

49 lines
1002 B
Plaintext

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