Add support for json5

This commit is contained in:
Joakker 2021-08-24 18:23:16 -04:00 committed by Thomas Vigouroux
parent a76dbe7335
commit d8595fb923
5 changed files with 31 additions and 0 deletions

1
ftdetect/json5.vim Normal file
View file

@ -0,0 +1 @@
autocmd BufNewFile,BufRead *.json5 set ft=json5

View file

@ -107,6 +107,9 @@
"jsonc": {
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
},
"json5": {
"revision": "5dd5cdc418d9659682556b6adca2dd9ace0ac6d2"
},
"julia": {
"revision": "12ea597262125fc22fd2e91aa953ac69b19c26ca"
},

View file

@ -684,6 +684,15 @@ list.vim = {
maintainers = { "@vigoux" },
}
list.json5 = {
install_info = {
url = "https://github.com/Joakker/tree-sitter-json5",
files = { "src/parser.c" },
},
filetype = "json5",
maintainers = { "@Joakker" },
}
local M = {
list = list,
}

View file

@ -0,0 +1,17 @@
[
"true"
"false"
] @boolean
"null" @constant
(member
name: (_) @keyword)
(string) @string
(number) @number
(comment) @comment
(ERROR) @error

View file

@ -0,0 +1 @@
(comment) @comment