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
This commit is contained in:
nex3 2007-02-02 03:33:24 +00:00
parent e74d7583ef
commit ae4ea92e41
1 changed files with 1 additions and 1 deletions

View File

@ -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]