-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Today the peg grammar handles distinguishing between a exists section etc.
e.g.
var tornadoBodyTypes = {
'?': 'exists',
'^': 'notExists',
'#': 'section',
'@': 'helper',
'+': 'block',
'<': 'inlinePartial',
'%': 'pragma'
};
Now that we have an AST transform pass, we should be able to push this logic out into a separate pass and keep the grammar generic.
proposal:
- a
codeBlockis{followed by acodeBlockIdentifier... - a
codeBlockIdentifieris one ofbacktick~!@#%^&*_+-=;,.?-- what's on a US QWERTY keyboard minus dollar, parens, braces, brackets, pipe, colon, double and single quotes, <, > and slash and back slash since these are going to be confusing or are used for other things already
issues:
- we might need to revisit what
bodiesare
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels