parinfer-lua icon indicating copy to clipboard operation
parinfer-lua copied to clipboard

Parinfer core algorithm in Lua

Results 9 parinfer-lua issues
Sort by recently updated
recently updated
newest added

Parinfer thinks that semicolons between vertical bars is a comment (it's not). At least in common lisp, racket, and lumen this is wrong ```racket (define |;| 5) (print |;|) ```...

We should put together whatever plumbing is necessary to add this library to [LuaRocks](https://luarocks.org/).

enhancement
help wanted
good first issue

It would be nice if we could run the test suite for a single test case via command line argument. Example: ```sh lua tests.lua --id:2200 ``` [parinfer.js](https://github.com/oakmac/parinfer/) has this and...

enhancement
help wanted
good first issue

This library should support `\r\n` and `\n` for line endings ([just like parinfer.js](https://github.com/oakmac/parinfer/blob/6efd6b0a9bf5ca0a3a77c934a3ba7a1f26be783a/parinfer.js#L180-L188)). Currently it only supports `\n`.

enhancement
help wanted
good first issue

The [test file from parinfer.js](https://github.com/oakmac/parinfer/blob/6efd6b0a9bf5ca0a3a77c934a3ba7a1f26be783a/test/test.js#L43-L232) contains additional test cases that are not included in the `.json` files found in this repo. These test cases need to be ported over as...

help wanted
good first issue

It would be nice to set up continuous integration so the test suite runs on every commit / PR.

help wanted
good first issue

As of this writing, I have done zero performance testing or optimizations for this library. My initial goal was to get the full test suite to pass. I suspect there...

[Parinfer](http://shaunlebron.github.io/parinfer/) is a novel way of editing Lisp code that infers code structure from indentation. [Lua](https://www.lua.org/) is a popular programming language used by many text editors for plugins and extensions....

Multi-byte characters mess up indentation. ```fnl (λ foo [:bar :baz]) (λ foo [:bar] :baz) ``` ```lua > string.len("λ") 2 ``` Same as this issue in parinfer-rust: https://github.com/eraserhd/parinfer-rust/issues/26 (Although parinfer-rust, seems...