Skip to content

Instantly share code, notes, and snippets.

@droopy4096
Created March 13, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save droopy4096/cf5ed9254d9ac76cdee4f395528ad06c to your computer and use it in GitHub Desktop.
Save droopy4096/cf5ed9254d9ac76cdee4f395528ad06c to your computer and use it in GitHub Desktop.
--langdef=Puppet
--langmap=Puppet:.pp
--regex-Puppet=/^class[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/c,class/
--regex-Puppet=/^node[ \t]*([a-zA-Z0-9_"'\.\-]+)[ \t]*/\1/n,node/
--regex-Puppet=/^site[ \t]*([a-zA-Z0-9_"'\.\-]+)[ \t]*/\1/s,site/
--regex-Puppet=/^define[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/
--regex-Puppet=/^ *([a-zA-Z:_]+) *\{ *(.*) *:/\1[\2]/r,resource/
--regex-Puppet=/^ *(@[a-zA-Z:_]+) *\{ *(.*) *:/\1[\2]/v,virtual_resource/
--regex-Puppet=/^ *([A-Z][a-zA-Z0-9_:]+) *\{/\1/f,default/

file names above have / replaced with _ due to gist restrictions

!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.8 //
foo modules/foo/manifests/init.pp /^class foo {$/;" c
foo::bar modules/foo/manifests/bar.pp /^class foo::bar {$/;" c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment