mirror of
https://github.com/vale981/highlight-lisp
synced 2025-03-05 09:21:38 -05:00
fixing generic function parser (looking for :)
This commit is contained in:
parent
e8549d70dc
commit
c16b5706ac
1 changed files with 1 additions and 1 deletions
|
@ -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>'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue