Skip to content

Conversation

i110
Copy link
Contributor

@i110 i110 commented Mar 29, 2017

when Block Scalar Style is used, yaml_event_t's start_mark.line indicates the block indicator (i.e. | or >), but the content always starts from the next line of it.

This causes lineno mismatches in cases like the following:

hosts:
  "*":
    paths:
      "/":
        mruby-handler: |
          proc {|env|
            raise "HOGE" # <- line 7
          }

but error message says lineno is 6. From yoml users, currently there're no ways to know the scalar style and how to adjust it

@kazuho kazuho merged commit 6db7ab9 into master Mar 29, 2017
@kazuho
Copy link
Member

kazuho commented Mar 29, 2017

Thank you for the PR!

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

Successfully merging this pull request may close these issues.

2 participants