-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathC# (WebForms).sublime-syntax
More file actions
34 lines (29 loc) · 970 Bytes
/
C# (WebForms).sublime-syntax
File metadata and controls
34 lines (29 loc) · 970 Bytes
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
%YAML 1.2
---
scope: source.cs.embedded.html.cs.webforms
hidden: true
# version: 2
extends: Packages/C#/C#.sublime-syntax
##############################################################################
contexts:
statements:
- meta_prepend: true
- match: (?=%>)
pop: 1
code_block_in:
- meta_prepend: true
- match: (%>)(\s*\n)?
scope: meta.embedded.cs
captures:
1: punctuation.section.embedded.end.cs-webforms
2: meta.html-newline-after-csharp.cs-webforms # used by indentation rules
push: embedding-syntax
embedding-syntax:
- clear_scopes: true
- meta_scope: embedding.cs text.html.cs.webforms
- meta_include_prototype: false
- match: <%(?![=#:$@-])
scope: meta.embedded.cs punctuation.section.embedded.begin.cs-webforms
pop: 1
- include: Packages/HTML (C#)/WebForms/WebForms.sublime-syntax#comments
- include: Packages/HTML (C#)/WebForms/WebForms.sublime-syntax#html