1.0.0 • Published 9 months ago

codemirror-lang-sparql v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

CodeMirror SPARQL Language Support

A CodeMirror extension that provides SPARQL syntax highlighting and language support.

Note

This parser is in a usable state but not 100% in line with the spec yet

Usage

import { basicSetup } from 'codemirror';
import { EditorView } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { sparql } from 'codemirror-lang-sparql';

const doc = `
 SELECT * WHERE { ?s ?p ?o }
`

new EditorView({
  state: EditorState.create({
    doc,
    extensions: [
      basicSetup,
      sparql(),
    ],
  }),
  parent: document.querySelector('#editor'),
});
1.0.0

9 months ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago