aboutsummaryrefslogtreecommitdiff
path: root/lib/styles
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-19 12:16:34 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-19 12:16:34 +0000
commit2df392487052d543fe412383ef6d29886678edbf (patch)
tree427c93ee2128c546076c32a9814efa094bde8968 /lib/styles
parentf3676789408dfaf898823c1fbe3cb7d6888a1fd4 (diff)
Support parsing style name prefixes
Diffstat (limited to 'lib/styles')
-rw-r--r--lib/styles/parser/tokeniser.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/styles/parser/tokeniser.js b/lib/styles/parser/tokeniser.js
index c60e134..fa45ff9 100644
--- a/lib/styles/parser/tokeniser.js
+++ b/lib/styles/parser/tokeniser.js
@@ -15,6 +15,7 @@ function tokenise(string) {
{name: "whitespace", regex: /\s+/},
{name: "arrow", regex: /=>/},
{name: "equals", regex: /=/},
+ {name: "startsWith", regex: /\^=/},
{name: "open-paren", regex: /\(/},
{name: "close-paren", regex: /\)/},
{name: "open-square-bracket", regex: /\[/},