eval: use gperf to generate the hash of builtin functions

make api functions highlighted as builtins in vim.vim
This commit is contained in:
Björn Linse
2016-06-19 16:41:08 +02:00
parent 87e054bb24
commit 7e2348f2b1
12 changed files with 470 additions and 622 deletions

View File

@@ -15,7 +15,7 @@ end
return {
funcs={
abs={args=1},
acos={args=1}, -- WJMc
acos={args=1, func="float_op_wrapper", data="&acos"}, -- WJMc
add={args=2},
['and']={args=2},
api_info={},
@@ -24,7 +24,7 @@ return {
argidx={},
arglistid={args={0, 2}},
argv={args={0, 1}},
asin={args=1}, -- WJMc
asin={args=1, func="float_op_wrapper", data="&asin"}, -- WJMc
assert_equal={args={2, 3}},
assert_exception={args={1, 2}},
assert_fails={args={1, 2}},
@@ -33,7 +33,7 @@ return {
assert_notequal={args={2, 3}},
assert_notmatch={args={2, 3}},
assert_true={args={1, 2}},
atan={args=1, func="float_op_wrapper", data="atan"},
atan={args=1, func="float_op_wrapper", data="&atan"},
atan2={args=2},
browse={args=4},
browsedir={args=2},
@@ -50,7 +50,7 @@ return {
byteidx={args=2},
byteidxcomp={args=2},
call={args={2, 3}},
ceil={args=1},
ceil={args=1, func="float_op_wrapper", data="&ceil"},
changenr={},
char2nr={args={1, 2}},
cindent={args=1},
@@ -61,8 +61,8 @@ return {
complete_check={},
confirm={args={1, 4}},
copy={args=1},
cos={args=1},
cosh={args=1},
cos={args=1, func="float_op_wrapper", data="&cos"},
cosh={args=1, func="float_op_wrapper", data="&cosh"},
count={args={2, 4}},
cscope_connection={args={0, 3}},
cursor={args={1, 3}},
@@ -81,7 +81,7 @@ return {
execute={args=1},
exepath={args=1},
exists={args=1},
exp={args=1},
exp={args=1, func="float_op_wrapper", data="&exp"},
expand={args={1, 3}},
extend={args={2, 3}},
feedkeys={args={1, 2}},
@@ -92,7 +92,7 @@ return {
finddir={args={1, 3}},
findfile={args={1, 3}},
float2nr={args=1},
floor={args=1},
floor={args=1, func="float_op_wrapper", data="&floor"},
fmod={args=2},
fnameescape={args=1},
fnamemodify={args=2},
@@ -184,8 +184,8 @@ return {
line2byte={args=1},
lispindent={args=1},
localtime={},
log={args=1},
log10={args=1},
log={args=1, func="float_op_wrapper", data="&log"},
log10={args=1, func="float_op_wrapper", data="&log10"},
map={args=2},
maparg={args={1, 4}},
mapcheck={args={1, 3}},
@@ -223,7 +223,7 @@ return {
['repeat']={args=2},
resolve={args=1},
reverse={args=1},
round={args=1},
round={args=1, func="float_op_wrapper", data="&round"},
rpcnotify={args=varargs(2)},
rpcrequest={args=varargs(2)},
rpcstart={args={1, 2}},
@@ -257,14 +257,14 @@ return {
shellescape={args={1, 2}},
shiftwidth={},
simplify={args=1},
sin={args=1},
sinh={args=1},
sin={args=1, func="float_op_wrapper", data="&sin"},
sinh={args=1, func="float_op_wrapper", data="&sinh"},
sort={args={1, 3}},
soundfold={args=1},
spellbadword={args={0, 1}},
spellsuggest={args={1, 3}},
split={args={1, 3}},
sqrt={args=1},
sqrt={args=1, func="float_op_wrapper", data="&sqrt"},
str2float={args=1},
str2nr={args={1, 2}},
strchars={args={1,2}},
@@ -291,8 +291,8 @@ return {
tabpagewinnr={args={1, 2}},
tagfiles={},
taglist={args=1},
tan={args=1},
tanh={args=1},
tan={args=1, func="float_op_wrapper", data="&tan"},
tanh={args=1, func="float_op_wrapper", data="&tanh"},
tempname={},
termopen={args={1, 2}},
test={args=1},
@@ -301,7 +301,7 @@ return {
tolower={args=1},
toupper={args=1},
tr={args=3},
trunc={args=1},
trunc={args=1, func="float_op_wrapper", data="&trunc"},
type={args=1},
undofile={args=1},
undotree={},