lib/minisyntax/highlighter/haml.rb in minisyntax-0.2.1 vs lib/minisyntax/highlighter/haml.rb in minisyntax-0.2.2
- old
+ new
@@ -1,9 +1,9 @@
module MiniSyntax
module Highlighter
module Haml
def self.highlight(code)
- code.gsub! /^( *)(%[a-z\-]+)?(([\.\#][a-z\-_]+)*)((<)?(>)?&?)(=.+?$)?/i do
+ code.gsub! /^( *)(%[a-z1-9\-]+)?(([\.\#][a-z\-_]+)*)((<)?(>)?&?)(=.+?$)?/i do
result = $1 || ''
tag = $2
classes_and_id = $3
options = $5
ruby = $8