-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathtext.html.js.js
More file actions
26 lines (24 loc) · 664 Bytes
/
text.html.js.js
File metadata and controls
26 lines (24 loc) · 664 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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['text.html.basic'],
extensions: ['.ejs', '.ect', '.ejs.t', '.jst'],
names: ['ejs'],
patterns: [
{
begin: '<%=?',
captures: {0: {name: 'punctuation.section.embedded.js'}},
end: '%>',
name: 'source.js.embedded.html',
patterns: [{include: 'source.js'}]
},
{include: 'text.html.basic'}
],
scopeName: 'text.html.js'
}
export default grammar