How do I make my own syntax have precedence over syn_generic?
hovsater opened this issue · 2 comments
hovsater commented
I've setup my own syntax for Ruby. But whenever I open a Ruby file, syn_generic
kicks in and I have to do M-o y
, syn_ruby
to switch the syntax to what I want. Both syntaxes are matching Ruby files.
I found this in the source
Lines 628 to 635 in eb37d13
I guess since syn_generic
is registered first and is matching Ruby files as well, it will always be chosen over any customisations. Is that right?
adsr commented
Ah yes, good catch! Let's see if we can iterate in reverse so that later syntaxes take priority.
adsr commented
Let me know how that works for you @KevinSjoberg. Thanks again.