summaryrefslogtreecommitdiff
path: root/scss/src
diff options
context:
space:
mode:
authorEevee <eevee.git@veekun.com>2013-05-22 19:09:17 -0700
committerEevee <eevee.git@veekun.com>2013-05-23 13:43:25 -0700
commit5120ef76f518dcbed718dace247923ea3a209152 (patch)
tree82d457f824b178fa10e90b1701efbbd8382147b2 /scss/src
parent83ba267afb4475e43bb3faac1ef82e50afc46e8f (diff)
downloadpyscss-5120ef76f518dcbed718dace247923ea3a209152.tar.gz
Avoid expanding colors on load.
Diffstat (limited to 'scss/src')
-rw-r--r--scss/src/grammar/grammar.g2
-rw-r--r--scss/src/grammar/grammar.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/src/grammar/grammar.g b/scss/src/grammar/grammar.g
index ef0f79c..9713f35 100644
--- a/scss/src/grammar/grammar.g
+++ b/scss/src/grammar/grammar.g
@@ -80,7 +80,7 @@ parser CalculatorParser:
atom {{ return atom }}
rule atom: LPAR expr_lst RPAR {{ return expr_lst }}
|
- ID {{ return Literal(StringValue(ID)) }}
+ ID {{ return Literal(parse_bareword(ID)) }}
|
FNCT {{ v = ArgspecLiteral([]) }}
LPAR [
diff --git a/scss/src/grammar/grammar.py b/scss/src/grammar/grammar.py
index 2afd4d5..eb4e798 100644
--- a/scss/src/grammar/grammar.py
+++ b/scss/src/grammar/grammar.py
@@ -173,7 +173,7 @@ class CalculatorParser(Parser):
return expr_lst
elif _token_ == 'ID':
ID = self._scan('ID')
- return Literal(StringValue(ID))
+ return Literal(parse_bareword(ID))
elif _token_ == 'FNCT':
FNCT = self._scan('FNCT')
v = ArgspecLiteral([])