Permalink
Browse files

Revamp erb grammar, replace root scope.

  • Loading branch information...
1 parent 683f6e6 commit ef4c75fa695cfa04219b758d6e7193e3c5828e19 @infininight infininight committed Nov 22, 2011
Showing with 264 additions and 99 deletions.
  1. +1 −1 Commands/Documentation for Word.tmCommand
  2. +1 −1 Commands/Generate Quick Migration.tmCommand
  3. +1 −1 Commands/Go To Alternate File.plist
  4. +1 −1 Commands/Go To File on This Line.plist
  5. +1 −1 Commands/Go To File.plist
  6. +1 −1 Commands/Go To Helper.plist
  7. +1 −1 Commands/Go To Javascript.plist
  8. +1 −1 Commands/Go To Model.tmCommand
  9. +1 −1 Commands/Go To Stylesheet.plist
  10. +1 −1 Commands/Jump to Method Definition.tmCommand
  11. +1 −1 Commands/Make Selection in to Partial.plist
  12. +1 −1 Preferences/Template (ERB).tmPreferences
  13. +1 −1 Snippets/180 rails form_tag.plist
  14. +1 −1 Snippets/content_for.tmSnippet
  15. +1 −1 Snippets/else (ERB).tmSnippet
  16. +1 −1 Snippets/end.tmSnippet
  17. +1 −1 Snippets/f_fields_for (nff).tmSnippet
  18. +1 −1 Snippets/fields_for.tmSnippet
  19. +1 −1 Snippets/for loop erb.tmSnippet
  20. +1 −1 Snippets/form_for check_box.tmSnippet
  21. +1 −1 Snippets/form_for checkbox.tmSnippet
  22. +1 −1 Snippets/form_for fields_for.tmSnippet
  23. +1 −1 Snippets/form_for file_field 2.tmSnippet
  24. +1 −1 Snippets/form_for file_field.tmSnippet
  25. +1 −1 Snippets/form_for hidden_field 2.tmSnippet
  26. +1 −1 Snippets/form_for hidden_field.tmSnippet
  27. +1 −1 Snippets/form_for label 2.tmSnippet
  28. +1 −1 Snippets/form_for label.tmSnippet
  29. +1 −1 Snippets/form_for password_field 2.tmSnippet
  30. +1 −1 Snippets/form_for password_field.tmSnippet
  31. +1 −1 Snippets/form_for radio_box 2.tmSnippet
  32. +1 −1 Snippets/form_for radio_box.tmSnippet
  33. +1 −1 Snippets/form_for submit 2.tmSnippet
  34. +1 −1 Snippets/form_for submit.tmSnippet
  35. +1 −1 Snippets/form_for text_area 2.tmSnippet
  36. +1 −1 Snippets/form_for text_area.tmSnippet
  37. +1 −1 Snippets/form_for text_field 2.tmSnippet
  38. +1 −1 Snippets/form_for text_field.tmSnippet
  39. +1 −1 Snippets/form_for with errors.tmSnippet
  40. +1 −1 Snippets/form_for.tmSnippet
  41. +1 −1 Snippets/if (ERB).tmSnippet
  42. +1 −1 Snippets/image_submit_tag.tmSnippet
  43. +1 −1 Snippets/image_tag.tmSnippet
  44. +1 −1 Snippets/javascript_include_tag.tmSnippet
  45. +1 −1 Snippets/lia.plist
  46. +1 −1 Snippets/liai.plist
  47. +1 −1 Snippets/lic.plist
  48. +1 −1 Snippets/lica.plist
  49. +1 −1 Snippets/licai.plist
  50. +1 −1 Snippets/link_to (nested path plural).tmSnippet
  51. +1 −1 Snippets/link_to (nested path).tmSnippet
  52. +1 −1 Snippets/link_to (path plural).tmSnippet
  53. +1 −1 Snippets/link_to (path).tmSnippet
  54. +1 −1 Snippets/link_to model.tmSnippet
  55. +1 −1 Snippets/link_to_function.tmSnippet
  56. +1 −1 Snippets/render (partial) (rp).plist
  57. +1 −1 Snippets/render (partial,collection) (rpc).plist
  58. +1 −1 Snippets/render (partial,locals) (rpl).plist
  59. +1 −1 Snippets/render (partial,object) (rpo).plist
  60. +1 −1 Snippets/render (partial,status) (rps).plist
  61. +1 −1 Snippets/stylesheet_link_tag.tmSnippet
  62. +1 −1 Snippets/submit_tag.tmSnippet
  63. +202 −37 Syntaxes/HTML (Rails).plist
