Thanks.
I've applied this patch to CEDET/CVS.
Unfortunately, the csharp parser doesn't have any tests for me to run so
I couldn't verify this.
Eric
On 07/16/2010 10:59 AM, ·áÄþ wrote:
> In C# mode, if there are spaces before "#region" or "#endregion",
> wisent-csharp can not parse correctly¡£
> This bug can be fixed like this:(wisent-csharp.el)
>
> (define-lex-regex-analyzer wisent-csharp-lex-ignore-region
> "Ignore # type macros for C sharp."
> "\\s-*#region\\>"
> (goto-char (match-end 0))
> (forward-word 1)
> (setq semantic-lex-end-point (point))
> nil)
> (define-lex-regex-analyzer wisent-csharp-lex-ignore-endregion
> "Ignore # type macros for C sharp."
> "\\s-*#endregion\\>"
> (setq semantic-lex-end-point (match-end 0))
> nil)
>
> After replacing the code above, go into the contrib directory and type
> "make" to recompile wisent-csharp.el.
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
>
>
> _______________________________________________
> Cedet-devel mailing list
> Cedet-devel@...
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
|