aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormitchell <unknown>2020-07-27 12:36:03 -0400
committermitchell <unknown>2020-07-27 12:36:03 -0400
commit5fc9bedb991e16c5e6189283c2aded33e27b391d (patch)
tree4b17a8a9e800e4c00d90c1a03a5c93e2d68cbe7f
parent988152e2326ec47cded84e85ca815ae0fc495db2 (diff)
downloadscintilla-mirror-5fc9bedb991e16c5e6189283c2aded33e27b391d.tar.gz
lexlua: Updated LuaDoc documentation.
-rw-r--r--lexlua/lexer.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexlua/lexer.lua b/lexlua/lexer.lua
index f35976df9..828782ad9 100644
--- a/lexlua/lexer.lua
+++ b/lexlua/lexer.lua
@@ -24,14 +24,14 @@ local M = {}
-- Operator | Description
-- ---------------------|------------
-- `lpeg.P(string)` | Matches `string` literally.
--- `lpeg.P(`_`n`_`)` | Matches exactly _`n`_ characters.
+-- `lpeg.P(`_`n`_`)` | Matches exactly _`n`_ number of characters.
-- `lpeg.S(string)` | Matches any character in set `string`.
-- `lpeg.R("`_`xy`_`")` | Matches any character between range `x` and `y`.
-- `patt^`_`n`_ | Matches at least _`n`_ repetitions of `patt`.
-- `patt^-`_`n`_ | Matches at most _`n`_ repetitions of `patt`.
-- `patt1 * patt2` | Matches `patt1` followed by `patt2`.
-- `patt1 + patt2` | Matches `patt1` or `patt2` (ordered choice).
--- `patt1 - patt2` | Matches `patt1` if `patt2` does not match.
+-- `patt1 - patt2` | Matches `patt1` if `patt2` does not also match.
-- `-patt` | Equivalent to `("" - patt)`.
-- `#patt` | Matches `patt` but consumes no input.
--
@@ -1786,8 +1786,8 @@ function M.starts_line(patt)
end
---
--- Creates and returns a pattern that verifies that string set *s* contains the
--- first non-whitespace character behind the current match position.
+-- Creates and returns a pattern that verifies the first non-whitespace
+-- character behind the current match position is in string set *s*.
-- @param s String character set like one passed to `lpeg.S()`.
-- @return pattern
-- @usage local regex = lexer.last_char_includes('+-*!%^&|=,([{') *