Skip to content

Commit 286fa75

Browse files
committed
- pass VSINSTALLDIR in the environment to avoid autodetection by LDC
- bugzilla 15345: syntax highlighting wrong if asm followed by function attributes
1 parent 2cfe21e commit 286fa75

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ Version history
753753
* mago: added support for new AA implementation
754754
* mago: preview for structs now shows first members
755755

756-
unreleased Version 0.3.43
756+
2015-11-28 Version 0.3.43
757757

758758
* dustmite: pattern passed to "find" must always use quotes
759759
* VS2015: new install adds $(VCInstallDir)\bin to exectuable paths to allow cv2pdb to create PDB files
@@ -799,3 +799,5 @@ unreleased Version 0.3.43
799799
- fix order of identifiers if "#define A B" is converted to an alias
800800
* additional options: now replacing newline with space when adding to the command line
801801
* compiling file for syntax check with LDC passed wrong command line option
802+
* pass VSINSTALLDIR in the environment to avoid autodetection by LDC
803+
* bugzilla 15345: syntax highlighting wrng if asm followed by function attributes

visuald/colorizer.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,13 +1122,13 @@ class Colorizer : DisposingComObject, IVsColorizer, ConfigModifiedListener
11221122
case VersionParseState.AsmParsedEnabled:
11231123
if(text == "{")
11241124
parseState = VersionParseState.InAsmBlockEnabled;
1125-
else
1125+
else if (text != "nothrow" && text != "pure" && !text.startsWith("@"))
11261126
parseState = VersionParseState.IdleEnabled;
11271127
break;
11281128
case VersionParseState.AsmParsedDisabled:
11291129
if(text == "{")
11301130
parseState = VersionParseState.InAsmBlockDisabled;
1131-
else
1131+
else if (text != "nothrow" && text != "pure" && !text.startsWith("@"))
11321132
parseState = VersionParseState.IdleDisabled;
11331133
goto case VersionParseState.IdleDisabled;
11341134

visuald/config.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,6 +2957,8 @@ class Config : DisposingComObject,
29572957
cmd ~= "set WindowsSdkDir=" ~ globOpt.WindowsSdkDir ~ "\n";
29582958
if(globOpt.VCInstallDir.length)
29592959
cmd ~= "set VCINSTALLDIR=" ~ globOpt.VCInstallDir ~ "\n";
2960+
if(globOpt.VSInstallDir.length)
2961+
cmd ~= "set VSINSTALLDIR=" ~ globOpt.VSInstallDir ~ "\n";
29602962
}
29612963
return cmd;
29622964
}

0 commit comments

Comments
 (0)