Sha256: 14235c8e0260c47a917857e331b14d6e61cb98c86a67ec076e3f0c34d4327147
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
# -*- coding: utf-8 -*- # module Rouge module Lexers load_const :SassCommon, 'sass/common.rb' class Scss < SassCommon title "SCSS" desc "SCSS stylesheets (sass-lang.com)" tag 'scss' filenames '*.scss' mimetypes 'text/x-scss' state :root do rule /\s+/, Text rule %r(//.*?\n), Comment::Single rule %r(/[*].*?[*]/)m, Comment::Multiline rule /@import\b/, Keyword, :value mixin :content_common rule(/(?=[^;{}][;}])/) { push :attribute } rule(/(?=[^;{}:]+:[^a-z])/) { push :attribute } rule(//) { push :selector } end state :end_section do rule /\n/, Text rule(/[;{}]/) { token Punctuation; reset_stack } end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
gitlab-rouge-1.9.2 | lib/rouge/lexers/scss.rb |
rouge-1.9.1 | lib/rouge/lexers/scss.rb |
rouge-1.9.0 | lib/rouge/lexers/scss.rb |
rouge-1.8.0 | lib/rouge/lexers/scss.rb |