forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PuppetManifest: allow to use a underscore char and a hyphen char in a…
… name Close universal-ctags#1901. I refereed https://puppet.com/docs/puppet/6.0/lang_data_string.html#bare-words for fixing this. I also add a hyphen char to the list of acceptable chars.
- Loading branch information
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/tmp/12 input.pp /^ file { "\/tmp\/12": ensure => $ensure }$/;" r definition:one_one::two | ||
/tmp/34 input.pp /^ file { "\/tmp\/34": ensure => $ensure }$/;" r definition:three::four_four | ||
one_one::two input.pp /^define one_one::two($ensure) {$/;" d | ||
three::four_four input.pp /^define three::four_four($ensure) {$/;" d |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
define one_one::two($ensure) { | ||
file { "/tmp/12": ensure => $ensure } | ||
} | ||
|
||
define three::four_four($ensure) { | ||
file { "/tmp/34": ensure => $ensure } | ||
} | ||
|
This file contains 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 characters
This file contains 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 characters
9171923
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure hyphen is allowed in names of defined resources .
Lookint at the docs specific to the Class and defined resource type names hyphen is not mentioned there.
The regular expression to match is
The same change needs to apply to classStart too here. Underscore is also allowed for them.