aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-17 04:22:59 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-17 04:22:59 +0800
commitd5f01460f99d0aa6b68e62be00f348538280ad23 (patch)
treed593087b3ff0cd3c4ef2a2a604938975c6be234a
parent47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f (diff)
downloaddexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.tar.gz
dexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.tar.zst
dexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.zip
Allow constant modifier on state variables in grammar
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 90dc12ac..76827a77 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -16,7 +16,7 @@ ContractPart = StateVariableDeclaration | UsingForDeclaration
InheritanceSpecifier = UserDefinedTypeName ( '(' Expression ( ',' Expression )* ')' )?
-StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';'
+StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' | 'constant' )? Identifier ('=' Expression)? ';'
UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';'
StructDefinition = 'struct' Identifier '{'
( VariableDeclaration ';' (VariableDeclaration ';')* )? '}'