Skip to content

Instantly share code, notes, and snippets.

@konrad1977
Created October 13, 2022 16:05
Show Gist options
  • Save konrad1977/b99e60d5f6cb1342b92f4c97d08e4926 to your computer and use it in GitHub Desktop.
Save konrad1977/b99e60d5f6cb1342b92f4c97d08e4926 to your computer and use it in GitHub Desktop.
swift.ctags
--recurse
--exclude=.git
--exclude=venv
--exclude=Pods
--exclude=Carthage
--exclude=vendor
--exclude=node_modules
--exclude=build
--exclude=.build
--langdef=swift
--langmap=swift:+.swift
--kinddef-swift=v,variable,variables
--kinddef-swift=f,function,functions
--kinddef-swift=s,struct,structs
--kinddef-swift=c,class,classes
--kinddef-swift=p,protocol,protocols
--kinddef-swift=e,enum,enums
--kinddef-swift=t,typealias,typealiases
--regex-swift=/(var|let)[ \t]+([^:=]+).*$/\2/v/
--regex-swift=/func[ \t]+([^\(\)]+)\([^\(\)]*\)/\1/f/
--regex-swift=/struct[ \t]+([^:\{]+).*$/\1/s/
--regex-swift=/class[ \t]+([^:\{]+).*$/\1/c/
--regex-swift=/protocol[ \t]+([^:\{]+).*$/\1/p/
--regex-swift=/enum[ \t]+([^:\{]+).*$/\1/e/
--regex-swift=/(typealias)[ \t]+([^:=]+).*$/\2/v/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment