﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36465	Variables containing dashes are now allowed by the parser	Baptiste Mispelon	Hailey Johnson	"This was originally reported in https://code.djangoproject.com/ticket/35816#comment:19

As noted in the link above, the fix for #35816 introduced was I believe to be an unintended side-effect to the parsing rules for variable names.

The documentation for variable names [1] states that:

> Variable names consist of any combination of alphanumeric characters and the underscore (""_"") but may not start with an underscore, and may not be a number. The dot (""."") also appears in variable sections, although that has a special meaning, as indicated below. Importantly, you cannot have spaces or punctuation characters in variable names.

My understanding is that dashes (`-`) do not count as alphanumeric and should therefore not be allowed in a variable name.


[1] https://docs.djangoproject.com/en/dev/ref/templates/language/#variables"	Bug	closed	Template system	dev	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
