Skip to content

Commit 49e83ea

Browse files
committed
feat: Support Swift
1 parent fedad4d commit 49e83ea

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ output the values of variables.
3131
* `ruby`
3232
* `rust`
3333
* `sh` (Sh/Bash)
34+
* `swift`
3435
* `typescript`
3536
* `vim`
3637
* `zsh`
@@ -301,6 +302,7 @@ If it helps to understand these, you can look at the built-in configurations in
301302
| Python | :+1: | :+1: | :+1: | :+1: | :+1: | :x: | :x: |
302303
| Ruby | :+1: | :+1: | :x: | :+1: | :x: | :x: | :x: |
303304
| Rust | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
305+
| Swift | :+1: | :x: | :x: | :x: | :x: | :x: | :x: |
304306
| VimL | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
305307
| zsh | :+1: | :+1: | :+1: | :x: | :+1: | :x: | :x: |
306308
| Add custom filetypes (doced/supported) | :+1: | :x: | :+1: | :x: | :x: | :+1: | :+1: |

lua/debugprint/filetypes.lua

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ return {
111111
right_var = ");",
112112
},
113113
["sh"] = shell,
114+
["swift"] = {
115+
left = 'debugPrint("',
116+
right = '")',
117+
mid_var = '\\(',
118+
right_var = ')")',
119+
},
114120
["typescript"] = js,
115121
["typescriptreact"] = js,
116122
["vim"] = {

0 commit comments

Comments
 (0)