Skip to content

oakmac/parinfer-lua

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Parinfer in Lua

The core Parinfer algorithm written in Lua.

Usage

This library mirrors parinfer.js nearly 1-for-1. Please see documentation there for usage.

Note that this library uses 1 indexes (instead of 0) for things like options.cursorX, options.cursorLine, changes.lineNo, etc in order to be compatible with the rest of the Lua ecosystem.

The library is a single file (parinfer.lua) and has no external dependencies. The libraries in the libs/ folder are for development helpers and to run the test suite.

Run Tests

lua tests.lua

License

ISC License

About

Parinfer core algorithm in Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages