Merge pull request #294 from DHowett/master

Add support for the Logos language.
This commit is contained in:
Ted Nyman
2013-03-06 14:42:46 -08:00
3 changed files with 82 additions and 3 deletions

View File

@@ -715,6 +715,14 @@ LiveScript:
filenames: filenames:
- Slakefile - Slakefile
Logos:
type: programming
primary_extension: .xm
extensions:
- .x
- .xi
- .xmi
Logtalk: Logtalk:
type: programming type: programming
primary_extension: .lgt primary_extension: .lgt

View File

@@ -124,6 +124,9 @@
"LiveScript": [ "LiveScript": [
".ls" ".ls"
], ],
"Logos": [
".xm"
],
"Logtalk": [ "Logtalk": [
".lgt" ".lgt"
], ],
@@ -352,8 +355,8 @@
".gemrc" ".gemrc"
] ]
}, },
"tokens_total": 323891, "tokens_total": 323984,
"languages_total": 356, "languages_total": 357,
"tokens": { "tokens": {
"ApacheConf": { "ApacheConf": {
"ServerSignature": 1, "ServerSignature": 1,
@@ -20488,6 +20491,44 @@
"<~>": 1, "<~>": 1,
"write": 1 "write": 1
}, },
"Logos": {
"%": 15,
"hook": 2,
"ABC": 2,
"-": 3,
"(": 8,
"id": 2,
")": 8,
"a": 1,
"B": 1,
"b": 1,
"{": 4,
"log": 1,
";": 8,
"return": 2,
"orig": 2,
"nil": 2,
"}": 4,
"end": 4,
"subclass": 1,
"DEF": 1,
"NSObject": 1,
"init": 3,
"[": 2,
"c": 1,
"RuntimeAccessibleClass": 1,
"alloc": 1,
"]": 2,
"group": 1,
"OptionalHooks": 2,
"void": 1,
"release": 1,
"self": 1,
"retain": 1,
"ctor": 1,
"if": 1,
"OptionalCondition": 1
},
"Logtalk": { "Logtalk": {
"-": 3, "-": 3,
"object": 2, "object": 2,
@@ -33750,6 +33791,7 @@
"Less": 39, "Less": 39,
"Literate CoffeeScript": 275, "Literate CoffeeScript": 275,
"LiveScript": 123, "LiveScript": 123,
"Logos": 93,
"Logtalk": 36, "Logtalk": 36,
"Lua": 724, "Lua": 724,
"Markdown": 1, "Markdown": 1,
@@ -33842,6 +33884,7 @@
"Less": 1, "Less": 1,
"Literate CoffeeScript": 1, "Literate CoffeeScript": 1,
"LiveScript": 1, "LiveScript": 1,
"Logos": 1,
"Logtalk": 1, "Logtalk": 1,
"Lua": 3, "Lua": 3,
"Markdown": 1, "Markdown": 1,
@@ -33896,5 +33939,5 @@
"Xtend": 2, "Xtend": 2,
"YAML": 1 "YAML": 1
}, },
"md5": "ce3abfc816698694bbaf6915239057a8" "md5": "06efa236d9f745b054631902026b5808"
} }

28
samples/Logos/example.xm Normal file
View File

@@ -0,0 +1,28 @@
%hook ABC
- (id)a:(B)b {
%log;
return %orig(nil);
}
%end
%subclass DEF: NSObject
- (id)init {
[%c(RuntimeAccessibleClass) alloc];
return nil;
}
%end
%group OptionalHooks
%hook ABC
- (void)release {
[self retain];
%orig;
}
%end
%end
%ctor {
%init;
if(OptionalCondition)
%init(OptionalHooks);
}