More liberal set of Sass constant names allowed.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@330 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-02-02 03:30:13 +00:00
parent 37bf037ed2
commit e74d7583ef
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ module Sass
} }
# The regular expression used to parse constants # The regular expression used to parse constants
MATCH = /^#{Regexp.escape(CONSTANT_CHAR.chr)}([^\s#{(SYMBOLS.keys + [ ESCAPE_CHAR, ?= ]).map {|c| Regexp.escape("#{c.chr}") }}]+)\s*=\s*(.+)/ MATCH = /^#{Regexp.escape(CONSTANT_CHAR.chr)}([^\s\=]+)\s*=\s*(.+)/
# First-order operations # First-order operations
FIRST_ORDER = [:times, :div, :mod] FIRST_ORDER = [:times, :div, :mod]