nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b16ba
)
location: fix located_in behavior
author
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 15 Jan 2018 20:38:03 +0000
(15:38 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 15 Jan 2018 20:38:39 +0000
(15:38 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/location.nit
patch
|
blob
|
history
diff --git
a/src/location.nit
b/src/location.nit
index
36157d3
..
448d17d
100644
(file)
--- a/
src/location.nit
+++ b/
src/location.nit
@@
-208,7
+208,7
@@
class Location
if line_start == loc.line_start then
if column_start < loc.column_start then return false
- if column_start > loc.column_end then return false
+ if line_start == loc.line_end and column_start > loc.column_end then return false
end
if line_end == loc.line_end and column_end > loc.column_end then return false