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.
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.