diff options
Diffstat (limited to 'gen/org/jetbrains')
-rw-r--r-- | gen/org/jetbrains/markdown/MarkdownParser.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gen/org/jetbrains/markdown/MarkdownParser.java b/gen/org/jetbrains/markdown/MarkdownParser.java index ab84cd5e..05a1ada8 100644 --- a/gen/org/jetbrains/markdown/MarkdownParser.java +++ b/gen/org/jetbrains/markdown/MarkdownParser.java @@ -336,19 +336,36 @@ public class MarkdownParser implements PsiParser { } /* ********************************************************** */ - // '{' DirectiveName DirectiveParams '}' + // '{' DirectiveName Space+ DirectiveParams '}' public static boolean Directive(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Directive")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, "<directive>"); r = consumeToken(b, "{"); r = r && DirectiveName(b, l + 1); + r = r && Directive_2(b, l + 1); r = r && DirectiveParams(b, l + 1); r = r && consumeToken(b, "}"); exit_section_(b, l, m, DIRECTIVE, r, false, null); return r; } + // Space+ + private static boolean Directive_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "Directive_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, SPACE); + int c = current_position_(b); + while (r) { + if (!consumeToken(b, SPACE)) break; + if (!empty_element_parsed_guard_(b, "Directive_2", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + /* ********************************************************** */ // Word public static boolean DirectiveName(PsiBuilder b, int l) { |