Tweak the orcam xclangspec file

This commit is contained in:
Jeremy Rand 2017-09-06 23:41:46 -04:00
parent b52923f8e6
commit 0f8e0b029b
1 changed files with 41 additions and 21 deletions

View File

@ -15,6 +15,29 @@
}; };
}, },
{
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 = {
@ -124,14 +147,12 @@
"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",
@ -157,7 +178,6 @@
"privdata", "privdata",
"rename", "rename",
"setcom", "setcom",
"start",
"symbol", "symbol",
"title", "title",
"using", "using",
@ -203,12 +223,11 @@
Description = "ORCAM Assembler Coloring"; Description = "ORCAM Assembler Coloring";
BasedOn = "xcode.lang.simpleColoring"; BasedOn = "xcode.lang.simpleColoring";
IncludeInMenu = YES; IncludeInMenu = YES;
UsesCLikeIndentation = YES;
Name = "Assembly (ORCAM)"; Name = "Assembly (ORCAM)";
Syntax = { Syntax = {
Tokenizer = "xcode.lang.asm.orcam.lexer"; Tokenizer = "xcode.lang.asm.orcam.lexer";
IncludeRules = ( IncludeRules = (
"xcode.lang.asm.orcam.label" "xcode.lang.asm.orcam.block"
); );
Type = "xcode.syntax.plain"; Type = "xcode.syntax.plain";
}; };
@ -217,15 +236,15 @@
Identifier = "xcode.lang.asm.orcam.lexer"; Identifier = "xcode.lang.asm.orcam.lexer";
Syntax = { Syntax = {
IncludeRules = ( IncludeRules = (
"xcode.lang.comment", "xcode.lang.asm.orcam.comment.semi",
"xcode.lang.comment.singleline", "xcode.lang.asm.orcam.comment.exclam",
"xcode.lang.asm.orcam.comment.singleline.semi", "xcode.lang.asm.orcam.comment.star",
"xcode.lang.asm.orcam.comment.singleline.exclam", "xcode.lang.asm.orcam.comment.dot",
"xcode.lang.asm.orcam.comment.singleline.star",
"xcode.lang.asm.orcam.comment.singleline.dot",
"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",
); );
@ -233,7 +252,7 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.comment.singleline.semi"; Identifier = "xcode.lang.asm.orcam.comment.semi";
Syntax = { Syntax = {
StartAtBOL = YES; StartAtBOL = YES;
StartAtColumnZero = YES; StartAtColumnZero = YES;
@ -245,7 +264,7 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.comment.singleline.exclam"; Identifier = "xcode.lang.asm.orcam.comment.exclam";
Syntax = { Syntax = {
StartAtBOL = YES; StartAtBOL = YES;
StartAtColumnZero = YES; StartAtColumnZero = YES;
@ -257,7 +276,7 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.comment.singleline.star"; Identifier = "xcode.lang.asm.orcam.comment.star";
Syntax = { Syntax = {
StartAtBOL = YES; StartAtBOL = YES;
StartAtColumnZero = YES; StartAtColumnZero = YES;
@ -269,7 +288,7 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.comment.singleline.dot"; Identifier = "xcode.lang.asm.orcam.comment.dot";
Syntax = { Syntax = {
StartAtBOL = YES; StartAtBOL = YES;
StartAtColumnZero = YES; StartAtColumnZero = YES;
@ -281,15 +300,16 @@
}, },
{ {
Identifier = "xcode.lang.asm.orcam.label"; Identifier = "xcode.lang.asm.orcam.block";
Syntax = { Syntax = {
StartAtBOL = YES;
StartAtColumnZero = YES;
Tokenizer = "xcode.lang.asm.orcam.lexer"; Tokenizer = "xcode.lang.asm.orcam.lexer";
Rules = ( Start = "xcode.lang.asm.orcam.start";
"xcode.lang.asm.orcam.identifier", End = "xcode.lang.asm.orcam.end";
); Recursive = YES;
Foldable = YES;
Type = "xcode.syntax.definition.function"; Type = "xcode.syntax.definition.function";
IncludeRules = (
);
}; };
}, },