Skip to content

Commit a85152b

Browse files
committed
Add snippets for %left and %right
1 parent 94ef96c commit a85152b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

schemas/rpgle.code-snippets

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,13 @@
571571
],
572572
"description": "%KDS is allowed as the search argument for any keyed Input/Output operation (CHAIN, DELETE, READE, READPE, SETGT, SETLL) coded in a free-form group."
573573
},
574+
"%left": {
575+
"prefix": "%left",
576+
"body": [
577+
"%left(${1:string} : ${2:length})$0"
578+
],
579+
"description": "%LEFT returns the leftmost characters of a string."
580+
},
574581
"%len": {
575582
"prefix": "%len",
576583
"body": [
@@ -788,6 +795,13 @@
788795
],
789796
"description": "%REPLACE returns the character string produced by inserting a replacement string into the source string, starting at the start position and replacing the specified number of characters."
790797
},
798+
"%right": {
799+
"prefix": "%right",
800+
"body": [
801+
"%right(${1:string} : ${2:length})$0"
802+
],
803+
"description": "%RIGHT returns the rightmost characters of a string."
804+
},
791805
"%scan": {
792806
"prefix": "%scan",
793807
"body": [

0 commit comments

Comments
 (0)