mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
22 lines
1.3 KiB
JavaScript
22 lines
1.3 KiB
JavaScript
|
/*
|
||
|
===============================================================================
|
||
|
Chili is the jQuery code highlighter plugin
|
||
|
...............................................................................
|
||
|
Copyright 2007 / Andrea Ercolino
|
||
|
-------------------------------------------------------------------------------
|
||
|
LICENSE: http://www.opensource.org/licenses/mit-license.php
|
||
|
WEBSITE: http://noteslog.com/chili/
|
||
|
===============================================================================
|
||
|
*/
|
||
|
|
||
|
{
|
||
|
steps: {
|
||
|
mlcom : { exp: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// }
|
||
|
, com : { exp: /\/\/.*/ }
|
||
|
, string : { exp: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/ }
|
||
|
, number : { exp: /(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b)|(?:0x[a-f0-9]+)\b/ }
|
||
|
, meta : { exp: /(?!\@interface\b)\@[\$\w]+\b/ }
|
||
|
, keyword: { exp: /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|false|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|null|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|true|try|void|volatile|while)\b/ }
|
||
|
}
|
||
|
}
|