/usr/share/gtksourceview-3.0/language-specs/mediawiki.lang is in libgtksourceview-3.0-common 3.10.2-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | <?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Jean-Philippe Fleury <contact@jpfleury.net>
Copyright © Jean-Philippe Fleury, 2009, 2011-2012.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<language id="mediawiki" _name="MediaWiki" version="2.0" _section="Markup">
<metadata>
<property name="block-comment-start"><!--</property>
<property name="block-comment-end">--></property>
</metadata>
<styles>
<style id="strong-emphasis" _name="Strong Emphasis" map-to="def:statement"/>
<style id="light-emphasis" _name="Light Emphasis" map-to="def:doc-comment-element"/>
<style id="signature" _name="Signature" map-to="def:statement"/>
<style id="url" _name="URL" map-to="def:underlined"/>
<style id="link" _name="Link" map-to="def:comment"/>
<style id="link-symbol" _name="Symbol on a Link" map-to="def:shebang"/>
<style id="line" _name="Line" map-to="def:type"/>
<style id="list" _name="List" map-to="def:statement"/>
<style id="magic-word" _name="Magic Word" map-to="def:statement"/>
<style id="table-symbol" _name="Symbol of a Table" map-to="def:statement"/>
<style id="preformatted" _name="Preformatted" map-to="def:identifier"/>
<style id="redirect" _name="Redirect" map-to="def:statement"/>
<style id="title" _name="Title" map-to="def:type"/>
<style id="template" _name="Template" map-to="def:statement"/>
</styles>
<definitions>
<!-- See <http://www.mediawiki.org/wiki/Manual:$wgUrlProtocols>. -->
<define-regex id="regex-url">(http://|https://|ftp://|irc://|gopher://|telnet://|nntp://|worldwind://|mailto:|news:)[^\s]+</define-regex>
<define-regex id="regex-internal-link">\[\[\s*[^\[\]\s][^\[\]]*?((\|)[^\[\]\|]*)?\]\]</define-regex>
<context id="double-emphasis" style-ref="strong-emphasis">
<match>'''''.+?'''''</match>
</context>
<context id="strong-emphasis" style-ref="strong-emphasis">
<match>'''.+?'''</match>
</context>
<context id="light-emphasis" style-ref="light-emphasis">
<match>''.+?''</match>
</context>
<!-- See <http://www.mediawiki.org/wiki/Help:Signatures/fr>. -->
<context id="signature" style-ref="signature">
<match>~{3,5}</match>
</context>
<context id="url" style-ref="url">
<match>(\%{regex-url})</match>
<include>
<context sub-pattern="1" style-ref="link"/>
</include>
</context>
<context id="internal-link" style-ref="link">
<match>\%{regex-internal-link}</match>
<include>
<context sub-pattern="2" style-ref="link-symbol"/>
</include>
</context>
<context id="external-link" style-ref="link">
<match extended="true">
(?<!\[)
\[
\s*
(\%{regex-url})
[^\[\]]*
\]
(?!\])
</match>
<include>
<context sub-pattern="1" style-ref="url"/>
</include>
</context>
<context id="line" style-ref="line">
<match>^-{4,}</match>
</context>
<context id="list">
<match>^((\*|#(?!REDIRECT))+)\s*[^\*#\s]+</match>
<include>
<context sub-pattern="1" style-ref="list"/>
</include>
</context>
<context id="glossary-term">
<match extended="true">
^(;)
\s*
[^;:\s]+?
[^:]*
(:?)
</match>
<include>
<context sub-pattern="1" style-ref="list"/>
<context sub-pattern="2" style-ref="list"/>
</include>
</context>
<context id="glossary-definition">
<match extended="true">
^(:)
\s*
[^;:\s]+
</match>
<include>
<context sub-pattern="1" style-ref="list"/>
</include>
</context>
<!-- Magic words. See <http://www.mediawiki.org/wiki/Help:Magic_words>. -->
<context id="magic-word-1" style-ref="magic-word">
<prefix>__</prefix>
<suffix>__</suffix>
<!-- Behavior switches. -->
<keyword>NOTOC</keyword>
<keyword>FORCETOC</keyword>
<keyword>TOC</keyword>
<keyword>NOEDITSECTION</keyword>
<keyword>NEWSECTIONLINK</keyword>
<keyword>NONEWSECTIONLINK</keyword>
<keyword>NOGALLERY</keyword>
<keyword>HIDDENCAT</keyword>
<keyword>NOCONTENTCONVERT</keyword>
<keyword>NOCC</keyword>
<keyword>NOTITLECONVERT</keyword>
<keyword>NOTC</keyword>
<keyword>START</keyword>
<keyword>END</keyword>
<keyword>INDEX</keyword>
<keyword>NOINDEX</keyword>
<keyword>STATICREDIRECT</keyword>
</context>
<context id="magic-word-2" style-ref="magic-word">
<prefix>{{</prefix>
<suffix>}}</suffix>
<!-- Date and time. -->
<keyword>CURRENTYEAR</keyword>
<keyword>CURRENTMONTH</keyword>
<keyword>CURRENTMONTHNAME</keyword>
<keyword>CURRENTMONTHNAMEGEN</keyword>
<keyword>CURRENTMONTHABBREV</keyword>
<keyword>CURRENTDAY</keyword>
<keyword>CURRENTDAY2</keyword>
<keyword>CURRENTDOW</keyword>
<keyword>CURRENTDAYNAME</keyword>
<keyword>CURRENTTIME</keyword>
<keyword>CURRENTHOUR</keyword>
<keyword>CURRENTWEEK</keyword>
<keyword>CURRENTTIMESTAMP</keyword>
<keyword>LOCALYEAR</keyword>
<keyword>LOCALMONTH</keyword>
<keyword>LOCALMONTHNAME</keyword>
<keyword>LOCALMONTHNAMEGEN</keyword>
<keyword>LOCALMONTHABBREV</keyword>
<keyword>LOCALDAY</keyword>
<keyword>LOCALDAY2</keyword>
<keyword>LOCALDOW</keyword>
<keyword>LOCALDAYNAME</keyword>
<keyword>LOCALTIME</keyword>
<keyword>LOCALHOUR</keyword>
<keyword>LOCALWEEK</keyword>
<keyword>LOCALTIMESTAMP</keyword>
<!-- Technical metadata. -->
<keyword>SITENAME</keyword>
<keyword>SERVER</keyword>
<keyword>SERVERNAME</keyword>
<keyword>DIRMARK</keyword>
<keyword>DIRECTIONMARK</keyword>
<keyword>SCRIPTPATH</keyword>
<keyword>STYLEPATH</keyword>
<keyword>CURRENTVERSION</keyword>
<keyword>CONTENTLANGUAGE</keyword>
<keyword>CONTENTLANG</keyword>
<keyword>REVISIONID</keyword>
<keyword>REVISIONDAY</keyword>
<keyword>REVISIONDAY2</keyword>
<keyword>REVISIONMONTH</keyword>
<keyword>REVISIONMONTH1</keyword>
<keyword>REVISIONYEAR</keyword>
<keyword>REVISIONTIMESTAMP</keyword>
<keyword>REVISIONUSER</keyword>
<!-- Statistics. -->
<keyword>NUMBEROFPAGES</keyword>
<keyword>NUMBEROFARTICLES</keyword>
<keyword>NUMBEROFFILES</keyword>
<keyword>NUMBEROFEDITS</keyword>
<keyword>NUMBEROFVIEWS</keyword>
<keyword>NUMBEROFUSERS</keyword>
<keyword>NUMBEROFADMINS</keyword>
<keyword>NUMBEROFACTIVEUSERS</keyword>
<!-- Page names. -->
<keyword>FULLPAGENAME</keyword>
<keyword>PAGENAME</keyword>
<keyword>BASEPAGENAME</keyword>
<keyword>SUBPAGENAME</keyword>
<keyword>SUBJECTPAGENAME</keyword>
<keyword>TALKPAGENAME</keyword>
<keyword>FULLPAGENAMEE</keyword>
<keyword>PAGENAMEE</keyword>
<keyword>BASEPAGENAMEE</keyword>
<keyword>SUBPAGENAMEE</keyword>
<keyword>SUBJECTPAGENAMEE</keyword>
<keyword>TALKPAGENAMEE</keyword>
<!-- Namespaces. -->
<keyword>NAMESPACE</keyword>
<keyword>SUBJECTSPACE</keyword>
<keyword>ARTICLESPACE</keyword>
<keyword>TALKSPACE</keyword>
<keyword>NAMESPACEE</keyword>
<keyword>SUBJECTSPACEE</keyword>
<keyword>TALKSPACEE</keyword>
</context>
<context id="table">
<start>^\s*({\|)</start>
<end>^\s*(\|})</end>
<include>
<context sub-pattern="1" where="start" style-ref="table-symbol"/>
<context sub-pattern="1" where="end" style-ref="table-symbol"/>
<context ref="double-emphasis"/>
<context ref="strong-emphasis"/>
<context ref="light-emphasis"/>
<context ref="signature"/>
<context ref="url"/>
<context ref="internal-link"/>
<context ref="external-link"/>
<context ref="magic-word-1"/>
<context ref="magic-word-2"/>
<context ref="html:html"/>
<context id="table-symbol" extend-parent="false" style-ref="table-symbol">
<match extended="true">
^\s*(\|\+ | \|-+ | !) | \| | !{2,}
</match>
</context>
</include>
</context>
<context id="preformatted" style-ref="preformatted">
<match>^ +[^ ]+.*$</match>
</context>
<context id="redirect">
<match>^(#REDIRECT)\s*(\%{regex-internal-link})</match>
<include>
<context sub-pattern="1" style-ref="redirect"/>
<context sub-pattern="2" style-ref="link"/>
<context sub-pattern="4" style-ref="link-symbol"/>
</include>
</context>
<context id="title" style-ref="title">
<match>^=.+=\s*$</match>
</context>
<context id="template">
<match>({{)\s*[^{}\s]+[^{}]*(}})</match>
<include>
<context sub-pattern="1" style-ref="template"/>
<context sub-pattern="2" style-ref="template"/>
</include>
</context>
<context id="mediawiki-syntax">
<include>
<context ref="double-emphasis"/>
<context ref="strong-emphasis"/>
<context ref="light-emphasis"/>
<context ref="signature"/>
<context ref="url"/>
<context ref="internal-link"/>
<context ref="external-link"/>
<context ref="line"/>
<context ref="list"/>
<context ref="glossary-term"/>
<context ref="glossary-definition"/>
<context ref="magic-word-1"/>
<context ref="magic-word-2"/>
<context ref="table"/>
<context ref="preformatted"/>
<context ref="redirect"/>
<context ref="title"/>
<context ref="template"/>
</include>
</context>
<replace id="html:embedded-lang-hook" ref="mediawiki-syntax"/>
<context id="mediawiki">
<include>
<context ref="mediawiki-syntax"/>
<context ref="html:html"/>
</include>
</context>
</definitions>
</language>
|