Skip to content

Instantly share code, notes, and snippets.

@dcordero
Created April 10, 2018 09:38
Show Gist options
  • Save dcordero/78380762a78a483a260971dec7c59c4b to your computer and use it in GitHub Desktop.
Save dcordero/78380762a78a483a260971dec7c59c4b to your computer and use it in GitHub Desktop.
Swift .ctags
--langdef=Swift
--langmap=Swift:+.swift
--regex-swift=/(var|let)[ \t]+([^:=]+).*$/\2/,variable/
--regex-swift=/func[ \t]+([^\(\)]+)\([^\(\)]*\)/\1/,function/
--regex-swift=/class[ \t]+([^:\{]+).*$/\1/,class/
--regex-swift=/protocol[ \t]+([^:\{]+).*$/\1/,protocol/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment