Augeas lens is broken
Augeas lens definition is ambiguous:
$ augparse pydnstest/deckard.aug
Syntax error in lens definition
pydnstest/deckard.aug:49.0-.113:Failed to compile record
pydnstest/deckard.aug:49.13-.112:exception: ambiguous concatenation
First regexp: /(((SECTION([^\t\n #.\/;][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECTIO([^\t\n #.\/;N][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECTI([^\t\n #.\/;O][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECT([^\t\n #.\/;I][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SEC([^\t\n #.\/;T][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SE([^\t\n #.\/;C][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|((S[^\t\n #.\/;E]|[^\t\n #.\/;S][^\t\n #.\/;])[^\t\n #.\/;]*\\.|S\\.|[^\t\n #.\/;S]\\.)[^\t\n #.\/;])(\\.[^\t\n #.\/;])*[^\t\n #.\/;](\\.[^\t\n #.\/;](\\.[^\t\n #.\/;])*[^\t\n #.\/;]|[^\t\n #.\/;])*(\\.[^\t\n #.\/;](\\.[^\t\n #.\/;])*(\\.|)|\\.|)|(SECTION([^\t\n #.\/;][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECTIO([^\t\n #.\/;N][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECTI([^\t\n #.\/;O][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SECT([^\t\n #.\/;I][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SEC([^\t\n #.\/;T][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|SE([^\t\n #.\/;C][^\t\n #.\/;]*\\.|\\.)[^\t\n #.\/;]|((S[^\t\n #.\/;E]|[^\t\n #.\/;S][^\t\n #.\/;])[^\t\n #.\/;]*\\.|S\\.|[^\t\n #.\/;S]\\.)[^\t\n #.\/;])(\\.[^\t\n #.\/;])*(\\.|)|SECTION([^\t\n #.\/;][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;][^\t\n #.\/;]*)|SECTIO([^\t\n #.\/;N][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;N][^\t\n #.\/;]*|)|SECTI([^\t\n #.\/;O][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;O][^\t\n #.\/;]*|)|SECT([^\t\n #.\/;I][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;I][^\t\n #.\/;]*|)|SEC([^\t\n #.\/;T][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;T][^\t\n #.\/;]*|)|SE([^\t\n #.\/;C][^\t\n #.\/;]*\\.|\\.|[^\t\n #.\/;C][^\t\n #.\/;]*|)|(S[^\t\n #.\/;E]|[^\t\n #.\/;S][^\t\n #.\/;])[^\t\n #.\/;]*\\.|S\\.|[^\t\n #.\/;S]\\.|(S[^\t\n #.\/;E]|[^\t\n #.\/;S][^\t\n #.\/;])[^\t\n #.\/;]*|S|[^\t\n #.\/;S]|\\.))([ \t]+)(((([0-9]+))([ \t]+))?)(((((((((CLASS[0-9]+)|(IN))|(CH))|(HS))|(NONE))|(ANY)))([ \t]+))?)((AN((Y[^\t\n #\/;]|[^\t\n #\/;Y])[^\t\n #\/;]*|)|CLASS[0-9][0-9][0-9]*[^\t\n #\/-9;][^\t\n #\/;]*|CLASS[0-9][^\t\n #\/-9;][^\t\n #\/;]*|CLASS([^\t\n #\/-9;][^\t\n #\/;]*|)|CLAS([^\t\n #\/;S][^\t\n #\/;]*|)|CLA([^\t\n #\/;S][^\t\n #\/;]*|)|CL([^\t\n #\/;A][^\t\n #\/;]*|)|NON((E[^\t\n #\/;]|[^\t\n #\/;E])[^\t\n #\/;]*|)|NO([^\t\n #\/;N][^\t\n #\/;]*|)|(N[^\t\n #\/;O]|I(N[^\t\n #\/;]|[^\t\n #\/;N])|H(S[^\t\n #\/;]|[^\t\n #\/;S])|C(H[^\t\n #\/;]|[^\t\n #\/;HL])|A[^\t\n #\/;N]|[^\t\n #0-9;ACHIN][^\t\n #\/;])[^\t\n #\/;]*|N|I|H|C|A|[^\t\n #0-9;ACHIN]))([ \t]+)((((\\\\#[ \t])?[^ \t\n#;][^\n#;]*[^ \t\n#;])|[^ \t\n#;]))/
Second regexp: /([\t ]*)((([;#])(([^\n]+)))?)(\n)(([ \t]*([;#][^\n]*)?\n)*)([ \t]*)/
'SECT N \\# AA\n' can be split into
'SECT N \\|=|# AA\n'
and
'SECT N \\# AA|=|\n'
First lens: pydnstest/deckard.aug:49.13-.95:
Second lens: pydnstest/deckard.aug:14.22-.102:
Edited by Štěpán Balážik