aboutsummaryrefslogtreecommitdiff
path: root/lib/style-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-09-27 21:15:45 +0100
committerMichael Williamson <mike@zwobble.org>2016-09-27 21:15:45 +0100
commite300cd5236d238fcc3d638d4c481af017d2c623a (patch)
treead8697112146da3706df7f5c239f7abd0767149e /lib/style-reader.js
parent99b2d79d13703939f37e3ecb5becfdbf928e604a (diff)
Expect end token when parsing style mappings
Diffstat (limited to 'lib/style-reader.js')
-rw-r--r--lib/style-reader.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js
index fe60930..db3bdbc 100644
--- a/lib/style-reader.js
+++ b/lib/style-reader.js
@@ -23,7 +23,8 @@ function createStyleRule() {
lop.rules.sequence.capture(lop.rules.optional(lop.rules.sequence(
lop.rules.tokenOfType("whitespace"),
lop.rules.sequence.capture(htmlPathRule())
- ).head()))
+ ).head())),
+ lop.rules.tokenOfType("end")
).map(function(documentMatcher, htmlPath) {
return {
from: documentMatcher,