-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formatter: Add support for a few common functions and fix an LSP star…
…tup issue (#3190)
- Loading branch information
Showing
14 changed files
with
249 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
=== | ||
Cond - Only Inlinable | ||
=== | ||
|
||
(cond | ||
((type? (-> this entries i) popup-menu-label) | ||
(set! x 1)) | ||
((type? (-> this entries i) popup-menu-flag) | ||
(set! x 2)) | ||
(else | ||
(set! x 3))) | ||
|
||
--- | ||
|
||
(cond | ||
((type? (-> this entries i) popup-menu-label) (set! x 1)) | ||
((type? (-> this entries i) popup-menu-flag) (set! x 2)) | ||
(else (set! x 3))) | ||
|
||
=== | ||
Cond - Mix and Match Inlining | ||
=== | ||
|
||
(cond | ||
((type? (-> this entries i) popup-menu-flag) | ||
(set! x (+ 89716239781623717236123 1239817239817298319287312 31298371298371239817231 231892739182739129837 231892739182739129837 231892739182739129837))) | ||
((type? (-> this entries i) popup-menu-label) | ||
(set! x 1)) | ||
(else | ||
(set! x 3))) | ||
|
||
--- | ||
|
||
(cond | ||
((type? (-> this entries i) popup-menu-flag) | ||
(set! x | ||
(+ 89716239781623717236123 | ||
1239817239817298319287312 | ||
31298371298371239817231 | ||
231892739182739129837 | ||
231892739182739129837 | ||
231892739182739129837))) | ||
((type? (-> this entries i) popup-menu-label) (set! x 1)) | ||
(else (set! x 3))) | ||
|
||
=== | ||
Case - Only Inlinable | ||
=== | ||
|
||
(case (-> arg3 param 0) | ||
(('dark) | ||
(set! x 1)) | ||
(('light) | ||
(set! x 2)) | ||
(else | ||
(set! x 3))) | ||
|
||
--- | ||
|
||
(case (-> arg3 param 0) | ||
(('dark) (set! x 1)) | ||
(('light) (set! x 2)) | ||
(else (set! x 3))) | ||
|
||
=== | ||
Case - Mix and Match Inlining | ||
=== | ||
|
||
(case (-> arg3 param 0) | ||
(('dark) | ||
(set! x 1)) | ||
(('light) | ||
(set! x (+ 89716239781623717236123 1239817239817298319287312 31298371298371239817231 231892739182739129837 231892739182739129837 231892739182739129837 231892739182739129837 231892739182739129837))) | ||
(else | ||
(set! x 3))) | ||
|
||
--- | ||
|
||
(case (-> arg3 param 0) | ||
(('dark) (set! x 1)) | ||
(('light) | ||
(set! x | ||
(+ 89716239781623717236123 | ||
1239817239817298319287312 | ||
31298371298371239817231 | ||
231892739182739129837 | ||
231892739182739129837 | ||
231892739182739129837 | ||
231892739182739129837 | ||
231892739182739129837))) | ||
(else (set! x 3))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
=== | ||
dotimes | ||
=== | ||
|
||
(dotimes (i (-> this entries length)) | ||
(let ((label-len (-> (get-string-length (-> this entries i label) font-ctx) length))) | ||
(when (> label-len max-len) | ||
(set! max-len label-len)))) | ||
|
||
--- | ||
|
||
(dotimes (i (-> this entries length)) | ||
(let ((label-len (-> (get-string-length (-> this entries i label) font-ctx) length))) | ||
(when (> label-len max-len) | ||
(set! max-len label-len)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.