Skip to content

Commit

Permalink
Fixing ambient external module grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Feb 1, 2015
1 parent f18ec2e commit d8eca59
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified doc/TypeScript Language Specification (Change Markup).docx
Binary file not shown.
Binary file modified doc/TypeScript Language Specification (Change Markup).pdf
Binary file not shown.
Binary file modified doc/TypeScript Language Specification.docx
Binary file not shown.
Binary file modified doc/TypeScript Language Specification.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -5494,7 +5494,7 @@ Except for *ImportDeclarations*, *AmbientModuleElements* always declare exported
An *AmbientExternalModuleDeclaration* declares an external module. This type of declaration is permitted only at the top level in a source file that contributes to the global module (section [11.1](#11.1)). The *StringLiteral* must specify a top-level external module name. Relative external module names are not permitted.
  *AmbientExternalModuleDeclaration:*
   `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
   `declare` `module` *StringLiteral* `{`  *AmbientExternalModuleBody* `}`
  *AmbientExternalModuleBody:*
&emsp;&emsp;&emsp;*AmbientExternalModuleElements<sub>opt</sub>*
Expand Down Expand Up @@ -6054,7 +6054,7 @@ This appendix contains a summary of the grammar found in the main document. As d
&emsp;&emsp;&emsp;`export`*<sub>opt</sub>*&emsp;*ImportDeclaration*
&emsp;&emsp;*AmbientExternalModuleDeclaration:*
&emsp;&emsp;&emsp;`module`&emsp;*StringLiteral*&emsp;`{`&emsp; *AmbientExternalModuleBody*&emsp;`}`
&emsp;&emsp;&emsp;`declare`&emsp;`module`&emsp;*StringLiteral*&emsp;`{`&emsp; *AmbientExternalModuleBody*&emsp;`}`
&emsp;&emsp;*AmbientExternalModuleBody:*
&emsp;&emsp;&emsp;*AmbientExternalModuleElements<sub>opt</sub>*
Expand Down

0 comments on commit d8eca59

Please sign in to comment.