Fix bench script; Update highlight queries

This commit is contained in:
Jeff 2023-12-30 00:39:49 -05:00
parent 49a219f764
commit dec9e70e4f
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ hyperfine \
--shell none \
--parameter-list data_path examples/assets/seaCreatures.json,examples/assets/jq_data.json,dielectron.json \
--warmup 3 \
"dust -c '(length (from_json input))' -p {data_path}" \
"dust -c 'length(from_json(input))' -p {data_path}" \
"jq 'length' {data_path}" \
"node --eval \"require('node:fs').readFile('{data_path}', (err, data)=>{console.log(JSON.parse(data).length)})\"" \
"nu -c 'open {data_path} | length'"

View File

@ -39,7 +39,6 @@
"else"
"false"
"float"
"fn"
"for"
"if"
"in"
@ -50,6 +49,8 @@
"str"
"true"
"while"
"->"
"=>"
] @keyword
(built_in_function) @function.builtin