Coder Social home page Coder Social logo

vscode-dune's Introduction

Dune for vscode

โš ๏ธ Deprecated. Please use the official ocamllabs/vscode-ocaml-platform instead.

Syntax coloring and linting for Dune/Jbuilder files in vscode. It is inspired by the emacs, vim and atom plugins.

VS Code screenshot

This tmLanguage could also be used in other editors (textmate, sublime text) but I didn't write a package/extension specifically for them; feel free to pick the tmLanguage for any other editor! Github source is here.

Contribute

If you to fix the syntax file Dune.tmLanguage, you can use the Dune.YAML-tmLanguage file to do so and then go into build and run

npm install
npm start

to compile yaml into tmLanguage. The JSON-tmLanguage is also generated in case it can help for adding syntax support to an other editor.

To debug the syntax highlighting, you can use the command Developer Tools: Inspect TM Tokens.

vscode-dune's People

Contributors

anmonteiro avatar jsdelivrbot avatar maelvls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jsdelivrbot

vscode-dune's Issues

Comment syntax is wrong?

Dune doesn't understand comments of the form #;. I would suggest always toggling comments with ;.

Add new actions / fields to stanza adding later in the language

Some keywords are missing for dune 2.0, like:

  • enabled_ if field in the install stanza and executable stanza
  • (no-infer ...) action
  • new field (theories ...) to support for theory dependencies and compositional builds
  • (subdir ..) stanza to allow evaluating stanzas in sub directories
  • list of modifiers that can be nested under with-accepted-exit-codes with chdir, setenv, ignore-<outputs>, with-stdin-from and with-<outputs>-to
  • field (optional) for executable stanzas
  • deprecated_library_name stanza
  • action (with-accepted-exit-codes <pred> <action>)
  • (foreign_library ...) stanza as well as the (foreign_stubs ...) and (foreign_archives ...) fields
  • alias and package fields in the rule stanza
  • formatting stanza
  • forbidden_libraries field
  • ccomp_type as a variable for evaluating enabled_if
  • flag disable_dynamically_linked_foreign_archives to the workspace file

Note: I stopped checking at 1.11.4 or below (see https://github.com/ocaml/dune/releases for details)

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.