Reewr / vim-monokai-phoenix

Monokai Phoenix Theme for Vim
40 stars 15 forks source link

Test conditional syntaxing #11

Closed Reewr closed 7 years ago

Reewr commented 7 years ago

The current syntax file takes less than two milliseconds to load. However, due to how people define syntax, the colour scheme may look different from syntax to syntax (not ideal). Due to this, I may need to declare colours for syntax elements as I have done with JavaScript and PureScript for other languages.

Since the syntax file is run for every filetype, I wonder if there's any performance benefit to throwing all the Language specific pieces under an if-statement that checks based on filetype.

I'll need to try it out and make sure it does not break anything though.