@@ -20,7 +20,7 @@ puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>"
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
- <string>source.ruby.rails, text.html.ruby, text.haml</string>
+ <string>source.ruby.rails, text.html.erb.rails, text.haml</string>
<key>uuid</key>
<string>32F30207-D827-46D9-889A-451C35269D52</string>
</dict>
@@ -18,7 +18,7 @@
<key>output</key>
<string>discard</string>
<key>scope</key>
- <string>source.ruby.rails, source.yaml, text.html.ruby</string>
+ <string>source.ruby.rails, source.yaml, text.html.erb.rails</string>
<key>uuid</key>
<string>D696FA2C-785A-4B73-A2F6-F750904DD7C2</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.functional_test, source.js, source.css, source.yaml, meta.rails.model, meta.rails.unit_test, text.haml</string>
+ <string>text.html.erb.rails, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.functional_test, source.js, source.css, source.yaml, meta.rails.model, meta.rails.unit_test, text.haml</string>
<key>uuid</key>
<string>9453F0B3-B946-445F-BDB0-B01DE70732FC</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, text.haml</string>
+ <string>source.ruby.rails, text.html.erb.rails, source.ruby.rails.embedded.html, text.haml</string>
<key>uuid</key>
<string>09BB96F2-75FD-48A7-8314-B5B56B09B477</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, source.yaml, text.haml, source.css, source.js, source.sass</string>
+ <string>source.ruby.rails, text.html.erb.rails, source.ruby.rails.embedded.html, source.yaml, text.haml, source.css, source.js, source.sass</string>
<key>uuid</key>
<string>0CCC8443-40F3-4BAB-9440-D737562B5F45</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test, text.haml</string>
+ <string>text.html.erb.rails, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test, text.haml</string>
<key>uuid</key>
<string>51C9C27A-D931-49F9-B6D8-C0E7ABEC992D</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
+ <string>text.html.erb.rails, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
<key>uuid</key>
<string>B078346F-61D8-4E75-9427-80720FBC67F7</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.unit_test, source.js, source.css, source.yaml, meta.rails.controller, meta.rails.functional_test, text.haml</string>
+ <string>text.html.erb.rails, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.unit_test, source.js, source.css, source.yaml, meta.rails.controller, meta.rails.functional_test, text.haml</string>
<key>uuid</key>
<string>C7151BF3-7068-4344-9B09-86F3BF4A9C63</string>
</dict>
@@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
+ <string>text.html.erb.rails, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
<key>uuid</key>
<string>B207BBD4-D6AA-41E9-9530-27210F2D7B66</string>
</dict>
@@ -18,7 +18,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
- <string>source.ruby.rails, text.html.ruby, text.haml, source.ruby</string>
+ <string>source.ruby.rails, text.html.erb.rails, text.haml, source.ruby</string>
<key>uuid</key>
<string>AECD46CF-9031-4059-B386-262DBABD97B1</string>
</dict>
@@ -19,7 +19,7 @@
<key>output</key>
<string>replaceSelectedText</string>
<key>scope</key>
- <string>source.ruby.rails, text.html.ruby, text.haml</string>
+ <string>source.ruby.rails, text.html.erb.rails, text.haml</string>
<key>uuid</key>
<string>1DD8A214-1C97-45BA-ADEE-8F888DDE8570</string>
</dict>
@@ -5,7 +5,7 @@
<key>name</key>
<string>Template (ERB)</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
@@ -9,7 +9,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>form_tag</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ft</string>
<key>uuid</key>
@@ -9,7 +9,7 @@
<key>name</key>
<string>content_for</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>tabTrigger</key>
<string>conf</string>
<key>uuid</key>
@@ -8,7 +8,7 @@
<key>name</key>
<string>else (ERB)</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>tabTrigger</key>
<string>else</string>
<key>uuid</key>
View
@@ -7,7 +7,7 @@
<key>name</key>
<string>end (ERB)</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>tabTrigger</key>
<string>end</string>
<key>uuid</key>
@@ -9,7 +9,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>f.fields_for (nff)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -9,7 +9,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>fields_for</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>fields</string>
<key>uuid</key>
@@ -14,7 +14,7 @@
<key>name</key>
<string>for loop in rhtml</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>tabTrigger</key>
<string>for</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for check_box</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffcb</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.check_box (ffcb)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -9,7 +9,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>form_for fields_for</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>nff</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for file_field</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffff</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.file_field (ffff)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for hidden_field</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffhf</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.hidden_field (ffhf)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for label</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffl</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.label (ffl)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for password_field</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffpf</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.password_field (ffpf)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for radio_button</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffrb</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.radio_button (ffrb)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for submit</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffs</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.submit (ffs)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for text_area</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffta</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.text_area (ffta)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>form_for text_field</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>fftf</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>f.text_field (fftf)</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>f.</string>
<key>uuid</key>
@@ -11,7 +11,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>form_for with errors</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ffe</string>
<key>uuid</key>
@@ -9,7 +9,7 @@ ${TM_RAILS_TEMPLATE_END_RUBY_BLOCK}</string>
<key>name</key>
<string>form_for</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ff</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>if (ERB)</string>
<key>scope</key>
- <string>text.html.ruby</string>
+ <string>text.html.erb.rails</string>
<key>tabTrigger</key>
<string>if</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>image_submit_tag</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>ist</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>image_tag</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>it</string>
<key>uuid</key>
@@ -7,7 +7,7 @@
<key>name</key>
<string>javascript_include_tag</string>
<key>scope</key>
- <string>text.html.ruby, text.haml</string>
+ <string>text.html.erb.rails, text.haml</string>
<key>tabTrigger</key>
<string>jit</string>
<key>uuid</key>
Oops, something went wrong.

0 comments on commit ef4c75f

Please sign in to comment.