From c07281d2f0d607a9166ae51b83744be5bca111aa Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Fri, 6 Feb 2015 14:09:40 -0800 Subject: [PATCH] Fix #190 --- src/autocomplete.d | 2 +- src/constants.d | 85 +--------------------------------------------- 2 files changed, 2 insertions(+), 85 deletions(-) diff --git a/src/autocomplete.d b/src/autocomplete.d index 8b98316..aabe2b6 100644 --- a/src/autocomplete.d +++ b/src/autocomplete.d @@ -352,7 +352,7 @@ AutocompleteResponse parenCompletion(T)(T beforeTokens, completions = scopes; goto fillResponse; case tok!"version": - completions = versions; + completions = predefinedVersions; goto fillResponse; case tok!"extern": completions = linkages; diff --git a/src/constants.d b/src/constants.d index 33e87fa..d20cf5b 100644 --- a/src/constants.d +++ b/src/constants.d @@ -93,90 +93,6 @@ immutable string[] scopes = [ "success" ]; -/** - * Predefined version identifiers - */ -immutable string[] versions = [ - "AArch64", - "AIX", - "all", - "Alpha", - "Alpha_HardFloat", - "Alpha_SoftFloat", - "Android", - "ARM", - "ARM_HardFloat", - "ARM_SoftFloat", - "ARM_SoftFP", - "ARM_Thumb", - "assert", - "BigEndian", - "BSD", - "Cygwin", - "D_Coverage", - "D_Ddoc", - "D_HardFloat", - "DigitalMars", - "D_InlineAsm_X86", - "D_InlineAsm_X86_64", - "D_LP64", - "D_NoBoundsChecks", - "D_PIC", - "DragonFlyBSD", - "D_SIMD", - "D_SoftFloat", - "D_Version2", - "D_X32", - "FreeBSD", - "GNU", - "Haiku", - "HPPA", - "HPPA64", - "Hurd", - "IA64", - "LDC", - "linux", - "LittleEndian", - "MIPS32", - "MIPS64", - "MIPS_EABI", - "MIPS_HardFloat", - "MIPS_N32", - "MIPS_N64", - "MIPS_O32", - "MIPS_O64", - "MIPS_SoftFloat", - "NetBSD", - "none", - "OpenBSD", - "OSX", - "Posix", - "PPC", - "PPC64", - "PPC_HardFloat", - "PPC_SoftFloat", - "S390", - "S390X", - "SDC", - "SH", - "SH64", - "SkyOS", - "Solaris", - "SPARC", - "SPARC64", - "SPARC_HardFloat", - "SPARC_SoftFloat", - "SPARC_V8Plus", - "SysV3", - "SysV4", - "unittest", - "Win32", - "Win64", - "Windows", - "X86", - "X86_64" -]; - /** * Compiler-defined values for version() conditions. */ @@ -212,6 +128,7 @@ immutable string[] predefinedVersions = [ "D_Version2", "D_X32", "FreeBSD", + "FreeStanding", "GNU", "Haiku", "HPPA",