PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.9.1
Code Block Pro – Beautiful Syntax Highlighting v1.9.1
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / erb.tmLanguage.json

erb.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.9.1, at build/shiki/languages/erb.tmLanguage.json

154 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "fileTypes": ["erb", "rhtml", "html.erb"],
3 "injections": {
4 "text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | comment)": {
5 "patterns": [
6 {
7 "begin": "(^\\s*)(?=<%+#(?![^%]*%>))",
8 "beginCaptures": {
9 "0": {
10 "name": "punctuation.whitespace.comment.leading.erb"
11 }
12 },
13 "end": "(?!\\G)(\\s*$\\n)?",
14 "endCaptures": {
15 "0": {
16 "name": "punctuation.whitespace.comment.trailing.erb"
17 }
18 },
19 "patterns": [
20 {
21 "include": "#comment"
22 }
23 ]
24 },
25 {
26 "begin": "(^\\s*)(?=<%(?![^%]*%>))",
27 "beginCaptures": {
28 "0": {
29 "name": "punctuation.whitespace.embedded.leading.erb"
30 }
31 },
32 "end": "(?!\\G)(\\s*$\\n)?",
33 "endCaptures": {
34 "0": {
35 "name": "punctuation.whitespace.embedded.trailing.erb"
36 }
37 },
38 "patterns": [
39 {
40 "include": "#tags"
41 }
42 ]
43 },
44 {
45 "include": "#comment"
46 },
47 {
48 "include": "#tags"
49 }
50 ]
51 }
52 },
53 "keyEquivalent": "^~H",
54 "name": "erb",
55 "patterns": [
56 {
57 "include": "text.html.basic"
58 }
59 ],
60 "repository": {
61 "comment": {
62 "patterns": [
63 {
64 "begin": "<%+#",
65 "beginCaptures": {
66 "0": {
67 "name": "punctuation.definition.comment.begin.erb"
68 }
69 },
70 "end": "%>",
71 "endCaptures": {
72 "0": {
73 "name": "punctuation.definition.comment.end.erb"
74 }
75 },
76 "name": "comment.block.erb"
77 }
78 ]
79 },
80 "tags": {
81 "patterns": [
82 {
83 "begin": "<%+(?!>)[-=]?(?![^%]*%>)",
84 "beginCaptures": {
85 "0": {
86 "name": "punctuation.section.embedded.begin.erb"
87 }
88 },
89 "contentName": "source.ruby",
90 "end": "(-?%)>",
91 "endCaptures": {
92 "0": {
93 "name": "punctuation.section.embedded.end.erb"
94 },
95 "1": {
96 "name": "source.ruby"
97 }
98 },
99 "name": "meta.embedded.block.erb",
100 "patterns": [
101 {
102 "captures": {
103 "1": {
104 "name": "punctuation.definition.comment.erb"
105 }
106 },
107 "match": "(#).*?(?=-?%>)",
108 "name": "comment.line.number-sign.erb"
109 },
110 {
111 "include": "source.ruby"
112 }
113 ]
114 },
115 {
116 "begin": "<%+(?!>)[-=]?",
117 "beginCaptures": {
118 "0": {
119 "name": "punctuation.section.embedded.begin.erb"
120 }
121 },
122 "contentName": "source.ruby",
123 "end": "(-?%)>",
124 "endCaptures": {
125 "0": {
126 "name": "punctuation.section.embedded.end.erb"
127 },
128 "1": {
129 "name": "source.ruby"
130 }
131 },
132 "name": "meta.embedded.line.erb",
133 "patterns": [
134 {
135 "captures": {
136 "1": {
137 "name": "punctuation.definition.comment.erb"
138 }
139 },
140 "match": "(#).*?(?=-?%>)",
141 "name": "comment.line.number-sign.erb"
142 },
143 {
144 "include": "source.ruby"
145 }
146 ]
147 }
148 ]
149 }
150 },
151 "scopeName": "text.html.erb",
152 "uuid": "13FF9439-15D0-4E74-9A8E-83ABF0BAA5E7"
153 }
154