Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better highlighting for with- forms

  • Loading branch information...
commit 28a5f2f0c3828a2650af218db5db86c447f0766e 1 parent 95b516b
Mihai Bazon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/js/ymacs-mode-lisp.js
4 src/js/ymacs-mode-lisp.js
View
@@ -317,7 +317,7 @@ return return-from setq multiple-value-call".qw().toHash();
type = "type";
}
// there are a lot of macros starting with "with-", so let's highlight this
- else if (/^with-/i.test(tmp.id)) {
+ else if (/^with[-\x2f]|:with[-\x2f]/i.test(tmp.id)) {
type = "builtin";
}
}
@@ -357,7 +357,7 @@ return return-from setq multiple-value-call".qw().toHash();
if (currentForm) {
currentForm = currentForm.replace(/\*$/, "");
var formArgs = FORM_ARGS[currentForm];
- if (!formArgs && /^with/.test(currentForm)) {
+ if (!formArgs && /^with|:with/.test(currentForm)) {
// "with" macros usually take one argument, then &body
formArgs = "1*";
}
Please sign in to comment.
Something went wrong with that request. Please try again.