Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use meta.embedded scopes.

  • Loading branch information...
commit 45fc60c90aa84a46251fea27225956d3299ff61c 1 parent 520cd21
@infininight infininight authored
Showing with 78 additions and 8 deletions.
  1. +78 −8 Syntaxes/HTML (Erlang).tmLanguage
View
86 Syntaxes/HTML (Erlang).tmLanguage
@@ -14,24 +14,94 @@
<array>
<dict>
<key>begin</key>
- <string>&lt;erl&gt;</string>
- <key>captures</key>
+ <string>(^\s*)?(?=&lt;erl&gt;)</string>
+ <key>beginCaptures</key>
<dict>
- <key>0</key>
+ <key>1</key>
<dict>
<key>name</key>
- <string>punctuation.section.embedded.erlang</string>
+ <string>punctuation.whitespace.embedded.leading.html</string>
</dict>
</dict>
+ <key>contentName</key>
+ <string>meta.embedded.erlang</string>
<key>end</key>
- <string>&lt;/erl&gt;</string>
- <key>name</key>
- <string>source.erlang.embedded.html</string>
+ <string>(?!\G)(\s*\n)?</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.whitespace.embedded.trailing.html</string>
+ </dict>
+ </dict>
<key>patterns</key>
<array>
<dict>
- <key>include</key>
+ <key>begin</key>
+ <string>(&lt;)(erl)(&gt;)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>meta.tag.template.html</string>
+ </dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.html</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>contentName</key>
<string>source.erlang</string>
+ <key>end</key>
+ <string>((&lt;/))(erl)(&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>meta.tag.template.html</string>
+ </dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>source.erlang</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.html</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>source.erlang</string>
+ </dict>
+ </array>
</dict>
</array>
</dict>
Please sign in to comment.
Something went wrong with that request. Please try again.