Skip to content

Commit b985f2d

Browse files
committed
Add support for HTML-encoded databound output
1 parent 2d316b1 commit b985f2d

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

WebForms/WebForms.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ file_extensions: []
1111

1212
variables:
1313
csharp_tag: (?:<%(?![=#:$@-]))
14-
csharp_tag_interpolation: (?:<%[=#:$])
14+
csharp_tag_interpolation: (?:<%(?:=|:|#:?|\$))
1515
csharp_tag_end: (?:%>)
1616

1717
contexts:

WebForms/tests/syntax_test_aspx.aspx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,37 @@
166166
<%-- ^^^^^^^^^^ source.cs.embedded.html --%>
167167
<%-- ^^ punctuation.section.embedded.end --%>
168168
<%-- ^^^^^^ - source.cs.embedded.html --%>
169+
170+
<asp:Repeater runat="server">
171+
<ItemTemplate>
172+
<%# Eval("Property") %>
173+
<%-- ^^^^^^^^^^^^^^^^^^^^^^^ meta.embedded.cs --%>
174+
<%-- ^^^ punctuation.section.embedded.begin.cs-webforms --%>
175+
<%-- ^^^^^^^^^^^^^^^^^^ source.cs.embedded.html --%>
176+
<%-- ^^^^^^^^^^^^^^^^ meta.function-call.cs --%>
177+
<%-- ^^^^ variable.function.cs --%>
178+
<%-- ^^^^^^^^^^^^ meta.group.cs --%>
179+
<%-- ^ punctuation.section.group.begin.cs --%>
180+
<%-- ^^^^^^^^^^ meta.string.cs string.quoted.double.cs --%>
181+
<%-- ^ punctuation.definition.string.begin.cs --%>
182+
<%-- ^ punctuation.definition.string.end.cs --%>
183+
<%-- ^ punctuation.section.group.end.cs --%>
184+
<%-- ^^ punctuation.section.embedded.end.cs-webforms --%>
185+
<%#: Eval("Property") %>
186+
<%-- ^^^^^^^^^^^^^^^^^^^^^^^^ meta.embedded.cs --%>
187+
<%-- ^^^^ punctuation.section.embedded.begin.cs-webforms --%>
188+
<%-- ^^^^^^^^^^^^^^^^^^ source.cs.embedded.html --%>
189+
<%-- ^^^^^^^^^^^^^^^^ meta.function-call.cs --%>
190+
<%-- ^^^^ variable.function.cs --%>
191+
<%-- ^^^^^^^^^^^^ meta.group.cs --%>
192+
<%-- ^ punctuation.section.group.begin.cs --%>
193+
<%-- ^^^^^^^^^^ meta.string.cs string.quoted.double.cs --%>
194+
<%-- ^ punctuation.definition.string.begin.cs --%>
195+
<%-- ^ punctuation.definition.string.end.cs --%>
196+
<%-- ^ punctuation.section.group.end.cs --%>
197+
<%-- ^^ punctuation.section.embedded.end.cs-webforms --%>
198+
</ItemTemplate>
199+
</asp:Repeater>
200+
169201
</body>
170202
</html>

0 commit comments

Comments
 (0)