From f652263386dd05e763dd1412c09f1f34d89d1528 Mon Sep 17 00:00:00 2001 From: rocknrollMarc Date: Sun, 26 Jul 2015 21:29:17 -0500 Subject: [PATCH] Add css/sass/less for ctags --- ctags/ctags | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ctags/ctags b/ctags/ctags index ce9b6d7..71b1f70 100644 --- a/ctags/ctags +++ b/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/