Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
use 'var : type' for variables, instead of 'var -> type'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarcasm committed Feb 1, 2018
1 parent 34ca046 commit ea1984e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/clang_complete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ void BuildCompletionItemTexts(std::vector<lsCompletionItem>& out,

if (!result_type.empty()) {
for (unsigned i = out_first; i < out.size(); ++i) {
out[i].label += " -> ";
if (out[i].label == out[i].filterText) {
// for variable, use ' : ' instead of ' -> '
out[i].label += " : ";
} else {
out[i].label += " -> ";
}
out[i].label += result_type;
}
}
Expand Down

0 comments on commit ea1984e

Please sign in to comment.