Skip to content

Commit 0228c0e

Browse files
author
xi xiao
committed
feat: support Apex language
1 parent aa2e696 commit 0228c0e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ If it helps to understand these, you can look at the built-in configurations in
296296
| Comment/uncomment all debug lines | :+1: | :x: | :x: | :x: | :x: | :x: |
297297
| Can put debugprint text into default register | :x: | :x: | :+1: | :x: | :x: | :x: |
298298
| *Built-in support for:* | - | - | - | - | - | - |
299+
| Apex | :+1: | :x: | :x: | :x: | :x: | :x: |
299300
| AppleScript | :+1: | :+1: | :x: | :x: | :x: | :x: |
300301
| bash/sh | :+1: | :+1: | :+1: | :x: | :+1: | :x: |
301302
| C | :+1: | :x: | :x: | :x: | :x: | :x: |

lua/debugprint/filetypes.lua

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ local cs = {
6262

6363
---@type DebugprintFileTypeConfig[]
6464
return {
65+
["apex"] = {
66+
left = "System.debug('",
67+
left_var = "System.debug('",
68+
right = "');",
69+
mid_var = "' + ",
70+
right_var = ");",
71+
},
6572
["applescript"] = {
6673
left = 'log "',
6774
right = '"',

0 commit comments

Comments
 (0)