summaryrefslogtreecommitdiff
path: root/src/plugins/css/CSSParser.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-05 14:14:32 +0100
committerAndreas Stöckel <andreas@somweyr.de>2014-12-05 14:14:32 +0100
commitbf59bc2edbb1f3f4d12bfbd8ed2663fbbb1900c0 (patch)
tree30d1fcfaf43045904883f1f068be6347487eedb4 /src/plugins/css/CSSParser.cpp
parentddbea4164e126739f39658627c04e7e23b71e090 (diff)
removed fatal flag from LoggableException, added constructor capable of using a PosType
Diffstat (limited to 'src/plugins/css/CSSParser.cpp')
-rw-r--r--src/plugins/css/CSSParser.cpp37
1 files changed, 6 insertions, 31 deletions
diff --git a/src/plugins/css/CSSParser.cpp b/src/plugins/css/CSSParser.cpp
index 22752dd..6653d9e 100644
--- a/src/plugins/css/CSSParser.cpp
+++ b/src/plugins/css/CSSParser.cpp
@@ -125,18 +125,9 @@ void CSSParser::parseSelectors(Rooted<SelectorNode> root,
case 2:
// as the parseSelector is supposed to parse only a SelectorPath
// there should not be more than one leaf.
-<<<<<<< HEAD:application/src/core/CSSParser.cpp
- throw LoggableException{
- "Internal Error: More than one leaf in SelectorPath!", true,
- tokenizer.getInput()};
-=======
throw ParserException{
- "Internal Error: More than one leaf in SelectorPath!", "",
- // TODO: Line handling?
- // tokenizer.getInput().getLine(),
- // tokenizer.getInput().getColumn()
- };
->>>>>>> 8a4203636865b6edc380b731c68d3483ca110a27:application/src/plugins/css/CSSParser.cpp
+ "Internal Error: More than one leaf in SelectorPath!",
+ tokenizer.getInput()};
}
// if we find a comma, we can proceed parsing selectors.
Token t;
@@ -298,27 +289,11 @@ bool CSSParser::expect(int expectedType, CodeTokenizer &tokenizer, Token &t,
if (end || t.tokenId != expectedType) {
if (force) {
if (end) {
-<<<<<<< HEAD:application/src/core/CSSParser.cpp
- throw LoggableException{"Unexpected end of file!", true,
- tokenizer.getInput()};
- } else {
- throw LoggableException{"Unexpected token!", true,
- tokenizer.getInput()};
-=======
- 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()
- };
->>>>>>> 8a4203636865b6edc380b731c68d3483ca110a27:application/src/plugins/css/CSSParser.cpp
+ throw ParserException{"Unexpected token!",
+ tokenizer.getInput()};
}
} else {
tokenizer.resetPeek();