You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 17, 2024. It is now read-only.
TSPlayground doesn't show anything for my jdummy language which is a JSON duplicate.
I created this dummy language by copying the JSON grammar and changing its name to jdummy in its grammar.js as shown below.
I can see the pars tree after running: tree-sitter parser example.jdummy,
but I don't see anything in the Playgound.
Am I missing anything?
1- mkdir tree-sitter-jdummy
2- copied the grammar.js of JSON and changed its name to jdummy
3- cd tree-sitter-jdummy
4- update my config file in ~/.config/nvim/init.vim
lua <<EOF
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.jdummy= {
install_info = {
url = "~/src/tree-sitter-jdummy", -- local path or git repo
files = {"src/parser.c"},
branch = 'main'
},
filetype = "jdummy", -- if filetype does not agrees with parser name
}
EOF