lib/rouge/lexers/sass/common.rb in rouge-0.3.1 vs lib/rouge/lexers/sass/common.rb in rouge-0.3.2

- old
+ new

@@ -1,9 +1,11 @@ module Rouge module Lexers # shared states with SCSS # TODO: make this less nasty to do SASS_COMMON = proc do + id = /[\w-]+/ + state :content_common do rule /@for\b/, 'Keyword', :for rule /@(debug|warn|if|while)/, 'Keyword', :value rule /(@mixin)(\s+)(#{id})/ do group 'Keyword'; group 'Text'; group 'Name.Function'