Skip to content

Commit 457ffbf

Browse files
committed
allow "-" in Haml tags
1 parent 368a28e commit 457ffbf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changes.textile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
55
h2. Changes in 1.1.2
66

77
* C++ scanner: Added C++11 keywords. [#195, thanks to Johnny Willemsen]
8+
* Haml scanner: Allow @-@ in tags.
89

910
h2. Changes in 1.1.1
1011

lib/coderay/scanners/haml.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def scan_tokens encoder, options
7575

7676
tag = false
7777

78-
if match = scan(/%[\w:]+\/?/)
78+
if match = scan(/%[-\w:]+\/?/)
7979
encoder.text_token match, :tag
8080
# if match = scan(/( +)(.+)/)
8181
# encoder.text_token self[1], :space

0 commit comments

Comments
 (0)