From adf8f09c7d17bdcd908b12a58d2433c1d952bbec Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sat, 20 Apr 2013 23:22:14 -0700 Subject: [PATCH] Fixed accidental lower-casing of constants --- D.g4 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/D.g4 b/D.g4 index ae76ff3..c0b44a8 100644 --- a/D.g4 +++ b/D.g4 @@ -525,9 +525,9 @@ primaryExpression: identifierOrTemplateInstance | 'null' | 'true' | 'false' - | '__file__' - | '__module__' - | '__line__' + | '__FILE__' + | '__MODULE__' + | '__LINE__' | '__FUNCTION__' | '__PRETTY_FUNCTION__' | IntegerLiteral @@ -577,7 +577,7 @@ templateValueParameter: type Identifier templateValueParameterSpecialization? te templateValueParameterSpecialization: ':' expression ; -templateValueParameterDefault: '=' ('__file__' | '__module__' | '__line__' | '__FUNCTION__' | '__PRETTY_FUNCTION__' | assignExpression) +templateValueParameterDefault: '=' ('__FILE__' | '__MODULE__' | '__LINE__' | '__FUNCTION__' | '__PRETTY_FUNCTION__' | assignExpression) ; templateAliasParameter: 'alias' type? Identifier templatealiasparameterspecialization? templatealiasparameterdefault? @@ -836,9 +836,9 @@ parameter: parameterAttribute? type ('...' | (Identifier ('=' defaultInitializer ; defaultInitializerExpression: assignExpression - | '__file__' - | '__module__' - | '__line__' + | '__FILE__' + | '__MODULE__' + | '__LINE__' | '__FUNCTION__' | '__PRETTY_FUNCTION__' ;