ludent does not handle comment blocks
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 19
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Sample to check:
``` sh
$ ( printf '--[[\n if a then\n if a then\n if a then\n ]]--' ; cat ludent ) | ./ludent |head
lua: ./ludent:133: 3
stack traceback:
[C]: in function 'assert'
./ludent:133: in function 'indent'
./ludent:137: in main chunk
[C]: in ?
--[[
if a then
if a then
if a then
]]--#!/usr/bin/env lua
string.count = function(str, s2)
local count = 0
for i = 1, #str do
if str:sub(i,i) == s2 then
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the sample command in the issue and inspect ludent around lines 133-137, where the failure occurs. Trace how the indenter handles the nested Lua comment block and verify that the sample completes without the assertion error while preserving the expected indentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100