mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 04:18:48 +00:00
Merge pull request #294 from DHowett/master
Add support for the Logos language.
This commit is contained in:
@@ -715,6 +715,14 @@ LiveScript:
|
||||
filenames:
|
||||
- Slakefile
|
||||
|
||||
Logos:
|
||||
type: programming
|
||||
primary_extension: .xm
|
||||
extensions:
|
||||
- .x
|
||||
- .xi
|
||||
- .xmi
|
||||
|
||||
Logtalk:
|
||||
type: programming
|
||||
primary_extension: .lgt
|
||||
|
||||
@@ -124,6 +124,9 @@
|
||||
"LiveScript": [
|
||||
".ls"
|
||||
],
|
||||
"Logos": [
|
||||
".xm"
|
||||
],
|
||||
"Logtalk": [
|
||||
".lgt"
|
||||
],
|
||||
@@ -352,8 +355,8 @@
|
||||
".gemrc"
|
||||
]
|
||||
},
|
||||
"tokens_total": 323891,
|
||||
"languages_total": 356,
|
||||
"tokens_total": 323984,
|
||||
"languages_total": 357,
|
||||
"tokens": {
|
||||
"ApacheConf": {
|
||||
"ServerSignature": 1,
|
||||
@@ -20488,6 +20491,44 @@
|
||||
"<~>": 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": {
|
||||
"-": 3,
|
||||
"object": 2,
|
||||
@@ -33750,6 +33791,7 @@
|
||||
"Less": 39,
|
||||
"Literate CoffeeScript": 275,
|
||||
"LiveScript": 123,
|
||||
"Logos": 93,
|
||||
"Logtalk": 36,
|
||||
"Lua": 724,
|
||||
"Markdown": 1,
|
||||
@@ -33842,6 +33884,7 @@
|
||||
"Less": 1,
|
||||
"Literate CoffeeScript": 1,
|
||||
"LiveScript": 1,
|
||||
"Logos": 1,
|
||||
"Logtalk": 1,
|
||||
"Lua": 3,
|
||||
"Markdown": 1,
|
||||
@@ -33896,5 +33939,5 @@
|
||||
"Xtend": 2,
|
||||
"YAML": 1
|
||||
},
|
||||
"md5": "ce3abfc816698694bbaf6915239057a8"
|
||||
"md5": "06efa236d9f745b054631902026b5808"
|
||||
}
|
||||
28
samples/Logos/example.xm
Normal file
28
samples/Logos/example.xm
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user