24 Commits
Author SHA1 Message Date
zeertzjqandJulien Voisin 8c5fbfc4ac vim-patch:fd0253d: runtime(cpp): syntax highlighting can be improved
This is a combination of the following changes:

Problem:  The C++11 raw strings pattern is slow because its leading
          lookbehind prevents an efficient search.
Solution: Force the backtracking engine for the attribute start pattern.

Problem:  The C++ attribute start pattern is slow because its leading lookbehind
          prevents an efficient search.
Solution: Force the backtracking engine for the attribute start pattern.

Problem:  The slice bracket highlighting incurs avoidable cost on large buffers.
Solution: Split the rule into separate literal matches for `[:` and `:]`,

Problem:  The GNU C++ min/max operator rule incurs avoidable cost on large
          buffers.
Solution: Split the rule into separate literal matches for `<?` and `>?`,

closes: vim/vim#21513

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

Co-authored-by: Julien Voisin <julien.voisin@dustri.org>
2026-10-31 08:46:05 +08:00
zeertzjqandDoug Kearns 2f0876d0c8 vim-patch:6fd4f6c: runtime(cpp): Update syntax, cleanup
- Prefer non-capturing groups in patterns - idiomatic.
- Remove changelog entries - there is no maintainer to inform.
- Normalise whitespace use.

closes: vim/vim#21348

https://github.com/vim/vim/commit/6fd4f6cda1602fc0fedcdf4af64f528a3cad9273

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2026-09-22 08:51:58 +08:00
zeertzjqandDoug Kearns f4a5e181fe vim-patch:2daae15: runtime(c,cpp): Update syntax, fix number patterns
Fix potentially catastrophic backtracking in number patterns when using
regexpengine=1.

closes: vim/vim#21324

https://github.com/vim/vim/commit/2daae1553b1e7b959afe0602fd243771266a5401

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2026-09-17 08:27:51 +08:00
zeertzjqandEisuke Kawashima af2837c7bc vim-patch:8e2e8e7: runtime(cpp): add C++23 suffix z (size_t)
closes: vim/vim#21281

https://github.com/vim/vim/commit/8e2e8e749021d0ac406cae67712bbcc0c0fd5152

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2026-09-15 08:43:54 +08:00
zeertzjqandGareth Lloyd 19446ec9cb vim-patch:77099ed: runtime(cpp): add C++26 lexical constructs to syntax highlighting
Add a guarded "C++ 26 extensions" block (cpp_no_cpp26) covering new
lexical surface introduced since C++23:

- [[ ... ]] attributes as a region, so P3394 annotations carrying a
  value expression (eg [[=foo{1}]]) no longer trip cErrInBracket on
  their braces/parens. A \w\@1<! look-behind keeps it from matching a
  subscripted immediately-invoked lambda (arr[[]{...}()]).
- ^^ reflection operator (P2996).
- [: :] splice brackets (P2996).
- contract_assert keyword (P2900).

Add input/cpp_cpp26.cpp exercising these constructs with screendumps,
and update dumps/cpp_noreturn_00.dump for the new [[ ]] attribute
delimiter highlighting.

closes: vim/vim#20577

https://github.com/vim/vim/commit/77099ed6b3b35b6340fd4945ba219020034a9182

Co-authored-by: Gareth Lloyd <gareth@ignition-web.co.uk>
2026-06-22 09:51:52 +08:00
zeertzjqandYasuhiro Matsumoto c1253d6f95 vim-patch:fd30a73: runtime(cpp): recognize C++23 stdfloat types
Add float16_t, float32_t, float64_t, float128_t and bfloat16_t from
<stdfloat> as cppType under a new cpp_no_cpp23 guard.

fixes:  vim/vim#16498
closes: vim/vim#20367

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

Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
2026-06-02 07:39:05 +02:00
af7925ec58 vim-patch:335aecd: runtime(cpp): Fix c++ float and integer literal syntax highlighting
closes: vim/vim#8939

