Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AdamNiederer/ssass-mode
Write Sass without a Turing Machine
https://github.com/AdamNiederer/ssass-mode
emacs sass
Last synced: about 2 months ago
JSON representation
Write Sass without a Turing Machine
- Host: GitHub
- URL: https://github.com/AdamNiederer/ssass-mode
- Owner: AdamNiederer
- License: gpl-3.0
- Created: 2017-02-26T19:49:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-11T01:32:35.000Z (over 4 years ago)
- Last Synced: 2024-04-14T06:52:31.522Z (5 months ago)
- Topics: emacs, sass
- Language: Emacs Lisp
- Size: 25.4 KB
- Stars: 6
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GPLv3](https://img.shields.io/badge/license-GPLv3-brightgreen.svg)
# ssass-mode
This mode is a clean-room clone of Natalie Weizenbaum's [sass-mode](https://github.com/nex3/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 highlightedTo prevent false-positives with lowercase hex colors, I recommend the excellent
[rainbow-mode](http://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/packages/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+