@@ -317,21 +317,26 @@ class TestPath : public TestFixture {
317
317
" // -*- c++ -*-" ,
318
318
" // -*- mode: c++; -*-" ,
319
319
320
- // "/* -*- C++ -*- */"
320
+ " /* -*- C++ -*- */" ,
321
+ " /* -*- C++ -*-" ,
321
322
322
323
" //-*- C++ -*-" ,
323
324
" //-*- C++ -*-" ,
324
325
" \t //-*- C++ -*-" ,
325
326
" \t //-*- C++ -*-" ,
326
327
" \t //-*- C++ -*-" ,
328
+ " //-*- C++ -*- " ,
329
+ " //-*- C++ -*- \n " ,
327
330
" // -----*- C++ -*-----" ,
328
331
" // comment-*- C++ -*-comment" ,
332
+ " // -*- C++ -*-\n " ,
329
333
" //-*- C++ -*-\r // comment" ,
330
334
" //-*- C++ -*-\n // comment" ,
331
335
" //-*- C++ -*-\r\n // comment" ,
332
336
333
- // "/* -*-C++-*- */"
334
- // "/*-*-C++-*-*/"
337
+ " /* -*-C++-*- */" ,
338
+ " /*-*-C++-*-*/" ,
339
+ " /*-*-C++-*-*/" ,
335
340
};
336
341
337
342
for (const auto & f : { " cppprobe.h" , " cppprobe" }) {
@@ -345,15 +350,26 @@ class TestPath : public TestFixture {
345
350
" // -*- C++" , // no end marker
346
351
" // -*- C++ --*-" , // incorrect end marker
347
352
" // -*- C++/-*-" , // unexpected character
348
- " // comment\n // -*-C " , // not on the first line
349
- " // comment\r // -*-C " , // not on the first line
350
- " // comment\r\n // -*-C " , // not on the first line
353
+ " // comment\n // -*- C++ -*- " , // not on the first line
354
+ " // comment\r // -*- C++ -*- " , // not on the first line
355
+ " // comment\r\n // -*- C++ -*- " , // not on the first line
351
356
" // -*- C -*-" ,
352
357
" // -*- Mode: C; -*-" ,
353
358
" // -*- f90 -*-" ,
354
359
" // -*- fortran -*-" ,
355
360
" // -*- c-basic-offset: 2 -*-" ,
356
- " // -*- c-basic-offset:4; indent-tabs-mode:nil -*-"
361
+ " // -*- c-basic-offset:4; indent-tabs-mode:nil -*-" ,
362
+ " // " , // no marker
363
+ " // -*-" , // incomplete marker
364
+ " /*" , // no marker
365
+ " /**/" , // no marker
366
+ " /*\n */" , // no marker
367
+ " /* */" , // no marker
368
+ " /* \n */" , // no marker
369
+ " /* -*-" , // incomplete marker
370
+ " /* \n -*-" , // incomplete marker
371
+ " /* \n -*- C++ -*-" , // not on the first line
372
+ " /* \n -*- C++ -*- */" // not on the first line
357
373
};
358
374
359
375
for (const auto & m : markers_c) {
0 commit comments