aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonathan Brachthäuser <jonathan@b-studios.de>2016-12-21 19:59:54 +0100
committerJonathan Brachthäuser <jonathan@b-studios.de>2016-12-21 19:59:54 +0100
commit669ab6521134340dfa3cdc24afa13b9130aebd4d (patch)
tree5a75b7e8448b3c82ac602e55fff84f129581928c /docs
parentdbe5766914a6bcb272379a1e5423e2ecf35aaee2 (diff)
downloaddotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.tar.gz
dotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.tar.bz2
dotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.zip
Add markdown header
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/internals/syntax.md20
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/docs/internals/syntax.md b/docs/docs/internals/syntax.md
index cbf2b0ce4..13faa195e 100644
--- a/docs/docs/internals/syntax.md
+++ b/docs/docs/internals/syntax.md
@@ -1,10 +1,20 @@
-% $Id: SyntaxSummary.tex 21104 2010-03-08 13:49:27Z odersky $
+---
+layout: default
+title: "Scala Syntax Summary"
+---
-\chapter{Scala Syntax Summary}\label{sec:syntax}
-\todo{introduce SeqPattern syntax}
+The following descriptions of Scala tokens uses literal characters `‘c’` when
+referring to the ASCII fragment `\u0000` – `\u007F`.
-The lexical syntax of Scala is given by the following grammar in EBNF
-form.
+_Unicode escapes_ are used to represent the Unicode character with the given
+hexadecimal code:
+
+```ebnf
+UnicodeEscape ::= ‘\’ ‘u’ {‘u’} hexDigit hexDigit hexDigit hexDigit
+hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ | … | ‘f’
+```
+
+Informal descriptions are typeset as `“some comment”`.
{\small
\begin{lstlisting}