File tree 3 files changed +7
-6
lines changed 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ findNotesInFile file recorder = do
137
137
noteRefRegex , noteRegex :: Regex
138
138
(noteRefRegex, noteRegex) =
139
139
( mkReg (" note \\ [(.+)\\ ]" :: String )
140
- , mkReg (" note \\ [([[:print:]]+)\\ ][[:blank:]]*[[:space:]](--)?[[:blank:]]*~~~" :: String )
140
+ , mkReg (" note \\ [([[:print:]]+)\\ ][[:blank:]]*[[:space:]][[:blank:]]* (--)?[[:blank:]]*~~~" :: String )
141
141
)
142
142
where
143
143
mkReg = makeRegexOpts (defaultCompOpt { caseSensitive = False }) defaultExecOpt
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ gotoNoteTests = testGroup "Goto Note Definition"
30
30
defs <- getDefinitions doc (Position 5 64 )
31
31
liftIO $ do
32
32
fp <- canonicalizePath " NoteDef.hs"
33
- defs @?= InL (Definition (InR [Location (filePathToUri fp) (Range (Position 18 9 ) (Position 18 9 ))]))
33
+ defs @?= InL (Definition (InR [Location (filePathToUri fp) (Range (Position 18 11 ) (Position 18 11 ))]))
34
+
34
35
, testCase " invalid_note" $ runSessionWithServer def plugin testDataDir $ do
35
36
doc <- openDoc " NoteDef.hs" " haskell"
36
37
_ <- waitForAllProgressDone
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ This is also a very common thing to do for GHC
16
16
17
17
-}
18
18
19
- -- Note [Single line comments]
20
- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
21
- -- GHC's notes script only allows multiline comments to define notes, but in the
22
- -- HLS codebase this single line style can be found as well.
19
+ -- Note [Single line comments]
20
+ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
21
+ -- GHC's notes script only allows multiline comments to define notes, but in the
22
+ -- HLS codebase this single line style can be found as well.
23
23
24
24
{- Note [Not a valid Note]
25
25
You can’t perform that action at this time.
0 commit comments