Skip to content

Commit

Permalink
fix Dyalog#21
Browse files Browse the repository at this point in the history
  • Loading branch information
rikedyp committed Oct 7, 2021
1 parent 06a2fd4 commit 6dded08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tryapl.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function loadTryAPL () {
// Continue collecting input lines if accumulated multiline input string has unclosed braces
// --- To do ---
// Extend Continue to deal with different types of multiline structures
Continue=t=>0<[...t.replace(/'[^']+'/g,"").replace(/⍝.*/g,"")].map(c=>c=="{"?1:c=="}"?-1:0).reduce((a,b)=>a+b)
Continue=t=>0<[...t.replace(/'[^']*'/g,"").replace(/⍝.*/g,"")].map(c=>c=="{"?1:c=="}"?-1:0).reduce((a,b)=>a+b)

if (getSessionInput(0)[0]=="\t") {
log ("submit multiple lines")
Expand Down

0 comments on commit 6dded08

Please sign in to comment.