https://github.com/vim/vim/commit/335aecd98f75a081ad34b99e34922f3e7e0b25ea

Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2026-01-09 09:39:35 +08:00
zeertzjqandChristian Brabandt 9252d470cb vim-patch:6c30628: runtime(cpp): Announce syntax file adoption (#37279)
https://github.com/vim/vim/commit/6c306283920f8afb81926c498ce1aec78c623d83

Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-06 23:00:12 +00:00
Christian ClasonandWu Yongwei 17c89eac1a vim-patch:c5def6561d56
runtime(cpp): Fix digit separator in syntax script for octals and floats

Also fix the incorrect rendering of floats that start with ".".

closes: vim/vim#14724

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

Co-authored-by: Wu Yongwei <wuyongwei@gmail.com>
2024-05-07 23:23:04 +02:00
zeertzjqandlaburnumT f45bf44176 vim-patch:ff0baca86523 (#26476)
runtime(syntax): unlet b:filetype_in_cpp_family for cpp & squirrel

Update runtime/syntax/cpp.vim and runtime/syntax/squirrel.vim to unlet
b:filetype_in_cpp_family as it remains set even after updating the ft of
a file manually or through a modeline, not allowing c specific keywords
to be highlighted.

Since the variable b:filetype_in_cpp_family is only used by the c.vim
syntax script, unlet it directly after sourcing the c.vim runtime file
instead of at the end of the script.

Also update the last Change Header for both files.

closes: vim/vim#13650

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

Co-authored-by: laburnumT <laburnumtec@gmail.com>
2023-12-09 07:45:31 +08:00
Christian Clason 1a9d2a4040 vim-patch:89a9c159f23f #15641
Update runtime files
https://github.com/vim/vim/commit/89a9c159f23fb7b3e24e6d09068adfc24a73afcb

Omit:
nsis/lang/turkish.nsi
pixmaps/gen-inline-pixbufs.sh
doc/popup.txt
doc/terminal.txt
tutor/tutor*
src/[g]vimtutor
CONTRIBUTING.md

Skip:
doc/eval.txt (needs 8.1.2342)
doc/testing.txt (needs 8.2.0299)
2021-09-13 06:05:27 -07: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 841bc219d2 vim-patch:95a9dd1efc5a
Update runtime files.
https://github.com/vim/vim/commit/95a9dd1efc5ae3221865f4970053a5708557e682
2021-04-27 09:21:32 -04:00
Justin M. Keyes 599170de83 vim-patch:6aa8cea46d41
Update runtime files.

https://github.com/vim/vim/commit/6aa8cea46d4179b2617daae034063dd0d8054e35
2017-11-07 01:33:46 +01:00
Justin M. Keyes 789c46934b vim-patch:b4ada79aa7d0
Runtime file updates.

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

Closes #5055
2017-04-29 01:51:56 +02:00
Justin M. Keyes 86b596dc7a vim-patch:f37506f60f87
Updated runtime files.  Remove HiLink commands.

https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
2017-04-28 21:25:15 +02:00
Justin M. Keyes a53409b564 vim-patch:89bcfda6834a
Updated runtime files.  Remove version checks for Vim older than 6.0.

https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
2017-04-28 21:13:55 +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
KillTheMule 367b1893e7 vim-patch:b4ff518
Updated runtime files.

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

Missing files: runtime/doc/tags, runtime/doc/todo.txt. Changes to
runtime/doc/if_pyth.txt, runtime/doc/options.txt and runtime/doc/quickref.txt
did not aply. Excluded runtime/syntax/vim.vim.
2016-05-03 21:03:17 +02:00
David Barnett cf32ca5137 vim-patch:f2571c
Updated runtime files.

https://github.com/vim/vim/commit/f2571c61d5aa05682ae4d358e625348b61adc861
2016-04-11 09:23:31 -07: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
Marco Hinz 975a610233 vim-patch:f2571c6
Update runtime files.

References #3625.
2015-11-08 03:39:07 +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