mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
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:
committed by
Arfon Smith
parent
a464c234b8
commit
1a04c79738
@@ -337,6 +337,7 @@ vendor/grammars/language-coffee-script:
|
|||||||
- source.litcoffee
|
- source.litcoffee
|
||||||
vendor/grammars/language-crystal:
|
vendor/grammars/language-crystal:
|
||||||
- source.crystal
|
- source.crystal
|
||||||
|
- text.html.ecr
|
||||||
vendor/grammars/language-csharp:
|
vendor/grammars/language-csharp:
|
||||||
- source.cake
|
- source.cake
|
||||||
- source.cs
|
- source.cs
|
||||||
|
|||||||
@@ -1404,6 +1404,16 @@ HTML+Django:
|
|||||||
- html+jinja
|
- html+jinja
|
||||||
- htmldjango
|
- htmldjango
|
||||||
ace_mode: django
|
ace_mode: django
|
||||||
|
|
||||||
|
HTML+ECR:
|
||||||
|
type: markup
|
||||||
|
tm_scope: text.html.ecr
|
||||||
|
group: HTML
|
||||||
|
aliases:
|
||||||
|
- ecr
|
||||||
|
extensions:
|
||||||
|
- .ecr
|
||||||
|
ace_mode: text
|
||||||
|
|
||||||
HTML+EEX:
|
HTML+EEX:
|
||||||
type: markup
|
type: markup
|
||||||
|
|||||||
5
samples/HTML+ECR/greeting.ecr
Normal file
5
samples/HTML+ECR/greeting.ecr
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<% if @name %>
|
||||||
|
Greeting, <%= @name %>!
|
||||||
|
<% else %>
|
||||||
|
Greeting!
|
||||||
|
<% end %>
|
||||||
2
vendor/grammars/language-crystal
vendored
2
vendor/grammars/language-crystal
vendored
Submodule vendor/grammars/language-crystal updated: f87d68645c...ec1e4991e6
Reference in New Issue
Block a user