Skip to content

emmylua_doc_cli: Parser error when line starts with - #306

@rhys-vdw

Description

@rhys-vdw

Probably a more general parser error, but I'm encountering in doc_cli.


Variation 1

First problem:

Input:

---```lua
----- A comment
---```
function fn() end

Expected:

# global fn

```lua
function fn()
```

```lua
-- A comment
```

Actual:

# global fn

```lua
function fn()
```

```lua

Variation 2

Input:

--- ```lua
--- -- A comment
--- ```
function fn() end

Expected:

# global fn

```lua
function fn()
```

```lua
-- A comment
```

Actual:

# global fn

```lua
function fn()
```

```lua
 A comment
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions