123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 'scopeName': 'text.html.ruby'
- 'name': 'HTML (Rails)'
- 'fileTypes': [
- 'rhtml'
- 'erb'
- 'html.erb'
- ]
- '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)'
- '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)'
- 'patterns': [
- {
- 'begin': '<%+#'
- 'captures':
- '0':
- 'name': 'punctuation.definition.comment.erb'
- 'end': '%>'
- 'name': 'comment.block.erb'
- }
- {
- 'begin': '<%+(?!>)[-=]?'
- 'captures':
- '0':
- 'name': 'punctuation.section.embedded.ruby'
- 'end': '-?%>'
- 'name': 'source.ruby.rails.embedded.html'
- 'patterns': [
- {
- 'captures':
- '1':
- 'name': 'punctuation.definition.comment.ruby'
- 'match': '(#).*?(?=-?%>)'
- 'name': 'comment.line.number-sign.ruby'
- }
- {
- 'include': 'source.ruby.rails'
- }
- ]
- }
- {
- 'include': 'text.html.basic'
- }
- ]
|