File: fail_double_maybe.aug

package info (click to toggle)
augeas 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,216 kB
  • ctags: 5,097
  • sloc: ansic: 48,281; sh: 11,387; cpp: 624; yacc: 515; ruby: 444; makefile: 319; lex: 198; perl: 27; pascal: 27
file content (8 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
module Fail_double_maybe =

  (* We can not allow this: for a string " = " we have no way to know  *)
  (* during put whether to use any of the lenses within the '?' or not *)
  (* since we key that decision off either a tree label (there is none *)
  (* here) or the presence of a value (which in this case may or may   *)
  (* not be there)                                                     *)
  let lns = (del /[ \t]*=/ "=" . (del /[ \t]*/ "" . store /[a-z]+/)? )?