Skip to content

Commit

Permalink
improvements for litcoffee
Browse files Browse the repository at this point in the history
  • Loading branch information
aeischeid committed May 25, 2013
1 parent 1ee4fd1 commit b39cb9a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang-specs/coffee.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -256,3 +256,4 @@
</definitions>
</language>


42 changes: 42 additions & 0 deletions lang-specs/literate_coffee.lang
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 2 additions & 0 deletions mime/coffeescript.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit b39cb9a

Please sign in to comment.