Skip to content

Font-lock namespaced keywords #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Font-lock namespaced keywords #326

merged 1 commit into from
Oct 1, 2015

Conversation

Malabarba
Copy link
Member

No description provided.

@bbatsov
Copy link
Member

bbatsov commented Sep 29, 2015

We also need a test for this.

@Malabarba
Copy link
Member Author

Done. 👍

@@ -101,7 +101,13 @@ POS."

(ert-deftest clojure-mode-syntax-table/fontify-clojure-keyword ()
:tags '(fontification syntax-table)
(should (eq (clojure-test-face-at 2 11 "{:something 20}") 'clojure-keyword-face)))
(should (equal (clojure-test-face-at 2 11 "{:something 20}") '(clojure-keyword-face))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this return a list now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the keyword rule now uses the append option (see https://github.com/clojure-emacs/clojure-mode/pull/326/files#diff-50632fdcf67b6d3c8505a6aa071a2bd0R459). So font-lock-mode adds it as a list (even if it turns out to be the only face).

bbatsov added a commit that referenced this pull request Oct 1, 2015
Font-lock namespaced keywords
@bbatsov bbatsov merged commit 91d2a0a into clojure-emacs:master Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants