Skip to content

Commit

Permalink
First pass beta 6-ing these languages.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Rez.tmbundle@699 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Chris Thomas committed Apr 24, 2005
1 parent 303af35 commit d9cf727
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Syntaxes/Rez.plist
Expand Up @@ -15,24 +15,22 @@
highlightPairs = (
( "(", ")" ), ( "[", "]" ), ( "{", "}" )
);
foregroundColor = "#000000";
backgroundColor = "#FFFFFF";

patterns = (
{ name = "comment.block.rez"; begin = "/\\*"; end = "\\*/"; foregroundColor = "#236B8E"; },
{ name = "comment.line.rez"; match = "//.*$"; foregroundColor = "#236B8E"; fontStyle = ( italic ); },
{ name = "comment.block.rez"; begin = "/\\*"; end = "\\*/"; },
{ name = "comment.line.rez"; match = "//.*$"; },

// Note that Xcode gets case sensitivity wrong (last checked Xcode 2.0).
// I'm not sure built-in functions are case-insensitive, though, so we might too.
// Build-in functions aren't working, though. Hmmm.
{ name = "keyword.control.rez"; match = "\\<(?i:(change|data|delete|include|read|resource|type))\\>"; fontStyle = ( bold ); foregroundColor = "blue"; },
{ name = "keyword.storage.rez"; match = "\\<(?i:(align|array|binary|bit|bitstring|boolean|byte|case|char|cstring|decimal|enum|fill|hex|integer|key|literal|long|longint|nibble|octal|point|pstring|rect|string|switch|unsigned|wide|word|wstring))\\>"; fontStyle = ( bold ); foregroundColor = "blue"; },
{ name = "keyword.attributes.rez"; match = "\\<(?i:(appheap|locked|nonpurgeable|purgeable|sysheap|unlocked))\\>"; fontStyle = ( italic ); foregroundColor = "blue"; },
{ name = "keyword.function.built-in.rez"; match = "\\\$\\\$(?i:(ArrayIndex|Attributes|BitField|Byte|CountOf|Date|Day|Format|Hour|ID|Long|Minute|Month|Name|PackedSize|Read|Resource|ResourceSize|Second|Shell|Time|Type|Version|Weekday|Word|Year))"; fontStyle = ( bold ); foregroundColor = "#336633"; },
{ name = "constant.numeric.rez"; match = "\\<(((0(x|X|B)|\\\$)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\>"; foregroundColor = "#0000CD"; },
{ name = "string.double-quoted.rez"; begin = "\""; end = "\""; swallow = "\\\\."; foregroundColor = "#8B2252"; },
{ name = "string.single-quoted.rez"; begin = "'"; end = "'"; swallow = "\\\\."; foregroundColor = "#8B2252"; },
{ name = "string.hex.rez"; begin = "\\\$\""; end = "\""; swallow = "\\\\."; foregroundColor = "#8B2252"; },
{ name = "keyword.preprocessor.rez"; match = "^\\s*#\\s*(define|defined|else|elif|endif|if|ifdef|ifndef|include|line|printf|undef)\\>"; fontStyle = ( bold ); foregroundColor = "#5C246E";},
{ name = "keyword.control.rez"; match = "\\<(?i:(change|data|delete|include|read|resource|type))\\>"; },
{ name = "keyword.storage.rez"; match = "\\<(?i:(align|array|binary|bit|bitstring|boolean|byte|case|char|cstring|decimal|enum|fill|hex|integer|key|literal|long|longint|nibble|octal|point|pstring|rect|string|switch|unsigned|wide|word|wstring))\\>"; },
{ name = "keyword.attributes.rez"; match = "\\<(?i:(appheap|locked|nonpurgeable|purgeable|sysheap|unlocked))\\>"; },
{ name = "keyword.function.built-in.rez"; match = "\\$\\$(?i:(ArrayIndex|Attributes|BitField|Byte|CountOf|Date|Day|Format|Hour|ID|Long|Minute|Month|Name|PackedSize|Read|Resource|ResourceSize|Second|Shell|Time|Type|Version|Weekday|Word|Year))"; },
{ name = "constant.numeric.rez"; match = "\\<(((0(x|X|B)|\\\$)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\>"; },
{ name = "string.double-quoted.rez"; begin = "\""; end = "\""; swallow = "\\\\."; },
{ name = "string.single-quoted.rez"; begin = "'"; end = "'"; swallow = "\\\\."; },
{ name = "string.hex.rez"; begin = "\\\$\""; end = "\""; swallow = "\\\\."; },
{ name = "keyword.preprocessor.rez"; match = "^\\s*#\\s*(define|defined|else|elif|endif|if|ifdef|ifndef|include|line|printf|undef)\\>";},
);
uuid = "F3EB29E9-8DB7-4052-9D48-5CDD2491D8D3";
}

0 comments on commit d9cf727

Please sign in to comment.