d2 grammar for tree-sitter
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Dmitriy Pleshevskiy eb6910126f
doc: change repository url to use latest version
6 days ago
assets doc: update screenshot 3 months ago
bindings Add support of any escape character in text block 4 months ago
dev format lua config 3 months ago
examples change highlights 4 months ago
queries add missed highlight for block comments 3 months ago
scripts remove unnecessary choice 4 months ago
src grammar: add fill-pattern style attribute 6 days ago
test grammar: add link and tooltip attributes 3 months ago
.gitignore Add structure for container and shapes (#1) 4 months ago
Cargo.toml initial commit 4 months ago
Makefile chore: add help to makefile 3 months ago
README.md doc: change repository url to use latest version 6 days ago
binding.gyp Add support of any escape character in text block 4 months ago
flake.lock initial commit 4 months ago
flake.nix add dev editor 4 months ago
grammar.js grammar: add fill-pattern style attribute 6 days ago
package.json fix highlight 4 months ago
tree-sitter-d2.wasm grammar: add fill-pattern style attribute 6 days ago

README.md

tree-sitter-d2

d2 grammar for tree-sitter.

References:

Highlights

screenshot

Install

Neovim

Using nvim-treesitter, add to your configuration

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.d2 = {
  install_info = {
    url = 'https://git.pleshevski.ru/pleshevskiy/tree-sitter-d2',
    revision = 'main',
    files = { 'src/parser.c', 'src/scanner.cc' },
  },
  filetype = 'd2',
};