Author: ZHANG Weiyi dochang@gmail.com
Version: 0.0.0
URL: https://github.com/dochang/json5-ts-mode
This package provides a tree-sitter major mode for editing JSON5 files.
To install a tree-sitter grammar, the following tools are required:
- Git
- C/C++ compiler
If your compiler is not cc, gcc, c99, c++ or g++, check out the
documentation of treesit-language-source-alist.
(treesit-available-p) ; should return t(require 'treesit)
(add-to-list 'treesit-language-source-alist
'(json5 "https://github.com/Joakker/tree-sitter-json5"))Then run M-x treesit-install-language-grammar
(add-to-list 'load-path "/path/to/json5-ts-mode")
(require 'json5-ts-mode)
(add-to-list 'auto-mode-alist
'("\\.json5\\'" . json5-ts-mode))Number of spaces for each indentation step in json5-ts-mode.
Currently this mode doesn't support multi-line strings because the grammar doesn't support it.
GPLv3
Converted from json5-ts-mode.el by el2markdown.