"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/elixir.lang" (12 May 2020, 1334 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. See also the last Fossies "Diffs" side-by-side code changes report for "elixir.lang": 3.56_vs_3.57.

    1 
    2 Description="Elixir"
    3 
    4 Categories = {"source"}
    5 
    6 Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]]
    7 
    8 Keywords={
    9   { Id=1,
   10     List={
   11       "for", "case", "when", "with", "cond", "if", "unless", "try", "receive", "send",
   12       "exit", "raise", "throw", "after", "rescue", "catch", "else",
   13       "quote", "unquote", "super", "spawn", "spawn_link", "spawn_monitor",
   14       "import", "require", "alias", "use", "do", "end", "assert", "def",
   15       "defp", "defmodule", "assert_raise", "test", "in"
   16     }
   17   },
   18   { Id=2,
   19     List= {
   20       "is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function",
   21       "is_integer", "is_list", "is_map", "is_nil", "is_number", "is_pid", "is_port",
   22       "is_reference", "is_tuple", "abs", "binary_part", "bit_size", "byte_size", "div",
   23       "elem", "hd", "length", "map_size", "node", "rem", "round", "tl", "trunc",
   24       "tuple_size", " self", "true", "false", "nil"
   25     }
   26   },
   27   { Id=3,
   28     Regex=[[ [\:@][a-z]\w+ ]]
   29   },
   30   { Id=4,
   31     Regex=[[(\w+)\s*\(]]
   32   }
   33 }
   34 
   35 
   36 Strings={
   37   Delimiter=[["""|'''|"|']],
   38   RawPrefix="r",
   39   Escape=[=[\\[ntvbrfa\\\?'"]|\\\d{3}|\\x[[:xdigit:]]{2}]=]
   40 
   41 }
   42 
   43 Comments = {
   44   {
   45     Block=false,
   46     Delimiter = { [[ # ]] }
   47   }
   48 }
   49 
   50 IgnoreCase=false
   51 
   52 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]
   53