Menu

#421 Syntax highlight support for complex floats ans asm blocks

open
IDE (174)
5
2012-08-14
2007-08-03
Anonymous
No

Hi,
the syntax highlighting in dev-cpp has 2 bugs.

(1) complex floats with "i" suffix
This is displayed in black, wheras "2.fi" or "2.if" should be recognized as a valid number.

const _Complex float z = cexpf( 2.fi * kPI * freq );

(2) asm blocks in gcc can confuse dev-cpp iff the opening bracket doesn't immediately follow the asm statement

asm( "nop" );   // ok
asm ( "nop" );  // kills ighlighting for the rest of the document.

Thanks!

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Oh, and while at it, syntax highlighting for hexadecimal floats, and the new binary number extension of GCC would also be cool.

    Hex floats:
    0x.ap0 // = 10/16

    Binary:
    0b10010100111

     
  • Anonymous

    Anonymous - 2012-08-14

    In fact the word asm with a space before and after, acts as a "end-of-comment" for /**/

     

Anonymous
Anonymous

Add attachments
Cancel