\r
LITERAL\r
=\r
+ | NONE_LITERAL\r
| STRING_LITERAL\r
| NUMBER_LITERAL\r
| BOOLEAN_LITERAL\r
)\r
;\r
\r
+NONE_LITERAL\r
+ =\r
+ literal_type:`none`\r
+ ( "none" | "None" ) value:`None`\r
+ ;\r
+\r
IDENTIFIER\r
=\r
/[a-zA-Z_][a-zA-Z0-9_]*/\r
items,\r
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
+ elif literal_type == 'none':\r
+ return nodes.Const(\r
+ None,\r
+ lineno=lineno_from_parseinfo(ast['parseinfo'])\r
+ )\r
elif literal_type == 'list':\r
items = [\r
parse_literal(item) for item in ast['value']\r
{% if foo.attribute is sameas false %}\r
the foo attribute really is the `False` singleton\r
{% endif %}\r
+<ul{{ {'class': 'my_list', 'missing': none,\r
+ 'id': 'list-%d'|format(variable)}|xmlattr }}>\r
+...\r
+</ul>
\ No newline at end of file