mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add support for the Logos language.
This commit is contained in:
		
				
					committed by
					
						
						Dustin L. Howett
					
				
			
			
				
	
			
			
			
						parent
						
							6b6f5eaaff
						
					
				
				
					commit
					7d2603ceb7
				
			@@ -715,6 +715,14 @@ LiveScript:
 | 
			
		||||
  filenames:
 | 
			
		||||
  - Slakefile
 | 
			
		||||
 | 
			
		||||
Logos:
 | 
			
		||||
  type: programming
 | 
			
		||||
  primary_extension: .xm
 | 
			
		||||
  extensions:
 | 
			
		||||
  - .x
 | 
			
		||||
  - .xi
 | 
			
		||||
  - .xmi
 | 
			
		||||
 | 
			
		||||
Logtalk:
 | 
			
		||||
  type: programming
 | 
			
		||||
  primary_extension: .lgt
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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