Skip to content

Commit

Permalink
feat(parser): Emit spans from the lexer instead of just locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Aug 20, 2016
1 parent 1fe42c5 commit e2a17a3
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 87 deletions.
2 changes: 1 addition & 1 deletion base/src/pos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl fmt::Display for Location {
}

/// A span between two locations in a source file
#[derive(Copy, Clone, PartialEq, Debug)]
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Debug)]
pub struct Span {
pub start: Location,
pub end: Location,
Expand Down
Loading

0 comments on commit e2a17a3

Please sign in to comment.