From ae4ea92e416ba60b4bb3f4873ffc7714b1ea7d8b Mon Sep 17 00:00:00 2001 From: nex3 Date: Fri, 2 Feb 2007 03:33:24 +0000 Subject: [PATCH] Oops... forgot why active arithmetic characters can't be in constants :p. git-svn-id: svn://hamptoncatlin.com/haml/trunk@331 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/sass/constant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sass/constant.rb b/lib/sass/constant.rb index e70fc3aa..1784ba97 100644 --- a/lib/sass/constant.rb +++ b/lib/sass/constant.rb @@ -25,7 +25,7 @@ module Sass } # The regular expression used to parse constants - MATCH = /^#{Regexp.escape(CONSTANT_CHAR.chr)}([^\s\=]+)\s*=\s*(.+)/ + MATCH = /^#{Regexp.escape(CONSTANT_CHAR.chr)}([^\s#{(SYMBOLS.keys + [ ESCAPE_CHAR, ?= ]).map {|c| Regexp.escape("#{c.chr}") }}]+)\s*=\s*(.+)/ # First-order operations FIRST_ORDER = [:times, :div, :mod]