summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 06:13:32 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 06:13:32 +0200
commitdc6071129cdc1bcd15129147bbc4d92ba870f007 (patch)
tree19418075490a1e60544d4fbccae3635bfd6183e2 /lib
parent45bb0c576b67b7a3c0dead02078b3a16b5583154 (diff)
downloadcoderay-dc6071129cdc1bcd15129147bbc4d92ba870f007.tar.gz
close open token groups in Sass scanner
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/scanners/sass.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/coderay/scanners/sass.rb b/lib/coderay/scanners/sass.rb
index 65d40b0..0ba383f 100644
--- a/lib/coderay/scanners/sass.rb
+++ b/lib/coderay/scanners/sass.rb
@@ -218,6 +218,14 @@ module Scanners
@state = states
end
+ while state = states.pop
+ if state == :sass_inline
+ encoder.end_group :inline
+ elsif state == :string
+ encoder.end_group :string
+ end
+ end
+
encoder
end