mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Adds basic support for the Swift programming language
Text only lexer for now until Pygments catches up
This commit is contained in:
		
							
								
								
									
										12
									
								
								samples/Swift/section-53.swift
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								samples/Swift/section-53.swift
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| class NamedShape { | ||||
|     var numberOfSides: Int = 0 | ||||
|     var name: String | ||||
|  | ||||
|     init(name: String) { | ||||
|        self.name = name | ||||
|     } | ||||
|  | ||||
|     func simpleDescription() -> String { | ||||
|        return "A shape with \(numberOfSides) sides." | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user