mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
22 lines
1.4 KiB
JavaScript
22 lines
1.4 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]*)*\")/ }
|
||
|
, preproc: { exp: /^\s*#.*/ }
|
||
|
, number : { exp: /\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b/ }
|
||
|
, keyword: { exp: /\b(?:abstract|as|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|get|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|while)\b/ }
|
||
|
}
|
||
|
}
|