24 Commits
Author SHA1 Message Date
Doug Kearns 6fd4f6cda1 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: #21348

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-09-21 19:48:33 +00:00
Doug Kearns 2daae1553b runtime(c,cpp): Update syntax, fix number patterns
Fix potentially catastrophic backtracking in number patterns when using
regexpengine=1.

closes: #21324

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-09-16 17:52:06 +00:00
Eisuke Kawashima 8e2e8e7490 runtime(cpp): add C++23 suffix z (size_t)
closes: #21281

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-09-14 18:09:30 +00:00
Gareth Lloyd 77099ed6b3 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: #20577

Signed-off-by: Gareth Lloyd <gareth@ignition-web.co.uk>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-06-21 14:45:14 +00:00
Yasuhiro Matsumoto fd30a736cc 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:  #16498
closes: #20367

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-06-01 21:15:41 +00:00
Dominique PelleandEisuke Kawashima 335aecd98f runtime(cpp): Fix c++ float and integer literal syntax highlighting
closes: #8939

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Dominique Pelle <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-01-08 21:24:23 +00:00
Christian Brabandt 6c30628392 runtime(cpp): Announce syntax file adoption
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-01-06 15:55:37 +00:00
Wu Yongwei c5def6561d runtime(cpp): Fix digit separator in syntax script for octals and floats
Also fix the incorrect rendering of floats that start with ".".

closes: #14724

Signed-off-by: Wu Yongwei <wuyongwei@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-07 18:33:30 +02:00
laburnumT ff0baca865 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: #13650

Signed-off-by: laburnumT <laburnumtec@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-08 21:28:44 +01:00
Bram Moolenaar 89a9c159f2 Update runtime files 2021-08-29 21:55:35 +02:00
Bram Moolenaar d2ea7cf10a Update runtime files 2021-05-30 20:54:13 +02:00
Bram Moolenaar 98a29d00a4 Update runtime files. 2021-01-18 19:55:44 +01:00
Bram Moolenaar 95a9dd1efc Update runtime files. 2019-12-19 22:12:03 +01:00
Bram Moolenaar 6aa8cea46d Update runtime files. 2017-06-05 14:44:35 +02:00
Bram Moolenaar b4ada79aa7 Runtime file updates. 2016-10-30 21:55:26 +01:00
Bram Moolenaar f37506f60f Updated runtime files. Remove HiLink commands. 2016-08-31 22:22:10 +02:00
Bram Moolenaar 89bcfda683 Updated runtime files. Remove version checks for Vim older than 6.0. 2016-08-30 23:26:57 +02:00
Bram Moolenaar 063b9d15ab Updated runtime files. 2016-07-09 20:21:48 +02:00
Bram Moolenaar b4ff518d95 Updated runtime files. 2015-11-10 21:15:48 +01:00
Bram Moolenaar f2571c61d5 Updated runtime files. 2015-06-09 19:44:55 +02:00
Bram Moolenaar d8b77f7dc0 updated for version 7.4.656
Problem:    Missing changes for glob() in one file.
Solution:   Add the missing changes.
2015-03-05 21:21:19 +01:00
Bram Moolenaar 13600303c5 Runtime file updates. 2014-05-22 18:26:40 +02:00
Bram Moolenaar ac7bd63844 Update runtime files. 2013-03-19 11:35:58 +01:00
Bram Moolenaar 071d4279d6 updated for version 7.0001 2004-06-13 20:20:40 +00:00