Skip to content

Commit

Permalink
support ids that start with _
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfsaavedra committed Jun 3, 2024
1 parent 09f21f3 commit 42d3a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion puppetparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def t_ID_TYPE(t: LexToken):
return t

def t_ID(t: LexToken):
r"([a-z\$]|(::))((::)?[A-Za-z0-9\_\-]*)*"
r"([a-z_\$]|(::))((::)?[A-Za-z0-9\_\-]*)*"
t.type = keywords.get(t.value, statement_functions.get(t.value, "ID"))
return t

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "puppetparser"
version = "0.2.11"
version = "0.2.12"
description = "A parser from Puppet to an object model"
authors = ["Nuno Saavedra <nuno.saavedra@tecnico.ulisboa.pt>"]
license = "GPL-3.0"
Expand Down

0 comments on commit 42d3a6e

Please sign in to comment.