[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode d7ccb88 294/468: Add new builtin functions and op
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode d7ccb88 294/468: Add new builtin functions and operators from Lua 5.3 |
Date: |
Thu, 5 Aug 2021 04:58:56 -0400 (EDT) |
branch: elpa/lua-mode
commit d7ccb88d0cfc4661e05905cad121c6a4a832b442
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>
Add new builtin functions and operators from Lua 5.3
---
lua-mode.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 8216d1f..737c5e3 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -457,9 +457,10 @@ traceback location."
("package" . ("config" "cpath" "loaded" "loaders" "loadlib" "path"
"preload" "searchers" "searchpath" "seeall"))
("string" . ("byte" "char" "dump" "find" "format" "gmatch" "gsub"
- "len" "lower" "match" "rep" "reverse" "sub" "upper"))
- ("table" . ("concat" "insert" "maxn" "pack" "remove" "sort"
"unpack"
- )))))
+ "len" "lower" "match" "rep" "reverse" "sub" "upper"
+ "pack" "unpack" "packsize"))
+ ("table" . ("concat" "insert" "maxn" "pack" "remove" "sort"
+ "unpack" "move")))))
(lua--cl-labels
((module-name-re (x)
@@ -491,7 +492,7 @@ traceback location."
"A regexp that matches lua builtin functions & variables.
-This is a compilation of 5.1 and 5.2 builtins taken from the
+This is a compilation of 5.1, 5.2 and 5.3 builtins taken from the
index of respective Lua reference manuals.")
(eval-and-compile
@@ -1147,18 +1148,21 @@ Returns final value of point as integer or nil if
operation failed."
(eval-when-compile
(defconst lua-operator-class
- "-+*/^.=<>~:"))
+ "-+*/^.=<>~:&|"))
(defconst lua-cont-eol-regexp
(eval-when-compile
(concat
"\\(\\_<"
(regexp-opt '("and" "or" "not" "in" "for" "while"
- "local" "function" "if" "until" "elseif" "return") t)
+ "local" "function" "if" "until" "elseif" "return")
+ t)
"\\_>\\|"
"\\(^\\|[^" lua-operator-class "]\\)"
(regexp-opt '("+" "-" "*" "/" "%" "^" ".." "=="
- "=" "<" ">" "<=" ">=" "~=" "." ":" ) t)
+ "=" "<" ">" "<=" ">=" "~=" "." ":"
+ "&" "|" "~" ">>" "<<" "~")
+ t)
"\\)"
"\\s *\\="))
"Regexp that matches the ending of a line that needs continuation
@@ -1175,7 +1179,9 @@ an optional whitespace till the end of the line.")
(regexp-opt '("and" "or" "not") t)
"\\_>\\|"
(regexp-opt '("+" "-" "*" "/" "%" "^" ".." "=="
- "=" "<" ">" "<=" ">=" "~=" "." ":") t)
+ "=" "<" ">" "<=" ">=" "~=" "." ":"
+ "&" "|" "~" ">>" "<<" "~")
+ t)
"\\($\\|[^" lua-operator-class "]\\)"
"\\)"))
"Regexp that matches a line that continues previous one
- [nongnu] elpa/lua-mode d7eaa8e 403/468: Add lua-backward-up-list command, (continued)
- [nongnu] elpa/lua-mode d7eaa8e 403/468: Add lua-backward-up-list command, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode db8d474 408/468: Fix indentation of multiline while/for+do and if/elseif+then, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 099c130 240/468: Bump NEWS, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 7099b81 248/468: Bump tests: fix some, move expected failures to separate test cases, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6a5fa6b 249/468: Remove unused tempfile functionality, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1a0e191 255/468: lua--rx-symbol: fix shy-grouping, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6f7800f 258/468: Merge (and squash) pull request #66 from rolpereira/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3265552 263/468: indentation-test: add continuation tests for unary ops and ..., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9abad67 273/468: Merge remote-tracking branch 'upstream/master', Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ec491dd 291/468: lua-process-init-code: use load when loadstring is not available, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d7ccb88 294/468: Add new builtin functions and operators from Lua 5.3,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode c0d8c50 295/468: Merge pull request #86 from immerrr/if-loadstring-is-nil-use-load, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3f7a032 300/468: Move .nosearch in test/, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ca24f4c 302/468: Add `run-lua` alias, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 530aa9f 303/468: Merge pull request #97 from marsam/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 92d9729 307/468: Add init-tryout.el to persistent initialization code, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 04a2772 310/468: Fix goto label fontification, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode fbad628 316/468: Add travis.yml, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6b32777 413/468: assignment statements: unindent closing parenthesis on right hand side, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6638de0 437/468: Merge pull request #182 from immerrr/enable-ci-via-github-actions, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a4f49d3 438/468: Consider point as inside comment if it is inside "--" opener, Philip Kaludercic, 2021/08/05