|
@@ -0,0 +1,87 @@
|
|
|
+--exclude=*.min.js
|
|
|
+--exclude=node_modules
|
|
|
+
|
|
|
+--langdef=JavaScript
|
|
|
+--langmap=JavaScript:.js
|
|
|
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\{/\1/,object/
|
|
|
+--regex-JavaScript=/([A-Za-z0-9._$()]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/,function/
|
|
|
+--regex-JavaScript=/function[ \t]+([A-Za-z0-9._$]+)[ \t]*\(([^)])\)/\1/,function/
|
|
|
+--regex-JavaScript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\[/\1/,array/
|
|
|
+--regex-JavaScript=/([^= ]+)[ \t]*=[ \t]*[^"]'[^']*/\1/,string/
|
|
|
+--regex-JavaScript=/([^= ]+)[ \t]*=[ \t]*[^']"[^"]*/\1/,string/
|
|
|
+
|
|
|
+--langdef=CoffeeScript
|
|
|
+--langmap=CoffeeScript:.coffee
|
|
|
+--regex-CoffeeScript=/^[ \t]*(@?[a-zA-Z$_\.0-9]+)[ \t]*(=|\:)[ \t]*(\(.*\))?[ \t]*(-|=)>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*([a-zA-Z$_0-9]+\:\:[a-zA-Z$_\.0-9]+)[ \t]*(=|\:)[ \t]*(\(.*\))?[ \t]*(-|=)>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*describe[ \t]"(.+)"[ \t]*,[ \t]+[-=]>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*describe[ \t]'(.+)'[ \t]*,[ \t]+[-=]>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*it[ \t]"([^"]+)"[ \t]*,[ \t]+[-=]>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*it[ \t]'([^']+)'[ \t]*,[ \t]+[-=]>/\1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*f+describe[ \t]"(.+)"[ \t]*,[ \t]+[-=]>/focused\: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*f+describe[ \t]'(.+)'[ \t]*,[ \t]+[-=]>/focused: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*f+it[ \t]"([^"]+)"[ \t]*,[ \t]+[-=]>/focused: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*f+it[ \t]'([^']+)'[ \t]*,[ \t]+[-=]>/focused: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*xdescribe[ \t]"(.+)"[ \t]*,[ \t]+[-=]>/disabled\: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*xdescribe[ \t]'(.+)'[ \t]*,[ \t]+[-=]>/disabled: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*xit[ \t]"([^"]+)"[ \t]*,[ \t]+[-=]>/disabled: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*xit[ \t]'([^']+)'[ \t]*,[ \t]+[-=]>/disabled: \1/f,function/
|
|
|
+--regex-CoffeeScript=/^[ \t]*class[ \t]*([a-zA-Z$_\.0-9]+)[ \t]*/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Css
|
|
|
+--langmap=Css:.css
|
|
|
+--langmap=Css:+.less
|
|
|
+--langmap=Css:+.scss
|
|
|
+--regex-Css=/^[ \t]*(.+)[ \t]*\{/\1/f,function/
|
|
|
+--regex-Css=/^[ \t]*(.+)[ \t]*,[ \t]*$/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Sass
|
|
|
+--langmap=Sass:.sass
|
|
|
+--regex-Sass=/^[ \t]*([#.]*[a-zA-Z_0-9]+)[ \t]*$/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Less
|
|
|
+--langmap=Less:.less
|
|
|
+--regex-Less=/^[ t]*.([A-Za-z0-9_-]+)/1/c,class,classes/
|
|
|
+--regex-Less=/^[ t]*#([A-Za-z0-9_-]+)/1/i,id,ids/
|
|
|
+--regex-Less=/^[ t]*(([A-Za-z0-9_-]+[ tn,]+)+){/1/t,tag,tags/
|
|
|
+--regex-Less=/^[ t]*@medias+([A-Za-z0-9_-]+)/1/m,media,medias/
|
|
|
+
|
|
|
+--langdef=Yaml
|
|
|
+--langmap=Yaml:.yaml
|
|
|
+--langmap=Yaml:+.yml
|
|
|
+--regex-Yaml=/^[ \t]*([a-zA-Z_0-9 ]+)[ \t]*\:[ \t]*/\1/f,function/
|
|
|
+
|
|
|
+--regex-Html=/^[ \t]*<([a-zA-Z]+)[ \t]*.*>/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Markdown
|
|
|
+--langmap=Markdown:.md
|
|
|
+--langmap=Markdown:+.markdown
|
|
|
+--langmap=Markdown:+.mdown
|
|
|
+--langmap=Markdown:+.mkd
|
|
|
+--langmap=Markdown:+.mkdown
|
|
|
+--langmap=Markdown:+.ron
|
|
|
+--regex-Markdown=/^#+[ \t]*([^#]+)/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Json
|
|
|
+--langmap=Json:.json
|
|
|
+--regex-Json=/^[ \t]*"([^"]+)"[ \t]*\:/\1/f,function/
|
|
|
+
|
|
|
+--langdef=Cson
|
|
|
+--langmap=Cson:.cson
|
|
|
+--langmap=Cson:+.gyp
|
|
|
+--regex-Cson=/^[ \t]*'([^']+)'[ \t]*\:/\1/f,function/
|
|
|
+--regex-Cson=/^[ \t]*"([^"]+)"[ \t]*\:/\1/f,function/
|
|
|
+--regex-Cson=/^[ \t]*([^'"]+)[ \t]*\:/\1/f,function/
|
|
|
+
|
|
|
+--langmap=C++:+.mm
|
|
|
+
|
|
|
+--langmap=Ruby:+(Rakefile)
|
|
|
+
|
|
|
+--langmap=Php:+.module
|
|
|
+
|
|
|
+--langdef=Go
|
|
|
+--langmap=Go:.go
|
|
|
+--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
|
|
|
+--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
|
|
|
+--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/
|
|
|
+
|