Notepad ++ syntax highlighting

BBasile via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Mon Sep 14 19:18:33 PDT 2015


On Monday, 14 September 2015 at 08:09:43 UTC, Kagamin wrote:
> On Saturday, 12 September 2015 at 18:03:09 UTC, BBasile wrote:
>> A bit OT but Npp D highlighter is based on D1. Even when it 
>> works it's more or less accurate depending on your median D 
>> style, more or less D1 ok, D2 ew...
>
> There's not much difference between D1 and D2 w.r.t. lexer. 
> What from D2 doesn't work?

Here is the list, copy and paste in a new empty NPP doc and set 
the HL to D:

---
#! char char "this is the first script line, should not be HL !"

// raw/WYSISYG/delimited/hex strings not handled
`string`;
r"string";
q"string";
x"46 47 48";

// symbols not handled
$
@
#
	
// keywords not handled
immutable
macro
nothrow
pure
ref
shared

// could be keywords
string
wstring
dstring
size_t
ptrdiff_t

// specials keywords: could have a special color
__FILE__
__MODULE__
__LINE__
__FUNCTION__
__PRETTY_FUNCTION__
__gshared
__traits
__vector
__parameters
__DATE__
__EOF__
__TIME__
__TIMESTAMP__
__VENDOR__
__VERSION__
---


More information about the Digitalmars-d-ide mailing list