aboutsummaryrefslogtreecommitdiffstats
path: root/docs/julia.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/julia.rst')
-rw-r--r--docs/julia.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/julia.rst b/docs/julia.rst
index f97fb4b0..1bd67670 100644
--- a/docs/julia.rst
+++ b/docs/julia.rst
@@ -103,10 +103,12 @@ Grammar::
BuiltinTypeName = 'bool' | [us] ( '8' | '32' | '64' | '128' | '256' )
TypedIdentifierList = Identifier ':' TypeName ( ',' Identifier ':' TypeName )*
Literal =
- (NumberLiteral | StringLiteral | HexLiteral) ':' TypeName
+ (NumberLiteral | StringLiteral | HexLiteral | TrueLiteral | FalseLiteral) ':' TypeName
NumberLiteral = HexNumber | DecimalNumber
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
+ TrueLiteral = 'true'
+ FalseLiteral = 'false'
HexNumber = '0x' [0-9a-fA-F]+
DecimalNumber = [0-9]+