+3

Change syntax highlighting rules to match file names instead of file extensions.

Andrew Porter il y a 12 ans mis à jour par Louis Galipeau il y a 10 ans 2
This allows for contextual differences for files of the same language type, and should still make it easy for the current, more general file extension matching to continue working as it does.

For example:

{
  "*_spec.rb" : "RSpec",
  "*_steps.rb" : "Cucumber Steps",
  "*.rb" : "Ruby"
}