Commit Graph

333 Commits

Author SHA1 Message Date
Caleb Maclennan 42311877f0
fix: Fix builtin module doc's invalid syntax
These are kind of pseudo code, but there doesn't seem to be any reason
to use bogus Lua syntax either.
2020-10-02 01:06:18 +03:00
Caleb Maclennan f979400edb
chore: Add lint ignore overrides for warnings that get a pass
Mostly because refactoring these is hard, double negatives are much
harder to follow logic wise and there isn't much point in refactoring
these loops unless they need other work.
2020-10-02 01:06:18 +03:00
Caleb Maclennan a3e8db19de
fix: Fix bug in error handler, io.exit()→os.exit() 2020-10-02 01:06:18 +03:00
Caleb Maclennan 92a6714d9a
refactor: Drop completely unused variable references 2020-10-02 01:06:18 +03:00
Caleb Maclennan f1b3f76aca
refactor: Remove what seems to be unused debug cruft 2020-10-02 01:06:18 +03:00
Caleb Maclennan f70542c626
refactor: Remove unused require()s 2020-10-02 01:06:18 +03:00
Caleb Maclennan 59b728ca20
style: Cleanup whitespace 2020-10-02 01:06:17 +03:00
Caleb Maclennan c780179897
style: Fix file encoding, dos→unix line endings 2020-10-02 01:06:17 +03:00
Kyra Zimmer 9fa1150194
Match backslash as separator in references for moonscript (#273) 2020-09-30 20:11:28 +03:00
Daniel Hahler bb55647363
process_see_reference: look for name.s before functions (#257)
The `@see` reference for an item like the following might point to
itself, although this is in `@module tag` and there is
`tag.master_width_factor` also.

```
--- The default master width factor
--
-- @beautiful beautiful.master_width_factor
-- @param number (default: 0.5)
-- @see master_width_factor
-- @see gap
```

548b15e883/lib/awful/tag.lua (L564-L569)

This patch makes it look for the absolute reference using the module
name first.
2020-09-30 00:54:57 +03:00
Hisham Muhammad 68d516ff34
Add 'new' theme and switch LDoc's own documentation to it (#287) 2020-09-30 00:16:16 +03:00
Jakub Jirutka 5b2ddb0364
Fix syntax errors in builtin.lpeg (#263) 2020-09-30 00:04:38 +03:00
Alexei Robyn 77e72bf92a
Support the use of commonmark markdown via cmark-lua (#311) 2020-09-29 23:59:43 +03:00
Elliott Slaughter f97850dee6
Fix typo (#325) 2020-09-29 22:36:30 +03:00
Alexis BRENON 94dbff2861 More generic approach with a table of names hierarchy 2016-10-26 09:47:26 +02:00
Alexis BRENON 8d9d8e84a2 Add fully_qualified_name and local_name 2016-10-25 21:21:41 +02:00
Steve Donovan 7e5ffcf602 typo in last commit (Eagle eyes of Gary) 2016-10-13 14:53:00 +02:00
Steve Donovan 8de6c79493 issue #251 avoid potential clash between built-in and custom defined kinds like sections 2016-10-13 11:00:05 +02:00
Steve Donovan 3f57e431a2 Issue #248 overeager error messages for module-level fields 2016-10-09 10:41:48 -04:00
Steve Donovan 09b9fdbdd6 Issue #248: assignment wrong way around (Monday morning mode) 2016-08-22 13:18:52 +02:00
Steve Donovan 6e7f4158ec Issue #248 standalone field considered a parse error; reset is_local after parse_error set 2016-08-22 13:04:28 +02:00
steve donovan 607b5cf4c6 globals _G and _VERSION are _tables_ 2016-08-21 11:18:28 +02:00
Steve J Donovan 3e573f4edd Merge pull request #244 from mpeterv/make-target-dir
Use dir.makepath when creating output directory
2016-07-01 14:01:55 +02:00
mpeterv 8bc3700377 Use dir.makepath when creating output directory
Don't exit with error if an intermediate directory doesn't exist.
Also, handle directory creation failure.
2016-07-01 14:48:05 +03:00
Peter Melnichenko 1dfcf2e0a9 Handle failure to parse module call 2016-07-01 14:34:15 +03:00
Peter Melnichenko 3798cb42d3 Don't try to parse a module call if 'module' token is field name
That is, ignore `foo.module()` when looking for module calls.
2016-07-01 14:31:53 +03:00
steve donovan b903eb79df temporary file hack borked on Windows; working on parsing tag modifiers _properly_ 2016-06-27 19:45:26 +02:00
Steve Donovan d47c0f89bf Debian lua-discount package is _yet another Lua binding_ to libmarkdown2 2016-06-27 16:44:18 +02:00
Steve Donovan 7bed1fa826 issue #191 strip left spaces from usage code 2016-06-27 16:25:56 +02:00
Steve Donovan c9b6483d6d issue #240 blank line after comment at end of code block. Crash with fenced block at end of document fixed 2016-06-27 15:27:15 +02:00
Steve Donovan 9f259c59be issue #227: don't force all <li> to have 'disc' style 2016-06-27 12:40:53 +02:00
Steve Donovan dadad3f737 moonscript fat arrow and auto-assign ctor support 2016-06-27 11:48:35 +02:00
Steve Donovan ff60cbd7aa Modules may return a single _function_ (see tests/funmod.lua) 2016-06-27 11:06:29 +02:00
Steve Donovan ebdbf7d0e3 issue #213: --fatalwarnings now also works with parser errors 2016-06-27 10:13:23 +02:00
steve donovan be85db6234 explicit warnings if we cannot deduce item from following code 2016-06-26 19:24:03 +02:00
steve donovan 8a21d4405b fixing up built-in global definitions for 'ldoc -m global' 2016-06-26 19:22:58 +02:00
Steve Donovan 1bcd76e307 new flag: -N,--no_args_infer don't infer arguments from source 2016-06-24 15:53:15 +02:00
Steve Donovan ff0eebceb2 prettier output for ldoc -m if not Windows 2016-06-24 15:51:38 +02:00
Steve Donovan f3e5a5a576 Windows line endings led to wrong section names in Markdown documents 2016-06-21 12:26:36 -04:00
steve donovan 3d31f32b93 --testing: version and date does not change. Bump to 1.4.4 2016-06-20 19:32:46 +02:00
steve donovan f09d617005 always write output with lf line endings 2016-06-20 18:50:07 +02:00
steve donovan 4fbb2aca79 update docs to Lua 5.2/5.3 2016-06-19 12:36:54 +02:00
Steve J Donovan edba959b1b Merge pull request #237 from Alloyed/fix-dumping-objects
Fix logic error when dumping non-function objects
2016-06-19 11:18:47 +02:00
Steve J Donovan dd44ad1ef5 Merge pull request #236 from catwell/pull-1
Support Lua 5.3
2016-06-19 11:17:19 +02:00
Steve J Donovan 44efb79923 Merge pull request #234 from istr/discount-compat
Support both available flavors of discount.
2016-06-19 11:13:54 +02:00
Steve J Donovan 0d9768e86d Merge pull request #223 from thehunmonkgroup/custom-css-config
add custom_css configuration param
2016-06-18 17:38:39 +02:00
Steve J Donovan 2b99730d18 Merge pull request #231 from nebularg/fix_within
Fix @within
2016-06-18 17:33:46 +02:00
Steve J Donovan 5e2f665a49 Merge pull request #222 from th-we/fix-dup-return
Avoid return documentation slipping into preceding function documenation
2016-06-18 17:31:20 +02:00
Steve J Donovan e19b9d5e02 Merge pull request #193 from mooffie/error_func_link
Fix @{error} links
2016-06-17 18:09:52 +02:00
Kyle McLamb 5be42470c3 Fix logic error when dumping non-function objects 2016-06-03 03:28:00 -04:00