-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
text.elixir.js
46 lines (44 loc) · 1.23 KB
/
text.elixir.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
42
43
44
45
46
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/elixir-lang/elixir-tmbundle>
// and licensed `apache-2.0`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.elixir'],
extensions: [],
names: [],
patterns: [
{
begin: '<%+#',
captures: {0: {name: 'punctuation.definition.comment.eex'}},
end: '%>',
name: 'comment.block.elixir'
},
{
begin: '<%+(?!>)[-=]*',
beginCaptures: {0: {name: 'punctuation.section.embedded.begin.elixir'}},
contentName: 'source.elixir',
end: '(-)%>|(%)>',
endCaptures: {
0: {name: 'punctuation.section.embedded.end.elixir'},
1: {name: 'source.elixir'},
2: {name: 'source.elixir'}
},
name: 'meta.embedded.line.elixir',
patterns: [
{
captures: {1: {name: 'punctuation.definition.comment.elixir'}},
match: '(#).*?(?=-?%>)',
name: 'comment.line.number-sign.elixir'
},
{include: 'source.elixir'}
]
}
],
scopeName: 'text.elixir'
}
export default grammar