8b4c137a3b
Nix can accept (nearly?) arbitrary values as attributes, if they are quoted in strings. So generating “dots” should always result in valid nix attributes. This uses the same regex as the nix lexer (as of 1.11). Also add a few tests whether it correctly generates symbol/non-symbol attributes. |
||
---|---|---|
.. | ||
EvalTests.hs | ||
Main.hs | ||
ParserTests.hs | ||
ShorthandTests.hs |