From 71b77f3f678d33d0e0e05daf2bcb856a4bedb386 Mon Sep 17 00:00:00 2001 From: starg Date: Fri, 26 Aug 2016 09:50:45 +0900 Subject: [PATCH] =?utf8?q?=E7=A9=BA=E3=81=AE=E3=82=B9=E3=83=86=E3=83=BC?= =?utf8?q?=E3=83=88=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92=E7=A6=81=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/driver/msgcallback.cpp | 2 +- src/parser/parser_phrase.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/driver/msgcallback.cpp b/src/driver/msgcallback.cpp index 38035fa..aececcb 100644 --- a/src/driver/msgcallback.cpp +++ b/src/driver/msgcallback.cpp @@ -53,7 +53,7 @@ MessagePrinter::MessagePrinter(IStdErrWriter* pStdErrWriter) // error_common.hpp {Message::MessageID::GrammarBlockBegin, "unexpected token '{0}'. expecting '{'"}, - {Message::MessageID::GrammarBlockEnd, "unexpected token '{0}', did you forget ';' or '}'?"}, + {Message::MessageID::GrammarBlockEnd, "unexpected token '{0}'"}, {Message::MessageID::GrammarEndParenthesis, "unexpected token '{0}', did you forget ')'?"}, {Message::MessageID::GrammarSemicolon, "unexpected token '{0}', did you forget ';'?"}, diff --git a/src/parser/parser_phrase.hpp b/src/parser/parser_phrase.hpp index 412f71a..21ec62d 100644 --- a/src/parser/parser_phrase.hpp +++ b/src/parser/parser_phrase.hpp @@ -156,9 +156,8 @@ class NoteSequence : public pegtl::plus class NoteSequenceStatement : public pegtl::seq< AttributeOptionalSequence, - pegtl::if_then_else< + pegtl::if_must< NoteSequence, - pegtl::must>, pegtl::one<';'> > > -- 2.11.0