File: elixir.lang

package info (click to toggle)
highlight 4.10-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,556 kB
  • sloc: cpp: 27,579; makefile: 411; sh: 341; ansic: 264; php: 236; python: 217; ruby: 132; perl: 61; tcl: 1
file content (53 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

Description="Elixir"

Categories = {"source"}

Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]]

Keywords={
  { Id=1,
    List={
      "for", "case", "when", "with", "cond", "if", "unless", "try", "receive", "send",
      "exit", "raise", "throw", "after", "rescue", "catch", "else",
      "quote", "unquote", "super", "spawn", "spawn_link", "spawn_monitor",
      "import", "require", "alias", "use", "do", "end", "assert", "def",
      "defp", "defmodule", "assert_raise", "test", "in"
    }
  },
  { Id=2,
    List= {
      "is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function",
      "is_integer", "is_list", "is_map", "is_nil", "is_number", "is_pid", "is_port",
      "is_reference", "is_tuple", "abs", "binary_part", "bit_size", "byte_size", "div",
      "elem", "hd", "length", "map_size", "node", "rem", "round", "tl", "trunc",
      "tuple_size", " self", "true", "false", "nil"
    }
  },
  { Id=3,
    Regex=[[ [\:@][a-z]\w+ ]]
  },
  { Id=4,
    Regex=[[(\w+)\s*\(]]
  }
}


Strings={
  Delimiter=[["""|'''|"|']],
  RawPrefix="r",
  Escape=[=[\\[ntvbrfa\\\?'"]|\\\d{3}|\\x[[:xdigit:]]{2}]=]

}

Comments = {
  {
    Block=false,
    Delimiter = { [[ # ]] }
  }
}

IgnoreCase=false

Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]