Skip to content

Instantly share code, notes, and snippets.

@dreki
Created October 16, 2014 14:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dreki/da853aeb4d80c03a4448 to your computer and use it in GitHub Desktop.
Save dreki/da853aeb4d80c03a4448 to your computer and use it in GitHub Desktop.
SCSS rules for ctags
--langdef=scss
--langmap=scss:.scss
--regex-scss=/^[ \t]*\.([A-Za-z0-9_-]+)/.\1/c,class,classes/
--regex-scss=/^[ \t]*#([A-Za-z0-9_-]+)/#\1/i,id,ids/
--regex-scss=/^[ \t]*(([A-Za-z0-9_-]+[ \t\n,]+)+)\{/\1/t,tag,tags/
--regex-scss=/^[ \t]*@media\s+([A-Za-z0-9_-]+)/\1/m,media,medias/
--regex-scss=/^[ \t]*\$([A-Za-z0-9_-]+)/\$\1/v,var,variables/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment