diff --git a/grammars/restructuredtext.cson b/grammars/restructuredtext.cson index dea8f0d..253a172 100644 --- a/grammars/restructuredtext.cson +++ b/grammars/restructuredtext.cson @@ -106,19 +106,21 @@ repository: # Bold { name: "markup.bold.restructuredtext" - match: "(\\*\\*)[^\\*\\s][^*]*(\\*\\*)" - captures: - 1: "name": "punctuation.definition.bold.restructuredtext" - 2: "name": "punctuation.definition.bold.restructuredtext" + begin: "\\*\\*(?=[^\\*\\s])" + end: "\\*\\*|^(?=\\s*$)" + beginCaptures: 0: "name": "punctuation.definition.bold.begin.restructuredtext" + endCaptures: 0: "name": "punctuation.definition.bold.end.restructuredtext" + patterns: [include: "#inlines"] } # Italic { name: "markup.italic.restructuredtext" - match: "(?