hafriedlander / php-peg

PEG (parsing expression grammar) compiler for PHP
Other
191 stars 53 forks source link

Rule comments #4

Open ksmolyanin opened 13 years ago

ksmolyanin commented 13 years ago

The only way to add a comment to the rule I have found is like this:

`pws: / [\t\r\n\x20]* /

"pws" means "Possible White Space"`

(before # must be two spaces but github text editor had removed them)

Here everything is important - writing it exactly on the next row and exactly using some leading white space! Isn't it quite strange?