mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
@@ -32,7 +32,7 @@ module Linguist
|
||||
#
|
||||
# Returns an array
|
||||
def self.detectable_markup
|
||||
["CSS", "Less", "Sass", "TeX"]
|
||||
["CSS", "Less", "Sass", "Stylus", "TeX"]
|
||||
end
|
||||
|
||||
# Detect languages by a specific type
|
||||
|
||||
@@ -1530,6 +1530,12 @@ Standard ML:
|
||||
- sml
|
||||
primary_extension: .sml
|
||||
|
||||
Stylus:
|
||||
type: markup
|
||||
group: CSS
|
||||
lexer: Text only
|
||||
primary_extension: .styl
|
||||
|
||||
SuperCollider:
|
||||
type: programming
|
||||
color: "#46390b"
|
||||
|
||||
@@ -381,6 +381,9 @@
|
||||
".sig",
|
||||
".sml"
|
||||
],
|
||||
"Stylus": [
|
||||
".styl"
|
||||
],
|
||||
"SuperCollider": [
|
||||
".sc",
|
||||
".scd"
|
||||
|
||||
31
samples/Stylus/demo.styl
Normal file
31
samples/Stylus/demo.styl
Normal file
@@ -0,0 +1,31 @@
|
||||
border-radius()
|
||||
-webkit-border-radius arguments
|
||||
-moz-border-radius arguments
|
||||
border-radius arguments
|
||||
|
||||
a.button
|
||||
border-radius 5px
|
||||
|
||||
fonts = helvetica, arial, sans-serif
|
||||
|
||||
body {
|
||||
padding: 50px;
|
||||
font: 14px/1.4 fonts;
|
||||
}
|
||||
|
||||
form
|
||||
input[type=text]
|
||||
padding: 5px
|
||||
border: 1px solid #eee
|
||||
color: #ddd
|
||||
|
||||
textarea
|
||||
@extends form input[type=text]
|
||||
padding: 10px
|
||||
|
||||
$foo
|
||||
color: #FFF
|
||||
|
||||
.bar
|
||||
background: #000
|
||||
@extends $foo
|
||||
Reference in New Issue
Block a user