Skip to content

Commit 6e2545b

Browse files
authored
Merge pull request #120 from rainers/master
Visual D 0.50.1
2 parents a077306 + 3aa5ac7 commit 6e2545b

File tree

7 files changed

+71
-17
lines changed

7 files changed

+71
-17
lines changed

CHANGES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ Version history
11541154
* fixed "go to definition" eventually not jumping to correct line after opening document
11551155
* scale dialogs according to current text font size, i.e. adapt to DPI scaling
11561156

1157-
unreleased Version 0.50.1
1157+
2019-09-03 Version 0.50.1
11581158
* msbuild: fix parallel build in VS 2019 16.1
11591159
* msbuild: fix building right after full installation
11601160
* bugzilla 20003: project properties: show "Better C" in option text
@@ -1171,5 +1171,6 @@ unreleased Version 0.50.1
11711171
Run/Debug now use "dmd -i" instead of "rdmd"
11721172
* version highlighting for source files not in a project now reads settings from startup project
11731173
* highlight x64 registers in asm block
1174+
* don't highlight asm keywords/mnemonics/registers from semantic information
11741175
* VS 2019 16.2: command line options no longer read correctly from the VC project for
11751176
Compile and Run/Debug/Disassemble, dbuild refactored to not rely on msbuild DLLs for that

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define VERSION_MAJOR 0
22
#define VERSION_MINOR 50
33
#define VERSION_REVISION 1
4-
#define VERSION_BETA -rc
5-
#define VERSION_BUILD 2
4+
#define VERSION_BETA
5+
#define VERSION_BUILD 0

build_doc.bat

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
setlocal
12
set DMD=c:\s\d\rainers\windows\bin\dmd.exe
23
rem set WEB=m:\s\d\rainers\web\visuald
34
set WEB=c:\s\d\visuald\gh-pages\visuald
5+
set CP=c:\u\gnuwin\cp.exe
46

57
set SRC= doc/ReportingBugs.dd
68
set SRC=%SRC% doc/StartPage.dd
@@ -31,15 +33,15 @@ rem ..\..\rainers\d-programming-language.org\dlang.org.ddoc
3133

