Skip to content

c.lang: number improvements

eyelash requested to merge eyelash/gtksourceview:c-floating-point into master

A few changes to the C language definition:

  • exponent digits are mandatory (1.2ef is not valid)
  • support hexadecimal floating constants like 0xA.Bp0f, 0x.Bp0f, 0xA.p0f, or 0xAp0f
  • support binary constants (0b1000). They have been supported in C++ since C++14 and will probably be added to C in C23
Edited by eyelash

Merge request reports