Commit 81fe7c84 authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'augeas-lens-fix' into 'master'

augeas-lens: fix for generating unnecessary newlines

See merge request !123
parents ed9f8a3b 50f7283c
Pipeline #38483 passed with stage
in 1 minute and 33 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