krl-parser
Advanced tools
Comparing version 0.52.2 to 0.52.3
@@ -950,2 +950,6 @@ "use strict"; | ||
break; | ||
case "always": | ||
case "fired": | ||
case "notfired": | ||
break; // postlude | ||
default: | ||
@@ -956,2 +960,8 @@ actions.push(action(state)); | ||
} | ||
if (condition && actions.length === 0) { | ||
if (state.curr.token.type === "RAW" && state.curr.token.src === "{") { | ||
throw new ParseError_1.ParseError("Expected `every`, `sample`, or `choose`", state.curr.token); | ||
} | ||
throw new ParseError_1.ParseError("Expected an action after `if ... then`", state.curr.token); | ||
} | ||
return { | ||
@@ -958,0 +968,0 @@ loc: { start, end }, |
{ | ||
"name": "krl-parser", | ||
"version": "0.52.2", | ||
"version": "0.52.3", | ||
"description": "Parse KRL source code into an AST", | ||
@@ -57,3 +57,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "9b69de6447e0b96c174abc4d22c745df0f2b2b86" | ||
"gitHead": "90020b0033b51d5bd3c3606466a92da3308fb6b7" | ||
} |
Sorry, the diff of this file is not supported yet
133958
2293