From ad14ea91a52563c83a3aba0c7d279cd5535b77e4 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 18:22:02 +0400 Subject: Fixing formats and started work on inline function body. --- gen/org/jetbrains/markdown/MarkdownParser.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'gen/org/jetbrains/markdown/MarkdownParser.java') 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_, ""); 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) { -- cgit