mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			542 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			542 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*
 | |
|  * The following is a contrived example, but it illustrates most of the features:
 | |
|  */
 | |
| 
 | |
| {
 | |
|     foo: 'bar',
 | |
|     while: true,
 | |
| 
 | |
|     this: 'is a \
 | |
| multi-line string',
 | |
| 
 | |
|     // this is an inline comment
 | |
|     here: 'is another', // inline comment
 | |
| 
 | |
|     /* this is a block comment
 | |
|        that continues on another line */
 | |
| 
 | |
|     hex: 0xDEADbeef,
 | |
|     half: .5,
 | |
|     delta: +10,
 | |
|     to: Infinity,   // and beyond!
 | |
| 
 | |
|     finally: 'a trailing comma',
 | |
|     oh: [
 | |
|         "we shouldn't forget",
 | |
|         'arrays can have',
 | |
|         'trailing commas too',
 | |
|     ],
 | |
| }
 |