Ticket #162: add_nemerle_syntax.patch

File add_nemerle_syntax.patch, 6.8 KB (added by winnie, 15 years ago)

this is the output of git show 1280ba3320cff9a75646ce35cf02b91265502732 for those who doesn't look into the git

  • syntax/Makefile.am

    commit 1280ba3320cff9a75646ce35cf02b91265502732
    Author: Enrico Weigelt, metux IT service <weigelt@metux.de>
    Date:   Sat Jan 10 21:43:05 2009 +0100
    
        added nemerle syntax file (from rhclub tree)
    
    diff --git a/syntax/Makefile.am b/syntax/Makefile.am
    index 98f8571..60beb99 100644
    a b SYNTAXFILES = \ 
    2424        lisp.syntax             \ 
    2525        lsm.syntax              \ 
    2626        lua.syntax              \ 
     27        nemerle.syntax          \ 
    2728        m4.syntax               \ 
    2829        mail.syntax             \ 
    2930        makefile.syntax         \ 
  • syntax/Syntax

    diff --git a/syntax/Syntax b/syntax/Syntax
    index 58e54fc..7ff81f2 100644
    a b include debian-changelog.syntax 
    169169file .\*\\.dsc$ Debian\sdescriptiom\sfile 
    170170include debian-description.syntax 
    171171 
     172file ..\*\\.(n|N)$ Nemerle\sProgram 
     173include nemerle.syntax 
     174 
    172175file .\* unknown 
    173176include unknown.syntax 
  • new file syntax/nemerle.syntax

    diff --git a/syntax/nemerle.syntax b/syntax/nemerle.syntax
    new file mode 100644
    index 0000000..2bf1711
    - +  
     1# mcedit syntax file 
     2# 
     3# Copyright (c) 2004 The University of Wroclaw. 
     4# All rights reserved. 
     5# 
     6# Redistribution and use in source and binary forms, with or without 
     7# modification, are permitted provided that the following conditions 
     8# are met: 
     9#    1. Redistributions of source code must retain the above copyright 
     10#       notice, this list of conditions and the following disclaimer. 
     11#    2. Redistributions in binary form must reproduce the above copyright 
     12#       notice, this list of conditions and the following disclaimer in the 
     13#       documentation and/or other materials provided with the distribution. 
     14#    3. The name of the University may not be used to endorse or promote 
     15#       products derived from this software without specific prior 
     16#       written permission. 
     17# 
     18# THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY ``AS IS'' AND ANY EXPRESS OR 
     19# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
     20# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 
     21# NO EVENT SHALL THE UNIVERSITY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
     22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
     23# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
     24# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
     25# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
     26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
     27# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28# 
     29# Adapted from java.syntax by Jacek Sliwerski. 
     30 
     31context default 
     32    keyword whole abstract yellow 
     33    keyword whole and yellow 
     34    keyword whole array yellow 
     35    keyword whole as yellow 
     36    keyword whole base yellow 
     37    keyword whole bool yellow 
     38    keyword whole catch yellow 
     39    keyword whole const yellow 
     40    keyword whole continue yellow 
     41    keyword whole def yellow 
     42    keyword whole else yellow 
     43    keyword whole enum yellow 
     44    keyword whole extends yellow 
     45    keyword whole extern yellow 
     46    keyword whole false yellow 
     47    keyword whole finally yellow 
     48    keyword whole float yellow 
     49    keyword whole for yellow 
     50    keyword whole foreach yellow 
     51    keyword whole fun yellow 
     52    keyword whole if yellow 
     53    keyword whole implements yellow 
     54    keyword whole in yellow 
     55    keyword whole int yellow 
     56    keyword whole interface yellow 
     57    keyword whole internal yellow 
     58    keyword whole list yellow 
     59    keyword whole macro yellow 
     60    keyword whole match yellow 
     61    keyword whole module yellow 
     62    keyword whole mutable yellow 
     63    keyword whole namespace yellow 
     64    keyword whole new yellow 
     65    keyword whole null yellow 
     66    keyword whole object yellow 
     67    keyword whole option yellow 
     68    keyword whole out yellow 
     69    keyword whole override yellow 
     70    keyword whole params yellow 
     71    keyword whole private yellow 
     72    keyword whole protected yellow 
     73    keyword whole public yellow 
     74    keyword whole ref yellow 
     75    keyword whole sealed yellow 
     76    keyword whole static yellow 
     77    keyword whole string yellow 
     78    keyword whole syntax yellow 
     79    keyword whole this yellow 
     80    keyword whole throw yellow 
     81    keyword whole true yellow 
     82    keyword whole try yellow 
     83    keyword whole tymatch yellow 
     84    keyword whole type yellow 
     85    keyword whole typeof yellow 
     86    keyword whole unless yellow 
     87    keyword whole using yellow 
     88    keyword whole variant yellow 
     89    keyword whole virtual yellow 
     90    keyword whole void yellow 
     91    keyword whole when yellow 
     92    keyword whole where yellow 
     93    keyword whole while yellow 
     94    keyword whole with yellow 
     95 
     96    keyword /\* brown 
     97    keyword \*/ brown 
     98    keyword // brown 
     99 
     100    keyword '\\\{"abtnvfr\}' brightgreen 
     101    keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen 
     102    keyword '\\'' brightgreen 
     103    keyword '\\\\' brightgreen 
     104    keyword '\\0' brightgreen 
     105    keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen 
     106 
     107 
     108    keyword %&& brightcyan 
     109    keyword || brightcyan 
     110    keyword && brightcyan     
     111    keyword %| brightcyan 
     112    keyword %& brightcyan 
     113    keyword %^ brightcyan 
     114    keyword :> brightcyan 
     115    keyword <[ brightcyan 
     116    keyword ]> brightcyan 
     117    keyword > yellow 
     118    keyword < yellow 
     119    keyword \+ yellow 
     120    keyword - yellow 
     121    keyword \* yellow 
     122    keyword / yellow 
     123    keyword % yellow 
     124    keyword = yellow 
     125    keyword != yellow 
     126    keyword == yellow 
     127    keyword { brightcyan 
     128    keyword } brightcyan 
     129    keyword ( brightcyan 
     130    keyword ) brightcyan 
     131    keyword [ brightcyan 
     132    keyword ] brightcyan 
     133    keyword , brightcyan 
     134    keyword : brightcyan 
     135    keyword ? brightcyan 
     136    keyword | brightcyan 
     137    keyword ~ brightcyan 
     138    keyword ! brightcyan 
     139    keyword ; brightmagenta 
     140 
     141context exclusive /\* \*/ brown 
     142    spellcheck 
     143 
     144context exclusive // \n brown 
     145    spellcheck 
     146 
     147context linestart # \n brightred 
     148    keyword \\\n yellow 
     149    keyword /\**\*/ brown 
     150    keyword //*\n brown 
     151    keyword "+" red 
     152    keyword <+> red 
     153 
     154context " " green 
     155    spellcheck 
     156    keyword $\[().abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_\*\] brightgreen 
     157    keyword \\" brightgreen 
     158    keyword %% brightgreen 
     159    keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen 
     160    keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen 
     161    keyword %\[hl\]n brightgreen 
     162    keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen 
     163    keyword %[*] brightgreen 
     164    keyword %c brightgreen 
     165    keyword %p brightgreen 
     166    keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen 
     167    keyword \\\\ brightgreen 
     168    keyword \\' brightgreen 
     169    keyword \\\{abtnvfr\} brightgreen 
     170 
     171