Skip to content

Commit

Permalink
feat: Add COBOL support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Dec 2, 2024
1 parent bf6c457 commit 357117c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 6 additions & 0 deletions lua/debugprint/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ return {
mid_var = "${",
right_var = '}")',
},
["cobol"] = {
left = 'DISPLAY "',
right = '".',
mid_var = '" ',
right_var = ".",
},
["cpp"] = {
left = 'std::cerr << "',
right = '" << std::endl;',
Expand Down

0 comments on commit 357117c

Please sign in to comment.