-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
text.html.asp.js
41 lines (39 loc) · 1.24 KB
/
text.html.asp.js
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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is licensed permissive.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.asp', 'text.html.basic'],
extensions: ['.asax', '.ascx', '.ashx', '.asmx', '.asp', '.aspx', '.axd'],
names: ['asp', 'asp.net', 'aspx', 'aspx-vb', 'classic-asp'],
patterns: [
{
begin: '<%--',
beginCaptures: {0: {name: 'punctuation.definition.comment.begin.asp'}},
end: '--%>',
endCaptures: {0: {name: 'punctuation.definition.comment.end.asp'}},
name: 'comment.block.asp.server'
},
{
begin: '<%=?',
beginCaptures: {0: {name: 'punctuation.section.embedded.begin.asp'}},
end: '%>',
endCaptures: {0: {name: 'punctuation.section.embedded.end.asp'}},
name: 'source.asp.embedded.html',
patterns: [
{
captures: {1: {name: 'punctuation.definition.comment.asp'}},
match: "(').*?(?=%>)",
name: 'comment.line.apostrophe.asp'
},
{include: 'source.asp'}
]
},
{include: 'text.html.basic'}
],
scopeName: 'text.html.asp'
}
export default grammar