Merge pull request #1096 from ajaxorg/mode/stylus

Add stylus support
This commit is contained in:
Harutyun Amirjanyan 2012-11-12 08:39:31 -08:00
commit 0013b85bc6
6 changed files with 310 additions and 9 deletions

View file

@ -104,6 +104,7 @@ var docs = {
"docs/scala.scala": "Scala",
"docs/scss.scss": "SCSS",
"docs/sh.sh": "SH",
"docs/stylus.styl": "Stylus",
"docs/sql.sql": {name: "SQL", wrapped: true},
"docs/svg.svg": "SVG",
"docs/tcl.tcl": "Tcl",

View file

@ -0,0 +1,55 @@
// I'm a comment!
/*
* Adds the given numbers together.
*/
/*!
* Adds the given numbers together.
*/
asdasdasdad(df, ad=23)
add(a, b = a)
a + b
green(#0c0)
add(10, 5)
// => 15
add(10)
add(a, b)
&asdasd
(arguments)
@sdfsdf
.signatures
background-color #e0e8e0
border 1px solid grayLighter
box-shadow 0 0 3px grayLightest
border-radius 3px
padding 3px 5px
"adsads"
margin-left 0
list-style none
.signature
list-style none
display: inline
margin-left 0
> li
display inline
is not
.signature-values
list-style none
display inline
margin-left 0
&:before
content '→'
margin 0 5px
> li
!important
unless

View file

@ -76,6 +76,7 @@ var modesByName = {
scss: ["SCSS" , "scss|sass"],
sh: ["SH" , "sh|bash|bat"],
sql: ["SQL" , "sql"],
stylus: ["Stylus" , "styl|stylus"],
svg: ["SVG" , "svg"],
tcl: ["Tcl" , "tcl"],
text: ["Text" , "txt"],