aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-08-15 09:48:32 +0100
committerMichael Williamson <mike@zwobble.org>2015-08-15 09:48:32 +0100
commit1507381c0afbd2c2aaefe4fba8970c4a875886e9 (patch)
treeabba1bfe4bd5a00f02b52b5d45bf06413464caf3 /lib
parentfaf6bf75e5921fc1b1c418d6e575a0439f498d8c (diff)
Update lop to 0.3.0
Diffstat (limited to 'lib')
-rw-r--r--lib/style-reader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js
index 2560971..6a86eab 100644
--- a/lib/style-reader.js
+++ b/lib/style-reader.js
@@ -65,7 +65,7 @@ function documentMatcherRule() {
var stringRule = lop.rules.then(
lop.rules.tokenOfType("string"),
function(value) {
- return value.substring(1, value.length - 1);
+ return value;
}
);
@@ -222,7 +222,7 @@ function tokenise(string) {
{name: "close-paren", regex: /\)/},
{name: "open-square-bracket", regex: /\[/},
{name: "close-square-bracket", regex: /\]/},
- {name: "string", regex: /'[^']*'/},
+ {name: "string", regex: /'([^']*)'/},
{name: "integer", regex: /([0-9]+)/},
{name: "choice", regex: /\|/}
]);