]> git.eshelyaron.com Git - emacs.git/commit
hideif.el: Support C99 and GNU style variadic macros
authorLuke Lee <luke.yx.lee@gmail.com>
Sun, 15 Jan 2023 04:26:02 +0000 (12:26 +0800)
committerLuke Lee <luke.yx.lee@gmail.com>
Sun, 15 Jan 2023 06:08:13 +0000 (14:08 +0800)
commit77ca6aa56e3425c87861cab8abce52bee3697cf4
tree421345f3c9deb54845aa62f71f8ad7c22b852340
parentdb836637b0e2050fe4477b4c81a7a2852d8eb960
hideif.el: Support C99 and GNU style variadic macros

* lisp/progmodes/hideif.el (hif-end-of-line, hif-cpp-prefix)
(hif-ifx-regexp, hif-macro-expr-prefix-regexp, hif-white-regexp)
(hif-macroref-regexp, hif-tokenize, hif-find-any-ifX)
(hif-find-next-relevant, hif-find-previous-relevant, hif-find-range)
(hif-parse-macro-arglist, hif-add-new-defines, hide-ifdef-guts):
Variadic macro parsing, comments and multi-line parsing.
(hif-line-concat, hif-etc-regexp): New regexp for better macro scans.
(hif-expand-token-list, hif-get-argument-list, hif-delimit)
(hif-macro-supply-arguments, hif-canonicalize, hif-find-define):
Variadic macro argument replacement and expansion.
(hif-display-macro): Display variadic macros.
(hif-is-in-comment, hif-search-ifX-regexp): New functions to better
handle macros in comments and comments in macros.
lisp/progmodes/hideif.el