-
-
Save davewongillies/cdb55b6476d5ecf184759648c82965d5 to your computer and use it in GitHub Desktop.
Revisions
-
davewongillies revised this gist
May 18, 2017 . No changes.There are no files selected for viewing
-
davewongillies revised this gist
May 18, 2017 . 3 changed files with 30 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # In your ~/.ctags -h pp --langdef=puppet --langmap=puppet:.pp --regex-puppet=/^[[:space:]]*class[[:space:]]*([a-z][a-zA-Z0-9_:\-]+)/\1/c,class/ --regex-puppet=/^[[:space:]]*stage[[:space:]]*([a-zA-Z0-9_:\-]+)/\1/t,stage/ --regex-puppet=/^[[:space:]]*site[[:space:]]*([a-zA-Z0-9_\-]+)/\1/s,site/ --regex-puppet=/^[[:space:]]*node[[:space:]]*[\'|\"]*([a-zA-Z0-9_\.\-]+)[\'|\"]*/\1/n,node/ --regex-puppet=/^[[:space:]]*define[[:space]]*([a-z][a-zA-Z0-9_:\-]+)/\1/d,definition/ --regex-puppet=/^[[:space:]]*(include|require)[[:space:]]*([a-zA-Z0-9_:]+)/\2/i,include/ --regex-puppet=/^[[:space:]]*\$([a-z][a-zA-Z0-9_:]+)[[:space]]*=/\1/v,variable/ --regex-puppet=/^[[:space:]]*([a-zA-Z0-9_:]+)[[:space:]]*\{ *[\'|\"]*([^\'\"]+)[\'|\"]*:/\1[\2]/r,resource/ --regex-puppet=/([A-Z][a-zA-Z0-9_:]+)[[:space:]]*\{/\1/f,default/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ " In your ~/.vimrc let g:tagbar_type_puppet = { \ 'ctagstype': 'puppet', \ 'kinds': [ \'c:class', \'t:stage', \'s:site', \'n:node', \'d:definition', \'i:include', \'v:variable', \'r:resource', \'f:default' \] \} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,24 +0,0 @@ -
trlinkin renamed this gist
Oct 10, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
trlinkin created this gist
Oct 10, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ --- In your ~/.ctags --langdef=puppet --langmap=puppet:.pp --regex-puppet=/^class[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/c,class/ --regex-puppet=/^site[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/s,site/ --regex-puppet=/^node[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/n,node/ --regex-puppet=/^define[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^ *([a-zA-Zi:_]+) *{ *(.*) *:/\1[\2]/r,resource/ --regex-puppet=/^ *([A-Z][a-zA-Z0-9_:]+) *{/\1/f,default/ --- In your ~/.vimrc let g:tagbar_type_puppet = { \ 'ctagstype': 'puppet', \ 'kinds': [ \'c:class', \'s:site', \'n:node', \'d:definition', \'r:resource', \'f:default' \] \}