Skip to content

v0.7.3 — Snippet completion for built-in functions

Choose a tag to compare

@anzory anzory released this 15 Apr 20:29
· 26 commits to master since this release

Feature release adding parameterised snippet insertion for GPPL built-in functions.

Added

  • Snippet completion for built-in functions. Picking a built-in function from the completion list now inserts a parameterised call skeleton with Tab-stops:

    • substrsubstr(${1:string}, ${2:from}, ${3:len})
    • atan2atan2(${1:y}, ${2:x})
    • absabs(${1:number})
    • roundround(${1:number}, ${2:dig})
    • …and 40 more numeric/string/logical functions.

    Parameter names are sourced from the GPPL specification. Optional parameters ([val] of instr, [, k] of replace, :format of tostr) are intentionally omitted — advanced users add them by hand, and beginners aren't forced to delete a placeholder they don't need.

  • Logical functions in completion. active, change, even, and odd were missing from the completion list entirely. They are now offered (also with snippet skeletons) alongside numeric and string functions.

Fixed

  • Parenless built-ins. date and time are parameterless and, per the GPPL grammar (date: Date;, time: Time;), are called without parentheses. The completion now inserts just the name in that case.

Includes all v0.7.2 fixes (procedure @-prefix completion, bare call @ NRE).

VSIX attached — install via code --install-extension anzory.vscode-gppl-ide-0.7.3.vsix or drag-drop into the Extensions view.