This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 83566

Summary: "*/" string is highlighted as error
Product: cnd Reporter: soldatov <soldatov>
Component: EditorAssignee: Vladimir Voskresensky <vv159170>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2006-08-28 10:17:42 UTC
"*/" string is highlighted as error. But It is correct code.

int main()
{
    const/*    */int*/*       */i = 0;    // const int* i = 0;
    return(0);
}
Comment 1 Vladimir Voskresensky 2007-08-23 11:26:36 UTC
fixed:
- handle */* correctly in syntax

cvs log:
Checking in CCSyntax.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/editor/cplusplus/CCSyntax.java,v  <--  CCSyntax.java
new revision: 1.13; previous revision: 1.12
done

+ tests
Checking in CCDocumentTokenizeUnitTestCase.java;
/shared/data/ccvs/repository/cnd/core/test/unit/src/org/netbeans/modules/cnd/editor/cplusplus/CCDocumentTokenizeUnitTestCase.java,v
 <--  CCDocumentTokenizeUnitTestCase.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/cnd/core/test/unit/src/org/netbeans/modules/cnd/editor/cplusplus/CCTokenizeUnitTestCase.java,v
done
Checking in CCTokenizeUnitTestCase.java;
/shared/data/ccvs/repository/cnd/core/test/unit/src/org/netbeans/modules/cnd/editor/cplusplus/CCTokenizeUnitTestCase.java,v
 <--  CCTokenizeUnitTestCase.java
initial revision: 1.1
done
Checking in CCSyntaxUnitTest.java;
/shared/data/ccvs/repository/cnd/core/test/unit/src/org/netbeans/modules/cnd/editor/cplusplus/CCSyntaxUnitTest.java,v 
<--  CCSyntaxUnitTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in CCTokenizePreprocessorUnitTestCase.java;
/shared/data/ccvs/repository/cnd/core/test/unit/src/org/netbeans/modules/cnd/editor/cplusplus/CCTokenizePreprocessorUnitTestCase.java,v
 <--  CCTokenizePreprocessorUnitTestCase.java
new revision: 1.3; previous revision: 1.2
done
Comment 2 soldatov 2008-02-28 09:02:51 UTC
code is highlighted as error
Comment 3 Vladimir Voskresensky 2008-02-28 10:36:14 UTC
thanks. need to update new lexer as well for such use case
Comment 4 Vladimir Voskresensky 2008-02-28 11:59:46 UTC
fixed

log: http://hg.netbeans.org/main?cmd=changeset;node=cdd07b4a729c
Comment 5 soldatov 2008-03-14 21:21:08 UTC
verified in 200803141205 build