mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	lets try again...
This commit is contained in:
		
							
								
								
									
										12
									
								
								sources_non_forked/vim-coffee-script/test/test-eco.html.eco
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								sources_non_forked/vim-coffee-script/test/test-eco.html.eco
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| <html> | ||||
|   <%# comment %> | ||||
|  | ||||
|   <%# basic %> | ||||
|   <%- foo = "1" %> | ||||
|  | ||||
|   <%# interpolation %> | ||||
|   <%= " == #{ ( -> "LOL" )() } == " %> | ||||
|  | ||||
|   <%# interpolation with nested curlies %> | ||||
|   <%= " == #{ { a: 1, b: { c: 3, d: 4 } } } == " %> | ||||
| </html> | ||||
| @ -0,0 +1,3 @@ | ||||
| # Nested curlies | ||||
| " >> #{ == { { { } } } == } << " | ||||
| " >> #{ == { abc: { def: 42 } } == } << " | ||||
							
								
								
									
										90
									
								
								sources_non_forked/vim-coffee-script/test/test-ops.coffee
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										90
									
								
								sources_non_forked/vim-coffee-script/test/test-ops.coffee
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,90 @@ | ||||
| # Various operators | ||||
| abc instanceof def | ||||
| typeof abc | ||||
| delete abc | ||||
| abc::def | ||||
|  | ||||
| abc + def | ||||
| abc - def | ||||
| abc * def | ||||
| abc / def | ||||
| abc % def | ||||
| abc & def | ||||
| abc | def | ||||
| abc ^ def | ||||
| abc >> def | ||||
| abc << def | ||||
| abc >>> def | ||||
| abc ? def | ||||
| abc && def | ||||
| abc and def | ||||
| abc || def | ||||
| abc or def | ||||
|  | ||||
| abc += def | ||||
| abc -= def | ||||
| abc *= def | ||||
| abc /= def | ||||
| abc %= def | ||||
| abc &= def | ||||
| abc |= def | ||||
| abc ^= def | ||||
| abc >>= def | ||||
| abc <<= def | ||||
| abc >>>= def | ||||
| abc ?= def | ||||
| abc &&= def | ||||
| abc ||= def | ||||
|  | ||||
| abc and= def | ||||
| abc or= def | ||||
|  | ||||
| abc.def.ghi | ||||
| abc?.def?.ghi | ||||
|  | ||||
| abc < def | ||||
| abc > def | ||||
| abc = def | ||||
| abc == def | ||||
| abc != def | ||||
| abc <= def | ||||
| abc >= def | ||||
|  | ||||
| abc++ | ||||
| abc-- | ||||
| ++abc | ||||
| --abc | ||||
|  | ||||
| # Nested operators | ||||
| abc[def] = ghi | ||||
| abc[def[ghi: jkl]] = 42 | ||||
| @abc[def] = ghi | ||||
|  | ||||
| abc["#{def = 42}"] = 42 | ||||
| abc["#{def.ghi = 42}"] = 42 | ||||
| abc["#{def[ghi] = 42}"] = 42 | ||||
| abc["#{def['ghi']}"] = 42 | ||||
|  | ||||
| # Object assignments | ||||
| abc = | ||||
|   def: 123 | ||||
|   DEF: 123 | ||||
|   @def: 123 | ||||
|   Def: 123 | ||||
|   'def': 123 | ||||
|   42: 123 | ||||
|  | ||||
| # Operators shouldn't be highlighted | ||||
| vector= | ||||
| wand= | ||||
|  | ||||
| abc+++ | ||||
| abc--- | ||||
| abc ** def | ||||
| abc &&& def | ||||
| abc ^^ def | ||||
| abc ===== def | ||||
| abc <==== def | ||||
| abc >==== def | ||||
| abc +== def | ||||
| abc =^= def | ||||
| @ -0,0 +1,27 @@ | ||||
| # Should be an error | ||||
| function = 42 | ||||
| var = 42 | ||||
|  | ||||
| # Shouldn't be an error | ||||
| abc.with = 42 | ||||
| function: 42 | ||||
| var: 42 | ||||
|  | ||||
| # Keywords shouldn't be highlighted | ||||
| abc.function | ||||
| abc.do | ||||
| abc.break | ||||
| abc.true | ||||
|  | ||||
| abc::function | ||||
| abc::do | ||||
| abc::break | ||||
| abc::true | ||||
|  | ||||
| abc:: function | ||||
| abc. function | ||||
|  | ||||
| # Numbers should be highlighted | ||||
| def.42 | ||||
| def .42 | ||||
| def::42 | ||||
							
								
								
									
										7
									
								
								sources_non_forked/vim-coffee-script/test/test.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								sources_non_forked/vim-coffee-script/test/test.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| <head> | ||||
|   <script type="text/coffeescript"> | ||||
|     abc = { | ||||
|       def: 42 | ||||
|     } | ||||
|   </script> | ||||
| </head> | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix