From c58a9b626320aa0694c816fcb3efa590427f21d8 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 6 May 2010 19:07:51 -0700 Subject: [PATCH] [Docs] Enable SCSS highlighting using the css highlighter --- doc-src/lib/data_sources/syntax_highter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc-src/lib/data_sources/syntax_highter.rb b/doc-src/lib/data_sources/syntax_highter.rb index f0caee72..36eb8ff7 100644 --- a/doc-src/lib/data_sources/syntax_highter.rb +++ b/doc-src/lib/data_sources/syntax_highter.rb @@ -26,7 +26,7 @@ class SyntaxHighlighterFilter < Nanoc3::Filter def run(content, params={}) doc = Nokogiri::HTML.fragment(content) - [:html, :css, :sass].each do |format| + [:html, :css, :sass, :scss].each do |format| doc.css("pre.source-code.#{format}, code.#{format}").each do |el| new_element = Nokogiri.make(highlight(el.inner_text, format)) new_element.set_attribute("class", new_element.attribute("class").value+" "+el.attribute("class").value)