Skip to content

AdamNiederer/ssass-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

GPLv3

ssass-mode

This mode is a clean-room clone of Natalie Weizenbaum's sass-mode, with a few compromises to support mmm-mode. If sass-mode doesn't break for you, use that.

Features

  • Syntax highlighting
  • Syntactic indentation
  • mmm-mode support

Limitations

Because parsing Sass with regular expressions is difficult, a few concessions were made with syntax highlighting. ssass-mode differs from sass-mode in the following ways

  • Class selectors must start with a letter to be highlighted
  • ID selectors must start with a lowercase letter to be highlighted

To prevent false-positives with lowercase hex colors, I recommend the excellent rainbow-mode for color highlighting.

Installation

ssass-mode should be on MELPA soon, but for now, (load-file "ssass-mode.el") in your .emacs.d/init.el should be used for installation.

Functions

  • ssass-mode - Enable ssass mode
  • ssass-eval-buffer - Run the current buffer through Sass, and display the output
  • ssass-eval-region - Run the current region through Sass, and display the output

Default Keybindings

  • C-c C-r - sass-eval-region
  • C-c C-c - sass-eval-buffer

License

GPLv3+

About

Write Sass without a Turing Machine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •