mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-28 22:30:04 +03:00
Fixed accidental lower-casing of constants
This commit is contained in:
parent
6694a4a875
commit
adf8f09c7d
1 changed files with 7 additions and 7 deletions
14
D.g4
14
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__'
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue