mirror of https://gitlab.com/basile.b/dexed.git
fix #69 - d2 highligther, dont apply the phobos-style if ident is followed by left paren
that looks better when using C APIs. before : "LLVMAppendBasicBlock(" -> tkTypes, tkSymbol after : "LLVMAppendBasicBlock(" -> tkCall, tkSymbol downside : "Constructor()", Constructor is not a TkTypes anymore
This commit is contained in:
parent
04652d095d
commit
077b4c35e7
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
## Bugs fixed
|
## Bugs fixed
|
||||||
|
|
||||||
|
- D2 highlighter: for `Call()`, `Call` wont be considered anymore as a type. (#69)
|
||||||
- GDB commander: 5 empty arguments were passed to the main function called by libc. (#86)
|
- GDB commander: 5 empty arguments were passed to the main function called by libc. (#86)
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
|
@ -1161,10 +1161,10 @@ begin
|
||||||
end
|
end
|
||||||
else if specialKeywordsMap.match(fLineBuf[FTokStart..fTokStop-1]) then
|
else if specialKeywordsMap.match(fLineBuf[FTokStart..fTokStop-1]) then
|
||||||
fTokKind := tkSpecK
|
fTokKind := tkSpecK
|
||||||
|
else if reader^ = '(' then
|
||||||
|
fTokKind:= tkCall
|
||||||
else if fPhobosStyleType and ('A' <= fLineBuf[FTokStart]) and (fLineBuf[FTokStart] <= 'Z') then
|
else if fPhobosStyleType and ('A' <= fLineBuf[FTokStart]) and (fLineBuf[FTokStart] <= 'Z') then
|
||||||
fTokKind:= tkTypes
|
fTokKind:= tkTypes
|
||||||
else if reader^ = '(' then
|
|
||||||
fTokKind:= tkCall
|
|
||||||
else if rkAsm in fCurrRange.rangeKinds then
|
else if rkAsm in fCurrRange.rangeKinds then
|
||||||
fTokKind:=tkAsmbl;
|
fTokKind:=tkAsmbl;
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue