Skip to content

codereport/bqn-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bqn-format

🚧 THIS IS A WIP. MANY CORNER CASES CURRENTLY DO NOT WORK. 🚧

A (soon to be configurable) formatter for BQN.

Usage

Running from the command line

Basic usage shown below:

bqn-format .        # for all bqn files (including subdirectories)
bqn-format test.bqn # for single file

Note, after git clone-ing this repo, you will probably want to put the bqn-format script on your path:

export PATH=$PATH:/home/cph/bqn-format

Using from VS Code

There is a Run on Save where you can add something like the following to your JSON Settings:

  "emeraldwalk.runonsave": {
    "commands": [
      {
        "match": ".*bqn.*",
        "cmd": "bqn-format ${file}"
      }
    ]
  },

Then your BQN code will be formatted on save.

Eventually there will be a BQN formatter extension or this will be folded into the existing BQN VS Code extension.

Demo

Coming.

About

A formatter for BQN

Resources

License

Stars

Watchers

Forks

Languages