https://defect.opensolaris.org/bz/show_bug.cgi?id=18655

           Summary: Support for C# verbatim strings
    Classification: Development
           Product: opengrok
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Currently C# files are analyzed using C parser which does not understand
(C#-specific) verbatim string syntax (it's a C parser after all).

Unfortunatelly verbatim strings in source file break further processing:
e.g. if a literal like this:   @"c:\some\path\"   is encountered, the trailing
\" will be interpreted as an escape sequence (see STRING token def) and the
lexical analyzer will search for string termination in next lines, thus
ignoring any symbols in-between. This prevents effective searching through C#
files.

Since OpenGrok partially supports C#, I thing it would be the time to separate
C and C# processing logic, so that the latter may be furtrer customized.
As a quick fix - adding support for verbatim (@"...") strings in C lexical
analyzer shouldn't break anything :)

-- 
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to