Skip to content

ahrefs/format-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a formatter for OCaml that only format the inside of a line. It does not change indentation or add line breaks. It is based on the OCaml lexer and decides which lexing token should be separated by a space and which should not.

It is meant to be used alongside ocp-indent.

Usage:

For output on stdout:

dune exec format-line -- input.ml

For output in a file:

dune exec bin/main.exe input.ml -o output

For formatting the file inline:

dune exec bin/main.exe input.ml -i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published