| Don't know what we can do about that - it is like writing class if or any other combination of class and a keyword - it is just nonsense to the parser. I understand that site may not be as well known as a keyword and therefore special. What is happening is that parser sees class and that there is no valid path forward with the grammar of puppet given the next token site (in this case) - It therefore gives up and says "I got as far as class, but there is no way that class keyword makes sense here". Maybe it is enough to tweak the error message, but it will not be able to do anything special for site. And what could possibly be done with the error message depends on the exact circumstances under which the error in question is detected and reported - there maybe other situations - and the error message may be vague on purpose because it kind of does not know enough to say more. |