protected List < Map < String , ? > > generateNumericConstants ( ) { final List < Map < String , ? > > list = new ArrayList <> ( ) ; list . add ( pattern ( it -> { it . matches ( "(?:" //$NON-NLS-1$ + "[0-9][0-9]*\\.[0-9]+([eE][0-9]+)?[fFdD]?" //$NON-NLS-1$ + ")|(?:" //$NON-NLS-1$ + "0[xX][0-9a-fA-F]+" //$NON-NLS-1$ + ")|(?:" //$NON-NLS-1$ + "[0-9]+[lL]?" //$NON-NLS-1$ + ")" ) ; //$NON-NLS-1$ it . style ( NUMBER_STYLE ) ; it . comment ( "Numbers" ) ; //$NON-NLS-1$ } ) ) ; return list ; }
Generate the rules for the numeric constants .