mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
e1c458ae08
Don't narrow, just make a simple check against the given limit. (c-collect-line-comments): New function. (c-literal-limits): New function that finds the start and end pos of a comment or string surrounding point. (c-literal-limits-fast): A faster variant of `c-literal-limits' for newer Emacsen where the state returned from `parse-partial-sexp' contains the starting pos of the last literal. (c-parse-state): Use (c-point 'bod) instead of beginning-of-defun directly. (c-guess-basic-syntax): Fixed a few byte compiler warnings. (c-backward-to-start-of-do): Break infloop for invalid code, e.g. when someone types while (TRUE) { at the top of a buffer, we shouldn't hang when the { is typed! (c-backward-to-start-of-if): Ensure never move forward, not even if point < lim. (c-search-uplist-for-classkey): When searching up for a class key, instead of hardcoding the extended search for "extern", use the new variable c-extra-toplevel-key, which is language dependent. For C++, this variable includes the keyword "namespace" which will match C++ namespace introducing blocks. (c-guess-basic-syntax): Support for recognizing C++ namespace blocks, by elaborating on the mechanism used to find external language blocks. Searches which hardcoded "extern" now use c-extra-toplevel-key, a language dependent variable. Case clauses that were modified: CASE 5A.1, CASE 5A.4, CASE 5F, CASE 5I, CASE 14A. CASE 3: we can now determine whether we're at the beginning of a cpp macro definition, or inside the middle of one. Set syntax to 'cpp-macro in the former case, 'cpp-macro-cont in the latter. In both cases, the relpos is the beginning of the macro. (c-forward-syntactic-ws): Added code that skips forward over multi-line cpp macros. (c-beginning-of-macro): Moved, and made into a defsubst. This function can now actually find the beginning of a multi-line C preprocessor macro. (c-backward-syntactic-ws): Use c-beginning-of-macro to skip backwards over multi-line macro definitions. (c-in-literal, c-fast-in-literal): Use c-beginning-of-macro to find out whether we're in a multi-line macro definition. (c-fast-in-literal): Function which should be faster than c-in-literal. In XEmacs, this uses buffer-syntactic-context. |
||
---|---|---|
.. | ||
ada-mode.el | ||
asm-mode.el | ||
awk-mode.el | ||
c-mode.el | ||
cc-align.el | ||
cc-cmds.el | ||
cc-compat.el | ||
cc-defs.el | ||
cc-engine.el | ||
cc-langs.el | ||
cc-menus.el | ||
cc-mode.el | ||
cc-styles.el | ||
cc-vars.el | ||
cmacexp.el | ||
compile.el | ||
cperl-mode.el | ||
cplus-md.el | ||
cpp.el | ||
dcl-mode.el | ||
etags.el | ||
executable.el | ||
f90.el | ||
fortran.el | ||
hideif.el | ||
hideshow.el | ||
icon.el | ||
inf-lisp.el | ||
m4-mode.el | ||
make-mode.el | ||
mantemp.el | ||
meta-mode.el | ||
modula2.el | ||
octave-hlp.el | ||
octave-inf.el | ||
octave-mod.el | ||
pascal.el | ||
perl-mode.el | ||
prolog.el | ||
scheme.el | ||
sh-script.el | ||
simula.el | ||
tcl.el | ||
vhdl-mode.el |