We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844ad29 commit 464dfb4Copy full SHA for 464dfb4
dap-launch.el
@@ -28,7 +28,7 @@
28
(require 'f)
29
(require 'rx)
30
31
-(defun dap-launch-sanitize-json()
+(defun dap-launch-sanitize-json ()
32
"Remove all C-style comments and trailing commas in the current buffer.
33
Comments in strings are ignored. The buffer is modified in place.
34
Replacement starts at point, and strings before it are ignored,
test/dap-test.el
@@ -148,7 +148,7 @@
148
\"/*string*/\""))))
149
150
(ert-deftest dap-launch-test--delete-commas ()
151
- (let ((orig "{
+ (let* ((orig "{
152
\"abc\": 123,
153
}")
154
(post-exp (dap-launch-test--sanitize-json orig)))
0 commit comments