fix erb comment highlighting
This commit is contained in:
parent
9bf4827c78
commit
4492925305
3 changed files with 13 additions and 1 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
<% @books.each do |book| %>
|
||||
<tr>
|
||||
<%# comment %>
|
||||
<td><%= book.title %></td>
|
||||
<td><%= book.content %></td>
|
||||
<td><%= link_to 'Show', book %></td>
|
||||
|
|
|
|||
|
|
@ -96,6 +96,12 @@
|
|||
["meta.tag.punctuation.begin","<"],
|
||||
["meta.tag.name.table","tr"],
|
||||
["meta.tag.punctuation.end",">"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
["comment.start.erb","<%#"],
|
||||
["comment"," comment "],
|
||||
["comment.end.erb","%>"]
|
||||
],[
|
||||
"start",
|
||||
["text"," "],
|
||||
|
|
|
|||
|
|
@ -45,7 +45,12 @@ define(function(require, exports, module) {
|
|||
}, {
|
||||
token : "comment.start.erb",
|
||||
regex : "<%#",
|
||||
push : [{regex: "%>", next: "pop"}]
|
||||
push : [{
|
||||
token : "comment.end.erb",
|
||||
regex: "%>",
|
||||
next: "pop",
|
||||
defaultToken:"comment"
|
||||
}]
|
||||
}, {
|
||||
token : "support.ruby_tag",
|
||||
regex : "<%+(?!>)[-=]?",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue