Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Make goto definition understand classes like class::subbclass1::subclass2 #20

@cleonte

Description

@cleonte

Hi All,

its there any way to make language-puppet understand classes like

class:subbclass1::subclass2 and goto defintion to work?

for vim-cgats i found something like this on the interent

--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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions