-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEJS (Q).sublime-syntax
41 lines (33 loc) · 1.17 KB
/
EJS (Q).sublime-syntax
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
%YAML 1.2
---
# https://github.com/mde/ejs
name: EJS (<? ?>)
scope: text.html.ejs.questionmark
version: 2
extends: EJS.sublime-syntax
variables:
ejs_delimiter: '\?'
contexts:
style-css-content:
- meta_include_prototype: false
- match: '{{style_content_begin}}'
captures:
1: comment.block.html punctuation.definition.comment.begin.html
pop: 1 # make sure to match only once
embed: scope:source.css.embedded.html.ejs.questionmark
embed_scope: source.css.embedded.html
escape: '{{style_content_end}}'
escape_captures:
1: source.css.embedded.html
2: comment.block.html punctuation.definition.comment.end.html
3: source.css.embedded.html
4: comment.block.html punctuation.definition.comment.end.html
tag-style-attribute-double-quoted-value-content:
- include: scope:source.css.embedded.html.ejs.questionmark.double-quoted
apply_prototype: true
tag-style-attribute-single-quoted-value-content:
- include: scope:source.css.embedded.html.ejs.questionmark.single-quoted
apply_prototype: true
ejs-content:
- include: JavaScript (for EJS Q).sublime-syntax
apply_prototype: true