Update spec/namespaces.md

This commit is contained in:
CyrusNajmabadi 2020-10-27 03:10:59 -04:00 committed by GitHub
parent 5fd8498724
commit f8550ef836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,8 @@ The two compilation units contribute to the single global namespace, in this cas
## Namespace declarations
A *namespace_declaration* has two different forms. The first consists of the keyword `namespace`, followed by a namespace name and body, optionally followed by a semicolon. The second consists of the keyword `namespace`, followed by a namespace name, a semicolon and an optional list of directives and declarations.
A *namespace_declaration* consists of the keyword `namespace`, followed by a namespace name and body, optionally followed by a semicolon.
A *single_line_namespace_declaration* consists of the keyword `namespace`, followed by a namespace name, a semicolon and an optional list of directives and type declarations.
```antlr
namespace_declaration