Add css/sass/less for ctags
This commit is contained in:
parent
8b9807df20
commit
f652263386
18
ctags/ctags
18
ctags/ctags
@ -1,3 +1,4 @@
|
||||
|
||||
--langdef=js
|
||||
--langmap=js:.js
|
||||
--regex-JavaScript=/([A-Za-z0-9._$\(\)]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/m,method/
|
||||
@ -24,3 +25,20 @@
|
||||
--langmap=coffee:.coffee
|
||||
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/
|
||||
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
|
||||
|
||||
--langdef=css
|
||||
--langmap=css:.css
|
||||
--langmap=css:+.scss
|
||||
--langmap=css:+.sass
|
||||
--langmap=css:+.styl
|
||||
--langmap=css:+.less
|
||||
--regex-css=/^[ \t]*(([A-Za-z0-9_-]+[ \t\n,]+)+)\{/\1/t,tag,tags/
|
||||
--regex-css=/^[ \t]*#([A-Za-z0-9_-]+)/#\1/i,id,ids/
|
||||
--regex-css=/^[ \t]*\.([A-Za-z0-9_-]+)/.\1/c,class,classes/
|
||||
|
||||
--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/
|
||||
|
Loading…
Reference in New Issue
Block a user