Namespaced aliases, virtual classes and added missing returns.

This commit is contained in:
jgmdev
2021-07-09 18:33:25 -04:00
parent 18eee34aa9
commit 900e9d1422
4 changed files with 144 additions and 71 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ regex.NOTEMPTY = 0x00000004
---@type integer
regex.NOTEMPTY_ATSTART = 0x00000008
---@alias RegexModifiers
---@alias regex.modifiers
---|>'"i"' # Case insesitive matching
---| '"m"' # Multiline matching
---| '"s"' # Match all characters with dot (.) metacharacter even new lines
@@ -39,7 +39,7 @@ regex.NOTEMPTY_ATSTART = 0x00000008
---Compiles a regular expression pattern that can be used to search in strings.
---
---@param pattern string
---@param options? RegexModifiers A string of one or more pattern modifiers.
---@param options? regex.modifiers A string of one or more pattern modifiers.
---
---@return regex|string regex Ready to use regular expression object or error
---message if compiling the pattern failed.