~ubuntu-branches/ubuntu/saucy/augeas/saucy

« back to all changes in this revision

Viewing changes to lenses/dhclient.aug

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Valcárcel Scerpella (Canonical)
  • Date: 2010-04-23 09:28:28 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100423092828-lx8lripknvhkawf3
Tags: 0.7.1-2
* Remove libaugeas0 from augeas-lenses depends. (Closes: #578880)
* Change iptables config location. (LP: #566803)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
let sep_com           = del /[ \t\n]*,[ \t\n]*/ ","
34
34
let sep_slh           = del "\/" "/"
35
35
let sep_col           = del ":" ":"
 
36
let sep_eq            = del /[ \t]*=[ \t]*/ "="
36
37
 
37
38
(* Define basic types *)
38
39
let word              = /[A-Za-z0-9_.-]+(\[[0-9]+\])?/
41
42
 
42
43
(* TODO: there could be a " " in the middle of a value ... *)
43
44
let sto_to_spc        = store /[^\\#,;\{\}" \t\n]+|"[^\\#"\n]+"/
 
45
let sto_to_scl        = store /[^ \t][^;\n]+[^ \t]|[^ \t;\n]+/
 
46
let rfc_code          = [ key "code" . sep_spc . store word ]
 
47
                      . sep_eq
 
48
                      . [ label "value" . sto_to_scl ]
44
49
let sto_number        = store /[0-9][0-9]*/
45
50
 
46
51
(************************************************************************
88
93
 
89
94
let stmt_hash         = [ key stmt_hash_re
90
95
                        . sep_spc
91
 
                        . [ key word . sep_spc . sto_to_spc ]
 
96
                        . [ key word . sep_spc . (sto_to_spc|rfc_code) ]
92
97
                        . sep_scl
93
98
                        . (eol|comment) ]
94
99