Skip to content

Commit

Permalink
Updated documentation since the example was not relevant any more
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Aug 26, 2015
1 parent 80d8260 commit 80aedb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extending.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ <h1>Language definitions</h1>
<dt>lookbehind</dt>
<dd>This option mitigates JavaScript’s lack of lookbehind. When set to <code>true</code>,
the first capturing group in the regex <code>pattern</code> is discarded when matching this token, so it effectively behaves
as if it was lookbehind. For an example of this, check out the JavaScript language definition, in particular the regex and comment tokens:
<pre data-src="components/prism-javascript.js"></pre></dd>
as if it was lookbehind. For an example of this, check out the C-like language definition, in particular the comment and class-name tokens:
<pre data-src="components/prism-clike.js"></pre></dd>

<dt>rest</dt>
<dd>Accepts an object literal with tokens and appends them to the end of the current object literal. Useful for referring to tokens defined elsewhere. For an example where <code>rest</code> is useful, check the Markup definitions above.</dd>
Expand Down Expand Up @@ -203,4 +203,4 @@ <h2>Returns</h2>
<script src="code.js"></script>

</body>
</html>
</html>

0 comments on commit 80aedb2

Please sign in to comment.