From: Martin S. <ma...@ly...> - 2003-10-29 21:26:26
|
Chris Uzdavinis <ch...@uz...> wrote: > Hi, I'm finding a problem with C++ multiple inheritance in the current > CC-Mode, 5.31.6, There is no 5.31.6. You probably mean 5.30.6. > where with nested types it confuses the scope resolution operator :: > with the colon that starts the inheritance list. Thanks. This small patch fixes it: --- cc-engine.el 14 Oct 2003 22:08:28 -0000 5.419.2.14 +++ cc-engine.el 29 Oct 2003 21:20:10 -0000 5.419.2.15 @@ -4199,7 +4199,7 @@ (c-with-syntax-table c++-template-syntax-table (c-backward-token-2 0 t lim) (while (and (or (looking-at c-symbol-start) - (looking-at "[<,]")) + (looking-at "[<,]\\|::")) (zerop (c-backward-token-2 1 t lim)))) (skip-chars-forward "^:")))) |