jgm / jgm/djot.lua

Improve source position in parsing warnings

Open
#14 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
80
Forks
11
PR merge metrics
No merged PRs in 30d

Description

A mere space error:
```
...
... some text {.class}
```

Yields a warning:

```
{
message = "Ignoring unattached attribute",
pos = 30
}
```

Where `pos` is the byte position.
When the sourcepos map is enabled, it would be handy to have the usual `line:col:charpos` in warnings, as we can have on nodes, for easier investigation by the typist.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.