Add ECR (Embedded Crystal) (#2996)

* Add ECR entry from language-crystal

* Add HTML+ECR to Languages.

* Create greeting.erb sample

From the ECR documentation: http://crystal-lang.org/api/ECR.html

* Rename greeting.erb to greeting.ecr

* Rename samples/HTML-ERB/greeting.ecr to samples/HTML-ECR/greeting.ecr

* Update Crystal submodule.

This contains the ECR highlighting.

* Proper named HTML+ECR folder.

The GitHub website just wouldn't do the folder right.

* Add .ecr file extension to ECR
This commit is contained in:
Kepler Sticka-Jones
2016-05-09 09:42:09 -06:00
committed by Arfon Smith
parent a464c234b8
commit 1a04c79738
4 changed files with 17 additions and 1 deletions

View File

@@ -337,6 +337,7 @@ vendor/grammars/language-coffee-script:
- source.litcoffee
vendor/grammars/language-crystal:
- source.crystal
- text.html.ecr
vendor/grammars/language-csharp:
- source.cake
- source.cs

View File

@@ -1404,6 +1404,16 @@ HTML+Django:
- html+jinja
- htmldjango
ace_mode: django
HTML+ECR:
type: markup
tm_scope: text.html.ecr
group: HTML
aliases:
- ecr
extensions:
- .ecr
ace_mode: text
HTML+EEX:
type: markup

View File

@@ -0,0 +1,5 @@
<% if @name %>
Greeting, <%= @name %>!
<% else %>
Greeting!
<% end %>