about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-28 04:24:51 +0200
committerMel <mel@rnrd.eu>2026-05-28 04:24:51 +0200
commit4ec376b67d605910cb7757dc2e15a28a942f59ca (patch)
tree4e98614792e5a00175fa29e705142850993d68f6 /docs
parenta5b24e3eedc8bd48de99cfb90abb3bececa5d29f (diff)
downloadcatskill-4ec376b67d605910cb7757dc2e15a28a942f59ca.tar.zst
catskill-4ec376b67d605910cb7757dc2e15a28a942f59ca.zip
Correct type modifier combinations and grouping
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.md b/docs/grammar.md
index 18a8550..fd47c47 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -236,10 +236,10 @@ type_variant = "variant" "{" variant_cases "}"
 type_class = "class" "{" class_methods "}"
 type_function = "fun" function_header
 type_structure = "{" struct_fields "}"
-type_tuple = "(" [ type { "," type } ] ")"
+type_tuple = "(" [ type { "," type } ] ")" # 1-tuple is equivalent to a simple group
 type_array = "[" type "]"
 type_map = "[" type "=" type "]"
-type_reference = "&" type
+type_reference = "&" type_inner
 
 # common shapes