From 02cac0dcd63c1c9e5e004a0f5434a7f7f78deb54 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Sun, 31 Oct 2021 09:00:00 +0900 Subject: [PATCH] Fix the CI --- .../syntax_test_MediawikiNG.mediawiki | 334 +++++++++--------- 1 file changed, 167 insertions(+), 167 deletions(-) diff --git a/tests/syntax-tests/highlighted/MediaWiki/syntax_test_MediawikiNG.mediawiki b/tests/syntax-tests/highlighted/MediaWiki/syntax_test_MediawikiNG.mediawiki index f62e4580d2..6a2adfb34b 100644 --- a/tests/syntax-tests/highlighted/MediaWiki/syntax_test_MediawikiNG.mediawiki +++ b/tests/syntax-tests/highlighted/MediaWiki/syntax_test_MediawikiNG.mediawiki @@ -1,30 +1,30 @@ // SYNTAX TEST "Packages/Mediawiker/MediawikiNG.sublime-syntax" - +<nowiki> // <- meta.tag.validhtml.mediawiki  // <- entity.name.tag.nowiki.validhtml.mediawiki ''' bold no wiki ''' // <- meta.tag.source.validhtml.mediawiki - + // <- meta.tag.validhtml.mediawiki - // <- entity.name.tag.nowiki.validhtml.mediawiki + // <- entity.name.tag.nowiki.validhtml.mediawiki -= Header1 Test = += Header1 Test = // <- markup.heading.tag.mediawiki - // <- markup.heading.1.mediawiki + // <- markup.heading.1.mediawiki // ^ markup.heading.tag.mediawiki -== Header2 Test == +== Header2 Test == // <- markup.heading.tag.mediawiki - // <- markup.heading.2.mediawiki + // <- markup.heading.2.mediawiki // ^ markup.heading.tag.mediawiki -=== Header3 Test === +=== Header3 Test === // <- markup.heading.tag.mediawiki - // <- markup.heading.3.mediawiki + // <- markup.heading.3.mediawiki // ^ markup.heading.tag.mediawiki -=== Heading 3[http://domain.com/path/ Url name] === +=== Heading 3<ref name="imdb">[http://domain.com/path/ Url name] === // <- markup.heading.tag.mediawiki // ^ markup.heading.3.mediawiki // ^ markup.heading.3.mediawiki entity.name.tag.ref.mediawiki @@ -32,131 +32,131 @@ // ^^^^^^^^^^^^^^^^^^^^^^^ markup.underline.link.external.mediawiki // ^ markup.heading.tag.mediawiki -==== Header4 Test ==== +==== Header4 Test ==== // <- markup.heading.tag.mediawiki // ^ markup.heading.4.mediawiki // ^ markup.heading.tag.mediawiki -===== Header5 Test ===== +===== Header5 Test ===== // <- markup.heading.tag.mediawiki // ^ markup.heading.5.mediawiki // ^ markup.heading.tag.mediawiki -== Lists == -# Numberred list item 1 -## Numberred list item 2.1 -* A newline -* in a list -marks the end of the list. +== Lists == +# Numberred list item 1 +## Numberred list item 2.1 +* A newline +* in a list +marks the end of the list. Of course -* you can start again. -*: you can start again. -** and continue.. - -; Definition lists -; item : definition -; semicolon plus term -: colon plus definition - -; Mixed definition lists -; item 1 : definition - -:; sub-item 1 plus term -:: two colons plus definition  - -:; sub-item 2 : colon plus definition -; item 2 -: back to the main list - -* Or create mixed lists -*# and nest them -*#* like this -*#*; definitions -*#*: work: - -*#*; apple - -*#*; banana  -*#*: fruits  - -## semicolon in text; hmm..  - -## and then:  -## is not definition list  - - -Linne num 2.jpg -// <- meta.item.gallery.mediawiki -// <- markup.underline.link.internal.mediawiki -Image:Astronotus_ocellatus.jpg | ''[[commons:Astronotus ocellatus|Astronotus ocellatus]]'' (Oscar) -Salmonlarvakils.jpg | ''[[commons:Salmo salar|Salmo salar]]''|250px -File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' - - // <- entity.name.tag.ref.mediawiki - -[[Image:Test image 1355.jpg|left|thumb|250px | Simple text ''[[Internal link italic|Link title italic]]'' simple text]] +* you can start again. +*: you can start again. +** and continue.. + +; Definition lists +; item : definition +; semicolon plus term +: colon plus definition + +; Mixed definition lists +; item 1 : definition + +:; sub-item 1 plus term +:: two colons plus definition  + +:; sub-item 2 : colon plus definition +; item 2 +: back to the main list + +* Or create mixed lists +*# and nest them +*#* like this +*#*; definitions +*#*: work: + +*#*; apple + +*#*; banana  +*#*: fruits  + +## semicolon in text; hmm..  + +## and then:  +## is not definition list  + +<gallery mode="packed-hover"> +Linne num 2.jpg +// <- meta.item.gallery.mediawiki +// <- markup.underline.link.internal.mediawiki +Image:Astronotus_ocellatus.jpg | ''[[commons:Astronotus ocellatus|Astronotus ocellatus]]'' (Oscar) +Salmonlarvakils.jpg | ''[[commons:Salmo salar|Salmo salar]]''|250px +File:Australian blenny.jpg|''[[commons:Category:Ecsenius|Ecsenius axelrodi]]'' + + // <- entity.name.tag.ref.mediawiki + +[[Image:Test image 1355.jpg|left|thumb|250px | Simple text ''[[Internal link italic|Link title italic]]'' simple text]] // ^ string.other.image.caption.mediawiki markup.italic.mediawiki -[[Image:Test image 1355.jpg|left|thumb|250px | Simple text [[Internal link italic|Link title ''italic'']] simple text]] - // <- constant.other.namespace.image.mediawiki +[[Image:Test image 1355.jpg|left|thumb|250px | Simple text [[Internal link italic|Link title ''italic'']] simple text]] + // <- constant.other.namespace.image.mediawiki // ^ punctuation.definition.tag.pipe.mediawiki // ^ punctuation.definition.tag.caption-pipe.mediawiki // ^ string.other.image.caption.mediawiki @@ -166,13 +166,13 @@ // ^ meta.tag.inline.any.mediawiki -[[Image:test_image.png]] / [[File:test_file.pdf]] - // <- meta.image.wiki.mediawiki - // <- constant.other.namespace.image.mediawiki +[[Image:test_image.png]] / [[File:test_file.pdf]] + // <- meta.image.wiki.mediawiki + // <- constant.other.namespace.image.mediawiki // ^ punctuation.definition.tag.colon.mediawiki // ^ constant.other.wiki-link.image.mediawiki // ^ meta.image.wiki.mediawiki meta.tag.inline.any.mediawiki -Inline [[namespace:Internal link/Subpage#anchor|Link '''bold''' te|xt]] in string. +Inline [[namespace:Internal link/Subpage#anchor|Link '''bold''' te|xt]] in string. // ^ markup.underline.link.internal.namespace.mediawiki // ^ punctuation.definition.tag.colon.mediawiki // ^ markup.underline.link.internal.mediawiki @@ -182,16 +182,16 @@ // ^ string.other.title.link.internal.mediawiki // ^ meta.tag.inline.link.mediawiki -* [https://meta.wikimedia.org:9723/wiki/Help:Link/ru?a=9&test=abs#anchor Example with inline '''style'''] +* [https://meta.wikimedia.org:9723/wiki/Help:Link/ru?a=9&test=abs#anchor Example with inline '''style'''] // ^ markup.underline.link.external.mediawiki // ^ string.other.title.link.external.mediawiki // ^ markup.bold.mediawiki // ^ meta.tag.inline.link.mediawiki -https://meta.wikimedia.org:9723/wiki/Help:Link/ru?a=9&test=abs#anchor +https://meta.wikimedia.org:9723/wiki/Help:Link/ru?a=9&test=abs#anchor // <- markup.underline.link.external.mediawiki -Before template {{Context|add=inline value +Before template {{Context|add=inline value // ^ meta.tag.inline.start.template.mediawiki // ^ meta.tag.inline.start.template.mediawiki // ^ entity.name.function.template.mediawiki @@ -199,62 +199,62 @@ // ^ variable.parameter.template.mediawiki // ^ punctuation.definition.tag.equals-sign.template.mediawiki // ^ meta.function.parameters.template.mediawiki - |objname=next value, space in start don't breaks template - // <- meta.tag.param-delimiter.template.mediawiki - // <- variable.parameter.template.mediawiki -|change=multiline value with '''bold text''' and + |objname=next value, space in start don't breaks template + // <- meta.tag.param-delimiter.template.mediawiki + // <- variable.parameter.template.mediawiki +|change=multiline value with '''bold text''' and // ^ meta.function.parameters.template.mediawiki markup.bold.html.mediawiki continued - with pre text and inline now works - // <- meta.function.parameters.template.mediawiki markup.raw.block.mediawiki -|del=next value + with pre text and inline now works + // <- meta.function.parameters.template.mediawiki markup.raw.block.mediawiki +|del=next value // <- meta.tag.param-delimiter.template.mediawiki // ^ punctuation.definition.tag.equals-sign.template.mediawiki - |p1=last value - // <- meta.tag.param-delimiter.template.mediawiki -}} after template. + |p1=last value + // <- meta.tag.param-delimiter.template.mediawiki +}} after template. // <- meta.tag.inline.stop.template.mediawiki - // <- meta.tag.inline.stop.template.mediawiki + // <- meta.tag.inline.stop.template.mediawiki // ^ text.html.mediawiki - -// <- meta.tag.validhtml.mediawiki - // <- entity.name.tag.validhtml.source.mediawiki -// ^ entity.other.attribute-name.validhtml.mediawiki -// ^ string.quoted.mediawiki -// ^meta.tag.validhtml.mediawiki +<source lang="python"> +// <- meta.tag.validhtml.mediawiki + // <- entity.name.tag.validhtml.source.mediawiki +// ^ entity.other.attribute-name.validhtml.mediawiki +// ^ string.quoted.mediawiki +// ^meta.tag.validhtml.mediawiki -# id:1, width_max: 76 -// <- comment.line.number-sign.python +# id:1, width_max: 76 +// <- comment.line.number-sign.python -from __future__ import with_statement -// <- keyword.control.flow.python -// ^^^^^^ keyword.control.import.python +from __future__ import with_statement +// <- keyword.control.flow.python +// ^^^^^^ keyword.control.import.python - + // <- meta.tag.validhtml.mediawiki - // <- entity.name.tag.validhtml.source.mediawiki + // <- entity.name.tag.validhtml.source.mediawiki // ^ meta.tag.validhtml.mediawiki -* list element -:* test +* list element +:* test // <- markup.other.special.mediawiki -*:  - // <- markup.other.special.mediawiki -// ^ meta.tag.validhtml.mediawiki -// ^ entity.name.tag.validhtml.source.mediawiki - +*: <source lang="python"> + // <- markup.other.special.mediawiki +// ^ meta.tag.validhtml.mediawiki +// ^ entity.name.tag.validhtml.source.mediawiki + -{{FULLPAGENAMEE}} +{{FULLPAGENAMEE}} // ^^^ keyword.control.magic.mediawiki // ^^ meta.tag.inline.stop.template.mediawiki // <- meta.tag.inline.start.template.mediawiki -{{!}} +{{!}} //^ keyword.control.magic.mediawiki -{{#special:userlogin}} +{{#special:userlogin}} // ^^^ keyword.control.magic.mediawiki -{{#speciale:userlogin}} {{#specialno:userlogin}} +{{#speciale:userlogin}} {{#specialno:userlogin}} // ^^^ keyword.control.magic.mediawiki // ^^^^^ entity.name.function.template.mediawiki