diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-06-20 14:40:57 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-08-31 21:57:06 +0200 |
commit | e536abc1e1f59d1ac012e1be576bf55175e95443 (patch) | |
tree | c9ba9c5772f4e0551ccf309f1ac269678ebf77a8 /scripts/gendispatch.lua | |
parent | 7e2348f2b1b487c875bbcf6c6711a276f9063040 (diff) | |
download | rneovim-e536abc1e1f59d1ac012e1be576bf55175e95443.tar.gz rneovim-e536abc1e1f59d1ac012e1be576bf55175e95443.tar.bz2 rneovim-e536abc1e1f59d1ac012e1be576bf55175e95443.zip |
api: Allow blacklist functions that shouldn't be accesible from eval
Blacklist deprecated functions and functions depending on channel_id
Diffstat (limited to 'scripts/gendispatch.lua')
-rw-r--r-- | scripts/gendispatch.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua index 9178996a56..68d4d44e2d 100644 --- a/scripts/gendispatch.lua +++ b/scripts/gendispatch.lua @@ -37,6 +37,7 @@ c_proto = Ct( Cg(Cc(false), 'async') * (fill * Cg((P('FUNC_API_ASYNC') * Cc(true)), 'async') ^ -1) * (fill * Cg((P('FUNC_API_NOEXPORT') * Cc(true)), 'noexport') ^ -1) * + (fill * Cg((P('FUNC_API_NOEVAL') * Cc(true)), 'noeval') ^ -1) * fill * P(';') ) grammar = Ct((c_proto + c_comment + c_preproc + ws) ^ 1) |