fix: remove version

This commit is contained in:
Barrett Ruth 2025-09-24 18:28:41 -04:00
parent 9e84d57b8a
commit 975e829f78
4 changed files with 8 additions and 9 deletions

View file

@ -109,12 +109,11 @@ Template Variables ~
• {source} Source file path (e.g. "abc324a.cpp")
• {binary} Output binary path (e.g. "build/abc324a.run")
• {version} Language version when specified in config
• {contest} Contest identifier (e.g. "abc324", "1933")
• {problem} Problem identifier (e.g. "a", "b")
Example template: >
compile = { 'g++', '{source}', '-o', '{binary}', '-std=c++{version}' }
compile = { 'g++', '{source}', '-o', '{binary}', '-std=c++17' }
< Would expand to: >
g++ abc324a.cpp -o build/abc324a.run -std=c++17
<
@ -196,10 +195,9 @@ Here's an example configuration with lazy.nvim: >lua
*cp.LanguageConfig*
Fields: ~
{compile} (string[], optional) Compile command template with
{version}, {source}, {binary} placeholders.
{source}, {binary} placeholders.
{test} (string[]) Test execution command template.
{debug} (string[], optional) Debug compile command template.
{version} (number, optional) Language version (e.g. 20, 23 for C++).
{extension} (string) File extension (e.g. "cc", "py").
{executable} (string, optional) Executable name for interpreted languages.