|
|
Forum
|
|
C/C++ (c,cpp,h,hpp) syntax highlight file section, syntax keywords for HiEditor, the programmer's large file editor.
|
samael |
|
Typo-lord
Group: Moderators
Posts: 404
Member No.: 5187
Joined: 10-June 07
|
Section for C/C++ (c,cpp,h,hpp)
Note: Applies to HiEditor V2.XX Syntax Highlight format.
CODE | ;Swagler [cpp,c,h,hpp] ;Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = C CPP CC CXX H HPP AWK ;Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<>,.? ;Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&:, ^t^[^]a-zA-Z_0-9.!]++)[~;]" ;Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&:, ^t^[^]/*^-'=:&a-zA-Z_0-9./(!]++)[~;]" ;Function String 2 = "%[a-zA-Z_0-9^][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]" ;Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]" ;Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-z_0-9./(!]++)[~;]" ;Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./()!]++)[~;]" ;Member String = "^([A-Za-z0-9_:.]+^)[ ^t^*&]+$S[ ^t^[^]A-Za-z0-9_]++[(-);,]" ;Variable String = "%[ ^t]++^([!-y~ ^t<>]+*[~a-z^p]^)$S[ ^t;,()^-]" ;Indent Strings = "{" "if" "else" ":" ;Unindent Strings = "}" ;Open Brace Strings = "{" "(" "[" ;Close Brace Strings = "}" ")" "]" ;Open Fold Strings = "{" ;Close Fold Strings = "}"
;>>>>> C Keywords <<<<< 0x01ff0000=#define #elif #else #endif #error #if #ifdef #ifndef #include #include_next #line #pragma #undef 0x01ff0000=__asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 0x01ff0000=__int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof 0x01ff0000=auto bool break case char const continue default defined do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while ;
;>>>>> C++ Keywords <<<<< 0x01ff0000=__multiple_inheritance __single_inheritance __virtual_inheritance catch class const_cast dynamic_cast reinterpret_cast static_cast wchar_t 0x01ff0000=delete explicit export false friend inline mutable namespace new operator private protected public template this throw true try typeid typename using virtual ;
;>>>>> Microsoft C extensions <<<<< 0x10000080=dllexport dllimport naked thread uuid ;
;>>>>> C Operators <<<<< 0x008000AA=; ! % & * + - // / < = > ^ | ~ |
|
|
|
|
samael |
|
Typo-lord
Group: Moderators
Posts: 404
Member No.: 5187
Joined: 10-June 07
|
Note: Applies to HiEditor V3.00b Syntax Highlight format.
CODE | ;Swagler [cpp,c,h,hpp] ;Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = C CPP CC CXX H HPP AWK ;Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<>,.? ;Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&:, ^t^[^]a-zA-Z_0-9.!]++)[~;]" ;Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&:, ^t^[^]/*^-'=:&a-zA-Z_0-9./(!]++)[~;]" ;Function String 2 = "%[a-zA-Z_0-9^][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]" ;Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]" ;Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-z_0-9./(!]++)[~;]" ;Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./()!]++)[~;]" ;Member String = "^([A-Za-z0-9_:.]+^)[ ^t^*&]+$S[ ^t^[^]A-Za-z0-9_]++[(-);,]" ;Variable String = "%[ ^t]++^([!-y~ ^t<>]+*[~a-z^p]^)$S[ ^t;,()^-]" ;Indent Strings = "{" "if" "else" ":" ;Unindent Strings = "}" ;Open Brace Strings = "{" "(" "[" ;Close Brace Strings = "}" ")" "]" ;Open Fold Strings = "{" ;Close Fold Strings = "}"
;>>>>> DELIMITERS <<<<< 0x01000000=; : ~ ! % ^ & ( ) | \ / { } [ ] " ' , * - + < = > . ;
;>>>>> STRINGS <<<<< 0x00FF00FF="& '& ;
;>>>>> COMMENTS <<<<< 0x00008000=//+ /*+ ;
;>>>>> C KEYWORDS <<<<< 0x00ff0000=#define #elif #else #endif #error #if #ifdef #ifndef #include #include_next #line #pragma #undef 0x00ff0000=__asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 0x00ff0000=__int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof 0x00ff0000=auto bool break case char const continue default defined do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while ;
;>>>>> C++ KEYWORDS <<<<< 0x00ff0000=__multiple_inheritance __single_inheritance __virtual_inheritance catch class const_cast dynamic_cast reinterpret_cast static_cast wchar_t 0x00ff0000=delete explicit export false friend inline mutable namespace new operator private protected public template this throw true try typeid typename using virtual ;
;>>>>> MICROSOFT C EXTENSIONS <<<<< 0x00000080=dllexport dllimport naked thread uuid |
|
|
|
|
richm |
|
Member
Group: Members
Posts: 31
Member No.: 66
Joined: 3-June 04
|
I would like to add this list of HLSL intrinsic functions to the C/C++ syntax file.
Perhaps only for [cg,cgh,shader,hlsl] or whatever extension you use.
It's not the complete intrinsic list, but it's most of the common functions.
CODE | 0x00ff0000=sampler samplerCUBE half half2 half3 half4 float2 float3 float4 float2x2 float3x3 float4x4 frac reflect clamp exp modf smoothstep lerp saturate noise ceil floor log log2 log10 sign clip min max normalize sqrt length cross transpose mul dot sin cos pow abs tex1D tex2D texCUBE tex2Dlod |
Regards, -richm
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|
|
|
|
|
|
|
|
|
|
|