From 357117c435597bbd50a907072d298df0cd847daa Mon Sep 17 00:00:00 2001 From: Andrew Ferrier <107015+andrewferrier@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:22:59 +0000 Subject: [PATCH] feat: Add COBOL support --- README.md | 3 ++- lua/debugprint/filetypes.lua | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3432ddf..810f06c 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ the language you're editing. [vim-debugstring](https://github.com/bergercookie/vim-debugstring); updated for the NeoVim generation. It: -* Supports 34 filetypes/programming languages out-of-the-box, including +* Supports 35 filetypes/programming languages out-of-the-box, including Python, JavaScript/TypeScript, Java, C/C++ and [more](#feature-comparison-with-similar-plugins). [It can also be extended to support other languages or customize existing ones](SHOWCASE.md). @@ -236,6 +236,7 @@ they are used to convert sections to ROT-13, which most folks don't use. | C# | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | | C++ | :+1: | :x: | :x: | :+1: | :+1: | :+1: | :x: | | CMake | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | +| Cobol | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | | dart | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | | Docker | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | | DOS/Windows Batch | :+1: | :x: | :x: | :x: | :x: | :x: | :x: | diff --git a/lua/debugprint/filetypes.lua b/lua/debugprint/filetypes.lua index e9fb64a..d3bff63 100644 --- a/lua/debugprint/filetypes.lua +++ b/lua/debugprint/filetypes.lua @@ -87,6 +87,12 @@ return { mid_var = "${", right_var = '}")', }, + ["cobol"] = { + left = 'DISPLAY "', + right = '".', + mid_var = '" ', + right_var = ".", + }, ["cpp"] = { left = 'std::cerr << "', right = '" << std::endl;',