Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference: https://docs.oracle.com/javase/specs/jls/se6/html/lexical.html#48272 Draft: DecimalNumeral: 0|[1-9][0-9]* HexNumeral: 0x[0-9a-f]+ OctalNumeral: 0[0-7]+ IntegerLiteral: 0|[1-9][0-9]*|0x[0-9a-f]+|0[0-7]+ ExponentPart: e[+-]?[0-9]+ DecimalFloatingPointLiteral: 1. [0-9]+\.[0-9]*(?:e[+-]?[0-9]+)?[fd]? 2. \.[0-9]+(?:e[+-]?[0-9]+)?[fd]? 3. [0-9]+(?:e[+-]?[0-9]+)[fd]? 4. [0-9]+(?:e[+-]?[0-9]+)?[fd] HexadecimalFloatingPointLiteral: (?:0x[0-9a-f]+\.?|0x[0-9a-f]*\.[0-9a-f]+)p[+-]?[0-9]+[fd]? Number: (?<=\b|\s|^)(?i)(?:(?:[0-9]+\.[0-9]*(?:e[+-]?[0-9]+)?[fd]?)|(?:\.[0-9]+(?:e[+-]?[0-9]+)?[fd]?)|(?:[0-9]+(?:e[+-]?[0-9]+)[fd]?)|(?:[0-9]+(?:e[+-]?[0-9]+)?[fd])|(?:(?:(?:0x[0-9a-f]+\.?)|(?:0x[0-9a-f]*\.[0-9a-f]+))p[+-]?[0-9]+[fd]?)|(?:0)|(?:[1-9][0-9]*)|(?:0x[0-9a-f]+)|(?:0[0-7]+))(?=\b|\s|$)
- Loading branch information