diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-05 14:16:27 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2014-12-05 14:16:27 +0100 |
commit | 30765a8bbf30aafad89a632afc39966c5b4029b8 (patch) | |
tree | b9540230f7ac8ac68d66caf7d727e7413a56f631 /src/plugins/css/CSSParser.cpp | |
parent | fddd8a6fc3c9a7971111a345a83283a0a1662f9f (diff) | |
parent | bf59bc2edbb1f3f4d12bfbd8ed2663fbbb1900c0 (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/plugins/css/CSSParser.cpp')
-rw-r--r-- | src/plugins/css/CSSParser.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/plugins/css/CSSParser.cpp b/src/plugins/css/CSSParser.cpp index 00b5af5..85d8858 100644 --- a/src/plugins/css/CSSParser.cpp +++ b/src/plugins/css/CSSParser.cpp @@ -135,11 +135,8 @@ void CSSParser::parseSelectors(Rooted<SelectorNode> root, // as the parseSelector is supposed to parse only a SelectorPath // there should not be more than one leaf. throw ParserException{ - "Internal Error: More than one leaf in SelectorPath!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + "Internal Error: More than one leaf in SelectorPath!", + tokenizer.getInput()}; } // if we find a comma, we can proceed parsing selectors. Token t; @@ -301,19 +298,11 @@ bool CSSParser::expect(int expectedType, CodeTokenizer &tokenizer, Token &t, if (end || t.tokenId != expectedType) { if (force) { if (end) { - throw ParserException{ - "Unexpected end of file!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + throw ParserException{"Unexpected end of file!", + tokenizer.getInput()}; } else { - throw ParserException{ - "Unexpected token!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + throw ParserException{"Unexpected token!", + tokenizer.getInput()}; } } else { tokenizer.resetPeek(); |