Skip to content

Commit 7e9f258

Browse files
committed
Save the files that are missing from the SyntaxHighlighter repo upstream
1 parent 3f584c1 commit 7e9f258

File tree

2 files changed

+105
-0
lines changed

2 files changed

+105
-0
lines changed
+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/**
2+
* SyntaxHighlighter
3+
* http://alexgorbatchev.com/SyntaxHighlighter
4+
*
5+
* SyntaxHighlighter is donationware. If you are using it, please donate.
6+
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7+
*
8+
* @version
9+
* 3.0.83 (July 02 2010)
10+
*
11+
* @copyright
12+
* Copyright (C) 2004-2010 Alex Gorbatchev.
13+
*
14+
* @license
15+
* Dual licensed under the MIT and GPL licenses.
16+
*/
17+
;(function()
18+
{
19+
// CommonJS
20+
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21+
22+
function Brush()
23+
{
24+
// Copyright 2006 Shin, YoungJin
25+
// Copyright 2011 Scott Densmore
26+
27+
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
28+
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
29+
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
30+
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
31+
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
32+
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
33+
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
34+
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
35+
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
36+
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
37+
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
38+
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
39+
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
40+
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
41+
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
42+
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
43+
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
44+
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
45+
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
46+
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t id ' +
47+
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
48+
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
49+
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
50+
'va_list wchar_t wctrans_t wctype_t wint_t signed';
51+
52+
var keywords = 'break case catch class copy const __finally __exception __try ' +
53+
'const_cast continue private public protected __declspec ' +
54+
'default delete deprecated dllexport dllimport do dynamic_cast ' +
55+
'else enum explicit extern if for friend getter goto inline ' +
56+
'mutable naked namespace new nil NO noinline nonatomic noreturn nothrow NULL ' +
57+
'readonly readwrite register reinterpret_cast retain return SEL selectany self ' +
58+
'setter sizeof static static_cast struct super switch template this ' +
59+
'thread throw true false try typedef typeid typename union ' +
60+
'using uuid virtual void volatile whcar_t while YES';
61+
62+
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
63+
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
64+
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
65+
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
66+
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
67+
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
68+
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
69+
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
70+
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
71+
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
72+
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
73+
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
74+
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
75+
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
76+
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
77+
'clock ctime difftime gmtime localtime mktime strftime time';
78+
79+
this.regexList = [
80+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
81+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
82+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
83+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
84+
{ regex: /^ *#.*/gm, css: 'preprocessor' },
85+
{ regex: /^#!.*$/gm, css: 'preprocessor' },
86+
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'keyword bold' },
87+
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
88+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' },
89+
{ regex: new RegExp('\\bNS\\w+\\b', 'gm'), css: 'keyword bold' },
90+
{ regex: new RegExp('\\bUI\\w+\\b', 'gm'), css: 'keyword bold' },
91+
{ regex: new RegExp('\\bIB\\w+\\b', 'gm'), css: 'keyword bold' },
92+
{ regex: new RegExp('@\\w+\\b', 'gm'), css: 'keyword bold' },
93+
];
94+
};
95+
96+
Brush.prototype = new SyntaxHighlighter.Highlighter();
97+
Brush.aliases = ['obj-c', 'objc'];
98+
99+
SyntaxHighlighter.brushes.Objc = Brush;
100+
101+
// CommonJS
102+
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
103+
})();

SyntaxHighlighter-missing/xregexp-min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)