Fixed a priority error that caused operator++ and operator-> to not be parsed properly in the C++ domain. This fixes #861

This commit is contained in:
Armin Ronacher
2012-01-25 13:41:11 +01:00
parent 1e44ab00e3
commit 26f5a9b4d5

View File

@@ -34,10 +34,10 @@ _template_arg_re = re.compile(r'(%s)|([^,>]+)' % _string_re.pattern, re.S)
_operator_re = re.compile(r'''(?x)
\[\s*\]
| \(\s*\)
| [!<>=/*%+|&^-]=?
| \+\+ | --
| (<<|>>)=? | ~ | && | \| | \|\|
| ->\*? | \,
| [!<>=/*%+|&^-]=?
| (<<|>>)=? | ~ | && | \| | \|\|
''')
_id_shortwords = {