Skip to content

Commit fd684cb

Browse files
runarap
authored andcommitted
Add support for SCSS files
1 parent e012c07 commit fd684cb

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

after/syntax/scss.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
" Language: Colorful CSS Color Preview
2+
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
3+
4+
if !( has('gui_running') || &t_Co==256 ) | finish | endif
5+
6+
call css_color#init('css', 'scssAttribute,scssComment,cssComment,scssVariableValue')

tests/example.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
dl {
2+
background: #333;
3+
}
4+
5+
dt {
6+
background: #666;
7+
}
8+
9+
dd {
10+
background: #999;
11+
}
12+
13+
/*
14+
* Multi line comment: #123, #456
15+
*/
16+
// Single line comment: #123456
17+
18+
$link-color: rgba(144, 0, 0, .5);
19+
$text-color: hsl(0, 100%, 50%);
20+
21+
ul {
22+
color: white;
23+
24+
li {
25+
color: black;
26+
}
27+
}

0 commit comments

Comments
 (0)