diff --git a/libdparse b/libdparse index f73bed9..67fd418 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit f73bed9279602a228933b21156d8f1f2ec5e4fdd +Subproject commit 67fd41840fd30dc9e14aa3c886fddd0b9e54ce6e 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", diff --git a/src/dcd_version.d b/src/dcd_version.d index 1a66864..08cac08 100644 --- a/src/dcd_version.d +++ b/src/dcd_version.d @@ -21,7 +21,7 @@ module dcd_version; /** * Human-readable version number */ -enum DCD_VERSION = "v0.5.0-beta3"; +enum DCD_VERSION = "v0.5.0-beta4"; version (Windows) {} else