diff options
author | Eevee <eevee.git@veekun.com> | 2013-05-22 19:09:17 -0700 |
---|---|---|
committer | Eevee <eevee.git@veekun.com> | 2013-05-23 13:43:25 -0700 |
commit | 5120ef76f518dcbed718dace247923ea3a209152 (patch) | |
tree | 82d457f824b178fa10e90b1701efbbd8382147b2 /scss/src | |
parent | 83ba267afb4475e43bb3faac1ef82e50afc46e8f (diff) | |
download | pyscss-5120ef76f518dcbed718dace247923ea3a209152.tar.gz |
Avoid expanding colors on load.
Diffstat (limited to 'scss/src')
-rw-r--r-- | scss/src/grammar/grammar.g | 2 | ||||
-rw-r--r-- | scss/src/grammar/grammar.py | 2 |
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([]) |