aboutsummaryrefslogtreecommitdiff
path: root/test/unit/formatc.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-04-03 12:01:23 +0100
committerLewis Russell <lewis6991@gmail.com>2023-04-14 12:41:57 +0100
commit3d29424fb9960085f09f7e322abf204eab9287b9 (patch)
treec1ee3fb73d65f8c0b019549b30f7ebc755acf98b /test/unit/formatc.lua
parent5465adcbab29b57d497d7260c6f85ddbf76c43ab (diff)
downloadrneovim-3d29424fb9960085f09f7e322abf204eab9287b9.tar.gz
rneovim-3d29424fb9960085f09f7e322abf204eab9287b9.tar.bz2
rneovim-3d29424fb9960085f09f7e322abf204eab9287b9.zip
refactor(unit): add type annotations
Diffstat (limited to 'test/unit/formatc.lua')
-rw-r--r--test/unit/formatc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua
index 2fd37c599a..c94f0d88f7 100644
--- a/test/unit/formatc.lua
+++ b/test/unit/formatc.lua
@@ -154,6 +154,8 @@ local C_keywords = set { -- luacheck: ignore
--
-- The first one will have a lot of false positives (the line '{' for
-- example), the second one is more unique.
+--- @param string
+--- @return string
local function formatc(str)
local toks = TokeniseC(str)
local result = {}