summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml6
-rw-r--r--Changes.textile1
-rw-r--r--lib/coderay/scanners/haml.rb2
3 files changed, 6 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 75a57bb..96233c6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,14 +8,16 @@ rvm:
- 2.0
- 2.1
- 2.2
- - 2.3.3
- - 2.4.0
+ - 2.3
+ - 2.4
- ruby-head
- jruby
- rbx
branches:
only:
- master
+before_script:
+- if (ruby -e "exit RUBY_VERSION.to_f >= 2.4"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
matrix:
allow_failures:
- rvm: ruby-head
diff --git a/Changes.textile b/Changes.textile
index d77cff2..6b44854 100644
--- a/Changes.textile
+++ b/Changes.textile
@@ -5,6 +5,7 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
h2. Changes in 1.1.2
* C++ scanner: Added C++11 keywords. [#195, thanks to Johnny Willemsen]
+* Haml scanner: Allow @-@ in tags.
h2. Changes in 1.1.1
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