Commits

Armin Ronacher  committed 772c026 Draft

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

  • Participants
  • Parent commits 2fd9ac6

Comments (0)

Files changed (1)

File sphinx/domains/cpp.py

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