1+ {
2+ "name" : " ASP.NET Razor" ,
3+ "scopeName" : " text.html.cshtml" ,
4+ "fileTypes" : [
5+ " cshtml" ,
6+ " gohtml"
7+ ],
8+ "patterns" : [
9+ {
10+ "name" : " section.embedded.source.cshtml" ,
11+ "begin" : " (@?([a-zA-Z0-9]+)?)(\\ s[a-zA-Z0-9]+)?(\n |\r )?(\\ {)" ,
12+ "beginCaptures" : {
13+ "0" : {
14+ "name" : " punctuation.section.embedded.begin.cshtml"
15+ },
16+ "1" : {
17+ "name" : " keyword.control.cshtml"
18+ }
19+ },
20+ "patterns" : [
21+ {
22+ "name" : " section.embedded.source.cshtml" ,
23+ "begin" : " (@?([a-zA-Z0-9]+)?)(\\ s[a-zA-Z0-9]+)?(\n |\r )?(\\ {)" ,
24+ "beginCaptures" : {
25+ "0" : {
26+ "name" : " punctuation.section.embedded.begin.cshtml"
27+ },
28+ "1" : {
29+ "name" : " keyword.control.cshtml"
30+ }
31+ },
32+ "patterns" : [
33+ {
34+ "name" : " string.quoted.single.cshtml" ,
35+ "match" : " '"
36+ },
37+ {
38+ "include" : " #embedded-code"
39+ },
40+ {
41+ "include" : " #comments"
42+ },
43+ {
44+ "include" : " source.cs"
45+ },
46+ {
47+ "include" : " text.html.basic"
48+ }
49+ ],
50+ "end" : " \\ }" ,
51+ "endCaptures" : {
52+ "0" : {
53+ "name" : " punctuation.section.embedded.begin.cshtml"
54+ }
55+ }
56+ },
57+ {
58+ "name" : " string.quoted.single.cshtml" ,
59+ "match" : " '"
60+ },
61+ {
62+ "include" : " #embedded-code"
63+ },
64+ {
65+ "include" : " #comments"
66+ },
67+ {
68+ "include" : " text.html.basic"
69+ }
70+ ],
71+ "end" : " \\ }" ,
72+ "endCaptures" : {
73+ "0" : {
74+ "name" : " punctuation.section.embedded.begin.cshtml"
75+ }
76+ },
77+ "comments" : " Simple multi-line code section"
78+ },
79+ {
80+ "begin" : " (@[a-zA-Z0-9]+)(\\ s?)" ,
81+ "captures" : {
82+ "0" : {
83+ "name" : " section.embedded.begin.cshtml"
84+ },
85+ "1" : {
86+ "name" : " keyword.control.cshtml"
87+ }
88+ },
89+ "patterns" : [
90+ {
91+ "match" : " (([a-zA-Z0-9]+)(\\ .)?)+?" ,
92+ "captures" : {
93+ "2" : {
94+ "name" : " entity.name.tag.source.cshtml"
95+ },
96+ "3" : {
97+ "name" : " punctuation.separator.namespace.source.cshtml"
98+ }
99+ }
100+ },
101+ {
102+ "include" : " #embedded-code"
103+ },
104+ {
105+ "include" : " #comments"
106+ },
107+ {
108+ "include" : " source.cs"
109+ },
110+ {
111+ "include" : " text.html.basic"
112+ }
113+ ],
114+ "end" : " (\\ n|\\ s)" ,
115+ "comments" : " Covers single line Razor tags"
116+ },
117+ {
118+ "include" : " #comments"
119+ },
120+ {
121+ "include" : " text.html.basic"
122+ }
123+ ],
124+ "repository" : {
125+ "embedded-code" : {
126+ "match" : " (@?[a-zA-Z0-9]+)(\\ .([a-zA-Z0-9]+))?" ,
127+ "captures" : {
128+ "1" : {
129+ "name" : " keyword.control.cshtml"
130+ },
131+ "3" : {
132+ "name" : " entity.name.tag.source.cshtml"
133+ }
134+ },
135+ "patterns" : [
136+ {
137+ "include" : " #comments"
138+ }
139+ ]
140+ },
141+ "comments" : {
142+ "begin" : " @\\ *" ,
143+ "captures" : {
144+ "0" : {
145+ "name" : " punctuation.definition.comment.source.cshtml"
146+ }
147+ },
148+ "end" : " \\ *@" ,
149+ "name" : " comment.block.cshtml"
150+ }
151+ },
152+ "version" : " https://github.com/demyte/language-cshtml/commit/a49735dc7aef56ae772a3bcfd8e42c89895dcff4"
153+ }
0 commit comments