mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Fix Haml and Sass grouping and highlighting
This commit is contained in:
@@ -437,6 +437,7 @@ HaXe:
|
|||||||
- .mtt
|
- .mtt
|
||||||
|
|
||||||
Haml:
|
Haml:
|
||||||
|
group: HTML
|
||||||
type: markup
|
type: markup
|
||||||
extensions:
|
extensions:
|
||||||
- .haml
|
- .haml
|
||||||
@@ -825,6 +826,12 @@ Rust:
|
|||||||
- .rc
|
- .rc
|
||||||
- .rs
|
- .rs
|
||||||
|
|
||||||
|
SCSS:
|
||||||
|
type: markup
|
||||||
|
group: CSS
|
||||||
|
extensions:
|
||||||
|
- .scss
|
||||||
|
|
||||||
SQL:
|
SQL:
|
||||||
type: data
|
type: data
|
||||||
searchable: false
|
searchable: false
|
||||||
@@ -832,6 +839,8 @@ SQL:
|
|||||||
- .sql
|
- .sql
|
||||||
|
|
||||||
Sass:
|
Sass:
|
||||||
|
type: markup
|
||||||
|
group: CSS
|
||||||
extensions:
|
extensions:
|
||||||
- .sass
|
- .sass
|
||||||
|
|
||||||
|
|||||||
3
test/fixtures/hello.haml
vendored
Normal file
3
test/fixtures/hello.haml
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
%p
|
||||||
|
Hello,
|
||||||
|
World!
|
||||||
11
test/fixtures/screen.sass
vendored
Normal file
11
test/fixtures/screen.sass
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
$blue: #3bbfce
|
||||||
|
$margin: 16px
|
||||||
|
|
||||||
|
.content-navigation
|
||||||
|
border-color: $blue
|
||||||
|
color: darken($blue, 9%)
|
||||||
|
|
||||||
|
.border
|
||||||
|
padding: $margin / 2
|
||||||
|
margin: $margin / 2
|
||||||
|
border-color: $blue
|
||||||
14
test/fixtures/screen.scss
vendored
Normal file
14
test/fixtures/screen.scss
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
$blue: #3bbfce;
|
||||||
|
$margin: 16px;
|
||||||
|
|
||||||
|
.content-navigation {
|
||||||
|
border-color: $blue;
|
||||||
|
color:
|
||||||
|
darken($blue, 9%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.border {
|
||||||
|
padding: $margin / 2;
|
||||||
|
margin: $margin / 2;
|
||||||
|
border-color: $blue;
|
||||||
|
}
|
||||||
@@ -348,6 +348,16 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
|
|
||||||
# https://github.com/Lexikos/AutoHotkey_L
|
# https://github.com/Lexikos/AutoHotkey_L
|
||||||
assert_equal Language['AutoHotkey'], blob("hello.ahk").language
|
assert_equal Language['AutoHotkey'], blob("hello.ahk").language
|
||||||
|
|
||||||
|
# Haml
|
||||||
|
assert_equal Language['Haml'], blob("hello.haml").language
|
||||||
|
assert_equal Language['HTML'], blob("hello.haml").language.group
|
||||||
|
|
||||||
|
# Sass
|
||||||
|
assert_equal Language['Sass'], blob("screen.sass").language
|
||||||
|
assert_equal Language['CSS'], blob("screen.sass").language.group
|
||||||
|
assert_equal Language['SCSS'], blob("screen.scss").language
|
||||||
|
assert_equal Language['CSS'], blob("screen.scss").language.group
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_lexer
|
def test_lexer
|
||||||
|
|||||||
Reference in New Issue
Block a user