mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Fix test fixtures for opa and add some comments.
This commit is contained in:
		
							
								
								
									
										12
									
								
								test/fixtures/hello_syntax1.opa
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								test/fixtures/hello_syntax1.opa
									
									
									
									
										vendored
									
									
								
							| @@ -1,5 +1,9 @@ | ||||
| server = Server.one_page_bundle("Hello World", | ||||
|        [], | ||||
|        [], | ||||
|        _ -> <h1>Hello, world</h1>) | ||||
| /** | ||||
|  * To compile & run on port 8080: | ||||
|  * opa hello_syntax1.opa -- | ||||
|  */ | ||||
| server = Server.one_page_server( | ||||
|    "Hello, world", | ||||
|    -> (<h1>Hello, world</h1>) | ||||
| ) | ||||
|  | ||||
|   | ||||
							
								
								
									
										4
									
								
								test/fixtures/hello_syntax2.opa
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								test/fixtures/hello_syntax2.opa
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,7 @@ | ||||
| /** | ||||
|  * To compile & run on port 8080: | ||||
|  * opa --parser js-like hello_syntax2.opa -- | ||||
|  */ | ||||
| Server.start( | ||||
|    Server.http, | ||||
|    { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user