Commit Graph
36 Commits
Author SHA1 Message Date
8edcb401cf vim-patch:5c9c5a4: runtime(c): syntax depends on the 'iskeyword' option
Problem:  C keywords are matched using the characters from 'iskeyword',
          so changing that option highlights part of an identifier as a
          keyword and leaves keywords containing an underscore
          unhighlighted.
Solution: Set the keyword characters with ":syn iskeyword".

fixes:  vim/vim#21173
closes: vim/vim#21176

https://github.com/vim/vim/commit/5c9c5a43c183e8d1e4156b468343d0aa0f3b081c

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Co-Authored-By: Maxim Kim <habamax@gmail.com>
2026-08-31 10:46:52 +08:00
zeertzjqandBogdan Barbu 743a8d448c vim-patch:5a1124e: runtime(c): compound literal braces are highlighted as errors
Problem: Braces in C compound literals and initializers inside parentheses
         and brackets are highlighted as errors.

Solution: Recognize those initializer blocks while preserving syntax recovery
          for malformed parentheses.

fixes:  vim/vim#18709
closes: vim/vim#20842

https://github.com/vim/vim/commit/5a1124e4f59fafa0c774db956ae1e86bdd259442

Co-authored-by: Bogdan Barbu <l4b.bogdan.barbu@gmail.com>
2026-08-05 07:02:22 +08:00
zeertzjqandYasuhiro Matsumoto 6ca94cb8fb vim-patch:77b2376: runtime(c): classify type qualifiers, function specifiers and C23 attributes
Move const, volatile, restrict and _Atomic to a new cTypeQualifier group
and inline and _Noreturn to cFunctionSpec. Add the C23 standard attributes
deprecated, fallthrough, maybe_unused, nodiscard, unsequenced and
reproducible as cStandardAttribute, and reclassify the existing noreturn
into the same group.

The new groups link to cStorageClass, so the default highlighting and any
existing cStorageClass override are unchanged, while allowing finer-grained
customization.

fixes:  vim/vim#19574
closes: vim/vim#20368

https://github.com/vim/vim/commit/77b2376769a3f6b0dc21467a56986f3725fc270d

Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
2026-06-02 07:38:07 +02:00
zeertzjqandWu Yongwei d423dd8b8b vim-patch:5529b75: runtime(c): Do not highlight noreturn in C++ code
closes: vim/vim#19170

https://github.com/vim/vim/commit/5529b750a7ce6dcafaecb119d674b99275dbe3c7

Co-authored-by: Wu Yongwei <wuyongwei@gmail.com>
2026-01-16 07:27:18 +08:00
zeertzjqandHarry 2fa8825bef vim-patch:7fe4b8c: runtime(c): Update signal constants in syntax script
closes: vim/vim#18763

https://github.com/vim/vim/commit/7fe4b8c1bd34e6bf108a7127903be9508809e17c

Co-authored-by: Harry <166658338+harrystevens4@users.noreply.github.com>
2025-11-21 08:56:49 +08:00
Christian ClasonandDoug Kearns 954d4969c9 vim-patch:e064051: runtime(c): add new constexpr keyword to syntax file (C23)
closes: vim/vim#16471

https://github.com/vim/vim/commit/e06405181a6189aa56e917c1a7e5090a33b07a8a

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2025-01-18 11:54:53 +01:00
136cb642a0 vim-patch:c2a967a: runtime(c): Update syntax and ftplugin files
- highlight more C keywords, including some from C23

Conditionally highlight C23 features:
- #embed, #elifdef and #elifndef preprocessor directives
- predefined macros
- UTF-8 character constants
- binary integer constants, _BitInt literals, and digit separators
- nullptr_t type and associated constant
- decimal real floating-point, bit precise and char types
- typeof operators

Matchit:
- update for new preprocessor directives

fixes: vim/vim#13667
fixes: vim/vim#13679
closes: vim/vim#12984

