Skip to content

Commit

Permalink
Add ruby_executable_hooks to hashbang recognition
Browse files Browse the repository at this point in the history
Adds the name of another executable to the grammar's hashbang-recognition pattern.

The executables generated by RubyGems use this as their first line:

    #!/usr/bin/env ruby_executable_hooks

Since the files have no extension, there's nothing to activate the grammar.
  • Loading branch information
Alhadis authored and infininight committed May 30, 2017
1 parent 7c903ec commit 80aab38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/Ruby.plist
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<string>(?x)
# Hashbang
^\#!.*(?:\s|\/)
(?:ruby[\.\d]*|macruby|rake|jruby|rbx)
(?:ruby[\.\d]*|macruby|rake|jruby|rbx|ruby_executable_hooks)
(?:$|\s)
|
# Modeline
Expand Down

0 comments on commit 80aab38

Please sign in to comment.