protected List < Map < String , ? > > generateStrings ( ) { final List < Map < String , ? > > list = new ArrayList <> ( ) ; // Double quote list . add ( pattern ( it -> { it . delimiters ( "\"" , "\"" ) ; //$NON-NLS-1$ //$NON-NLS-2$ it . style ( DOUBLE_QUOTE_STRING_STYLE ) ; it . beginStyle ( STRING_BEGIN_STYLE ) ; it . endStyle ( STRING_END_STYLE ) ; it . pattern ( it2 -> { it2 . matches ( "\\\\." ) ; //$NON-NLS-1$ it2 . style ( ESCAPE_CHARACTER_STYLE ) ; } ) ; it . comment ( "Double quoted strings of characters" ) ; //$NON-NLS-1$ } ) ) ; // Single quote list . add ( pattern ( it -> { it . delimiters ( "'" , "'" ) ; //$NON-NLS-1$ //$NON-NLS-2$ it . style ( SINGLE_QUOTE_STRING_STYLE ) ; it . beginStyle ( STRING_BEGIN_STYLE ) ; it . endStyle ( STRING_END_STYLE ) ; it . pattern ( it2 -> { it2 . matches ( "\\\\." ) ; //$NON-NLS-1$ it2 . style ( ESCAPE_CHARACTER_STYLE ) ; } ) ; it . comment ( "Single quoted strings of characters" ) ; //$NON-NLS-1$ } ) ) ; return list ; }
Generates the rules for the strings of characters .