Skip to content

Commit

Permalink
Merge pull request #1065 from Dyalog/revert_syscmd_fix
Browse files Browse the repository at this point in the history
Revert "Merge pull request #1042 from Dyalog/syscmd_syntax"
  • Loading branch information
e9gille authored Aug 5, 2023
2 parents 32caff5 + 42297d7 commit c52b68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon_apl.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,12 +564,12 @@
h.l += 1;
return lt;
}
if (h.s && (m = line.match(/^(\s*)\)(\w*).*/))) {
if (h.s && (m = line.match(/^(\s*)\)(\w+).*/))) {
if (m[1]) {
addToken(offset, 'white');
offset += m[1].length;
}
const token = D.syntax.scmd.some((x)=> x.startsWith(m[2].toLowerCase())) ? 'predefined.scmd' : 'invalid.scmd' ;
const token = D.syntax.scmd.indexOf(m[2].toLowerCase()) < 0 ? 'invalid.scmd' : 'predefined.scmd';
addToken(offset, token);
h.l += 1;
return lt;
Expand Down

0 comments on commit c52b68c

Please sign in to comment.