nimsuggest: added --refresh command line option; added 'known' command; fixes 'chck' command for EPC

This commit is contained in:
Andreas Rumpf 2017-02-22 16:27:24 +01:00
commit 311253ef2f
2 changed files with 28 additions and 16 deletions

View file

@ -100,7 +100,7 @@ type
IdeCmd* = enum
ideNone, ideSug, ideCon, ideDef, ideUse, ideDus, ideChk, ideMod,
ideHighlight, ideOutline
ideHighlight, ideOutline, ideKnown
ConfigRef* = ref object ## eventually all global configuration should be moved here
cppDefines*: HashSet[string]
@ -442,6 +442,7 @@ proc parseIdeCmd*(s: string): IdeCmd =
of "mod": ideMod
of "highlight": ideHighlight
of "outline": ideOutline
of "known": ideKnown
else: ideNone
proc `$`*(c: IdeCmd): string =
@ -456,3 +457,4 @@ proc `$`*(c: IdeCmd): string =
of ideNone: "none"
of ideHighlight: "highlight"
of ideOutline: "outline"
of ideKnown: "known"