Skip to content

Commit 700cb47

Browse files
committed
Rename pattern names
1 parent 634f860 commit 700cb47

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

syntaxes/wikitext.tmLanguage.yaml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ repository:
1818
- include: "#entity"
1919
- include: "#signature"
2020
- include: "#redirect"
21-
- include: "#magicWords"
21+
- include: "#magic-words"
2222
# TODO: include: "#function" {{#foo:}}
2323
- include: "#argument"
2424
- include: "#template"
2525
- include: "#convert"
2626
- include: "#list"
2727
- include: "#table"
28-
- include: "#fontStyle"
29-
- include: "#internalLink"
30-
- include: "#externalLink"
28+
- include: "#font-style"
29+
- include: "#internal-link"
30+
- include: "#external-link"
3131
- include: "#heading"
3232
- include: "#break"
3333
- include: "#wikixml"
34-
- include: "#extensionComments"
34+
- include: "#extension-comments"
3535
repository:
36-
extensionComments:
36+
extension-comments:
3737
name: comment.block.documentation.special.extension.wikitext
3838
begin: (<%--)\s*(\[)([A-Z_]*)(\])
3939
# 1<%--1 2 [23TYPE___34] 4
@@ -144,7 +144,7 @@ repository:
144144
name: entity.other.attribute-name.local-name.wikitext
145145
4:
146146
name: keyword.operator.equal.wikitext
147-
externalLink:
147+
external-link:
148148
patterns:
149149
- name: meta.link.external.wikitext
150150
match: (\[)((?:(?:(?:http(?:s)?)|(?:ftp(?:s)?)):\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\.~:\/?#%@!\$&'\(\)\*\+,;=.]+)\s*?([^\]]*)(\])
@@ -193,13 +193,13 @@ repository:
193193
name: invalid.deprecated.ineffective.wikitext
194194
7:
195195
name: punctuation.definition.tag.link.internal.end.wikitext
196-
magicWords:
196+
magic-words:
197197
patterns:
198-
- include: "#behaviorSwitches"
199-
- include: "#outdatedBehaviorSwitches"
198+
- include: "#behavior-switches"
199+
- include: "#outdated-behavior-switches"
200200
- include: "#variables"
201201
repository:
202-
behaviorSwitches:
202+
behavior-switches:
203203
name: constant.language.behavior-switcher.wikitext
204204
match: |-
205205
(?x) # turn on extended mode
@@ -212,7 +212,7 @@ repository:
212212
DISAMBIG
213213
)
214214
(__)
215-
outdatedBehaviorSwitches:
215+
outdated-behavior-switches:
216216
name: invalid.deprecated.behavior-switcher.wikitext
217217
match: |-
218218
(?x)
@@ -324,7 +324,7 @@ repository:
324324
2:
325325
patterns:
326326
- include: $self
327-
fontStyle:
327+
font-style:
328328
patterns:
329329
- include: "#bold"
330330
- include: "#italic"
@@ -343,7 +343,7 @@ repository:
343343
patterns:
344344
- include: "#bold"
345345
- include: $self
346-
internalLink:
346+
internal-link:
347347
TODO: SINGLE LINE
348348
# name: string.quoted.internal-link.wikitext
349349
begin: (\[\[)(([^#:\|\[\]\{\}]*:)*)?([^\|\[\]]*)?
@@ -382,10 +382,10 @@ repository:
382382
name: punctuation.definition.tag.table.wikitext
383383
2:
384384
patterns:
385-
- include: "#tagStuff"
385+
- include: "#tag-stuff"
386386
patterns:
387387
- include: $self
388-
- include: "#tagStuff"
388+
- include: "#tag-stuff"
389389
- name: meta.tag.block.table-row.wikitext
390390
begin: '^\s*(\|-)\s*'
391391
# 1 |- 1
@@ -395,7 +395,7 @@ repository:
395395
name: punctuation.definition.tag.begin.wikitext
396396
patterns:
397397
- include: $self
398-
- include: "#tagStuff"
398+
- include: "#tag-stuff"
399399
- name: invalid.illegal.bad-table-context.wikitext
400400
match: '\|.*'
401401
- name: meta.tag.block.th.heading
@@ -410,7 +410,7 @@ repository:
410410
3:
411411
patterns:
412412
- include: $self
413-
- include: "#tagStuff"
413+
- include: "#tag-stuff"
414414
4:
415415
name: punctuation.definition.tag.wikitext
416416
5:
@@ -423,7 +423,7 @@ repository:
423423
name: punctuation.definition.tag.begin.wikitext
424424
3:
425425
patterns:
426-
- include: "#tagStuff"
426+
- include: "#tag-stuff"
427427
- include: $self
428428
4:
429429
name: punctuation.definition.tag.wikitext
@@ -448,7 +448,7 @@ repository:
448448
name: punctuation.definition.tag.wikitext
449449
2:
450450
patterns:
451-
- include: "#tagStuff"
451+
- include: "#tag-stuff"
452452
3:
453453
name: punctuation.definition.tag.wikitext
454454
patterns:
@@ -480,8 +480,8 @@ repository:
480480
captures:
481481
1:
482482
name: entity.other.attribute-name.wikitext
483-
- include: "#doublequotedString"
484-
- include: "#singlequotedString"
483+
- include: "#double-quoted-string"
484+
- include: "#single-quoted-string"
485485
- include: $self
486486
4:
487487
name: punctuation.definition.tag.end.wikitext
@@ -509,8 +509,8 @@ repository:
509509
captures:
510510
1:
511511
name: entity.other.attribute-name.wikitext
512-
- include: "#doublequotedString"
513-
- include: "#singlequotedString"
512+
- include: "#double-quoted-string"
513+
- include: "#single-quoted-string"
514514
- include: $self
515515
4: punctuation.definition.tag.end.wikitext
516516
name: meta.tag.metedata.void.wikitext
@@ -530,8 +530,8 @@ repository:
530530
captures:
531531
1:
532532
name: entity.other.attribute-name.wikitext
533-
- include: "#doublequotedString"
534-
- include: "#singlequotedString"
533+
- include: "#double-quoted-string"
534+
- include: "#single-quoted-string"
535535
- include: $self
536536
4:
537537
name: punctuation.definition.tag.end.wikitext
@@ -562,8 +562,8 @@ repository:
562562
captures:
563563
1:
564564
name: entity.other.attribute-name.wikitext
565-
- include: "#doublequotedString"
566-
- include: "#singlequotedString"
565+
- include: "#double-quoted-string"
566+
- include: "#single-quoted-string"
567567
- include: $self
568568
4:
569569
name: punctuation.definition.tag.end.wikitext
@@ -595,8 +595,8 @@ repository:
595595
captures:
596596
1:
597597
name: entity.other.attribute-name.wikitext
598-
- include: "#doublequotedString"
599-
- include: "#singlequotedString"
598+
- include: "#double-quoted-string"
599+
- include: "#single-quoted-string"
600600
- include: $self
601601
4:
602602
name: punctuation.definition.tag.end.wikitext
@@ -614,7 +614,7 @@ repository:
614614
patterns:
615615
- include: text.html.markdown.math#math
616616
# public
617-
doublequotedString:
617+
double-quoted-string:
618618
begin: '"'
619619
beginCaptures:
620620
0:
@@ -627,7 +627,7 @@ repository:
627627
patterns:
628628
- include: "#entity"
629629
- include: "#bare-ampersand"
630-
tagStuff:
630+
tag-stuff:
631631
patterns:
632632
- match: (?:\s*)(?:([-\w.]+)((:)))?([-\w.:]+)\s*(=)
633633
# 1 space 123:321 4 name 4 5=5
@@ -642,9 +642,9 @@ repository:
642642
name: entity.other.attribute-name.localname.wikitext
643643
5:
644644
name: keyword.operator.equal.wikitext
645-
- include: "#doublequotedString"
646-
- include: "#singlequotedString"
647-
singlequotedString:
645+
- include: "#double-quoted-string"
646+
- include: "#single-quoted-string"
647+
single-quoted-string:
648648
begin: "'"
649649
beginCaptures:
650650
0:

0 commit comments

Comments
 (0)