aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/runtime_spec.lua
diff options
context:
space:
mode:
authorSoham Shanbhag <sohamshanbhag@users.noreply.github.com>2024-06-03 16:48:43 +0900
committerGitHub <noreply@github.com>2024-06-03 09:48:43 +0200
commit054a287dbe6fe4308d26ec593da2057641f2bb9b (patch)
tree522fd2f143226051da5ab3f279454581263d301b /test/functional/lua/runtime_spec.lua
parent3a1515bfee59710b4da9bfdf0fc4ecb5b13a00db (diff)
downloadrneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.tar.gz
rneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.tar.bz2
rneovim-054a287dbe6fe4308d26ec593da2057641f2bb9b.zip
feat(ftplugin): change 'commentstring' to `// %s` for C/C++ (#29085)
Problem: The default commentstring for C/C++ can lead to invalid code when commenting and does not match the Nvim codebase. Solution: Change commentstring to `// %s` as used by Neovim. Also set all commentstrings that derive from the default C string explicitly (and correctly).
Diffstat (limited to 'test/functional/lua/runtime_spec.lua')
-rw-r--r--test/functional/lua/runtime_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/runtime_spec.lua b/test/functional/lua/runtime_spec.lua
index c6b0577ebe..f63363d6d9 100644
--- a/test/functional/lua/runtime_spec.lua
+++ b/test/functional/lua/runtime_spec.lua
@@ -406,7 +406,7 @@ describe('runtime:', function()
eq('', eval('&commentstring'))
eq('', eval('&omnifunc'))
exec('edit file.cpp')
- eq('/*%s*/', eval('&commentstring'))
+ eq('// %s', eval('&commentstring'))
eq('ccomplete#Complete', eval('&omnifunc'))
end)
end)