#1275: class names cannot begin with a digit
--------------------+-------------------------------------------------------
Reporter: marthag | Owner: community
Type: defect | Status: new
Priority: normal | Component: language
Version: 0.24.4 | Severity: normal
Keywords: | Stage: Unreviewed
Patch: None | Complexity: Unknown
--------------------+-------------------------------------------------------
While a digit-only class name works, a class name that begins with one or
more digits followed by a letter fails:
{{{
# cat test.pp
class 1foo {
notice("test")
}
# puppet test.pp
Could not parse for environment development: Syntax error at 'foo' at
/tmp/test.pp:1
# cat test1.pp
class 1 {
notice("test")
}
# puppet test1.pp
# cat test2.pp
class foo1 {
notice("test")
}
# puppet test2.pp
# cat test3.pp
class f1oo {
notice("test")
}
# puppet test3.pp
# cat test4.pp
class 123foo {
notice("test")
}
# puppet test4.pp
Could not parse for environment development: Syntax error at 'foo' at
/tmp/test4.pp:1
#
}}}
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1275>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation