"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/moon.lang" (12 May 2020, 486 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 dofile(HL_LANG_DIR.."lua.lang")
    3 
    4 Description="MoonScript"
    5 
    6 Categories = {"source", "script"}
    7 
    8 -- append keywords to Lua list
    9 table.insert(Keywords,
   10   { Id=1,
   11     List={"class", "export", "import", "from", "extends", "module", "require"}
   12   }
   13 )
   14 
   15 table.insert(Keywords,
   16   { Id=3,
   17     Regex=[[@\w+]],
   18   }
   19 )
   20 
   21 table.insert(Keywords,
   22   { Id=4,
   23     Regex=[[\w+\:]],
   24   }
   25 )
   26 
   27 table.insert(Keywords,
   28   { Id=4,
   29     Regex=[[(\w+)?(\\\w+)]],
   30   }
   31 )
   32 
   33 -- >TODO print "I am #{math.random! * 100}% sure."