Skip to content

Commit 8900963

Browse files
committed
Support for source-repositories stanza
1 parent b8b4f6b commit 8900963

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/Completions.hs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,19 @@ stanzaKeywordMap =
506506
, ("lib-version-linux:", noopCompleter)
507507
]
508508
)
509+
,
510+
( "source-repository"
511+
, Map.fromList $
512+
[ ("type:", constantCompleter
513+
["darcs", "git", "svn","cvs", "mercurial", "hg",
514+
"bazaar", "bzr", "arch","monotone"]),
515+
("location:", noopCompleter),
516+
("module:", noopCompleter),
517+
("branch:", noopCompleter),
518+
("tag:", noopCompleter),
519+
("subdir:", directoryCompleter)
520+
]
521+
)
509522
]
510523
where
511524
libExecTestBenchCommons =
@@ -563,11 +576,3 @@ stanzaKeywordMap =
563576
-- ("common", "name"),
564577
-- ("import:", "token-list")
565578
-- ]
566-
567-
-- cabalSourceRepoKeywords :: [(T.Text, T.Text)]
568-
-- cabalSourceRepoKeywords =
569-
-- [
570-
-- ("source-repository", ""),
571-
-- ("type:", "token"),
572-
-- ("location:", "URL")
573-
-- ]

0 commit comments

Comments
 (0)