d2 grammar for tree-sitter
Go to file
Dmitriy Pleshevskiy e7507ddd98
grammar: add support of referencing connection
Closes #18
2023-06-22 02:12:18 +03:00
assets doc: update screenshots 2023-06-16 01:42:08 +03:00
bindings Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
dev queries: add folds 2023-06-16 18:37:15 +03:00
examples grammar: add support of underscore keyword... 2023-06-16 07:42:49 +03:00
queries queries: improve indents 2023-06-21 19:12:39 +03:00
scripts remove unnecessary choice 2022-12-10 23:09:11 +03:00
src grammar: add support of referencing connection 2023-06-22 02:12:18 +03:00
test grammar: add support of referencing connection 2023-06-22 02:12:18 +03:00
.gitignore Add structure for container and shapes (#1) 2022-12-09 12:36:31 +03:00
Cargo.toml initial commit 2022-12-04 00:07:26 +03:00
Makefile chore: add help to makefile 2023-01-05 16:19:01 +03:00
README.md doc: update screenshots 2023-06-16 01:42:08 +03:00
binding.gyp Add support of any escape character in text block 2022-12-10 22:56:41 +03:00
flake.lock queries: use comment hightlights for line and block 2023-06-16 07:34:32 +03:00
flake.nix queries: use comment hightlights for line and block 2023-06-16 07:34:32 +03:00
grammar.js grammar: add support of referencing connection 2023-06-22 02:12:18 +03:00
package.json fix highlight 2022-12-07 11:58:45 +03:00
tree-sitter-d2.wasm grammar: add support of referencing connection 2023-06-22 02:12:18 +03:00

README.md

tree-sitter-d2

d2 grammar for tree-sitter.

References:

Highlights

screenshot_1

screenshot_2

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',
};

Mirrors