https://github.com/vim/vim/commit/c2a967a1b9adca6c929e3dc5c218dfada00059b6

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Co-authored-by: Albin Ahlbäck <albin.ahlback@gmail.com>
2025-01-18 08:45:43 +01:00
Christian ClasonandWu Yongwei d72c9d1d19 vim-patch:63c39e4ef749
runtime(c): Recognize "__inline" (vim/vim#14145)

`__inline` is recognized by GCC, and may even be preferred, as MSVC does
not recognize `__inline__`.

https://github.com/vim/vim/commit/63c39e4ef749883e96a83b9f647ac91516c0d1be

Co-authored-by: Wu Yongwei <wuyongwei@gmail.com>
2024-03-06 10:05:12 +01:00
Christian ClasonandLuca Saccarola 0c1119ac75 vim-patch:ca0e9823a1df
runtime(c): Highlight user defined functions

closes: vim/vim#13763

https://github.com/vim/vim/commit/ca0e9823a1dfd71a17c0f08cb7973d413bf98999

Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
2024-01-24 11:05:25 +01:00
Sean DewarandChristian Brabandt cbf54ec2a5 vim-patch:e978b4534a5e (#24697)
Farewell to Bram and dedicate upcoming Vim 9.1 to him (vim/vim#12749)

https://github.com/vim/vim/commit/e978b4534a5e10471108259118c0ef791106fd92

Also update the header for the following files that were converted to Vim9
script upstream:

- autoload/ccomplete.lua (vim9jitted)
- ftplugin.vim
- ftplugof.vim
- indent.vim
- indent/vim.vim
- makemenu.vim

This also updates the "Last Change" dates, even if some changes (due to rewrites
to Vim9 script) were not ported.

There's still a few other places where Bram is still mentioned as a maintainer
in the files we and Vim have:

- ftplugin/bash.vim
- indent/bash.vim
- indent/html.vim
- indent/mail.vim
- macros/accents.vim
- macros/editexisting.vim
- syntax/bash.vim
- syntax/shared/typescriptcommon.vim
- syntax/tar.vim
- syntax/typescript.vim
- syntax/typescriptreact.vim
- syntax/zimbu.vim

Maybe future patches will address that.

Also exclude changes to .po files that didn't apply automatically (the
`:messages` maintainer string isn't used in Nvim anyway).

Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-08-13 13:25:10 +01:00
Christian ClasonandBram Moolenaar e3f36377c1 vim-patch:71badf9547e8 (#23285)
Update runtime files

https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-23 15:22:55 +02:00
Christian Clason 9701c9dc9f vim-patch:3c053a1a5ad2 (#20679)
Update runtime files
https://github.com/vim/vim/commit/3c053a1a5ad2a3c924929e11f2b9af20a8b901e2
2022-10-17 08:19:48 +02:00
Christian Clason 521e91e1c4 vim-patch:ce001a337e28 (#18287)
Update runtime files
https://github.com/vim/vim/commit/ce001a337e28fa368f40ac6422835d730fb8ebb1

also add `vimStdPlugin` keywords missing from previous updates
2022-04-27 17:48:35 +02:00
Christian Clason 75157d2572 vim-patch:47c532e2bc55 (#17780)
Update runtime files
https://github.com/vim/vim/commit/47c532e2bc55e8a48f7f47e1fae1ed30144f2fa1
2022-03-20 10:48:10 +01:00
Christian Clason b1757e1c29 vim-patch:0e6adf8a29d5 (#16682)
Update runtime files
https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
2021-12-16 21:46:13 +01:00
Christian Clason 79cbbd5179 vim-patch:d2ea7cf10a4d #15571
Update runtime files
https://github.com/vim/vim/commit/d2ea7cf10a4d026ebd402594d656af7d5c811c24

omit `runtime/doc/if_tcl.txt`
omit `runtime/doc/textprop.txt`
omit `runtime/tutor/*`
omit `runtime/syntax/vim.vim` (cherry-picked in https://github.com/neovim/neovim/commit/2dd7828511d04a8b7f1ac4331c719a751a5db869)

manual merge of `runtime/pack/dist/opt/termdebug/plugin/termdebug.vim`
2021-09-08 07:24:12 -07:00
Jan Edmund Lazo 8f8602d2df vim-patch:98a29d00a48e
Update runtime files.
https://github.com/vim/vim/commit/98a29d00a48e15a50e2850e1a29b7d475c531b0c
2021-05-01 23:19:57 -04:00
Jan Edmund Lazo 1e03e76daf vim-patch:207f009326c8
Update runtime files.
https://github.com/vim/vim/commit/207f009326c8f878defde0e594d7d9ed9860106e

Omit nl.po.
2021-04-29 21:56:34 -04:00
Jan Edmund Lazo 9f54d125d2 vim-patch:3d1cde8a2f28
Update runtime files.
https://github.com/vim/vim/commit/3d1cde8a2f28dce2c82d2b2b4c5e35e6662030e0
2021-04-29 21:08:09 -04:00
Jan Edmund Lazo b918d99a61 vim-patch:91359014b359
Update runtime files.
https://github.com/vim/vim/commit/91359014b359cf816bf943fe2c7d492996263def
2021-04-27 09:21:30 -04:00
Justin M. Keyes 532ee54a42 vim-patch:a6c27c47ddf0
Update runtime files
https://github.com/vim/vim/commit/a6c27c47ddf081859659d7de1caec675147e466b
2019-08-01 23:27:26 +02:00
Justin M. Keyes 47b4eb110d vim-patch:4c92e75dd4dd
Update runtime files.
https://github.com/vim/vim/commit/4c92e75dd4ddb68dd92a86dd02d53c70dd4af33a

vim-patch:c854898881c0
Revert change accidentally included in runtime file updates.  Closes vim/vim#3998.
https://github.com/vim/vim/commit/c854898881c02259f90170f210bf65bbd20cc1fc
2019-08-01 16:51:53 +02:00
Justin M. Keyes 17c26d0dcf vim-patch:95bafa296ae9
Update runtime files.
https://github.com/vim/vim/commit/95bafa296ae97bf420d5c74dd6db517b404c5df7
2018-10-30 00:02:22 +01:00
Justin M. Keyes 1a51524ad5 vim-patch:40962ec9c0e7
Update runtime files.
https://github.com/vim/vim/commit/40962ec9c0e7b8699e101182b06ddd39dc0e1212
2018-10-28 14:05:14 +01:00
Justin M. Keyes 78223bc97f vim-patch:b4d6c3ea4a59
Update runtime files.

https://github.com/vim/vim/commit/b4d6c3ea4a59c6d8d4e0e52120596866f0edd510
2017-11-07 01:27:14 +01:00
James McCoy 70b574dab3 vim-patch:8.0.0118
Runtime updates that were bundled into the otherwise NA commit:

Problem:    "make proto" adds extra function prototype.
Solution:   Add vim/vim#ifdef.

https://github.com/vim/vim/commit/5162822914372fc916a93f85848c0c82209e7cec
2017-10-17 14:51:04 -04:00
Justin M. Keyes e5b640fdb8 vim-patch:c0514bf4777a
Updated runtime files.

https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
2017-04-30 22:10:21 +02:00
Justin M. Keyes 1e7806bd41 vim-patch:6d5ad4c4118c
Updated runtime files.

https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
2017-04-29 01:49:36 +02:00
James McCoy 8c09dbf082 vim-patch:063b9d1
Updated runtime files.

https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
2017-02-01 18:35:12 -05:00
James McCoy e686b613ec vim-patch:03413f4
Updated runtime files.

https://github.com/vim/vim/commit/03413f44167c4b5cd0012def9bb331e2518c83cf

Ignore changes to
* doc/Makefile, doc/help.txt: Related to Vim's version8 documentation
* doc/gui_x11.txt, doc/todo.txt, doc/vim.1, gvim.desktop, vim.desktop:
  Irrelevant to Neovim
* doc/quickref.txt, doc/options.txt: As of yet unported 'emoji'
* doc/tags, syntax/vim.vim: Generated at build time
2016-07-08 01:45:21 -04:00
James McCoy e453825aa5 vim-patch:38a5563
Update runtime files.

https://github.com/vim/vim/commit/38a55639d603823efcf2d2fdf542dbffdeb60b75

Ignore changes to
* doc/channel.txt, doc/eval.txt, doc/various.txt: Channel related docs
* doc/tags: Generated at build time
* doc/todo.txt, doc/vi_diff.txt: Not relevant to neovim
2016-06-07 12:02:56 -04:00
Justin Gassner 299044d4ef vim-patch:7.4.656
Problem:    Missing changes for glob() in one file.
Solution:   Add the missing changes.

https://github.com/vim/vim/commit/d8b77f7dc04e5721989df9c505b8568194261a39
2016-01-25 21:45:26 +01:00
Justin Gassner cf0ff1dd0f vim-patch:2b8388b
Updated runtime files.

https://github.com/vim/vim/commit/2b8388bd0175835eb751e6c58cd0b0b69465f0d9
2016-01-14 17:58:15 +01:00
Perry Hung 04a3d5ecc7 vim-patch:f654ad9 #2659
Update runtime files.

https://code.google.com/p/vim/source/detail?r=f654ad95fd4e25e014dda71963b9745a4bf5f83b

Resolves issue #1999.
2015-05-20 16:31:28 -04:00
Florian Walch 5f00d22853 vim-patch:bd18da9
Update runtime files.

https://code.google.com/p/vim/source/detail?r=bd18da914be9d43a70713f6af02770a0d3280159
2015-01-21 07:27:01 +01:00
Justin M. Keyes a98a6996c2 re-integrate runtime/ vim-patch:0 #938
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7

Excluding:
  Amiga icons (*.info, icons/)
  doc/hangulin.txt
  tutor/
  spell/
  lang/ (only used for menu translations)
  macros/maze/, macros/hanoi/, macros/life/, macros/urm/
      These were used to test vi compatibility.
  termcap
      "Demonstration of a termcap file (for the Amiga and Archimedes)"

Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
2014-07-29 02:12:31 +00:00