Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Allow for more than one key/value pair per line #21

Merged
merged 1 commit into from Mar 25, 2019

Commits on Mar 25, 2019

  1. Allow for more than one key/value pair per line

    The rewritten grammar is courtesy of @50Wilu, who had this to say:
    
    "The problem was that the current language structure couldn't handle
    more than one key/value pair per line, which inline tables allow. To fix
    that, this diff encapsulates each key pattern so that it'll also match
    the corresponding value before finishing the match, and ensuring that
    values won't match unless paired with a key. I've added explicit support
    for arrays and inline tables so that highlighting for those two don't
    regress."
    
    These changes originally broke many of the tests, which I have since
    refactored to use `key = value` syntax instead.
    caleb531 committed Mar 25, 2019
    Copy the full SHA
    52b54b9 View commit details
    Browse the repository at this point in the history