Permalink
Browse files

improvements for litcoffee

  • Loading branch information...
1 parent 1ee4fd1 commit b39cb9a77f42dc8a801fc9f5a0ebd34b56302215 @aeischeid aeischeid committed May 25, 2013
Showing with 46 additions and 1 deletion.
  1. +2 −1 lang-specs/coffee.lang
  2. +42 −0 lang-specs/literate_coffee.lang
  3. +2 −0 mime/coffeescript.xml
View
@@ -23,7 +23,7 @@
<language id="coffee" _name="CoffeeScript" version="2.0" _section="Scripts">
<metadata>
<property name="mimetypes">application/coffeescript;text/coffeescript;application/cakefile;text/cakefile;application/icedcoffeescript;text/icedcoffeescript</property>
- <property name="globs">*.coffee;Cakefile;*.Cakefile;*.coffee.erb;*.iced;*.iced.erb;*.litcoffee</property>
+ <property name="globs">*.coffee;Cakefile;*.Cakefile;*.coffee.erb;*.iced;*.iced.erb</property>
<property name="line-comment-start">#</property>
<property name="block-comment-start">###</property>
<property name="block-comment-end">###</property>
@@ -256,3 +256,4 @@
</definitions>
</language>
+
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Author: Niclas Hoyer <niclas@verbugt.de>
+ Copyright (C) 2012 Niclas Hoyer <niclas@verbugt.de>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+-->
+<language id="litcoffee" _name="Literate CoffeeScript" version="2.0" _section="Scripts">
+ <metadata>
+ <property name="mimetypes">application/litcoffeescript;text/litcoffeescript</property>
+ <property name="globs">*.litcoffee;*.coffee.md</property>
+ </metadata>
+ <definitions>
+ <context id="coffee-block" class="no-spell-check" end-at-line-end="true">
+ <start><![CDATA[^ {4,}]]></start>
+ <include>
+ <context ref="coffee:coffee"/>
+ </include>
+ </context>
+ <replace id="markdown:code-block" ref="coffee-block"/>
+ <context id="litcoffee">
+ <include>
+ <context ref="markdown:markdown"/>
+ </include>
+ </context>
+ </definitions>
+</language>
View
@@ -4,6 +4,8 @@
<sub-class-of type="text/plain"/>
<comment>CoffeeScript program</comment>
<glob pattern="*.coffee"/>
+ <glob pattern="*.litcoffee"/>
+ <glob pattern="*.coffee.md"/>
</mime-type>
<mime-type type="text/cakefile">

0 comments on commit b39cb9a

Please sign in to comment.