Giter Site home page Giter Site logo

prettier-lpc-vscode's Introduction

prettier-lpc-vscode

VSCode extension to format LPC (Lars Pensjö C) files with Prettier. It is written mainly for the LDMud flavor of LPC, but includes preliminary support for FluffOS as well.

WARNING

This extension is a very early release. It may break your code. Use at your own risk.

Installation

Install from the VS Code Marketplace: prettier-lpc-vscode

Configuration

This plugin, like Prettier, is opinionated. The plugin honors standard prettier config options which can be set via a .prettierrc file. In particular, the following options may be of interest to LPC developers:

API Option Default Description
printWidth Same option as in Prettier
tabWidth Same option as in Prettier
useTabs Same option as in Prettier

Multi-Line Objects

For arrays and functions, this plugin follow's prettier's multi-line objects rule. For tips on how to control whether objects are collapsed to a single line, or not, see: https://prettier.io/docs/en/rationale.html#multi-line-objects

Known Limitations

The folowing languages features are not supported yet:

  • Lambda parsing works, but is untested. Use extra caution.
  • Union types
  • Coroutines

To-Do

  • Support for remaining language features/syntax
  • Split AST parsing into separate package
  • Split prettier plugin portion into separate package
  • Add more options for customization
  • Add unit tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.