Skip to main content

RE_VYPER_VERSION

Static RE_VYPER_VERSION 

Source
pub static RE_VYPER_VERSION: LazyLock<Regex>
Expand description

A regex that matches version pragma in a Vyper

Vyper accepts both #pragma version <req> and # pragma version <req> (with optional whitespace after #), as well as the legacy #@version <req> form, so any whitespace between the # and the pragma keyword is tolerated.