Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions docs/source/api/lua.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
:rtype: string
:syntax:

.. code-block:: lua

Check warning on line 334 in docs/source/api/lua.rst

View workflow job for this annotation

GitHub Actions / build

Lexing literal_block 'string.dump( function )\nstring.dump( function, strip )' as "lua" resulted in an error at token: ')'. Retrying in relaxed mode.

string.dump( function )
string.dump( function, strip )
Expand Down Expand Up @@ -565,7 +565,7 @@
allowed in describing a character class:


.. code-block:: lua

Check warning on line 568 in docs/source/api/lua.rst

View workflow job for this annotation

GitHub Actions / build

Lexing literal_block "x: (where x is not one of the magic characters\n ^$()%.[]*+-?) represents the character x\n itself.\n.: (a dot) represents all characters.\n%a: represents all letters.\n%c: represents all control characters.\n%d: represents all digits.\n%g: represents all printable characters except space.\n%l: represents all lowercase letters.\n%p: represents all punctuation characters.\n%s: represents all space characters.\n%u: represents all uppercase letters.\n%w: represents all alphanumeric characters.\n%x: represents all hexadecimal digits.\n%x: (where x is any non-alphanumeric character)\n represents the character x.\n This is the standard way to escape\n the magic characters. Any non-alphanumeric\n character (including all punctuations, even\n the non-magical) can be preceded by a '%'\n when used to represent itself in a pattern.\n[set]: represents the class which is\n the union of all characters in set.\n A range of characters can be specified\n by separating the end characters of the\n range, in ascending order, with a '-'.\n All classes %x described above can\n also be used as components in set.\n All other characters in set represent\n themselves. For example, [%w_] (or [_%w])\n represents all alphanumeric characters\n plus the underscore, [0-7] represents\n the octal digits, and [0-7%l%-] represents\n the octal digits plus the lowercase letters\n plus the '-' character.\n[^set]: represents the complement of set,\n where set is interpreted as above." as "lua" resulted in an error at token: '('. Retrying in relaxed mode.

x: (where x is not one of the magic characters
^$()%.[]*+-?) represents the character x
Expand Down Expand Up @@ -621,7 +621,7 @@
A pattern item can be:


.. code-block:: lua

Check warning on line 624 in docs/source/api/lua.rst

View workflow job for this annotation

GitHub Actions / build

Lexing literal_block "- a single character class, which matches\nany single character in the class;\n- a single character class followed by '*',\nwhich matches zero or more repetitions\nof characters in the class. These\nrepetition items will always match\nthe longest possible sequence;\n- a single character class followed by '+',\nwhich matches one or more repetitions of\ncharacters in the class. These repetition\nitems will always match the longest\npossible sequence;\n- a single character class followed by '-',\nwhich also matches zero or more repetitions\nof characters in the class. Unlike '*',\nthese repetition items will always match\nthe shortest possible sequence;\n- a single character class followed by '?',\nwhich matches zero or one occurrence of\na character in the class. It always\nmatches one occurrence if possible;\n- %n, for n between 1 and 9; such item\nmatches a substring equal to the n-th\ncaptured string (see below);\n- %bxy, where x and y are two distinct\ncharacters; such item matches strings\nthat start with x, end with y,\nand where the x and y are balanced.\nThis means that, if one reads the string\nfrom left to right, counting +1 for an x\nand -1 for a y, the ending y is the first\ny where the count reaches 0.\nFor instance, the item %b() matches\nexpressions with balanced parentheses.\n- %f[set], a frontier pattern; such item\nmatches an empty string at any position\nsuch that the next character belongs to\nset and the previous character does not\nbelong to set. The set set is interpreted\nas previously described. The beginning\nand the end of the subject are handled\nas if they were the character '\\0'." as "lua" resulted in an error at token: '-'. Retrying in relaxed mode.

- a single character class, which matches
any single character in the class;
Expand Down Expand Up @@ -884,18 +884,6 @@

math.log( value )

.. lua:function:: math.log10( value )

This function returns the base-10 logarithm of `value`

:param value: int or float, compute the base-10 logarithm of this value
:return: The base-10 logarithm of value
:syntax:

.. code-block:: lua

math.log10( value )

.. lua:function:: math.max( value, ... )

This function returns maximum value among its arguments.
Expand Down
Loading