Skip to content

Commit f426398

Browse files
committed
Update WebForms for C# version: 2
1 parent dea414b commit f426398

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

Razor/C# (Razor).sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
scope: source.cs.embedded.html
44
hidden: true
5-
# version: 2
5+
version: 2
66

77
extends: Packages/C#/C#.sublime-syntax
88

WebForms/C# (WebForms).sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
scope: source.cs.embedded.html
44
hidden: true
5-
# version: 2
5+
version: 2
66

77
extends: Packages/C#/C#.sublime-syntax
88

WebForms/ashx.sublime-syntax

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# http://www.sublimetext.com/docs/syntax.html
44
name: .Net Web Handler (ASHX)
55
scope: source.cs.webforms.ashx
6+
version: 2
67

78
extends: Packages/C#/C#.sublime-syntax
89

@@ -23,6 +24,7 @@ contexts:
2324
3: string.quoted.double.cshtml
2425
4: punctuation.definition.string.begin.cshtml
2526
5: punctuation.definition.string.end.cshtml
27+
- match: (?=\')
2628

2729
directive-end:
2830
- match: '%>'

WebForms/tests/syntax_test_ashx.ashx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using System;
2121
using System.Web;
2222
//^^^ keyword.control.import.cs
2323
// ^^^^^^^^^^ meta.path.cs
24-
// ^ punctuation.separator.namespace.cs
24+
// ^ punctuation.accessor.dot.cs
2525
// ^ punctuation.terminator.statement.cs
2626

2727
public class Handler : IHttpHandler

WebForms/tests/syntax_test_aspx.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<%--^^ meta.embedded.cs punctuation.section.embedded.begin.cs-webforms --%>
129129
<%-- ^^^^^^^^^^ meta.embedded.cs source.cs.embedded.html --%>
130130
<%-- ^ punctuation.section.block.end.cs --%>
131-
<%-- ^^^^^ keyword.control.conditional.else.cs --%>
131+
<%-- ^^^^ keyword.control.conditional.else.cs --%>
132132
<%-- ^^ meta.block.cs --%>
133133
<%-- ^ punctuation.section.block.begin.cs --%>
134134
<%-- ^^ text.html.cs.webforms meta.embedded.cs punctuation.section.embedded.end.cs-webforms - source --%>

0 commit comments

Comments
 (0)