Skip to content

Commit 40e726b

Browse files
committed
Fix #109 multiple pipe in one table row
1 parent aca5f43 commit 40e726b

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

syntaxes/wikitext.tmLanguage.yaml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -453,27 +453,23 @@ repository:
453453
end: $
454454
patterns:
455455
- include: $self
456-
- begin: ^\s*(\|)(([^\[]*?)((?<!\|)\|(?!\|)))?
457-
# name: string.quoted.wikitext
456+
- begin: ^\s*(\|)
458457
end: $
459458
beginCaptures:
460459
1:
461460
name: punctuation.definition.tag.wikitext
462-
3:
463-
patterns:
464-
- include: $self
465-
- include: text.html.basic#attribute
466-
4:
467-
name: punctuation.definition.tag.wikitext
468-
# patterns:
469-
# - include: text.html.basic#attribute
470-
# 3:
471-
# name: punctuation.definition.tag.wikitext
472461
patterns:
473-
- include: $self
462+
- match: \s*([^\|]+)\s*(?<!\|)(\|)(?!\|)
463+
captures:
464+
1:
465+
patterns:
466+
- include: $self
467+
- include: text.html.basic#attribute
468+
2:
469+
name: punctuation.definition.tag.wikitext
474470
- match: \|\|
475-
name: keyword.operator.wikitext
476-
# - include: text.html.basic#attribute
471+
name: punctuation.definition.tag.wikitext
472+
- include: $self
477473
wikixml:
478474
patterns:
479475
- include: '#wiki-self-closed-tags'

0 commit comments

Comments
 (0)