lib/code_rippa/syntax/moinmoin.syntax in code_rippa-0.0.7 vs lib/code_rippa/syntax/moinmoin.syntax in code_rippa-1.0.0
- old
+ new
@@ -1,189 +1,189 @@
----
+---
name: MoinMoin
-fileTypes:
+fileTypes:
- moinmoin
scopeName: text.moinmoin
-repository:
- inline:
- patterns:
+repository:
+ inline:
+ patterns:
- name: markup.raw.block.moinmoin
- captures:
- "0":
+ captures:
+ '0':
name: punctuation.definition.raw.moinmoin
- begin: \{{3}(?!.*\}{3})
- end: \}{3}
+ begin: "\\{{3}(?!.*\\}{3})"
+ end: "\\}{3}"
- name: markup.raw.inline.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.raw.moinmoin
- "2":
+ '2':
name: punctuation.definition.raw.moinmoin
- "3":
+ '3':
name: punctuation.definition.raw.moinmoin
- "4":
+ '4':
name: punctuation.definition.raw.moinmoin
- match: (`)[^`]*(`)|({{{).*?(}}})
- - captures:
- "0":
+ match: "(`)[^`]*(`)|({{{).*?(}}})"
+ - captures:
+ '0':
name: punctuation.definition.italic.moinmoin
begin: "'{2}(?='{3}[^']*'{3})"
contentName: markup.italic.moinmoin
end: "'{2}(?!')|'{2}(?='{3})"
- patterns:
+ patterns:
- include: "#inline"
- - captures:
- "0":
+ - captures:
+ '0':
name: punctuation.definition.bold.moinmoin
begin: "'{3}"
contentName: markup.bold.moinmoin
end: "'{3}"
- patterns:
+ patterns:
- include: "#inline"
- - captures:
- "0":
+ - captures:
+ '0':
name: punctuation.definition.italic.moinmoin
begin: "'{2}"
contentName: markup.italic.moinmoin
end: "'{2}(?!')|'{2}(?='{3})"
- patterns:
+ patterns:
- include: "#inline"
- - captures:
- "0":
+ - captures:
+ '0':
name: punctuation.definition.underline.moinmoin
begin: __
contentName: markup.underline.moinmoin
end: __
- patterns:
+ patterns:
- include: "#inline"
- name: markup.underline.link.moinmoin
- match: (?<!\!)/?(?:[A-Z][a-z0-9]+[A-Z][a-z0-9]+[A-Za-z0-9]*)
+ match: "(?<!\\!)/?(?:[A-Z][a-z0-9]+[A-Z][a-z0-9]+[A-Za-z0-9]*)"
- name: markup.underline.link.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.link.moinmoin
- "2":
+ '2':
name: punctuation.definition.link.moinmoin
- match: (\[").*?("\])
+ match: "(\\[\").*?(\"\\])"
- name: markup.underline.link.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.link.moinmoin
- "2":
+ '2':
name: punctuation.definition.link.moinmoin
- match: (\[):.*?:.*?(\])
+ match: "(\\[):.*?:.*?(\\])"
- name: markup.underline.link.moinmoin
match: https?://\S+
- name: markup.underline.link.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.link.moinmoin
- "2":
+ '2':
name: punctuation.definition.link.moinmoin
- match: (\[)https?://.*?(\])
+ match: "(\\[)https?://.*?(\\])"
- name: markup.underline.link.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.separator.key-value.moinmoin
match: attachment(:)\S+
- name: meta.table.column.moinmoin
- captures:
- "0":
+ captures:
+ '0':
name: punctuation.definition.table.column.moinmoin
- match: \|\|
+ match: "\\|\\|"
- name: meta.macro.moinmoin
- captures:
- "0":
+ captures:
+ '0':
name: punctuation.definition.macro.moinmoin
- match: (\[\[).*?(\]\])
+ match: "(\\[\\[).*?(\\]\\])"
uuid: DB315CBC-23FD-4952-9D64-F2AC0618A840
-patterns:
+patterns:
- name: markup.heading.1.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.heading.moimoin
- "2":
+ '2':
name: punctuation.definition.heading.moimoin
- match: ^\s*(=)\s.*\s(=)\n
+ match: "^\\s*(=)\\s.*\\s(=)\\n"
- name: markup.heading.2.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.heading.moimoin
- "2":
+ '2':
name: punctuation.definition.heading.moimoin
- match: ^\s*(==)\s.*\s(==)\n
+ match: "^\\s*(==)\\s.*\\s(==)\\n"
- name: markup.heading.3.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.heading.moimoin
- "2":
+ '2':
name: punctuation.definition.heading.moimoin
- match: ^\s*(===)\s.*\s(===)\n
+ match: "^\\s*(===)\\s.*\\s(===)\\n"
- name: markup.heading.4.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.heading.moimoin
- "2":
+ '2':
name: punctuation.definition.heading.moimoin
- match: ^\s*(====)\s.*\s(====)\n
+ match: "^\\s*(====)\\s.*\\s(====)\\n"
- name: markup.heading.5.moinmoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.heading.moimoin
- "2":
+ '2':
name: punctuation.definition.heading.moimoin
- match: ^\s*(=====)\s.*\s(=====)\n
+ match: "^\\s*(=====)\\s.*\\s(=====)\\n"
- name: meta.separator.moinmoin
- match: ^\s*-----\s*\n
+ match: "^\\s*-----\\s*\\n"
- name: meta.pragma.moimoin
- match: ^#pragma.*
+ match: "^#pragma.*"
- name: comment.line.double-number-sign.moimoin
- captures:
- "1":
+ captures:
+ '1':
name: punctuation.definition.comment.moimoin
- match: ^(##).*$\n?
-- captures:
- "1":
+ match: "^(##).*$\\n?"
+- captures:
+ '1':
name: markup.list.definition.term.moinmoin
- "2":
+ '2':
name: punctuation.separator.definition.moinmoin
- begin: ^\s+(.*?(::))(?=\s+\S)
+ begin: "^\\s+(.*?(::))(?=\\s+\\S)"
contentName: markup.list.definition.moinmoin
- end: \n
- patterns:
+ end: "\\n"
+ patterns:
- include: "#inline"
-- captures:
- "1":
+- captures:
+ '1':
name: punctuation.definition.list_item.moinmoin
- "2":
+ '2':
name: markup.list.unnumbered.moinmoin
- begin: ^\s+(\*)(\s)
+ begin: "^\\s+(\\*)(\\s)"
contentName: markup.list.unnumbered.moinmoin
- end: \n
- patterns:
+ end: "\\n"
+ patterns:
- include: "#inline"
-- captures:
- "1":
+- captures:
+ '1':
name: punctuation.definition.list_item.moinmoin
- "2":
+ '2':
name: markup.list.numbered.moinmoin
- begin: ^\s+((?:[aAiI]|\d+)\.(?:\#\d+)?)(\s)
+ begin: "^\\s+((?:[aAiI]|\\d+)\\.(?:\\#\\d+)?)(\\s)"
contentName: markup.list.numbered.moinmoin
- end: \n
- patterns:
+ end: "\\n"
+ patterns:
- include: "#inline"
-- captures:
- "1":
+- captures:
+ '1':
name: punctuation.definition.table.column.moinmoin
- "2":
+ '2':
name: punctuation.definition.table.column.moinmoin
- begin: ^\s*(\|\|)
+ begin: "^\\s*(\\|\\|)"
contentName: meta.table.moinmoin
- end: (\|\|$)|\n
- patterns:
+ end: "(\\|\\|$)|\\n"
+ patterns:
- include: "#inline"
- name: meta.paragraph.moinmoin
- begin: ^\s*(?=\S)
- end: \n
- patterns:
+ begin: "^\\s*(?=\\S)"
+ end: "\\n"
+ patterns:
- include: "#inline"
-keyEquivalent: ^~M
+keyEquivalent: "^~M"