3.0.8 • Published 15 days ago

codemirror-rainlang v3.0.8

Weekly downloads
-
License
CAL-1.0
Repository
github
Last release
15 days ago

Rain Language - Codemirror

The Rain language (aka rainlang) implementaion for codemirror, which works as a codemirror extension. This extention provides:

  • Syntax highlighting (written in lezer grammar)
  • Diagnostics
  • Completion (through codemirror autocomplete extension)
  • Hover (through codemirror hoverTooltip extension)

This repo uses and utilized original source code from codemirror-languageserver.

The primary goal of the Rain language is to make smart contract development accessible for as many people as possible. This is fundamentally grounded in our belief that accessibility is the difference between theoretical and practical decentralisation. There are many people who would like to participate in authoring and auditing crypto code but currently cannot. When someone wants/needs to do something but cannot, then they delegate to someone who can, this is by definition centralisation.

For more info and details about rainlang, please read this article.

If you find an issue or you want to propose an improvement, please feel free to post it on: issues

Tutorial

To get started, install the package:

yarn add codemirror-rainlang
or
npm install codemirror-rainlang

Then you can use any of RainLanguage(), RainlangExtension an RainlangDescription to get rainlang codemirror extension:

// import
import { RainLanguage, RainLanguageServicesFacet } from "codemirror-rainlang";

// get the `LanguageSupport` instance
const rainlangCodemirror = new RainlangExtension(config);

// for getting the plugin instance of a running extension
const rainViewPlugin = rainlangCodemirror.plugin;

// get the MetaStore instance or EditorView instance
const view = rainPlugin?.view;
const metaStore = rainPlugin?.metaStore;
3.0.8

15 days ago

3.0.7

1 month ago

3.0.6

2 months ago

3.0.5

2 months ago

3.0.4

2 months ago

3.0.3

2 months ago

3.0.2

2 months ago

3.0.1

3 months ago

1.2.0

7 months ago

1.2.1

7 months ago

2.0.3

6 months ago

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.11

1 year ago

1.0.3

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago