---
 lenses/modprobe.aug |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/lenses/modprobe.aug b/lenses/modprobe.aug
index 7cfa2c9..bdecafb 100644
--- a/lenses/modprobe.aug
+++ b/lenses/modprobe.aug
@@ -33,10 +33,16 @@ let options =
   let option = [ spc . key opt_ch+ . (del /=/ "=" . token)? ] in
     [ cmd "options" . token . option* . eol ]
 
-let entry = [ cmd "alias" . token . spc . arg "modulename" . eol ]
-  | [ cmd "include" . token . eol ]
+let alias = [ cmd "alias" . token . spc . arg "modulename" . eol ]
+
+let include = [ cmd "include" . token . eol ]
+
+let cmd_token_to_eol (n:regexp) = [ cmd n . token_to_eol . eol ]
+
+let entry = alias
+  | include
   | options
-  | [ cmd /install|remove/ . token_to_eol . eol ]
+  | cmd_token_to_eol /install|remove/
   | [ cmd "blacklist" . token . eol ]
   | [ cmd "config" . store /binary_indexes|yes|no/ ]
 
-- 
1.6.6.1

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to