private String readComment ( boolean returnText ) throws IOException , KriptonRuntimeException { read ( START_COMMENT ) ; if ( relaxed ) { return readUntil ( END_COMMENT , returnText ) ; } String commentText = readUntil ( COMMENT_DOUBLE_DASH , returnText ) ; if ( peekCharacter ( ) != ' ' ) { throw new KriptonRuntimeException ( "Comments may not contain --" , true , this . getLineNumber ( ) , this . getColumnNumber ( ) , getPositionDescription ( ) , null ) ; } position ++ ; return commentText ; }
Read comment .