diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-09-27 21:15:45 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-09-27 21:15:45 +0100 |
| commit | e300cd5236d238fcc3d638d4c481af017d2c623a (patch) | |
| tree | ad8697112146da3706df7f5c239f7abd0767149e /lib/style-reader.js | |
| parent | 99b2d79d13703939f37e3ecb5becfdbf928e604a (diff) | |
Expect end token when parsing style mappings
Diffstat (limited to 'lib/style-reader.js')
| -rw-r--r-- | lib/style-reader.js | 3 |
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, |
