summaryrefslogtreecommitdiff
path: root/12-xml-expressions-and-patterns.md
diff options
context:
space:
mode:
Diffstat (limited to '12-xml-expressions-and-patterns.md')
-rw-r--r--12-xml-expressions-and-patterns.md12
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