My co. has recently been acquired and we now need to update copyright notices in all source files ;-(
These are several comment lines that appear at the top of the file, and syntax is different depending on file type (C++, bash, etc.).
I'm trying to come up with a way to ignore these differences by defining new grammar elements that match the old and new notices (using "Lines" category, since these are multi-line comments).
I don't seem to be having much luck -- either I can mark ALL comments as unimportant, in which case the notices are ignored, but in general that's not a great solution.
Any hints or tips would be appreciated!
FWIW, the notices look something like this:
///////////////////////////////////////////////////////////////////////////////
// //
// OLDCO, INC. CONFIDENTIAL INFORMATION //
// //
// Copyright (C) 2002-2007 OLDCO, Inc. //
// All Rights Reserved. //
// Licensed Materials - Property of OLDCO, Inc. //
// //
// This module contains confidential and proprietary information of //
// OLDCO, Inc. and any reproduction, disclosure or use in whole or in part //
// is expressly forbidden except as may be specifically authorized by prior //
// written agreement or permission of OLDCO, Inc. //
// //
// For more information, contact OLDCO, Inc. at www.oldco.com //
// //
///////////////////////////////////////////////////////////////////////////////
/************************************************** ***********************
* NEWCO CONFIDENTIAL INFORMATION
* _______________________________
*
* All Rights Reserved.
*
* NOTICE: This file and its content are the property of NEWCO. The
* information included has been classified as Confidential and may
* not be copied, modified, distributed, or otherwise disseminated, in
* whole or part, without the express written permission of NEWCO.
************************************************** **********************/
These are several comment lines that appear at the top of the file, and syntax is different depending on file type (C++, bash, etc.).
I'm trying to come up with a way to ignore these differences by defining new grammar elements that match the old and new notices (using "Lines" category, since these are multi-line comments).
I don't seem to be having much luck -- either I can mark ALL comments as unimportant, in which case the notices are ignored, but in general that's not a great solution.
Any hints or tips would be appreciated!
FWIW, the notices look something like this:
///////////////////////////////////////////////////////////////////////////////
// //
// OLDCO, INC. CONFIDENTIAL INFORMATION //
// //
// Copyright (C) 2002-2007 OLDCO, Inc. //
// All Rights Reserved. //
// Licensed Materials - Property of OLDCO, Inc. //
// //
// This module contains confidential and proprietary information of //
// OLDCO, Inc. and any reproduction, disclosure or use in whole or in part //
// is expressly forbidden except as may be specifically authorized by prior //
// written agreement or permission of OLDCO, Inc. //
// //
// For more information, contact OLDCO, Inc. at www.oldco.com //
// //
///////////////////////////////////////////////////////////////////////////////
/************************************************** ***********************
* NEWCO CONFIDENTIAL INFORMATION
* _______________________________
*
* All Rights Reserved.
*
* NOTICE: This file and its content are the property of NEWCO. The
* information included has been classified as Confidential and may
* not be copied, modified, distributed, or otherwise disseminated, in
* whole or part, without the express written permission of NEWCO.
************************************************** **********************/
Comment