File tree 3 files changed +4
-4
lines changed
plugins/hls-semantic-tokens-plugin
src/Ide/Plugin/SemanticTokens
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ focusTokenAt leaf = do
148
148
return (Rope. toText prefix, suffix)
149
149
sub :: Char. Position -> Char. Position -> Maybe Char. Position
150
150
sub (Char. Position l1 c1) (Char. Position l2 c2)
151
- | l1 == l2 && c1 > c2 = Just $ Char. Position 0 (c1 - c2)
151
+ | l1 == l2 && c1 >= c2 = Just $ Char. Position 0 (c1 - c2)
152
152
| l1 > l2 = Just $ Char. Position (l1 - l2) c1
153
153
| otherwise = Nothing
154
154
realSrcLocRopePosition :: RealSrcLoc -> Char. Position
Original file line number Diff line number Diff line change 2
2
4:4-5 TFunction "f"
3
3
4:6-7 TVariable "x"
4
4
4:10-11 TFunction "f"
5
- 4:12-13 TOperator "$"
6
- 4:14-15 TVariable "x"
5
+ 4:11-12 TOperator "$"
6
+ 4:12-13 TVariable "x"
7
7
6:2-6 TOperator "$$$$"
8
8
7:1-2 TVariable "x"
9
9
7:7-11 TOperator "$$$$"
Original file line number Diff line number Diff line change 1
1
module TOperator where
2
2
3
3
-- imported operator
4
- go f x = f $ x
4
+ go f x = f$ x
5
5
-- operator defined in local module
6
6
($$$$) = b
7
7
x = 1 $$$$ 2
You can’t perform that action at this time.
0 commit comments