simeonkerkola / after-dark

🏮Visual Studio Code Theme
MIT License
23 stars 3 forks source link

Clojure symbols that start with "def" are colored the same as def/defn #1

Closed ian-moore closed 6 years ago

ian-moore commented 6 years ago

First off, thanks for this theme. I am not a huge fan of the cursive (which doesn't show up for me since I lack the font) or the italics but it's the first theme I've found for VS Code that actually does Clojure syntax highlighting correctly. I found a minor bug where things that start "def" are colored incorrectly, which is a bit distracting.

image

simeonkerkola commented 6 years ago

Hi! Thank for the feedback and glad to hear you have enjoyed using this theme! 🙏

Unfortunately Clojure language highlighting in VS Code is not as extensive as it is for example in emacs.

The issue here is what regular expressions in the VS Code's Clojure language support are used to match the syntax to scopes. And as you pointed out, VS Code matches any word starting def with the keyword.control scope.