-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML (MathML).sublime-syntax
More file actions
39 lines (39 loc) · 1.21 KB
/
HTML (MathML).sublime-syntax
File metadata and controls
39 lines (39 loc) · 1.21 KB
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
%YAML 1.2
---
name: HTML (MathML)
file_extensions:
- mhtml
- html.math
- html.mathml
scope: text.html.mathml
contexts:
main:
- match: ''
push: 'scope:text.html.basic'
with_prototype:
- match: '(?:^\s+)?(<)((?i:math))\b(?![^>]*/>)'
captures:
0: meta.tag.math.begin.mathml
1: punctuation.definition.tag.begin.mathml
2: entity.name.tag.math.mathml
push:
- match: (?i)(</)(math)(>)
captures:
0: meta.tag.math.end.mathml
1: punctuation.definition.tag.begin.mathml
2: entity.name.tag.math.html
3: punctuation.definition.tag.end.mathml
pop: true
- match: '>'
scope: meta.tag.math.begin.mathml punctuation.definition.tag.end.mathml
push:
- meta_content_scope: source.mathml.embedded.html
- include: 'MathML.sublime-syntax'
with_prototype:
- match: (?i)(?=</math)
pop: true
- match: ''
push:
- meta_scope: meta.tag.math.begin.mathml
- match: '(?=>)'
pop: true