html (rails).cson 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 'scopeName': 'text.html.ruby'
  2. 'name': 'HTML (Rails)'
  3. 'fileTypes': [
  4. 'rhtml'
  5. 'erb'
  6. 'html.erb'
  7. ]
  8. 'foldingStartMarker': '(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)'
  9. 'foldingStopMarker': '(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)'
  10. 'patterns': [
  11. {
  12. 'begin': '<%+#'
  13. 'captures':
  14. '0':
  15. 'name': 'punctuation.definition.comment.erb'
  16. 'end': '%>'
  17. 'name': 'comment.block.erb'
  18. }
  19. {
  20. 'begin': '<%+(?!>)[-=]?'
  21. 'captures':
  22. '0':
  23. 'name': 'punctuation.section.embedded.ruby'
  24. 'end': '-?%>'
  25. 'name': 'source.ruby.rails.embedded.html'
  26. 'patterns': [
  27. {
  28. 'captures':
  29. '1':
  30. 'name': 'punctuation.definition.comment.ruby'
  31. 'match': '(#).*?(?=-?%>)'
  32. 'name': 'comment.line.number-sign.ruby'
  33. }
  34. {
  35. 'include': 'source.ruby.rails'
  36. }
  37. ]
  38. }
  39. {
  40. 'include': 'text.html.basic'
  41. }
  42. ]