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

pos_lnum and pos_bol are incorrent for multi-line QUOTATION #2953

Closed
vicuna opened this issue Jul 16, 2004 · 1 comment
Closed

pos_lnum and pos_bol are incorrent for multi-line QUOTATION #2953

vicuna opened this issue Jul 16, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 16, 2004

Original bug ID: 2953
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Aleksey Nogin
Version: 3.08.0
OS: Linux: Fedora Core Release 2
Submission from: charter-242-009.caltech.edu (131.215.242.9)

When using camlp4, if I have something like

foo: [[ x = QUOTATION -> ... loc ... ]];

in my EXTENDS, and in the source file I have a multi-line quotation, then the
pos_lnum and pos_bol would be wrong.

For example, I get

{pos_fname=""; pos_lnum=378; pos_bol=10596; pos_cnum=10595},
{pos_fname=""; pos_lnum=378; pos_bol=10596; pos_cnum=11350}

where

  • both pos_cnum are correct (except 10595 is the space before the quotation).
  • 378 is the line number of where quotation ends (so it is correct in the end
    pointer, but not the beginning pointer).
  • 10596 is where quotation starts, but not where any line starts (in this
    example, the quotation starts in the middle of a line), so it is wrong in both
    bp and ep!
@vicuna
Copy link
Author

vicuna commented Apr 14, 2005

Comment author: administrator

Assigned to MM.
Fixed (multiline quotations).

@vicuna vicuna closed this as completed Apr 14, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant