From a0d8873097a587163887e701c08373a1571f8973 Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Fri, 3 May 2013 02:36:24 +0900 Subject: More accurate spans --- src/libsyntax/parse/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/common.rs') diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 01f80c032e9..1df6860fede 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -122,7 +122,7 @@ pub impl Parser { fn parse_path_list_ident(&self) -> ast::path_list_ident { let lo = self.span.lo; let ident = self.parse_ident(); - let hi = self.span.hi; + let hi = self.last_span.hi; spanned(lo, hi, ast::path_list_ident_ { name: ident, id: self.get_id() }) } -- cgit 1.4.1-3-g733a5