1
0

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

View File

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