summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/haml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/haml.rb')
-rw-r--r--lib/coderay/scanners/haml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/haml.rb b/lib/coderay/scanners/haml.rb
index 5433790..d516ba9 100644
--- a/lib/coderay/scanners/haml.rb
+++ b/lib/coderay/scanners/haml.rb
@@ -75,7 +75,7 @@ module Scanners
tag = false
- if match = scan(/%[\w:]+\/?/)
+ if match = scan(/%[-\w:]+\/?/)
encoder.text_token match, :tag
# if match = scan(/( +)(.+)/)
# encoder.text_token self[1], :space