Permalink
Browse files

JMacro syntax highlighting

  • Loading branch information...
hamishmack committed Oct 13, 2012
1 parent 8ec5a2b commit 13e13d4ed8f1b4e212cdfa8f09fb80ad18c6ed2d
Showing with 419 additions and 0 deletions.
  1. +44 −0 language-specs/haskell.lang
  2. +374 −0 language-specs/jmacro.lang
  3. +1 −0 leksah.cabal
@@ -123,6 +123,46 @@
</include>
</context>
+ <context id="jmacro">
+ <start>\[\$?jmacro\|</start>
+ <end>\|\]</end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="preprocessor"/>
+ <context sub-pattern="0" where="end" style-ref="preprocessor"/>
+ <context ref="jmacro:jmacro"/>
+ </include>
+ </context>
+
+ <context id="jmacroE">
+ <start>\[\$?jmacroE\|</start>
+ <end>\|\]</end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="preprocessor"/>
+ <context sub-pattern="0" where="end" style-ref="preprocessor"/>
+ <context ref="jmacro:jmacro"/>
+ </include>
+ </context>
+
+ <context id="j">
+ <start>\[\$?j\|</start>
+ <end>\|\]</end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="preprocessor"/>
+ <context sub-pattern="0" where="end" style-ref="preprocessor"/>
+ <context ref="jmacro:j"/>
+ </include>
+ </context>
+
+ <context id="je">
+ <start>\[\$?je\|</start>
+ <end>\|\]</end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="preprocessor"/>
+ <context sub-pattern="0" where="end" style-ref="preprocessor"/>
+ <context ref="jmacro:j"/>
+ </include>
+ </context>
+
<context id="variable" style-ref="variable">
<match>\b[a-z_][0-9a-zA-Z_'#]*</match>
</context>
@@ -263,6 +303,10 @@
<context ref="cassius"/>
<context ref="lucius"/>
<context ref="julius"/>
+ <context ref="jmacro"/>
+ <context ref="jmacroE"/>
+ <context ref="j"/>
+ <context ref="je"/>
</include>
</context>
Oops, something went wrong.

0 comments on commit 13e13d4

Please sign in to comment.