-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/toml: decode syntax tree nodes with positions
Note that we don't do opening and closing token positions for table structs and array table lists as they don't have delimiting tokens in the original TOML, so we don't have any good position to use. Moreover, it is faithful to the original syntax to use token.NoPos to signal that delimiting tokens did not exist, and we are creating them with only relative positions for the sake of good formatting. Fixes #3379. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I71e659e5d597b72a3160f2837e606414b3284dc9 Dispatch-Trailer: {"type":"trybot","CL":1199938,"patchset":1,"ref":"refs/changes/38/1199938/1","targetBranch":"master"}
- Loading branch information
Showing
3 changed files
with
120 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.