Skip to content

Commit da52640

Browse files
committed
allow blank comment_char to disable comments.
1 parent 7dd5f07 commit da52640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/json_value_module.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,9 @@ subroutine json_initialize(json,verbose,compact_reals,&
769769
end if
770770

771771
! if we are allowing comments in the file:
772+
! [an empty string disables comments]
772773
if (present(comment_char)) then
773-
json%allow_comments = .true.
774+
json%allow_comments = comment_char/=CK_''
774775
json%comment_char = comment_char
775776
end if
776777

0 commit comments

Comments
 (0)