From 2ea0da1da622a9c92585e7e5d94cb5312f6a5542 Mon Sep 17 00:00:00 2001 From: Christian Jorgensen Date: Thu, 10 Oct 2024 21:29:39 +0200 Subject: [PATCH] Add snippets for %HIVAL and %LOVAL --- schemas/rpgle.code-snippets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/schemas/rpgle.code-snippets b/schemas/rpgle.code-snippets index e53f5a50..9ac4ee5d 100644 --- a/schemas/rpgle.code-snippets +++ b/schemas/rpgle.code-snippets @@ -561,6 +561,13 @@ ], "description": "%HANDLER is used to identify a procedure to handle an event or a series of events. %HANDLER does not return a value, and it can only be specified as the first operand of XML-SAX, XML-INTO and DATA-INTO." }, + "%hival": { + "prefix": "%hival", + "body": [ + "%hival(${1:variable or enum})" + ], + "description": "%HIVAL returns the highest possible value of a variable or the highest value in an enumeration." + }, "%hours": { "prefix": "%hours", "body": [ @@ -652,6 +659,13 @@ ], "description": "%LOOKUPGE returns the array index of the item in the array that is an exact match, or the value that is closest to argument but greater than argument." }, + "%loval": { + "prefix": "%loval", + "body": [ + "%loval(${1:variable or enum})" + ], + "description": "%LOVAL returns the lowest possible value of a variable or the lowest value in an enumeration." + }, "%lower": { "prefix": "%lower", "body": [