1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00
Commit graph

66 commits

Author SHA1 Message Date
81f5f8fbbb Improve error handling 2021-05-17 13:59:37 +02:00
d68c6fab0d Candran v0.13 2020-12-24 18:18:11 +01:00
98efdc95f4 Improve cancheck column detection for identifiers 2020-12-24 18:17:27 +01:00
24a3e0ed69 Update README 2020-12-24 17:26:57 +01:00
7e4b46ba7d Add Lua 5.2 target 2020-12-24 17:25:28 +01:00
bf4cadc349 Colorize tests output and fix Lua5.1 compatibility 2020-12-24 17:24:36 +01:00
c8aa4f2a08 Improve error reporting in candran.searcher 2020-12-24 16:24:26 +01:00
c8c35e93a8 Fix unpack/table.unpack rename in 5.3/5.4 2020-08-28 23:41:33 +02:00
cecb2aea03 Lua <5.4: Only error when the variable is declared with an attribute 2020-07-04 23:42:51 +02:00
10be62a2fe Lua 5.4 support and const and close shortcut 2020-06-30 21:29:13 +02:00
7add585c03 Fix end_column being off by one in cancheck 2020-04-07 00:16:39 +02:00
03516abb45
Add SublimeLinter-contrib-cancheck to README 2020-04-07 00:05:50 +02:00
6edc682b21 Candran 0.12.0 2020-04-06 23:30:48 +02:00
33ac4c5d7f Discard warnings from external files in cancheck 2020-04-06 23:11:17 +02:00
1de0aafa5b Added cancheck; candran.compile, .make and .preprocess returns nil, err instead of throwing an error; can and canc error output should now be similar to Lua 2020-04-06 21:30:57 +02:00
dc19ac56a9 Rename lib to candran 2020-01-19 15:36:25 +01:00
5fff7612f4 Candran 0.11.0 2020-01-15 20:59:59 +01:00
842536b561 Add destructuring assignement 2020-01-15 20:42:27 +01:00
851e9f89d6 Added safe operators, if/while with assignement, method stubs 2019-08-27 17:07:33 +02:00
6be81267d2 Making the REPL great again 2019-08-24 17:31:44 +02:00
d410606dc0 Readme cleanup 2019-08-24 15:19:59 +02:00
da4ee63f3f Fixed line numbers in errors for Lua 5.1/LuaJIT, hopefully finally
for some reason gmatch("[^\n]*") matches *two times* per line (one with the line, and an empty string) in Lua 5.1 and LuaJIT, but behave as expected in Lua 5.2/5.3...
2019-08-23 23:17:43 +02:00
7df95abc6d Fixed using return at the end of a loop that use continue 2019-08-23 21:12:45 +02:00
91948109ca Fixed using break and continue in the same loop, added vanilla Lua 5.1 target
somehow I never encountered this before... well now there's more tests
2019-08-23 19:50:49 +02:00
ea7720b7c3 Fixed rockspecs 2019-08-11 17:31:20 +02:00
f1da477b5a Now in latest release 2019-08-11 17:24:53 +02:00
ff2f3a8feb Candran 0.8.0 2019-08-11 17:19:25 +02:00
ea19956f45 Fixed source file reporting in error messages including existing comments 2019-04-05 20:21:31 +02:00
aa945f9fd7 Detect Lua version and slight improvement to error messages 2019-04-05 20:10:44 +02:00
09ac497aed Allow can and canc to read from stdin, check for errors, cleaner output 2018-12-30 13:56:10 +01:00
ab7472152f Candran 0.7.0 2018-12-23 17:45:04 +01:00
aea0246f6d
Update README.md
- Candran 0.7.0
- Typos
- sublime-candran
2018-12-23 17:40:45 +01:00
67f681a88a On second though, string and table calls are a bad idea 2018-08-30 18:31:06 +02:00
98a6a87962 Added suffixable string and table litterals 2018-08-30 18:06:38 +02:00
30a10d6ed9 Ignore comments and long string in preprocessor 2018-08-08 17:38:44 +02:00
7405a6f949
Update candran-0.6.2-1.rockspec
Stupid, stupid typo
2018-08-08 17:01:36 +02:00
3c11bff8f6
Update README.md for 0.6.2 2018-08-08 16:58:28 +02:00
270fb5e845 Updated to latest LPegLabel (fix error messages), Candran 0.6.2 2018-08-08 16:48:31 +02:00
debf0bc464 Fixed missing whitespace in some continue code generation
Also made Candran returns slightly more usefull error messages
2018-08-02 17:11:46 +02:00
4517ee110f Fix LuaJIT bit operators 2018-02-27 12:53:44 +01:00
836ba82fef Updated README 2017-09-23 19:38:37 +02:00
3dcdfdc144 candran.default 2017-09-02 21:08:32 +02:00
2d297db687 Fixed package searcher overriding the Lua one 2017-09-02 20:04:47 +02:00
91f72e6d17 Updated README and tests 2017-08-31 19:40:12 +02:00
70d3aba121 v0.6.0
* Fixed HORRIBLE parsing bugs with short functions and right assignemnt
operators
* Allowed to omit then, do and end for some statements
* Fixed hexa numbers parsing
* Run the Lua 5.3 test suite through Candran, everything that should
work worked! Yay!

Lacks tests and README
2017-08-31 19:17:34 +02:00
724249555f Added 0.5.0 tests
Also removed an error thrown when the start of an implicit push looks
like an assignment...
2017-08-25 19:57:02 +02:00
d249c353c5 0.5.0
Fixed plenty of bugs.

Tests are lacking.
2017-08-25 19:20:29 +02:00
6b95bfb698 Added push, table comprehension, fixed stuff
* Implicit returns are now implicit pushes
* Candran keywords can be used as variable name
* Better handling of continue
* Moar newlines in output
2017-08-25 17:09:52 +02:00
20e33c279e Statement expressions 2017-08-24 20:28:07 +02:00
1d5390d0a7 Implicit returns 2017-08-24 18:35:06 +02:00