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:
		
							
								
								
									
										8
									
								
								samples/Swift/section-21.swift
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								samples/Swift/section-21.swift
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| var optionalString: String? = "Hello" | ||||
| optionalString == nil | ||||
|  | ||||
| var optionalName: String? = "John Appleseed" | ||||
| var greeting = "Hello!" | ||||
| if let name = optionalName { | ||||
|     greeting = "Hello, \(name)" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user