1. ed.ex/edx.ex :: multiline comment bug?

 
-- using multi-line comment, if you try to break the quote on one line,  
-- ed.ex continues to display the text which has been moved to the following line. 
 
/* multi-line comment bug? */                                                                                                          
bug? */                                                                                                                              
      
-- however, if the file is saved and reloaded, it then displays correctly. 
/* multi-line comment                                                                                                                

bug? */                                                                                                                              
 
Ken                                                                                                                                                                                                                                                        
 
new topic     » topic index » view message » categorize

2. Re: ed.ex/edx.ex :: multiline comment bug?

I came up with this simple work around for ed.ex/edx.ex - you can easily add a forward SLASH ESCAPE hotkey to the list of ESCAPE HOTKEYS:

command = key_gets("hcqswnedfrlm/", {}) & ' ' 
-- 
-- then insert the following elsif clause in the subsequent list of elsif clauses: 
  
elsif command[1] = '/' then  -- multi-line comment                             
        add_queue("/*" & CR & CR & "*/" & ARROW_UP)  
 
-- now after you press ESCAPE, you can simply enter a forward slash on ed.ex/edx.ex's  
-- top line, command bar and the multiline tokens will be inserted and the cursor will 
-- be inserted between the tokens: 
 
/* 

x --< placement of cursor   
*/ 
 
 
-- you can do the same thing with the BACK_TICK for a multiline quote: 
-- if you do not insert the token in the list of hotkeys, you will have to 
-- press return after entering the token in the top line command bar: 
command = key_gets("hcqswnedfrlm/`", {}) & ' 
elsif command[1] = '`' then  -- multi-line quote                             
        add_queue("`" & CR & CR & "`" & ARROW_UP)  
 
` 

x --< placement of cursor 
` 

new topic     » goto parent     » topic index » view message » categorize

3. Re: ed.ex/edx.ex :: multiline comment bug?

K_D_R said...
        add_queue("`" & CR & CR & "*/" & ARROW_UP)  
	                          ^^^ 

Huh?

new topic     » goto parent     » topic index » view message » categorize

4. Re: ed.ex/edx.ex :: multiline comment bug?

jimcbrown said...
K_D_R said...
        add_queue("`" & CR & CR & "*/" & ARROW_UP)  
	                          ^^^ 

Huh?

OOPS! Thanks for catching the error, Jim...

command = key_gets("hcqswnedfrlm/`", {}) & '  
-- 
elsif command[1] = '`' then  -- multi-line quote                              
        add_queue("`" & CR & CR & "`" & ARROW_UP)   
  
`  

x --< placement of cursor  
`  

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu