-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsyntax_test_ashx.ashx
More file actions
71 lines (67 loc) · 3.48 KB
/
syntax_test_ashx.ashx
File metadata and controls
71 lines (67 loc) · 3.48 KB
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
// SYNTAX TEST "Packages/HTML (C#)/WebForms/ashx.sublime-syntax"
<%@ WebHandler Language="C#" Class="Handler" %>
//^^^^^^^^^^^^ meta.block.processing-directive.cshtml
//^ punctuation.section.embedded.begin.cshtml
// ^^^^^^^^^^ meta.block.processing-directive.contents.type.cshtml constant.language.processing-directive.type.cshtml entity.name.class.cs
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.processing-directive.contents.type.cshtml
// ^^^^^^^^ entity.other.attribute-name.cshtml
// ^ punctuation.separator.key-value.cshtml
// ^^^^ string.quoted.double.cshtml
// ^ punctuation.definition.string.begin.cshtml
// ^ punctuation.definition.string.end.cshtml
// ^^^^^ entity.other.attribute-name.cshtml
// ^ punctuation.separator.key-value.cshtml
// ^^^^^^^^^ string.quoted.double.cshtml
// ^ punctuation.definition.string.begin.cshtml
// ^ punctuation.definition.string.end.cshtml
// ^^ punctuation.section.embedded.end.cshtml
using System;
using System.Web;
//^^^ keyword.control.import.cs
// ^^^^^^^^^^ meta.path.cs
// ^ punctuation.accessor.dot.cs
// ^ punctuation.terminator.statement.cs
public class Handler : IHttpHandler
//^^^^ storage.modifier.access.cs
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.class.cs
// ^^^^^ keyword.declaration.class.cs
// ^^^^^^^ entity.name.class.cs
// ^ punctuation.separator.type.cs
// ^^^^^^^^^^^^ entity.other.inherited-class.cs
{
public void ProcessRequest(HttpContext context)
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.class.body.cs meta.block.cs
// ^^^^^^ storage.modifier.access.cs
// ^^^^ storage.type.cs
// ^^^^^^^^^^^^^^ meta.method.cs entity.name.function.cs
// ^^^^^^^^^^^^^^^^^^^^^ meta.method.parameters.cs
// ^ punctuation.section.parameters.begin.cs
// ^^^^^^^^^^^ support.type.cs
// ^^^^^^^ variable.parameter.cs
// ^ punctuation.section.parameters.end.cs
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.class.body.cs meta.block.cs meta.method.body.cs meta.block.cs
// ^^^^^^^ variable.other.cs
// ^ punctuation.accessor.dot.cs
// ^^^^^^^^ variable.other.cs
// ^ punctuation.accessor.dot.cs
// ^^^^^^^^^^^^^^^^^^^^ meta.function-call.cs
// ^^^^^ variable.function.cs
// ^^^^^^^^^^^^^^^ meta.group.cs
// ^ punctuation.section.group.begin.cs
// ^^^^^^^^^^^^^ meta.string.cs string.quoted.double.cs
// ^ punctuation.definition.string.begin.cs
// ^ punctuation.definition.string.end.cs
// ^ punctuation.section.group.end.cs
// ^ punctuation.terminator.statement.cs
}
public bool IsReusable
{
get
{
return false;
}
}
}