Update to new Upsilon library with more information in table variable symbol, fixes for number highlighting

This commit is contained in:
Deukhoofd 2018-11-27 14:59:17 +01:00
parent 682e784c20
commit 0619fe3d21
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
4 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@
]
},
{
"match": "\\b[^.]([+-]?([^.][0-9]*[.])?[0-9]+)[^.]\\b",
"match": "\\b([0-9]+(.[0-9])?)\\b",
"name": "constant.numeric"
},
{

View File

@ -123,9 +123,9 @@ namespace UpsilonLanguageServer.Services
if (variableSymbol.VariableSymbol is TableVariableSymbol tableSymbol)
{
return new CompletionList(
tableSymbol.Variables.Select(x => new CompletionItem(x.Name,
CompletionItemKind.Variable, x.Type.ToString(),
$"\n\n{string.Join(" \n", x.CommentValue)}")));
tableSymbol.Variables.Select(x => new CompletionItem(x.Key,
CompletionItemKind.Variable, x.Value.Type.ToString(),
$"\n\n{string.Join(" \n", x.Value.CommentValue)}")));
}
return new CompletionList(
new[]