1
Prism.languages.erlang = {
3
'string': /"(?:\\?.)*?"/,
5
pattern: /'(?:\\.|[^'\\])+'(?=\()/,
9
pattern: /'(?:\\.|[^'\\])+'/,
12
'boolean': /\b(?:true|false)\b/,
13
'keyword': /\b(?:fun|when|case|of|end|if|receive|after|try|catch)\b/,
17
/(?:\b|-)\d*\.?\d+([Ee][+-]?\d+)?\b/
19
'function': /\b[a-z][\w@]*(?=\()/,
21
// Look-behind is used to prevent wrong highlighting of atoms containing "@"
22
pattern: /(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,
26
/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:bnot|div|rem|band|bor|bxor|bsl|bsr|not|and|or|xor|orelse|andalso)\b/,
28
// We don't want to match <<
29
pattern: /(^|[^<])<(?!<)/,
33
// We don't want to match >>
34
pattern: /(^|[^>])>(?!>)/,
38
'atom': /\b[a-z][\w@]*/,
39
'punctuation': /[()[\]{}:;,.#|]|<<|>>/
b'\\ No newline at end of file'