1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #467 resolved

C lexer should trigger an Error for dangling */

Anonymous created an issue

While / / c / i++ / is not a valid C code, no error is currently triggered on the last */.

I imagine that adding a regex for that token in the 'statements' state is enough for this.

I attach an mercurial export, mostly to learn whether that's the proper way to submit patches (I've used mostly darcs and git, never mercurial...)

Best regards, Samuel Hym

Reported by samuelhym