Sha256: 2fcf6f028921b7cdb96e176eecb7ba9fcb616021b6c0bac90f08aaba74d5d589
Contents?: true
Size: 753 Bytes
Versions: 9
Compression:
Stored size: 753 Bytes
Contents
# -*- coding: utf-8 -*- # module Rouge module Lexers load_const :SassCommon, 'sass/common.rb' class Scss < SassCommon 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
9 entries across 9 versions & 1 rubygems