diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-05-08 19:47:34 +0500 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-05-08 19:47:34 +0500 |
commit | 13e8547fa7825aef0c8a07c67dcad78921c5a820 (patch) | |
tree | 21ed1ec2fce0784bcbd803786c730a29bdeb1116 /compiler | |
parent | c06672451ad34e1baf727dc4de68a0fa0566dae3 (diff) | |
download | Nim-13e8547fa7825aef0c8a07c67dcad78921c5a820.tar.gz |
hardcoded order
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/nimsuggest/nimsuggest.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/nimsuggest/nimsuggest.nim b/compiler/nimsuggest/nimsuggest.nim index 7ba3379c3..ad3b5bf0d 100644 --- a/compiler/nimsuggest/nimsuggest.nim +++ b/compiler/nimsuggest/nimsuggest.nim @@ -65,15 +65,13 @@ proc parseQuoted(cmd: string; outp: var string; start: int): int = i += parseUntil(cmd, outp, seps, i) result = i -# make sure it's in the same order as the proc below -let order: SexpNode = - sexp(@["section", "symkind", "qualifiedPath", "filePath", "forth", "line", "column", "doc"].map(newSSymbol)) - proc sexp(s: IdeCmd): SexpNode = sexp($s) proc sexp(s: TSymKind): SexpNode = sexp($s) proc sexp(s: Suggest): SexpNode = + # If you change the oder here, make sure to change it over in + # nim-mode.el too. result = convertSexp([ s.section, s.symkind, |