[augeas-devel] [PATCH] Support empty comments, like lines beginning with "; " or "#" but without any more text
Free Ekanayaka
free at 64studio.com
Wed Aug 27 10:18:23 UTC 2008
# HG changeset patch
# User Free Ekanayaka <free at 64studio.com>
# Date 1219832278 -7200
# Node ID 634a7dc64d3727a303584362341842ba28a5a340
# Parent 33bcfcf2ae045c3f18c8d9eeddaed96746810ecd
Support empty comments, like lines beginning with ";" or "#" but without any more text
diff -r 33bcfcf2ae04 -r 634a7dc64d37 lenses/inifile.aug
--- a/lenses/inifile.aug Wed Aug 27 11:56:10 2008 +0200
+++ b/lenses/inifile.aug Wed Aug 27 12:17:58 2008 +0200
@@ -32,7 +32,7 @@ let sto_to_comment = Util.del_opt_ws
(* Define comment and defaults *)
let comment (pat:regexp) (default:string)
= [ label "#comment" . sep pat default
- . sto_to_eol . eol ]
+ . sto_to_eol? . eol ]
let comment_re = /[;#]/
let comment_default = ";"
More information about the augeas-devel
mailing list