[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 3265552 263/468: indentation-test: add continuati
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 3265552 263/468: indentation-test: add continuation tests for unary ops and ... |
Date: |
Thu, 5 Aug 2021 04:58:50 -0400 (EDT) |
branch: elpa/lua-mode
commit 32655523727fa32cbe690db6e2b74c363f8f7648
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>
indentation-test: add continuation tests for unary ops and ...
---
test/indentation-test.el | 45 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 40 insertions(+), 5 deletions(-)
diff --git a/test/indentation-test.el b/test/indentation-test.el
index 2ccfe34..7ebc6c0 100644
--- a/test/indentation-test.el
+++ b/test/indentation-test.el
@@ -115,19 +115,19 @@ this_should_be_unindented_three = etc"))
(ert-deftest lua-indentation-dot-and-colon-continuation ()
(should-lua-indent "\
-foo
+foo123
.bar:baz(xyz)")
(should-lua-indent "\
-foo.
+foo123.
bar:baz(xyz)")
(should-lua-indent "\
-foo.bar
+foo123.bar
:baz(xyz)")
(should-lua-indent "\
-foo.bar:
+foo123.bar:
baz(xyz)")
(should-lua-indent "\
-foo.bar
+foo123.bar
.baz
.qux
:quux(xyz)"))
@@ -146,6 +146,41 @@ a = foo
BINOP bar" 'fixedcase)))))
+(ert-deftest lua-indentation-ellipsis ()
+ (should-lua-indent "\
+function x(...)
+ a, b = 1, ...
+ return b
+end"))
+
+
+(ert-deftest lua-indentation-unop-continuation ()
+ :expected-result :failed
+ (should-lua-indent "\
+foo = bar
+ -#some_str")
+
+ (should-lua-indent "\
+foobar(qux,
+ -quux)")
+
+ (should-lua-indent "\
+foobar(qux, xyzzy
+ -quux)")
+
+ (should-lua-indent "\
+foobar(qux,
+ #quux)")
+
+ (should-lua-indent "\
+foobar(qux,
+ not quux)")
+
+ (should-lua-indent "\
+foobar(qux, xyzzy and
+ not quux)"))
+
+
(ert-deftest lua-indentation-return-continuation ()
(should-lua-indent "\
return
- [nongnu] elpa/lua-mode d15bdb1 395/468: Merge pull request #164 from sergeyklay/fix/buttercup-matcher-message, (continued)
- [nongnu] elpa/lua-mode d15bdb1 395/468: Merge pull request #164 from sergeyklay/fix/buttercup-matcher-message, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c1b6019 396/468: Fix reproducibility issue caused by %d pattern in export-subst, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c9b9d47 401/468: Fix typo, Philip Kaludercic, 2021/08/05
- [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 <=
- [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, 2021/08/05
- [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