-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhtml-with-jinja.YAML-tmLanguage
95 lines (81 loc) · 1.82 KB
/
html-with-jinja.YAML-tmLanguage
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# [PackageDev] target_format: plist, ext: tmLanguage
---
fileTypes: []
firstLineMatch: ^{% extends ["'][^"']+["'] %}
foldingStartMarker: (<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(block|filter|for|if|macro|raw))
foldingStopMarker: (</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\s*%})
name: HTML with Jinja2
scopeName: text.html.jinja
uuid: ba4fe61b-04d8-4bc7-8b13-0cd44e8aa37d
patterns:
- {include: text.html.basic}
- name: constant.character
match: (\{%.*block|if|for|include|elif|set|extends)( .*)?( %\})
captures:
'1': {
name: constant.character
}
'2': {
name: variable.parameter
}
'3': {
name: constant.character
}
- name: constant.character
match: \{% (endblock|endif|endfor|else) %\}
captures:
'1': {
name: constant.character
}
- name: support.class
match: \{\{.+(\|.+\(?)(\".*\")(\)?).*\}\}
captures:
'1': {
name: keyword.operator
}
'2': {
name: string.quoted.double
}
'3': {
name: keyword.operator
}
- name: support.class
match: \{\{.+(\|.+).*\}\}
captures:
'1': {
name: keyword.operator
}
- name: constant.character
match: \{\{.+\|.+(\".*\").*\}\}
captures:
'1': {
name: string.quoted.double
}
- name: support.class
match: \{\{(.+)\}\}
captures:
'1': {
name: support.class
}
- name: constant.character
match: \{%.+(\".*\").*%\}
captures:
'1': {
name: string.quoted.double
}
- name: constant.character
match: \{%.+(\d+).*%\}
captures:
'1': {
name: variable.parameter
}
- name: constant.character
match: \{%.+\}
captures:
'1': {
name: support.class
}
- name: comment.block
begin: "\\{#"
end: "#\\}"
...