Get code and data blocks working in the orcam xclangspec file

This commit is contained in:
Jeremy Rand 2017-09-07 00:08:00 -04:00
parent 0f8e0b029b
commit 1c9c4841f8

View File

@ -15,29 +15,6 @@
}; };
}, },
{
Identifier = "xcode.lang.asm.orcam.start";
Syntax = {
CaseSensitive = NO;
Words = (
"start",
"data",
);
Type = "xcode.syntax.keyword";
};
},
{
Identifier = "xcode.lang.asm.orcam.end";
Syntax = {
CaseSensitive = NO;
Words = (
"end",
);
Type = "xcode.syntax.keyword";
};
},
{ {
Identifier = "xcode.lang.asm.orcam.keyword"; Identifier = "xcode.lang.asm.orcam.keyword";
Syntax = { Syntax = {
@ -147,12 +124,14 @@
"case", "case",
"codechk", "codechk",
"copy", "copy",
"data",
"datachk", "datachk",
"dc", "dc",
"direct", "direct",
"ds", "ds",
"dynchk", "dynchk",
"eject", "eject",
"end",
"entry", "entry",
"equ", "equ",
"err", "err",
@ -178,6 +157,7 @@
"privdata", "privdata",
"rename", "rename",
"setcom", "setcom",
"start",
"symbol", "symbol",
"title", "title",
"using", "using",
@ -227,7 +207,8 @@
Syntax = { Syntax = {
Tokenizer = "xcode.lang.asm.orcam.lexer"; Tokenizer = "xcode.lang.asm.orcam.lexer";
IncludeRules = ( IncludeRules = (
"xcode.lang.asm.orcam.block" "xcode.lang.asm.orcam.codeblock",
"xcode.lang.asm.orcam.datablock",
); );
Type = "xcode.syntax.plain"; Type = "xcode.syntax.plain";
}; };
@ -243,8 +224,6 @@
"xcode.lang.string", "xcode.lang.string",
"xcode.lang.character", "xcode.lang.character",
"xcode.lang.number", "xcode.lang.number",
"xcode.lang.asm.orcam.start",
"xcode.lang.asm.orcam.end",
"xcode.lang.asm.orcam.keyword", "xcode.lang.asm.orcam.keyword",
"xcode.lang.asm.orcam.identifier", "xcode.lang.asm.orcam.identifier",
); );
@ -300,12 +279,12 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.block"; Identifier = "xcode.lang.asm.orcam.codeblock";
Syntax = { Syntax = {
Tokenizer = "xcode.lang.asm.orcam.lexer"; Tokenizer = "xcode.lang.asm.orcam.lexer";
Start = "xcode.lang.asm.orcam.start"; Start = "start";
End = "xcode.lang.asm.orcam.end"; End = "end";
Recursive = YES; Recursive = NO;
Foldable = YES; Foldable = YES;
Type = "xcode.syntax.definition.function"; Type = "xcode.syntax.definition.function";
IncludeRules = ( IncludeRules = (
@ -313,4 +292,17 @@
}; };
}, },
{
Identifier = "xcode.lang.asm.orcam.datablock";
Syntax = {
Tokenizer = "xcode.lang.asm.orcam.lexer";
Start = "data";
End = "end";
Recursive = NO;
Foldable = YES;
Type = "xcode.syntax.definition.function";
IncludeRules = (
);
};
},
) )