diff options
| author | Alan Mackenzie | 2008-11-03 19:03:36 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-11-03 19:03:36 +0000 |
| commit | f412a5677093d3be2df074fccdfb7b431e38be10 (patch) | |
| tree | 81761bdb031127aa8aa363d423a723756b40eb49 | |
| parent | ca4ea39fe3852c94f8ab14bba50ba46dd8bddf69 (diff) | |
| download | emacs-f412a5677093d3be2df074fccdfb7b431e38be10.tar.gz emacs-f412a5677093d3be2df074fccdfb7b431e38be10.zip | |
(c-forward-label): Fix for QT macros.
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 43052386408..c45913e1827 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -5954,7 +5954,8 @@ comment at the start of cc-engine.el for more info." | |||
| 5954 | label-end | 5954 | label-end |
| 5955 | qt-symbol-idx | 5955 | qt-symbol-idx |
| 5956 | macro-start ; if we're in one. | 5956 | macro-start ; if we're in one. |
| 5957 | label-type) | 5957 | label-type |
| 5958 | kwd) | ||
| 5958 | (cond | 5959 | (cond |
| 5959 | ;; "case" or "default" (Doesn't apply to AWK). | 5960 | ;; "case" or "default" (Doesn't apply to AWK). |
| 5960 | ((looking-at c-label-kwds-regexp) | 5961 | ((looking-at c-label-kwds-regexp) |
| @@ -6107,12 +6108,13 @@ comment at the start of cc-engine.el for more info." | |||
| 6107 | ((looking-at ":\\([^:]\\|\\'\\)") ; A single colon. | 6108 | ((looking-at ":\\([^:]\\|\\'\\)") ; A single colon. |
| 6108 | (forward-char) | 6109 | (forward-char) |
| 6109 | (setq label-type | 6110 | (setq label-type |
| 6110 | (if (string= "signals" ; Special QT macro | 6111 | (if (or (string= "signals" ; Special QT macro |
| 6111 | (buffer-substring-no-properties start label-end)) | 6112 | (setq kwd (buffer-substring-no-properties start label-end))) |
| 6113 | (string= "Q_SIGNALS" kwd)) | ||
| 6112 | 'qt-1kwd-colon | 6114 | 'qt-1kwd-colon |
| 6113 | 'goto-target))) | 6115 | 'goto-target))) |
| 6114 | ((and qt-symbol-idx | 6116 | ((and qt-symbol-idx |
| 6115 | (search-forward-regexp "\\=slots\\>" limit t) | 6117 | (search-forward-regexp "\\=\\(slots\\|Q_SLOTS\\)\\>" limit t) |
| 6116 | (progn (c-forward-syntactic-ws limit) | 6118 | (progn (c-forward-syntactic-ws limit) |
| 6117 | (looking-at ":\\([^:]\\|\\'\\)"))) ; A single colon | 6119 | (looking-at ":\\([^:]\\|\\'\\)"))) ; A single colon |
| 6118 | (forward-char) | 6120 | (forward-char) |