Issue #352 resolved

C lexer comments + function definition/declaration bug fix

Pierre Bourdon
created an issue

This patch solves a bug with comments parsed as Token.Text with C lexer, when placed in function declarations or definitions.

Test case : {{{ void f(void) / comment KO / {}

void g(void) / comment KO /

{/ comment OK /}

void h(void) / comment KO /;

f(5) / comment OK /;

void f(void); / comment OK /

int z / comment OK / =0;

enum / comment OK / {A,B}; }}}

Diff is attached, as usual.

Comments (2)

  1. Log in to comment