Skip to content

Commit

Permalink
feat: Support Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Nov 14, 2023
1 parent fedad4d commit 49e83ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ output the values of variables.
* `ruby`
* `rust`
* `sh` (Sh/Bash)
* `swift`
* `typescript`
* `vim`
* `zsh`
Expand Down Expand Up @@ -301,6 +302,7 @@ If it helps to understand these, you can look at the built-in configurations in
| Python | :+1: | :+1: | :+1: | :+1: | :+1: | :x: | :x: |
| Ruby | :+1: | :+1: | :x: | :+1: | :x: | :x: | :x: |
| Rust | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
| Swift | :+1: | :x: | :x: | :x: | :x: | :x: | :x: |
| VimL | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
| zsh | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
| Add custom filetypes (doced/supported) | :+1: | :x: | :+1: | :x: | :x: | :+1: | :+1: |
Expand Down
6 changes: 6 additions & 0 deletions lua/debugprint/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ return {
right_var = ");",
},
["sh"] = shell,
["swift"] = {
left = 'debugPrint("',
right = '")',
mid_var = '\\(',
right_var = ')")',
},
["typescript"] = js,
["typescriptreact"] = js,
["vim"] = {
Expand Down

0 comments on commit 49e83ea

Please sign in to comment.