mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
CC-Mode: Remove unneeded backslashes from doc strings and regular expressions
Also make miscellaneous amendments. * lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el * lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el * lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of unneeded backslashes. * lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant "\\|\r" from regular expression. * lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name.
This commit is contained in:
parent
933c0bb96e
commit
55fdbec443
7 changed files with 37 additions and 36 deletions
|
|
@ -788,7 +788,7 @@ IGNORE-LABELS is non-nil. (FIXME: Doesn't work if we stop at a known
|
|||
statement start keyword.) Otherwise, each label is treated as a
|
||||
separate statement.
|
||||
|
||||
Macros are ignored \(i.e. skipped over) unless point is within one, in
|
||||
Macros are ignored (i.e. skipped over) unless point is within one, in
|
||||
which case the content of the macro is treated as normal code. Aside
|
||||
from any normal statement starts found in it, stop at the first token
|
||||
of the content in the macro, i.e. the expression of an \"#if\" or the
|
||||
|
|
@ -4706,7 +4706,7 @@ comment at the start of cc-engine.el for more info."
|
|||
"Return non-nil if the point is on or directly after an identifier.
|
||||
Keywords are recognized and not considered identifiers. If an
|
||||
identifier is detected, the returned value is its starting position.
|
||||
If an identifier ends at the point and another begins at it \(can only
|
||||
If an identifier ends at the point and another begins at it (can only
|
||||
happen in Pike) then the point for the preceding one is returned.
|
||||
|
||||
Note that this function might do hidden buffer changes. See the
|
||||
|
|
@ -4905,7 +4905,7 @@ over the final token in a buffer, up to EOB."
|
|||
(defun c-forward-token-2 (&optional count balanced limit)
|
||||
"Move forward by tokens.
|
||||
A token is defined as all symbols and identifiers which aren't
|
||||
syntactic whitespace \(note that multicharacter tokens like \"==\" are
|
||||
syntactic whitespace (note that multicharacter tokens like \"==\" are
|
||||
treated properly). Point is always either left at the beginning of a
|
||||
token or not moved at all. COUNT specifies the number of tokens to
|
||||
move; a negative COUNT moves in the opposite direction. A COUNT of 0
|
||||
|
|
@ -4917,11 +4917,11 @@ LIMIT sets the limit for the movement and defaults to the point limit.
|
|||
The case when LIMIT is set in the middle of a token, comment or macro
|
||||
is handled correctly, i.e. the point won't be left there.
|
||||
|
||||
Return the number of tokens left to move \(positive or negative). If
|
||||
Return the number of tokens left to move (positive or negative). If
|
||||
BALANCED is true, a move over a balanced paren counts as one. Note
|
||||
that if COUNT is 0 and no appropriate token beginning is found, 1 will
|
||||
be returned. Thus, a return value of 0 guarantees that point is at
|
||||
the requested position and a return value less \(without signs) than
|
||||
the requested position and a return value less (without signs) than
|
||||
COUNT guarantees that point is at the beginning of some token.
|
||||
|
||||
Note that this function might do hidden buffer changes. See the
|
||||
|
|
@ -5065,7 +5065,7 @@ inside a literal there.
|
|||
If PAREN-LEVEL is non-nil, an additional restriction is added to
|
||||
ignore matches in nested paren sexps. The search will also not go
|
||||
outside the current list sexp, which has the effect that if the point
|
||||
should be moved to BOUND when no match is found \(i.e. NOERROR is
|
||||
should be moved to BOUND when no match is found (i.e. NOERROR is
|
||||
neither nil nor t), then it will be at the closing paren if the end of
|
||||
the current list sexp is encountered first.
|
||||
|
||||
|
|
@ -5090,7 +5090,7 @@ hand not safe to assume that the \"look behind\" subexpression never
|
|||
matches syntactic whitespace.
|
||||
|
||||
Bug: Unbalanced parens inside cpp directives are currently not handled
|
||||
correctly \(i.e. they don't get ignored as they should) when
|
||||
correctly (i.e. they don't get ignored as they should) when
|
||||
PAREN-LEVEL is set.
|
||||
|
||||
Note that this function might do hidden buffer changes. See the
|
||||
|
|
@ -8965,7 +8965,7 @@ point unchanged and return nil."
|
|||
|
||||
;; Search syntactically to the end of the declarator (";",
|
||||
;; ",", a closing paren, eob etc) or to the beginning of an
|
||||
;; initializer or function prototype ("=" or "\\s\(").
|
||||
;; initializer or function prototype ("=" or "\\s(").
|
||||
;; Note that square brackets are now not also treated as
|
||||
;; initializers, since this broke when there were also
|
||||
;; initializing brace lists.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue