|
| 1 | +--langdef=markdown |
| 2 | +--langmap=markdown:.md |
| 3 | +--regex-markdown=/^#[ \t]+(.*)/- \1/h,heading1/ |
| 4 | +--regex-markdown=/^##[ \t]+(.*)/- \1/h,heading2/ |
| 5 | +--regex-markdown=/^###[ \t]+(.*)/- \1/h,heading3/ |
| 6 | +--regex-markdown=/^####[ \t]+(.*)/- \1/h,heading4/ |
| 7 | +--regex-markdown=/^#####[ \t]+(.*)/- \1/h,heading5/ |
| 8 | +--regex-markdown=/^######[ \t]+(.*)/- \1/h,heading6/ |
| 9 | +--regex-markdown=/^#######[ \t]+(.*)/- \1/h,heading7/ |
| 10 | + |
| 11 | +--langdef=latex |
| 12 | +--langmap=latex:.tex |
| 13 | +--regex-latex=/\\label\{([^}]*)\}/\1/l,label/ |
| 14 | +--regex-latex=/\\section\{([^}]*)\}/\1/s,section/ |
| 15 | +--regex-latex=/\\subsection\{([^}]*)\}/\1/t,subsection/ |
| 16 | +--regex-latex=/\\subsubsection\{([^}]*)\}/\1/u,subsubsection/ |
| 17 | +--regex-latex=/\\section\*\{([^}]*)\}/\1/s,section/ |
| 18 | +--regex-latex=/\\subsection\*\{([^}]*)\}/\1/t,subsection/ |
| 19 | +--regex-latex=/\\subsubsection\*\{([^}]*)\}/\1/u,subsubsection/ |
| 20 | + |
| 21 | +--langdef=Rust |
| 22 | +--langmap=Rust:.rs |
| 23 | +--regex-Rust=/^[ \t]*(#\[[^\]]\][ \t]*)*(pub[ \t]+)?(extern[ \t]+)?("[^"]+"[ \t]+)?(unsafe[ \t]+)?fn[ \t]+([a-zA-Z0-9_]+)/\6/f,functions,function definitions/ |
| 24 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?type[ \t]+([a-zA-Z0-9_]+)/\2/T,types,type definitions/ |
| 25 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?enum[ \t]+([a-zA-Z0-9_]+)/\2/g,enum,enumeration names/ |
| 26 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?struct[ \t]+([a-zA-Z0-9_]+)/\2/s,structure names/ |
| 27 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?mod[ \t]+([a-zA-Z0-9_]+)/\2/m,modules,module names/ |
| 28 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?(static|const)[ \t]+(mut[ \t]+)?([a-zA-Z0-9_]+)/\4/c,consts,static constants/ |
| 29 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?(unsafe[ \t]+)?trait[ \t]+([a-zA-Z0-9_]+)/\3/t,traits,traits/ |
| 30 | +--regex-Rust=/^[ \t]*(pub[ \t]+)?(unsafe[ \t]+)?impl([ \t\n]*<[^>]*>)?[ \t]+(([a-zA-Z0-9_:]+)[ \t]*(<[^>]*>)?[ \t]+(for)[ \t]+)?([a-zA-Z0-9_]+)/\5 \7 \8/i,impls,trait implementations/ |
| 31 | +--regex-Rust=/^[ \t]*macro_rules![ \t]+([a-zA-Z0-9_]+)/\1/d,macros,macro definitions/ |
| 32 | + |
| 33 | +--langdef=Go |
| 34 | +--langmap=Go:.go |
| 35 | +--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/ |
| 36 | +--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/ |
| 37 | +--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/ |
| 38 | + |
| 39 | +--langdef=Ruby |
| 40 | +--langmap=Ruby:.rb.erb.rake |
| 41 | +--regex-ruby=/(^|;)[ \t]*(class|module)[ \t]+([A-Z][[:alnum:]_]+(::[A-Z][[:alnum:]_]+)+)/\3/c,class,constant/ |
| 42 | + |
| 43 | +--langdef=javascript |
| 44 | +--langmap=javascript:.js.es6.es.jsx--javascript-kinds=-c-f-m-p-v |
| 45 | +--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([A-Za-z0-9_$]+)[ \t]*=[ \t]*\[/\2/A,Array,Arrays/ |
| 46 | +--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([A-Z][A-Za-z0-9_$]+)[ \t]*=[ \t]*function/\2/C,Class,Classes/--regex-javascript=/^[ \t]*class[ \t]+([A-Za-z0-9_$]+)/\1/C,Class,Classes/ |
| 47 | +--regex-javascript=/^[ \t]*export[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\3/E,Export,Exports/--regex-javascript=/^[ \t]*export[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\5/E,export,Exports/--regex-javascript=/^[ \t]*export[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\7/E,Export,Exports/--regex-javascript=/^[ \t]*export[ \t]?(var|let|const)[ \t]+([A_Za-z0-9_$]+)/\2/E,Export,Exports/--regex-javascript=/^[ \t]*export[ \t]?(var|let|const)[ \t]+([A_Za-z0-9_$]+)[ \t]*[^,]+,[ \t]*([A_Za-z0-9_$]+)/\3/E,Export,Exports/--regex-javascript=/^[ \t]*export[ \t]?(var|let|const)[ \t]+([A_Za-z0-9_$]+)[ \t]*[^,]+,[ \t]*([A_Za-z0-9_$]+)[ \t]*[^,]+,[ \t]*([A_Za-z0-9_$]+)/\4/E,Export,Exports/ |
| 48 | +--regex-javascript=/^[ \t]*function[ \t]*([A-Za-z0-9_$]+)[ \t\(]/\1/F,Function,Functions/--regex-javascript=/^[ \t]*[\(]function[ \t]*([A-Za-z0-9_$]+)[ \t\(]/\1/F,Function,Functions/--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([a-z][A-Za-z0-9_$]+)[ \t]*=[ \t]*function[^\*][^\*]/\2/F,Function,Functions/--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([a-z][A-Za-z0-9_$]+)[ \t]*=[ \t]*\([^\*]/\2/F,Function,Functions/ |
| 49 | +--regex-javascript=/^[ \t]*function[ \t]*\*[ \t]*([A-Za-z0-9_$]+)/\1/G,Generator,Generators/--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([a-z][A-Za-z0-9_$]+)[ \t]*=[ \t]*function([ \t]*\*)/\2/G,Generator,Genrators/--regex-javascript=/^[ \t]*(\*[ \t])([A-Za-z0-9_$]+)[ \t]*\(.*\)[ \t]*{/\2/G,Generator,Generators/ |
| 50 | +--regex-javascript=/^[ \t]*import[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\3/I,Import,Imports/--regex-javascript=/^[ \t]*import[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\5/I,Import,Imports/--regex-javascript=/^[ \t]*import[ \t]?({[ \t]*)*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])*([A-Za-z0-9_]+),[ \t]*([A-Za-z0-9_\*]*[ \t]as[ \t])([A-Za-z0-9_]+)/\7/I,Import,Imports/ |
| 51 | +--regex-javascript=/^[ \t]*this\.([A-Za-z0-9_$]+)[ \t]*=.*{$/\1/M,Method,Methods/--regex-javascript=/^[ \t]*([A-Za-z0-9_$]+)[ \t]*[:=][ \t]*[\(]*function[ \t]*\(/\1/M,Method,Methods/--regex-javascript=/^[ \t]*static[ \t]+([A-Za-z0-9_$]+)[ \t]*\(/\1/M,Method,Methods/--regex-javascript=/^[ \t]*([A-Za-z0-9_$]+)\(.*\)[ \t]*{/\1/M,Method,Methods/ |
| 52 | +--regex-javascript=/^[ \t]*(this\.)*([A-Za-z0-9_$]+)[ \t]*[:=].*[,;]*[^{]$/\2/P,Property,Properties/ |
| 53 | +--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([A-Za-z0-9_$]+)[ \t]*=[ \t]*{/\2/O,Object,Objects/ |
| 54 | +--regex-javascript=/\/\/[ \t]*(FIXME|TODO|BUG|NOBUG|\?\?\?|\!\!\!|HACK|XXX)[ \t]*\:*(.*)/\1/T,Tag,Tags/ |
| 55 | +--regex-javascript=/^[ \t]*(var|let|const)[ \t]+([A-Za-z0-9_$]+)[ \t]*=[ \t]*[^\[{]*;$/\2/V,Variable,Variables/ |
| 56 | + |
| 57 | +--langdef=less |
| 58 | +--langmap=less:.less |
| 59 | +--regex-less=/^[ \t&]*#([A-Za-z0-9_-]+)/\1/i,id,ids/ |
| 60 | +--regex-less=/^[ \t&]*\.([A-Za-z0-9_-]+)/\1/c,class,classes/ |
| 61 | +--regex-less=/^[ \t]*(([A-Za-z0-9_-]+[ \t\n,]+)+)\{/\1/t,tag,tags/ |
| 62 | +--regex-less=/^[ \t]*@media\s+([A-Za-z0-9_-]+)/\1/m,media,medias/ |
| 63 | +--regex-less=/^[ \t]*(@[A-Za-z0-9_-]+):/\1/v,variable,variables/ |
| 64 | +--regex-less=/\/\/[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/ |
| 65 | + |
| 66 | +--langdef=scss |
| 67 | +--langmap=scss:.scss |
| 68 | +--regex-scss=/^[ \t]*@mixin ([A-Za-z0-9_-]+)/\1/m,mixin,mixins/ |
| 69 | +--regex-scss=/^[ \t]*\$([A-Za-z0-9_-]+)/\1/v,variable,variables/ |
| 70 | +--regex-scss=/^([A-Za-z0-9_-]*)*\.([A-Za-z0-9_-]+) *[,{]/\2/c,class,classes/ |
| 71 | +--regex-scss=/^[ \t&]+\.([A-Za-z0-9_-]+) *[,{]/\1/c,class,classes/ |
| 72 | +--regex-scss=/^(.*)*\#([A-Za-z0-9_-]+) *[,{]/\2/i,id,ids/ |
| 73 | +--regex-scss=/^[ \t&]*#([A-Za-z0-9_-]+)/\1/i,id,ids/ |
| 74 | +--regex-scss=/(^([A-Za-z0-9_-])*([A-Za-z0-9_-]+)) *[,|\{]/\1/t,tag,tags/ |
| 75 | +--regex-scss=/(^([^\/\/])*)[ \t]+([A-Za-z0-9_-]+)) *[,|\{]/\3/t,tag,tags/ |
| 76 | +--regex-scss=/(^(.*, *)([A-Za-z0-9_-]+)) *[,|\{]/\3/t,tag,tags/ |
| 77 | +--regex-scss=/(^[ \t]+([A-Za-z0-9_-]+)) *[,|\{]/\1/t,tag,tags/ |
| 78 | +--regex-scss=/^[ \t]*@media\s+([A-Za-z0-9_-]+)/\1/d,media,media/ |
| 79 | +--regex-scss=/\/\/[ \t]*(FIXME|TODO)[ \t]*\:*(.*)/\1/T,Tag,Tags/ |
| 80 | + |
| 81 | +--regex-html=/id="([A-Za-z0-9_-]+)"/\1/i,id,ids/ |
| 82 | +--regex-html=/class="([A-Za-z0-9_-]+)"/\1/c,class,classes/ |
| 83 | + |
| 84 | +--langdef=json |
| 85 | +--langmap=json:.json |
| 86 | +--regex-json=/^[ \t]*"(.*)":/\1/k,key,keys/ |
| 87 | + |
| 88 | +--langdef=yaml |
| 89 | +--langmap=yaml:.yml.yaml |
| 90 | +--regex-yaml=/^[ \t]*(.*):/\1/k,key,keys/ |
| 91 | + |
| 92 | +--langdef=dockerfile |
| 93 | +--langmap=dockerfile:+(Dockerfile) |
| 94 | +--regex-dockerfile=/^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)/\1/d,dockerfile,dockerfiles/ |
| 95 | + |
| 96 | +--exclude=\*.min.\* |
| 97 | +--exclude=\*.map |
| 98 | +--exclude=\*.swp |
| 99 | +--exclude=\*.bak |
| 100 | +--exclude=*.bundle.* |
| 101 | +--exclude=tags |
| 102 | +--exclude=min |
| 103 | +--exclude=vendor |
| 104 | +--exclude=target |
| 105 | +--exclude=node_modules |
| 106 | +--exclude=bower_components |
| 107 | +--exclude=test |
| 108 | +--exclude=__test__ |
| 109 | +--exclude=build |
| 110 | +--exclude=dist |
| 111 | + |
| 112 | +--links=no |
0 commit comments