From: Daniel Karbach Date: Sun, 26 Aug 2012 19:45:23 +0000 (+0200) Subject: use a syntax that my ide recognizes valid -.- X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=24ca4a4d63d0a706c6c7676192588dd21893ca32;p=l2e.git use a syntax that my ide recognizes valid -.- --- diff --git a/src/loader/Parser.cpp b/src/loader/Parser.cpp index cbb006c..39f0f87 100644 --- a/src/loader/Parser.cpp +++ b/src/loader/Parser.cpp @@ -44,12 +44,10 @@ void Parser::ParseStatement() { } } -Tokenizer::Token Parser::GetToken() { - try { - return tok.GetNext(); - } catch (Tokenizer::LexerError &e) { - throw Error(file, e.Line(), e.what()); - } +Tokenizer::Token Parser::GetToken() try { + return tok.GetNext(); +} catch (Tokenizer::LexerError &e) { + throw Error(file, e.Line(), e.what()); } void Parser::ParseExportDirective() {