summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/haml.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2017-11-02 23:25:41 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2017-11-02 23:25:41 +0100
commit853787554d17570dace133340e3ec555b0e56e0d (patch)
treec3fe74694c0ea315d7df7d8d35869df61b1191bb /lib/coderay/scanners/haml.rb
parentffdd9ddb5cb5ab19a04ee0a714fa08d8d70f3437 (diff)
parente15cf96405177153e1418496a7a8e85beaa679fb (diff)
downloadcoderay-853787554d17570dace133340e3ec555b0e56e0d.tar.gz
Merge branch 'master' into possible-speedups
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