summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorSilly Carbon <crew.long@outlook.com>2024-01-26 15:03:41 +0800
committerGitHub <noreply@github.com>2024-01-26 08:03:41 +0100
commit243f1e6cd5e147fdd96b5298e4df44546e5eea28 (patch)
treeb1c5b4089c8ceac16961c6e91a73dda29f444c61 /doc
parentd44b0b186943b3187e6dbc8bc5d304f402d978dc (diff)
downloadNim-243f1e6cd5e147fdd96b5298e4df44546e5eea28.tar.gz
Fixes #23085: update grammars for 'concept' (#23256)
Fixes #23085
Diffstat (limited to 'doc')
-rw-r--r--doc/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index f1484bb0b..51b3e0053 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -187,7 +187,7 @@ objectCase = 'case' declColonEquals ':'? COMMENT?
 objectPart = IND{>} objectPart^+IND{=} DED
            / objectWhen / objectCase / 'nil' / 'discard' / declColonEquals
 objectDecl = 'object' ('of' typeDesc)? COMMENT? objectPart
-conceptParam = ('var' | 'out')? symbol
+conceptParam = ('var' | 'out' | 'ptr' | 'ref' | 'static' | 'type')? symbol
 conceptDecl = 'concept' conceptParam ^* ',' (pragma)? ('of' typeDesc ^* ',')?
               &IND{>} stmt
 typeDef = identVisDot genericParamList? pragma '=' optInd typeDefValue