diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:02 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:48 -0700 |
commit | 71c1716ae4f16a05825695a33d480ac194c5ae09 (patch) | |
tree | 9f6002559be84e32fa3a983f3bbf5dbab199aae5 /12-xml-expressions-and-patterns.md | |
parent | abd0895322985dd4a590f3dd96a488f4e4ff87bf (diff) | |
download | scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.gz scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.bz2 scala-71c1716ae4f16a05825695a33d480ac194c5ae09.zip |
Add language to code blocks. Shorter Example title.
Diffstat (limited to '12-xml-expressions-and-patterns.md')
-rw-r--r-- | 12-xml-expressions-and-patterns.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/12-xml-expressions-and-patterns.md b/12-xml-expressions-and-patterns.md index 735349cb90..7aab3380d4 100644 --- a/12-xml-expressions-and-patterns.md +++ b/12-xml-expressions-and-patterns.md @@ -18,7 +18,7 @@ XML expressions are expressions generated by the following production, where the opening bracket `<` of the first element must be in a position to start the lexical [XML mode](03-lexical-syntax.html#xml-mode). -``` +```ebnf XmlExpr ::= XmlContent {Element} ``` @@ -33,7 +33,7 @@ standard. Only the productions for attribute values and character data are chang Scala does not support declarations, CDATA sections or processing instructions. Entity references are not resolved at runtime. -``` +```ebnf Element ::= EmptyElemTag | STag Content ETag @@ -67,7 +67,7 @@ and consecutive occurrences of whitespace are replaced by a single space character `\u0020`. This behavior can be changed to preserve all whitespace with a compiler option. -``` +```ebnf Attribute ::= Name Eq AttValue AttValue ::= ‘"’ {CharQ | CharRef} ‘"’ @@ -88,7 +88,7 @@ within XML text as generated by CharData, it must be doubled. Thus, `{{` represents the XML text `{` and does not introduce an embedded Scala expression. <!-- {% endraw %} --> -``` +```ebnf BaseChar, Char, Comment, CombiningChar, Ideographic, NameChar, S, Reference ::= $\mbox{\rm\em “as in W3C XML”}$ @@ -109,7 +109,7 @@ XML patterns are patterns generated by the following production, where the opening bracket `<` of the element patterns must be in a position to start the lexical [XML mode](03-lexical-syntax.html#xml-mode). -``` +```ebnf XmlPattern ::= ElementPattern ``` @@ -128,7 +128,7 @@ and consecutive occurrences of whitespace are replaced by a single space character `\u0020`. This behavior can be changed to preserve all whitespace with a compiler option. -``` +```ebnf ElemPattern ::= EmptyElemTagP | STagP ContentP ETagP |