3234
if not exist %WEB% md %WEB%
3335
if not exist %WEB%\images md %WEB%\images
34-
cp -u doc/images/* %WEB%\images
36+
%cp% -u doc/images/* %WEB%\images
3537

3638
if not exist %WEB%\css md %WEB%\css
37-
cp -u doc/css/* %WEB%\css
39+
%cp% -u doc/css/* %WEB%\css
3840

3941
if not exist %WEB%\js md %WEB%\js
40-
cp -u doc/js/* %WEB%\js
42+
%cp% -u doc/js/* %WEB%\js
4143

42-
cp -u doc/favicon.ico %WEB%
44+
%cp% -u doc/favicon.ico %WEB%
4345

4446
%DMD% -Dd%WEB% -o- -w %DDOC% %SRC%
4547

doc/StartPage.dd

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ $(H2 News)
8484
$(P $(LINK2 VersionHistory.html, Full version history and complete details...)
8585
)
8686

87-
2019-05-24 Version 0.50.0
87+
2019-09-03 Version 0.50.1
88+
$(UL
89+
$(LI Fixes some integration issues with VS 2019 16.2)
90+
$(LI mago: improve function call in watch window)
91+
$(LI better version highlighting for files not in project)
92+
)
93+
94+
2019-06-23 Version 0.50.0
8895
$(UL
8996
$(LI Now checks for updates of Visual D, DMD and LDC and assists download and install)
9097
$(LI Setup including DMD and LDC now available)
@@ -100,7 +107,7 @@ $(UL
100107
)
101108

102109
2019-04-21 Version 0.49.1
103-
$(UL
110+
$(UL
104111
$(LI fixed reading settings from VC projects in VS2017)
105112
$(LI added support for VS2019 Update 16.1)
106113
$(LI dparser improvements and bug fixes)

doc/VersionHistory.dd

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
Ddoc
22

3+
$(H2 2019-09-03 Version 0.50.1)
4+
$(UL
5+
$(LI installer:
6+
$(UL
7+
$(LI msbuild: fix building right after full installation)
8+
$(LI bugzilla 20004: add button to reset all global settings to their default)
9+
$(LI bugzilla 20005: try to detect VC through ISetupConfiguration, too)
10+
))
11+
$(LI VC project:
12+
$(UL
13+
$(LI bugzilla 20003: project properties: show "Better C" in option text)
14+
$(LI release configurations in new projects now default to -release -O -inline)
15+
$(LI Compile and Compile/Run/Debug/Disassemble didn't use all command line options,
16+
Run/Debug now use "dmd -i" instead of "rdmd")
17+
$(LI fix parallel build in VS 2019 16.1)
18+
$(LI VS 2019 16.2: fix command line options no longer read correctly from the VC project for
19+
Compile and Run/Debug/Disassemble)
20+
))
21+
$(LI editor:
22+
$(UL
23+
$(LI version highlighting for source files not in a project now reads settings from startup project)
24+
$(LI highlight x64 registers in asm block)
25+
$(LI don't highlight asm keywords/mnemonics/registers from semantic information)
26+
))
27+
$(LI mago:
28+
$(UL
29+
$(LI improve function call in watch window
30+
$(UL
31+
$(LI implement virtual functions, fix calling delegates and function pointers)
32+
$(LI display of delegate type)
33+
$(LI support arbitrary return types)
34+
))
35+
$(LI fix showing UTF32 values (supported by dmd 2.089))
36+
$(LI fix reading enum values (not emitted before dmd 2.089))
37+
))
38+
)
39+
340
$(H2 2019-06-23 Version 0.50.0)
441
$(UL
542
$(LI installer:

doc/visuald.ddoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
VERSION = 0.50.0
2-
DMD_VERSION = 2.086.1
3-
LDC_VERSION = 1.16.0
1+
VERSION = 0.50.1
2+
DMD_VERSION = 2.087.1
3+
LDC_VERSION = 1.17.0
44
ROOT_DIR = https://www.dlang.org/
55
ROOT = https://www.dlang.org
66
BODYCLASS = visuald

visuald/colorizer.d

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@ class Colorizer : DisposingComObject, IVsColorizer, ConfigModifiedListener
388388
type = TokenColor.Keyword;
389389
}
390390

391-
if (type == TokenColor.Identifier)
392-
type = mSource.getIdentifierColor(tok, iLine + 1, prevpos);
393-
394391
if(cov >= 0)
395392
{
396393
type = covtype;
397394
}
398395
else
399396
{
397+
if (type == TokenColor.Identifier)
398+
type = mSource.getIdentifierColor(tok, iLine + 1, prevpos);
399+
400400
if(mColorizeVersions)
401401
{
402402
if(Lexer.isCommentOrSpace(type, tok) || (inTokenString || nowInTokenString))
@@ -888,6 +888,13 @@ class Colorizer : DisposingComObject, IVsColorizer, ConfigModifiedListener
888888
return type;
889889
}
890890

891+
// anything that originates from TokenColor.Identifier
892+
bool isIdentifierColorType(int type)
893+
{
894+
int sct = stringColorType(type);
895+
return sct == TokenColor.StringIdentifier || sct == TokenColor.DisabledIdentifier;
896+
}
897+
891898
__gshared int[wstring] asmIdentifiers;
892899
static const wstring[] asmKeywords = [ "__LOCAL_SIZE", "dword", "even", "far", "naked", "near", "ptr", "qword", "seg", "word", ];
893900
static const wstring[] asmRegisters = [
@@ -1220,13 +1227,13 @@ class Colorizer : DisposingComObject, IVsColorizer, ConfigModifiedListener
12201227
case VersionParseState.InAsmBlockEnabled:
12211228
if(text == "}")
12221229
parseState = VersionParseState.IdleEnabled;
1223-
else if(ntype == TokenColor.Identifier)
1230+
else if(isIdentifierColorType(ntype))
12241231
ntype = asmColorType(text);
12251232
break;
12261233
case VersionParseState.InAsmBlockDisabled:
12271234
if(text == "}")
12281235
parseState = VersionParseState.IdleDisabled;
1229-
else if(ntype == TokenColor.Identifier)
1236+
else if(isIdentifierColorType(ntype))
12301237
ntype = asmColorType(text);
12311238
goto case VersionParseState.IdleDisabled;
12321239
}

0 commit comments

Comments
 (0)