diff --git a/lexer.c b/lexer.c index e5f8e49..720f8b2 100644 --- a/lexer.c +++ b/lexer.c @@ -2944,10 +2944,10 @@ static Keyword keywords[] = // Added after 1.0 { "ref", TOKref }, { "macro", TOKmacro }, + { "__thread", TOKtls } #if DMDV2 { "pure", TOKpure }, { "nothrow", TOKnothrow }, - { "__thread", TOKtls }, { "__traits", TOKtraits }, { "__overloadset", TOKoverloadset }, { "__FILE__", TOKfile }, diff --git a/lexer.h b/lexer.h index 9461d66..c0a2563 100644 --- a/lexer.h +++ b/lexer.h @@ -152,12 +152,12 @@ enum TOK // Added after 1.0 TOKref, TOKmacro, + TOKtls, #if DMDV2 TOKtraits, TOKoverloadset, TOKpure, TOKnothrow, - TOKtls, TOKline, TOKfile, TOKshared, diff --git a/parse.c b/parse.c index e136763..af32294 100644 --- a/parse.c +++ b/parse.c @@ -277,11 +277,11 @@ Array *Parser::parseDeclDefs(int once) case TOKabstract: stc = STCabstract; goto Lstc; case TOKsynchronized: stc = STCsynchronized; goto Lstc; case TOKdeprecated: stc = STCdeprecated; goto Lstc; + case TOKtls: stc = STCtls; goto Lstc; #if DMDV2 case TOKnothrow: stc = STCnothrow; goto Lstc; case TOKpure: stc = STCpure; goto Lstc; case TOKref: stc = STCref; goto Lstc; - case TOKtls: stc = STCtls; goto Lstc; case TOKgshared: stc = STCgshared; goto Lstc; //case TOKmanifest: stc = STCmanifest; goto Lstc; case TOKat: stc = parseAttribute(); goto Lstc;