|
94 | 94 | "repository": { |
95 | 95 | "directive-multievent": { |
96 | 96 | "name": "meta.directive.multievent", |
97 | | - "begin": ":::multievent", |
98 | | - "end": ":::", |
| 97 | + "begin": "(^|\\G)(:{3,})(multievent)\\s*$", |
| 98 | + "end": "(^|\\G)(\\2)\\s*$", |
99 | 99 | "patterns": [ |
100 | 100 | { |
101 | | - "name": "keyword.control.multievent.syntax", |
102 | | - "match": "\\{([rRcCaAkKlLtTzSvwyYBWnX]{1}[0-9]*)?\\{" |
103 | | - }, |
104 | | - { |
105 | | - "name": "keyword.control.multievent.correct", |
106 | | - "match": "!\\w+" |
107 | | - }, |
108 | | - { |
109 | | - "name": "string.unquoted.multievent.content", |
110 | | - "match": "[^{}\\n]+(?=\\}\\})" |
| 101 | + "name": "meta.multievent.nested", |
| 102 | + "begin": "\\{([rRcCaBbAkKlLtTzSvwyYBWnXhH]{1}[0-9]*)\\{", |
| 103 | + "beginCaptures": { |
| 104 | + "1": { |
| 105 | + "name": "keyword.control.multievent.nested.identifier" |
| 106 | + } |
| 107 | + }, |
| 108 | + "end": "\\}\\}", |
| 109 | + "endCaptures": { |
| 110 | + "0": { |
| 111 | + "name": "punctuation.definition.multievent.nested.end" |
| 112 | + } |
| 113 | + }, |
| 114 | + "patterns": [ |
| 115 | + { |
| 116 | + "name": "string.unquoted.multievent.nested.content", |
| 117 | + "match": "[^{}~\\n]+" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "punctuation.definition.multievent.nested", |
| 121 | + "match": "[{}|~]+" |
| 122 | + } |
| 123 | + ] |
111 | 124 | }, |
112 | 125 | { |
113 | | - "name": "punctuation.definition.multievent", |
114 | | - "match": "[{}|~]+" |
| 126 | + "include": "hyperbook" |
115 | 127 | } |
116 | 128 | ] |
117 | 129 | }, |
|
137 | 149 | }, |
138 | 150 | "patterns": [ |
139 | 151 | { |
140 | | - "include": "text.html.markdown" |
| 152 | + "include": "hyperbook" |
141 | 153 | } |
142 | 154 | ] |
143 | 155 | }, |
|
209 | 221 | }, |
210 | 222 | "patterns": [ |
211 | 223 | { |
212 | | - "include": "text.html.markdown" |
| 224 | + "include": "hyperbook" |
213 | 225 | } |
214 | 226 | ] |
215 | 227 | }, |
|
381 | 393 | }, |
382 | 394 | "patterns": [ |
383 | 395 | { |
384 | | - "include": "text.html.markdown" |
| 396 | + "include": "hyperbook" |
385 | 397 | } |
386 | 398 | ] |
387 | 399 | }, |
|
567 | 579 | }, |
568 | 580 | "patterns": [ |
569 | 581 | { |
570 | | - "include": "text.html.markdown" |
| 582 | + "include": "hyperbook" |
571 | 583 | } |
572 | 584 | ] |
573 | 585 | }, |
|
0 commit comments