对UltraEdit增加新的语法高亮

zenny_chen 2007-05-13 01:25:29
支持C99和CPP2003所有关键字的高亮(Highlight)。
增加MASM x86指令集的高亮。
增加Blackfin指令集的高亮
增加VisualDSP++扩充关键字的高亮


http://download.csdn.net/source/174562

欢迎大家下载

...全文
883 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
大熊猫侯佩 2007-05-16
  • 打赏
  • 举报
回复
有没有其他语法文件?
zenny_chen 2007-05-16
  • 打赏
  • 举报
回复
你想要什么?可以做啊。
  • 打赏
  • 举报
回复
支持
zenny_chen 2007-05-14
  • 打赏
  • 举报
回复
我刚才试过。

大家在点击下载后一定出现了以下内容:

/L1"C/C++" C_LANG Line 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./()!]++)[~;]"
/Indent Strings = "{" ":"
/Unindent Strings = "}"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Keywords"
auto
break bool
case char const continue
default do double defined
else enum extern
float for
goto
if int
long
register restrict return
short signed sizeof static struct switch
typedef
union unsigned
void volatile
while
_Bool _Complex _Imaginary
__asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 __int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof
#define #error #include #include_next #elif #if #line #else #ifdef #pragma #endif #ifndef #undef
/C2"C++ Keywords"


这就是wordfile中对C语言的描述部分。只要看到这个页面,另存为就行了。
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
刚才有碰到无法下载却被扣分的情况。
发生这个问题后请参见资源下载的说明。

如果发生无法下载还被扣分的情况,可以继续下载,后面的下载将不会被扣分。

谢谢大家支持!
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
void Hello(int restrict *p)
{
_Bool b = 0;

_Complex float comp = 0.5f;

_Imaginary double d = 3.456;
}

以上是C99的扩充。

下面是CPP2003以及VisualDSP++的扩充:

// for VisualDSP++
section("data1")
int hello;

bank("bank1")
void func(void)
{

}

void main(void)
{
asm("idle;"); // asm关键字是CPP2003的扩充,不过这种嵌入汇编的语法是
VisualDSP++ 的
}

后面是blackfin指令集:

.section program;

.global _hello:

_hello:

[--sp] = r7;

p0.h = 0xffc0;
p0.l = 0x0100;

i0.h = 0xffc1;
i0.l = 0x0100;

r0 = r7 - r0(ns) || r7 = [p0]; || r1 = [i0]; // 并行发布指令

rts;

_hello.end:


MASM

DATA SEGMENT

hello db 0

DATA ENDS

mystack segment para stack
db 100h dup(0)
mystack ends

code segment
assume cs:code, ds:data, ss:mystack

LINK equ 10

LAB = 20

start:
mov ax, data

mov ds, ax

here: jmp here

func proc near

mov ax, word ptr [si] ; ax = [si]

func endp

Hii proc far

Hii endp

mov ah, 4ch

int 21h

code ends

end start

21,459

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