summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/haml.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2017-11-02 23:16:14 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2017-11-02 23:16:14 +0100
commit1f2367aead6b76f694041cb2688652ed70ae215a (patch)
tree2753212c91c93d61afa2d12aac85d5b3a873e52b /lib/coderay/scanners/haml.rb
parent1bdaeef6c43436e4984f5b96cb17618f82832225 (diff)
parente15cf96405177153e1418496a7a8e85beaa679fb (diff)
downloadcoderay-1f2367aead6b76f694041cb2688652ed70ae215a.tar.gz
Merge branch 'master' into dsl
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