| 
									
										
										
										
											2009-01-30 20:34:31 -05:00
										 |  |  | USING: accessors kernel xmode.rules ;
 | 
					
						
							| 
									
										
										
										
											2007-11-28 23:34:11 -05:00
										 |  |  | IN: xmode.marker.context | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ! Based on org.gjt.sp.jedit.syntax.TokenMarker.LineContext | 
					
						
							|  |  |  | TUPLE: line-context | 
					
						
							|  |  |  | parent | 
					
						
							|  |  |  | in-rule | 
					
						
							|  |  |  | in-rule-set | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : <line-context> ( ruleset parent -- line-context )
 | 
					
						
							| 
									
										
										
										
											2009-01-30 20:34:31 -05:00
										 |  |  |     over rule-set? [ "not a rule-set" throw ] unless
 | 
					
						
							| 
									
										
										
										
											2008-08-27 20:27:06 -04:00
										 |  |  |     line-context new
 | 
					
						
							|  |  |  |         swap >>parent | 
					
						
							|  |  |  |         swap >>in-rule-set ;
 | 
					
						
							| 
									
										
										
										
											2007-11-28 23:34:11 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: line-context clone | 
					
						
							| 
									
										
										
										
											2008-08-27 20:27:06 -04:00
										 |  |  |     call-next-method [ clone ] change-parent ;
 |