Mercurial > vim
comparison src/testdir/test3.ok @ 6971:e859731ea1cd v7.4.803
patch 7.4.803
Problem: C indent does not support C11 raw strings. (Mark Lodato)
Solution: Do not change indent inside the raw string.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 28 Jul 2015 21:17:36 +0200 |
parents | c4cb95fb4c58 |
children | accd3a0e9bf4 |
comparison
equal
deleted
inserted
replaced
6970:589a962ecc16 | 6971:e859731ea1cd |
---|---|
877 namespace111111111 | 877 namespace111111111 |
878 { | 878 { |
879 111111111111111111; | 879 111111111111111111; |
880 } | 880 } |
881 | 881 |
882 void getstring() { | |
883 /* Raw strings */ | |
884 const char* s = R"( | |
885 test { | |
886 # comment | |
887 field: 123 | |
888 } | |
889 )"; | |
890 } | |
891 | |
892 void getstring() { | |
893 const char* s = R"foo( | |
894 test { | |
895 # comment | |
896 field: 123 | |
897 } | |
898 )foo"; | |
899 } | |
900 | |
882 /* end of AUTO */ | 901 /* end of AUTO */ |
883 | 902 |
884 | 903 |
885 { | 904 { |
886 | 905 |