summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-29 12:40:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-29 12:40:46 +0200
commit381f872a76f6ad8fc5caee172e903f08dd652547 (patch)
treee6eb9e81154eb33421da34af9fe66360d4119cab /doc
parent4c13393de7c54d3e2075ca89a0e3ade1415c59f8 (diff)
Add parsing support for scope-level documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/language.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/language.txt b/doc/language.txt
index 445d743..16eaa0d 100644
--- a/doc/language.txt
+++ b/doc/language.txt
@@ -32,9 +32,14 @@ decl-seq:
decl-seq decl
decl:
+ scope-doc
namespace-def
class-def
+scope-doc:
+ string-literal
+ "{" doc-string-seq "}"
+
namespace-def:
"namespace" identifier "{" namespace-body "}"
@@ -59,7 +64,7 @@ option-def-seq:
option-def-seq option-def
option-def:
- type-spec option-name-seq initializer(opt) option-doc ";"
+ type-spec option-name-seq initializer(opt) option-doc(opt) ";"
type-spec:
fundamental-type-spec