Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

oakmac/parinfer-lua

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.