aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLech Lorens <lech.lorens@gmail.com>2017-08-20 12:14:27 +0200
committerLech Lorens <lech.lorens@gmail.com>2017-08-21 23:00:51 +0200
commitd2595ba1c4491a31d18211050e1abe86ea5379d3 (patch)
tree8d7248d001c3cbbc94c12aaeca044659262fdbe9 /test
parentb3da396804ec0a63f11b86a363bd4c98e23f8ebd (diff)
downloadrneovim-d2595ba1c4491a31d18211050e1abe86ea5379d3.tar.gz
rneovim-d2595ba1c4491a31d18211050e1abe86ea5379d3.tar.bz2
rneovim-d2595ba1c4491a31d18211050e1abe86ea5379d3.zip
vim-patch:8.0.0092
Problem: C indenting does not support nested namespaces that C++ 17 has. Solution: Add check that passes double colon inside a name. (Pauli, closes vim/vim#1214) https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/003_cindent_spec.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/legacy/003_cindent_spec.lua b/test/functional/legacy/003_cindent_spec.lua
index 27835fea28..0cc4d298b7 100644
--- a/test/functional/legacy/003_cindent_spec.lua
+++ b/test/functional/legacy/003_cindent_spec.lua
@@ -3915,6 +3915,26 @@ describe('cindent', function()
{
111111111111111111;
}
+ namespace test::cpp17
+ {
+ 111111111111111111;
+ }
+ namespace ::incorrectcpp17
+ {
+ 111111111111111111;
+ }
+ namespace test::incorrectcpp17::
+ {
+ 111111111111111111;
+ }
+ namespace test:incorrectcpp17
+ {
+ 111111111111111111;
+ }
+ namespace test:::incorrectcpp17
+ {
+ 111111111111111111;
+ }
namespace{
111111111111111111;
}
@@ -3986,6 +4006,26 @@ describe('cindent', function()
{
111111111111111111;
}
+ namespace test::cpp17
+ {
+ 111111111111111111;
+ }
+ namespace ::incorrectcpp17
+ {
+ 111111111111111111;
+ }
+ namespace test::incorrectcpp17::
+ {
+ 111111111111111111;
+ }
+ namespace test:incorrectcpp17
+ {
+ 111111111111111111;
+ }
+ namespace test:::incorrectcpp17
+ {
+ 111111111111111111;
+ }
namespace{
111111111111111111;
}