Commit 50f7283c authored by Štěpán Balážik's avatar Štěpán Balážik Committed by Petr Špaček
Browse files

augeas-lens: fix for generating unnecessary newlines

parent ed9f8a3b
Pipeline #38481 passed with stage
in 1 minute and 44 seconds
......@@ -11,7 +11,7 @@ let word = /[^\t\n\/; ]+/
let comment = del /[;]/ ";" . [label "comment" . store /[^\n]+/]
let eol = del /([ \t]*([;][^\n]*)?\n)+/ "\n" . Util.indent
let comment_or_eol = ws . comment? . del_str "\n" . del /([ \t]*([;][^\n]*)?\n)*/ "\n" . Util.indent
let comment_or_eol = ws . comment? . del_str "\n" . del /([ \t]*([;][^\n]*)?\n)*/ "" . Util.indent
(*let comment_or_eol = [ label "#comment" . counter "comment" . (ws . [del /[;#]/ ";" . label "" . store /[^\n]*/ ]? . del_str "\n")]+ . Util.indent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment