Skip to content

Commit a9aa0e0

Browse files
committed
lexer: add missing abstract data types
This commit adds the missing types from https://www.puppet.com/docs/puppet/8/lang_data_abstract.html
1 parent ef12979 commit a9aa0e0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/puppet-lint/lexer.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,20 @@ def heredoc_queue
139139
Float|
140140
Hash|
141141
Integer|
142+
Iterable|
143+
Iterator|
142144
NotUndef|
143145
Numeric|
144146
Optional|
145147
Pattern|
146148
Regexp|
147149
Resource|
150+
RichData|
148151
Runtime|
149152
Scalar|
153+
ScalarData|
154+
SemVer|
155+
SemVerRange|
150156
Sensitive|
151157
String|
152158
Struct|

spec/unit/puppet-lint/lexer_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,12 @@
13921392

13931393
it_behaves_like 'a type matcher', 'Error'
13941394
it_behaves_like 'a type matcher', 'Binary'
1395+
it_behaves_like 'a type matcher', 'Iterable'
1396+
it_behaves_like 'a type matcher', 'Iterator'
1397+
it_behaves_like 'a type matcher', 'RichData'
1398+
it_behaves_like 'a type matcher', 'ScalarData'
1399+
it_behaves_like 'a type matcher', 'SemVer'
1400+
it_behaves_like 'a type matcher', 'SemVerRange'
13951401
end
13961402

13971403
context ':HEREDOC without interpolation' do

0 commit comments

Comments
 (0)