fixing generic function parser (looking for :)

This commit is contained in:
Andrew Danger Lyon 2013-03-20 22:37:42 -07:00
parent e8549d70dc
commit c16b5706ac

View file

@ -366,7 +366,7 @@ var highlight_lisp = function() {
{regex: /(\s|[()])t(\s|[()])/g, replace: '$1<span class="nil">t</span>$2'}, {regex: /(\s|[()])t(\s|[()])/g, replace: '$1<span class="nil">t</span>$2'},
// generic "maybe a function" forms. best second to last // generic "maybe a function" forms. best second to last
{regex: /\((\w[\w_-]*)(\s)/g, replace: '(<span class="function">$1</span>$2'}, {regex: /\((\w[\w_:-]*)(\s)/g, replace: '(<span class="function">$1</span>$2'},
// ()'s (should most probably be last, unless there's a good reason) // ()'s (should most probably be last, unless there's a good reason)
{regex: /([()])/g, replace: '<span class="list">$1</span>'} {regex: /([()])/g, replace: '<span class="list">$1</span>'}