This project is mirrored from https://github.com/nix-community/rnix-parser. Pull mirroring updated .
  1. 06 Dec, 2021 5 commits
  2. 02 Dec, 2021 1 commit
    • Maximilian Bosch's avatar
      Fix trivia tokens being misplaced · 32f3140c
      Maximilian Bosch authored
      While working on #44 I had to split up the internal token-update
      behavior a bit as we have to decide which node to use (and also which
      behavior - depending on whether we have a "literal" path or a path with
      an interpolation).
      
      Unfortunately I wasn't careful enough with checking where trivia tokens
      (i.e. `\n`, ` ` etc.) were placed.
      
      This lead to situations such as
      
          TOKEN_WHITESPACE(" ") 37..38
          TOKEN_WHITESPACE(" ") 38..39
          NODE_LITERAL 39..44 {
            TOKEN_PATH("./bar") 39..44
      
      where the second white-space should've been after the path `./bar`.
      32f3140c
  3. 30 Nov, 2021 2 commits
  4. 23 Nov, 2021 3 commits
  5. 22 Nov, 2021 1 commit
  6. 15 Nov, 2021 3 commits
  7. 13 Nov, 2021 2 commits
  8. 11 Nov, 2021 2 commits
  9. 10 Nov, 2021 2 commits
    • Maximilian Bosch's avatar
      Merge pull request #48 from nix-community/float-starting-with-dot · fa6dddec
      Maximilian Bosch authored
      Floats without trailing zeros (e.g. `.5`) are valid Nix code
      fa6dddec
    • Maximilian Bosch's avatar
      Support paths with dynamic interpolation from Nix 2.4+ · 851e3120
      Maximilian Bosch authored
      Since Nix 2.4 it's possible to perform string interpolations within
      paths:
      
          nix-repl> let a = "rnix"; in /home/ma27/Projects/${a}-parser
          /home/ma27/Projects/rnix-parser
      
      Please note that the following expressions are not supported (by both
      Nix and this patch):
      
      * `NIX_PATH` imports, i.e. `<nixpkgs/${foo}>`
      * Interpolations before the first slash, i.e. `foo${bar}/baz`.
      
      The newly introduced token `NODE_PATH_WITH_INTERPOL` is only used for
      these interpolated paths. Literal paths are still `TOKEN_PATH` inside
      `NODE_LITERAL` for backwards compatibility.
      
      Closes #44
      851e3120
  10. 09 Nov, 2021 2 commits
  11. 08 Nov, 2021 5 commits
  12. 23 Oct, 2021 2 commits
  13. 19 Oct, 2021 1 commit
  14. 17 Oct, 2021 2 commits
  15. 16 Oct, 2021 2 commits
  16. 15 Oct, 2021 2 commits
  17. 08 Oct, 2021 3 commits