mirror of
https://github.com/vale981/highlight-lisp
synced 2025-03-06 01:31:41 -05:00
porting from master
This commit is contained in:
parent
156b56db0f
commit
d100505608
1 changed files with 2 additions and 0 deletions
|
@ -356,6 +356,8 @@ var highlight_lisp = function() {
|
|||
{regex: /([\s()])(#x[\da-f]+)(?=[\s()])/ig, replace: '$1<span class="number hex">$2</span>'},
|
||||
// float
|
||||
{regex: /([\s()])([+-]?(?:\d+\.\d+|\d+\.|\.\d+))(?=[\s()])/g, replace: '$1<span class="number float">$2</span>'},
|
||||
// ratio
|
||||
{regex: /([\s()])([+-]?\d+(?:\/\d+)?)(?=[\s()])/g, replace: '$1<span class="number ratio">$2</span>'},
|
||||
// integers
|
||||
{regex: /([\s()])([+-]?\d+)(?=[\s()])/g, replace: '$1<span class="number integer">$2</span>'},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue