You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
3 years ago
|
{
|
||
|
"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"
|
||
|
}
|
||
|
]
|
||
|
}
|