Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Created August 22, 2012 08:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thinktainer/3423840 to your computer and use it in GitHub Desktop.
Save thinktainer/3423840 to your computer and use it in GitHub Desktop.
Add powershell ctags
ctags.exe -R --langdef=powershell --langmap=powershell:.ps1,.psm1 --regex-powershell="/^function[\t ]*([a-zA-Z0-9_-]+)/\1/d,definition/" --regex-powershell="/^filter[\t ]*([a-zA-Z0-9_-]+)/\1/d,definition/" *
@rovinbhandari
Copy link

I cannot get it to work; I get:
ctags.exe: Warning: Unknown language "powershell:.ps1,.psm1" in "langmap" option

@jkraft-ppa
Copy link

@rovinbhandari I thought the same thing, but that's just a warning because the language isn't defined in the ctags config. Check whether it created a tags file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment