Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error positions should be reported in characters not in bytes #312

Open
na4zagin3 opened this issue Dec 18, 2021 · 0 comments
Open

Error positions should be reported in characters not in bytes #312

na4zagin3 opened this issue Dec 18, 2021 · 0 comments

Comments

@na4zagin3
Copy link
Contributor

Issue

Error positions are reported in bytes while it should be in characters.

Example

Input

@require: stdjabook

document (|
  title = {test};
  author = {test};
  show-title = false;
  show-toc = false;
|) '< +p {
あ;
}
>

Current Output

 ---- ---- ---- ----
  target file: 'output.pdf'
  dump file: 'input.satysfi-aux' (will be created)
  parsing 'input.saty' ...
! [Syntax Error at Lexer] at "input.saty", line 9, characters 3-4:
    illegal token ';' in an inline text area

Expected Output

 ---- ---- ---- ----
  target file: 'output.pdf'
  dump file: 'input.satysfi-aux' (will be created)
  parsing 'input.saty' ...
! [Syntax Error at Lexer] at "input.saty", line 9, characters 2-2:
    illegal token ';' in an inline text area

Related Issues

Reported at pickoba/satysfi-workshop#5

Related GH Issue: #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant