File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
plugins/hls-semantic-tokens-plugin
src/Ide/Plugin/SemanticTokens Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ focusTokenAt leaf = do
148148 return (Rope. toText prefix, suffix)
149149 sub :: Char. Position -> Char. Position -> Maybe Char. Position
150150 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)
152152 | l1 > l2 = Just $ Char. Position (l1 - l2) c1
153153 | otherwise = Nothing
154154 realSrcLocRopePosition :: RealSrcLoc -> Char. Position
Original file line number Diff line number Diff line change 224:4-5 TFunction "f"
334:6-7 TVariable "x"
444: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"
776:2-6 TOperator "$$$$"
887:1-2 TVariable "x"
997:7-11 TOperator "$$$$"
Original file line number Diff line number Diff line change 11module TOperator where
22
33-- imported operator
4- go f x = f $ x
4+ go f x = f$ x
55-- operator defined in local module
66($$$$) = b
77x = 1 $$$$ 2
You can’t perform that action at this time.
0 commit comments