1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
emacs/lisp/progmodes
Alan Mackenzie a85befa4aa Fix Pike Mode's autodoc doc comments style's continued lines.
* lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws): Recognize
matches of c-doc-line-join-re as syntactic whitespace.
(c-find-decl-prefix-search): Recognize and move over matches of
c-doc-line-join-re as whitespace.
(c-find-decl-spots): Before moving backward a char, check (bobp).  Before
moving forward over a comment, check it isn't possibly a "bright" comment.

* lisp/progmodes/cc-fonts.el (c-get-doc-comment-style): New function,
extracted from c-compose-keywords-list.
(c-compose-keywords-list): Call the above new function.
(pike-font-lock-keywords, pike-font-lock-keywords-2)
(pike-font-lock-keywords-3): Call c-set-doc-comment-res.
(c-doc-line-join-re, c-doc-bright-comment-start-re, c-doc-line-join-end-ch):
New variables.
(c-set-doc-comment-re-element, c-set-doc-comment-char-list): New macros.
(c-set-doc-comment-res): New function.
(c-font-lock-doc-comments): For consistency and repeatability, in a sequence
of C++ style doc comments, don't fontify the region between BOL and the
comment marker.
(autodoc-line-join-re, autodoc-bright-comment-start-re)
(autodoc-line-join-end-ch): New variables.

* lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): New
functions.
(c-change-expand-fl-region, c-context-expand-fl-region): Call the above two
new functions for extra possibilities for the start and end of a construct.

* doc/misc/cc-mode.texi (Doc Comments): Add a sentence drawing attention to
the possibility of fontifying constructs within a doc comment.
2019-04-20 11:30:55 +00:00
..
ada-mode.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
ada-prj.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ada-stmt.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ada-xref.el Be safer about "%" in message formats 2019-03-07 09:05:56 -08:00
antlr-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
asm-mode.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
autoconf.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
bat-mode.el Improve regexp advice again, and unchain ranges 2019-04-02 15:01:34 -07:00
bug-reference.el Use lexical-binding in bug-reference.el 2019-04-09 16:29:09 -05:00
cc-align.el Correct the indentation of CC Mode brace lists 2019-03-12 18:33:31 +00:00
cc-awk.el Fix regexp branches that subsume other branches 2019-04-19 09:02:25 -07:00
cc-bytecomp.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-cmds.el Don’t assume CURRENT_TIME_LIST 2019-02-13 00:51:15 -08:00
cc-defs.el Improve C++ raw string fontification. 2019-03-27 11:50:53 +00:00
cc-engine.el Fix Pike Mode's autodoc doc comments style's continued lines. 2019-04-20 11:30:55 +00:00
cc-fonts.el Fix Pike Mode's autodoc doc comments style's continued lines. 2019-04-20 11:30:55 +00:00
cc-guess.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-langs.el * lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds): Correct a typo 2019-04-13 19:33:18 +00:00
cc-menus.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-mode.el Fix Pike Mode's autodoc doc comments style's continued lines. 2019-04-20 11:30:55 +00:00
cc-styles.el Correct the indentation of CC Mode brace lists 2019-03-12 18:33:31 +00:00
cc-vars.el Correct the indentation of CC Mode brace lists 2019-03-12 18:33:31 +00:00
cfengine.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
cmacexp.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
compile.el Don't check comp-buffer-name-function in derived mode (Bug#34956) 2019-04-04 19:39:42 -04:00
cperl-mode.el Fix regexp branches that subsume other branches 2019-04-19 09:02:25 -07:00
cpp.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
cwarn.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dcl-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
ebnf2ps.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-abn.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-bnf.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-dtd.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-ebx.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-iso.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-otz.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-yac.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
ebrowse.el Ebrowse: Use invisibility-spec instead of selective-display 2019-03-18 08:09:42 -04:00
elisp-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
etags.el Fix some ineffective backslashes in string literals 2019-03-16 11:38:58 -07:00
executable.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
f90.el Fix some ineffective backslashes in string literals 2019-03-16 11:38:58 -07:00
flymake-cc.el Avoid occasional confusion of Flymake C/C++ backend 2019-03-25 14:56:09 +00:00
flymake-proc.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
flymake.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
fortran.el Properly bracket concat of comment-start-skip (Bug#34805) 2019-04-15 20:28:03 -04:00
gdb-mi.el Merge from origin/emacs-26 2019-03-09 10:07:46 -08:00
glasses.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
grep.el Fix rgrep in dired using directory for search file pattern 2019-04-11 23:51:13 +03:00
gud.el Fix bug in gud-gdb-marker-filter: first marker does not start with \n 2019-04-03 10:25:45 -07:00
hideif.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hideshow.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
icon.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
idlw-complete-structtag.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
idlw-help.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlw-shell.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlw-toolbar.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlwave.el Omit/rewrite useless regexp repetitions 2019-04-12 19:43:41 -07:00
inf-lisp.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
js.el Add extra text property to fix issue with js2-mode integration 2019-04-10 22:53:34 -07:00
ld-script.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
m4-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
make-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mantemp.el More regexp corrections and tweaks 2019-03-08 09:09:40 -08:00
meta-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
mixal-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
modula2.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
octave.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
opascal.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
pascal.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
perl-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
prog-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
project.el Sort files in the default impl of project-files alphabetically 2019-04-15 00:39:57 +03:00
prolog.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
ps-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
python.el Merge from origin/emacs-26 2019-04-17 09:32:40 -07:00
ruby-mode.el Fix more regular expression typos 2019-03-18 17:02:29 -07:00
scheme.el More regexp corrections and tweaks 2019-03-10 23:11:21 -07:00
sh-script.el Fix more regexp oddities 2019-04-07 02:45:33 -07:00
simula.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sql.el * lisp/progmodes/sql.el Bug#25424 2019-03-22 22:34:41 -04:00
subword.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tcl.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
vera-mode.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
verilog-mode.el Omit/rewrite useless regexp repetitions 2019-04-12 19:43:41 -07:00
vhdl-mode.el Properly bracket concat of comment-start-skip (Bug#34805) 2019-04-15 20:28:03 -04:00
which-func.el which-function: Do not display outdated imenu information 2019-02-22 15:27:06 -06:00
xref.el New faces in xref (bug#23179) 2019-04-14 00:54:14 +03:00
xscheme.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00