From d2560ebb395b460db1f5a8ebd5db234ac1e223a7 Mon Sep 17 00:00:00 2001 From: Sharan Roongta Date: Mon, 12 Jul 2021 21:42:51 +0200 Subject: [PATCH] function should return either 'true' or 'false' and not bear the responsibility to throw errors We were forcing every colon to indicate either key or key: value --- src/YAML_parse.f90 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/YAML_parse.f90 b/src/YAML_parse.f90 index 8e20e0c29..7ea71f494 100644 --- a/src/YAML_parse.f90 +++ b/src/YAML_parse.f90 @@ -199,11 +199,7 @@ logical function isKeyValue(line) isKeyValue = .false. if( .not. isKey(line) .and. index(IO_rmComment(line),':') > 0 .and. .not. isFlow(line)) then - if(index(IO_rmComment(line),': ') > 0) then - isKeyValue = .true. - else - call IO_error(704,ext_msg=line) - endif + if(index(IO_rmComment(line),': ') > 0) isKeyValue = .true. endif end function isKeyValue