Can snippet sources have a 'double' extention


#1

What I mean by double extention is I want to make a set of snippets for Laravel’s blade template engine but the extention for blade is blade.php and as far as I can see you have to put .source.php so surely source.blade.php would break things, though I haven’t tried it.

Is there something like .source.{blade.php} available to pull this off?


#2

I’m currently putting together a Blade snippet and syntax highlighter. This seems to work:

grammars/blade.json:

  "fileTypes": [
    "blade.php"
  ],

If there’s a better way to do this, though, I’m all ears.


#3

I’m currently putting together a Blade snippet and syntax highlighter. This seems to work:

Would love to follow/contribute to your work, do you have a github repo for it?