---
name: Twiki
scopeName: text.html.twiki
repository:
list-paragraph:
patterns:
- name: markup.list.unnumbered.paragraph
begin: "\\G\\s+\\S"
end: "^\\s*$"
patterns:
- include: "#inline"
- include: text.html.basic
inline:
patterns:
- name: markup.bold.twiki
captures:
'1':
name: punctuation.definition.bold.twiki
'2':
name: punctuation.definition.bold.twiki
match: "([\\*])[\\s\\w :.\\?']*([\\*])"
- captures:
'6':
name: punctuation.definition.italic.twiki
'1':
name: markup.bold.twiki
'2':
name: markup.italic.twiki
'3':
name: punctuation.definition.bold.twiki
'4':
name: punctuation.definition.italic.twiki
'5':
name: punctuation.definition.bold.twiki
match: "((((__))[\\s\\w :.\\?']*((__))))"
- name: markup.italic.twiki
captures:
'1':
name: punctuation.definition.italic.twiki
'2':
name: punctuation.definition.italic.twiki
match: "\\b(_)[\\s\\w :.\\?']*(_)\\b"
- captures:
'6':
name: punctuation.definition.raw.fixed.twiki
'1':
name: markup.bold.twiki
'2':
name: markup.raw.fixed.twiki
'3':
name: punctuation.definition.bold.twiki
'4':
name: punctuation.definition.raw.fixed.twiki
'5':
name: punctuation.definition.bold.twiki
match: "((((\\=\\=))[\\s\\w :.\\?']*((\\=\\=))))"
- name: markup.raw.fixed.twiki
captures:
'1':
name: punctuation.definition.raw.fixed.twiki
'2':
name: punctuation.definition.raw.fixed.twiki
match: "(\\=)[\\s\\w :.\\?']*(\\=)"
- name: variable.other.twiki
captures:
'1':
name: punctuation.definition.variable.twiki
'3':
name: punctuation.definition.variable.twiki
match: "(%)([A-Z0-9]+)(%)"
- name: constant.character.entity.html
captures:
'1':
name: punctuation.definition.constant.twiki
'3':
name: punctuation.definition.constant.twiki
match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)"
- name: meta.link.inline
captures:
'6':
name: punctuation.definition.link.twiki
'1':
name: punctuation.definition.link.twiki
'2':
name: markup.underline.link.twiki
'3':
name: punctuation.definition.link.twiki
'4':
name: punctuation.definition.link.twiki
'5':
name: string.other.link.title.twiki
match: "(\\[)([^]]*)(\\]) *(\\[)(.*?)(\\])"
numlist-paragraph:
patterns:
- name: markup.list.numbered.paragraph
begin: "\\G\\s+\\S"
end: "^\\s*$"
patterns:
- include: "#inline"
- include: text.html.basic
uuid: B2FD7223-BE64-4134-B43D-F7443EA54CCD
patterns:
- name: string.quoted.double.twiki
endCaptures:
'0':
name: punctuation.definition.string.end.twiki
begin: "\""
beginCaptures:
'0':
name: punctuation.definition.string.begin.twiki
end: "\""
patterns:
- name: constant.character.escape.twiki
match: "\\\\."
- name: markup.heading.twiki
captures:
'1':
name: punctuation.definition.heading.twiki
'2':
name: entity.name.function.twiki
match: "^(-{3}\\+{1,6})(.*)$"
- name: markup.raw.twiki
captures:
'1':
name: punctuation.definition.tag.twiki
'2':
name: punctuation.definition.tag.twiki
'3':
name: punctuation.definition.tag.twiki
'4':
name: punctuation.definition.tag.twiki
begin: "(<)verbatim(>)|(<)pre(>)"
end: "()verbatim(>)|()pre(>)"
patterns:
- name: constant.character.escape.twiki
match: "\\\\."
- name: meta.separator.twiki
match: "^-{3,}$\\n"
- name: markup.other.def.twiki
captures:
'1':
name: markup.other.def.term.twiki
'2':
name: markup.other.def.def.twiki
begin: "^ {3}([a-zA-Z0-9]+: )"
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.other.table.twiki
begin: "^(\\|)"
beginCaptures:
'1':
name: punctuation.definition.table.twiki
end: "^(?:\\s*$|(?=\\s*>|[=-]{3,}$))"
patterns:
- include: "#inline"
- name: markup.list.unnumbered.1.twiki
begin: "^ {3}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.unnumbered.2.twiki
begin: "^ {6}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.unnumbered.3.twiki
begin: "^ {9}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.unnumbered.4.twiki
begin: "^ {12}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.unnumbered.5.twiki
begin: "^ {15}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.unnumbered.6.twiki
begin: "^ {18}(\\*)"
beginCaptures:
'1':
name: punctuation.definition.list_item.twiki
end: "$\\n?"
patterns:
- include: "#list-paragraph"
- name: markup.list.numbered.1.twiki
begin: "^ {3}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: markup.list.numbered.2.twiki
begin: "^ {6}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: markup.list.numbered.3.twiki
begin: "^ {9}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: markup.list.numbered.4.twiki
begin: "^ {12}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: markup.list.numbered.5.twiki
begin: "^ {15}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: markup.list.numbered.6.twiki
begin: "^ {18}\\d"
end: "$\\n?"
patterns:
- include: "#numlist-paragraph"
- name: meta.paragraph.twiki
begin: "^(?=\\S)"
end: "^\\s*$"
patterns:
- include: "#inline"
- include: text.html.basic
keyEquivalent: "^~T"