Skip to content

Commit 5c3475e

Browse files
committed
Syntax improvements
1 parent 3b4f307 commit 5c3475e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

syntaxes/wikitext.tmLanguage.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ scopeName: source.wikitext
1010
patterns:
1111
- include: "#wikitext"
1212
- include: text.html.basic
13+
# - include: text.html.derivative
1314
repository:
1415
# wikitext: https://www.mediawiki.org/wiki/Wikitext
1516
wikitext:
@@ -582,7 +583,7 @@ repository:
582583
patterns:
583584
- include: source.json
584585
math:
585-
begin: (?i)(<)(math)(\s+[^>]+)?\s*(>)
586+
begin: (?i)(<)(math|chem|ce)(\s+[^>]+)?\s*(>)
586587
beginCaptures:
587588
0:
588589
name: meta.tag.metadata.start.wikitext
@@ -601,7 +602,7 @@ repository:
601602
- include: $self
602603
4:
603604
name: punctuation.definition.tag.end.wikitext
604-
end: (?i)(</)(math)\s*(>)
605+
end: (?i)(</)(math|chem|ce)\s*(>)
605606
endCaptures:
606607
0:
607608
name: meta.tag.metadata.end.wikitext
@@ -613,7 +614,7 @@ repository:
613614
name: punctuation.definition.tag.end.wikitext
614615
contentName: meta.embedded.block.latex
615616
patterns:
616-
- include: text.tex.latex
617+
- include: text.html.markdown.math#math
617618
# public
618619
doublequotedString:
619620
begin: '"'

0 commit comments

Comments
 (0)