From d1e2dc31b950e28bf7465076ff8b31ce376fc72f Mon Sep 17 00:00:00 2001 From: Aidan De Angelis Date: Thu, 24 Jul 2025 14:11:30 -0700 Subject: [PATCH] feat(jsonl): add JSON Lines parser --- lua/nvim-treesitter/parsers.lua | 9 +++++++++ queries/jsonl/highlights.scm | 1 + 2 files changed, 10 insertions(+) create mode 100644 queries/jsonl/highlights.scm diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 31b691209..690f903f1 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1219,6 +1219,15 @@ list.jsonc = { readme_name = "JSON with comments", } +list.jsonl = { + install_info = { + url = "https://github.com/AJamesyD/tree-sitter-jsonl", + files = { "src/parser.c" }, + branch = "mainline", + }, + maintainers = { "@AJamesyD" }, +} + list.jsonnet = { install_info = { url = "https://github.com/sourcegraph/tree-sitter-jsonnet", diff --git a/queries/jsonl/highlights.scm b/queries/jsonl/highlights.scm new file mode 100644 index 000000000..41269219e --- /dev/null +++ b/queries/jsonl/highlights.scm @@ -0,0 +1 @@ +; inherits: json