Skip to content

Account for new Rails 5 base model and mailer classes in language grammar #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Syntaxes/Ruby on Rails.plist
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
</dict>
<dict>
<key>begin</key>
<string>(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+(\s*&lt;\s*ActionMailer::Base))))</string>
<string>(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+(\s*&lt;\s*(ActionMailer::Base|ApplicationMailer)))))</string>
<key>comment</key>
<string>Uses lookahead to match classes that inherit from ActionMailer::Base; includes 'source.ruby' to avoid infinite recursion</string>
<string>Uses lookahead to match classes that inherit from ActionMailer::Base or ApplicationMailer; includes 'source.ruby' to avoid infinite recursion</string>
<key>end</key>
<string>^\1(?=end)\b</string>
<key>name</key>
Expand All @@ -101,9 +101,9 @@
</dict>
<dict>
<key>begin</key>
<string>(^\s*)(?=class\s+.+ActiveRecord::Base)</string>
<string>(^\s*)(?=class\s+.+(ActiveRecord::Base|ApplicationRecord))</string>
<key>comment</key>
<string>Uses lookahead to match classes that (may) inherit from ActiveRecord::Base; includes 'source.ruby' to avoid infinite recursion</string>
<string>Uses lookahead to match classes that (may) inherit from ActiveRecord::Base or ApplicationRecord; includes 'source.ruby' to avoid infinite recursion</string>
<key>end</key>
<string>^\1(?=end)\b</string>
<key>name</key>
Expand Down