comparison src/testdir/test_cindent.vim @ 26694:1095fd0dc362 v8.2.3876

patch 8.2.3876: 'cindent' does not recognize inline namespace Commit: https://github.com/vim/vim/commit/f2f0bddf303e37d4d532ca22e2d53179c20b1d19 Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Dec 22 20:55:30 2021 +0000 patch 8.2.3876: 'cindent' does not recognize inline namespace Problem: 'cindent' does not recognize inline namespace. Solution: Skip over "inline" to find "namespace". (closes https://github.com/vim/vim/issues/9383)
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Dec 2021 22:00:05 +0100
parents 9596c652420b
children 8bc8071928ed
comparison
equal deleted inserted replaced
26693:312866076d85 26694:1095fd0dc362
994 111111111111111111; 994 111111111111111111;
995 namespace test2 { 995 namespace test2 {
996 22222222222222222; 996 22222222222222222;
997 } 997 }
998 } 998 }
999 inline namespace {
1000 111111111111111111;
1001 }
1002 inline /* test */ namespace {
1003 111111111111111111;
1004 }
1005 inline/* test */namespace {
1006 111111111111111111;
1007 }
999 1008
1000 /* invalid namespaces use block indent */ 1009 /* invalid namespaces use block indent */
1001 namespace test test2 { 1010 namespace test test2 {
1002 111111111111111111111; 1011 111111111111111111111;
1003 } 1012 }
1015 { 1024 {
1016 1111111111111111111; 1025 1111111111111111111;
1017 } 1026 }
1018 namespace111111111 1027 namespace111111111
1019 { 1028 {
1029 111111111111111111;
1030 }
1031 inlinenamespace {
1020 111111111111111111; 1032 111111111111111111;
1021 } 1033 }
1022 1034
1023 void getstring() { 1035 void getstring() {
1024 /* Raw strings */ 1036 /* Raw strings */
1959 111111111111111111; 1971 111111111111111111;
1960 namespace test2 { 1972 namespace test2 {
1961 22222222222222222; 1973 22222222222222222;
1962 } 1974 }
1963 } 1975 }
1976 inline namespace {
1977 111111111111111111;
1978 }
1979 inline /* test */ namespace {
1980 111111111111111111;
1981 }
1982 inline/* test */namespace {
1983 111111111111111111;
1984 }
1964 1985
1965 /* invalid namespaces use block indent */ 1986 /* invalid namespaces use block indent */
1966 namespace test test2 { 1987 namespace test test2 {
1967 111111111111111111111; 1988 111111111111111111111;
1968 } 1989 }
1980 { 2001 {
1981 1111111111111111111; 2002 1111111111111111111;
1982 } 2003 }
1983 namespace111111111 2004 namespace111111111
1984 { 2005 {
2006 111111111111111111;
2007 }
2008 inlinenamespace {
1985 111111111111111111; 2009 111111111111111111;
1986 } 2010 }
1987 2011
1988 void getstring() { 2012 void getstring() {
1989 /* Raw strings */ 2013 /* Raw strings */
4356 111111111111111111; 4380 111111111111111111;
4357 namespace test2 { 4381 namespace test2 {
4358 22222222222222222; 4382 22222222222222222;
4359 } 4383 }
4360 } 4384 }
4385 inline namespace {
4386 111111111111111111;
4387 }
4388 inline /* test */ namespace {
4389 111111111111111111;
4390 }
4391 inline/* test */namespace {
4392 111111111111111111;
4393 }
4361 4394
4362 /* invalid namespaces use block indent */ 4395 /* invalid namespaces use block indent */
4363 namespace test test2 { 4396 namespace test test2 {
4364 111111111111111111111; 4397 111111111111111111111;
4365 } 4398 }
4377 { 4410 {
4378 1111111111111111111; 4411 1111111111111111111;
4379 } 4412 }
4380 namespace111111111 4413 namespace111111111
4381 { 4414 {
4415 111111111111111111;
4416 }
4417 inlinenamespace {
4382 111111111111111111; 4418 111111111111111111;
4383 } 4419 }
4384 NAMESPACEEND 4420 NAMESPACEEND
4385 [CODE] 4421 [CODE]
4386 4422
4447 111111111111111111; 4483 111111111111111111;
4448 namespace test2 { 4484 namespace test2 {
4449 22222222222222222; 4485 22222222222222222;
4450 } 4486 }
4451 } 4487 }
4488 inline namespace {
4489 111111111111111111;
4490 }
4491 inline /* test */ namespace {
4492 111111111111111111;
4493 }
4494 inline/* test */namespace {
4495 111111111111111111;
4496 }
4452 4497
4453 /* invalid namespaces use block indent */ 4498 /* invalid namespaces use block indent */
4454 namespace test test2 { 4499 namespace test test2 {
4455 111111111111111111111; 4500 111111111111111111111;
4456 } 4501 }
4468 { 4513 {
4469 1111111111111111111; 4514 1111111111111111111;
4470 } 4515 }
4471 namespace111111111 4516 namespace111111111
4472 { 4517 {
4518 111111111111111111;
4519 }
4520 inlinenamespace {
4473 111111111111111111; 4521 111111111111111111;
4474 } 4522 }
4475 NAMESPACEEND 4523 NAMESPACEEND
4476 4524
4477 [CODE] 4525 [CODE]