| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " Language:     Erlang (http://www.erlang.org) | 
					
						
							|  |  |  | " Maintainer:   Csaba Hoch <csaba.hoch@gmail.com> | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | " Contributor:  Adam Rutkowski <hq@mtod.org> | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | " Last Update:  2019-Jun-18 | 
					
						
							| 
									
										
										
										
											2012-01-20 21:08:56 +01:00
										 |  |  | " License:      Vim license | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | " URL:          https://github.com/vim-erlang/vim-erlang-runtime | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | " Acknowledgements: This script was originally created by Kresimir Marzic [1]. | 
					
						
							|  |  |  | " The script was then revamped by Csaba Hoch [2]. During the revamp, the new | 
					
						
							|  |  |  | " highlighting style and some code was taken from the Erlang syntax script | 
					
						
							|  |  |  | " that is part of vimerl [3], created by Oscar Hellström [4] and improved by | 
					
						
							|  |  |  | " Ricardo Catalinas Jiménez [5]. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " [1]: Kreąimir Marľić (Kresimir Marzic) <kmarzic@fly.srk.fer.hr> | 
					
						
							|  |  |  | " [2]: Csaba Hoch <csaba.hoch@gmail.com> | 
					
						
							|  |  |  | " [3]: https://github.com/jimenezrick/vimerl | 
					
						
							|  |  |  | " [4]: Oscar Hellström <oscar@oscarh.net> (http://oscar.hellstrom.st) | 
					
						
							|  |  |  | " [5]: Ricardo Catalinas Jiménez <jimenezrick@gmail.com> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " Customization: | 
					
						
							|  |  |  | " | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | " To use the old highlighting style, add this to your .vimrc: | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | "     let g:erlang_old_style_highlight = 1 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | " To highlight further module attributes, add them to | 
					
						
							|  |  |  | " ~/.vim/after/syntax/erlang.vim: | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | "     syn keyword erlangAttribute myattr1 myattr2 contained | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " quit when a syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  |     finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " Case sensitive | 
					
						
							|  |  |  | syn case match | 
					
						
							| 
									
										
										
										
											2012-01-20 21:08:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | setlocal iskeyword+=$,@-@ | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " Comments | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn match erlangComment           '%.*$' contains=erlangCommentAnnotation,erlangTodo | 
					
						
							|  |  |  | syn match erlangCommentAnnotation ' \@<=@\%(clear\|docfile\|end\|headerfile\|todo\|TODO\|type\|author\|copyright\|doc\|reference\|see\|since\|title\|version\|deprecated\|hidden\|private\|equiv\|spec\|throws\)' contained | 
					
						
							|  |  |  | syn match erlangCommentAnnotation /`[^']*'/ contained | 
					
						
							|  |  |  | syn keyword erlangTodo            TODO FIXME XXX contained | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Numbers (minimum base is 2, maximum is 36.) | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn match erlangNumberInteger '\<\d\+\>' | 
					
						
							|  |  |  | syn match erlangNumberInteger '\<\%([2-9]\|[12]\d\|3[0-6]\)\+#[[:alnum:]]\+\>' | 
					
						
							|  |  |  | syn match erlangNumberFloat   '\<\d\+\.\d\+\%([eE][+-]\=\d\+\)\=\>' | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Strings, atoms, characters | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn region erlangString            start=/"/ end=/"/ contains=erlangStringModifier | 
					
						
							|  |  |  | syn region erlangQuotedAtom        start=/'/ end=/'/ contains=erlangQuotedAtomModifier | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn match erlangStringModifier     '\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)\|\~\%([ni~]\|\%(-\=\d\+\|\*\)\=\.\=\%(\*\|\d\+\)\=\%(\..\)\=[tl]*[cfegswpWPBX#bx+]\)' contained | 
					
						
							|  |  |  | syn match erlangQuotedAtomModifier '\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)' contained | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn match erlangModifier           '\$\%([^\\]\|\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)\)' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Operators, separators | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn match erlangOperator   '==\|=:=\|/=\|=/=\|<\|=<\|>\|>=\|=>\|:=\|++\|--\|=\|!\|<-\|+\|-\|\*\|\/' | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn keyword erlangOperator div rem or xor bor bxor bsl bsr and band not bnot andalso orelse | 
					
						
							|  |  |  | syn match erlangBracket    '{\|}\|\[\|]\||\|||' | 
					
						
							|  |  |  | syn match erlangPipe       '|' | 
					
						
							|  |  |  | syn match erlangRightArrow '->' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Atoms, function calls (order is important) | 
					
						
							|  |  |  | syn match erlangAtom           '\<\l[[:alnum:]_@]*' contains=erlangBoolean | 
					
						
							|  |  |  | syn keyword erlangBoolean      true false contained | 
					
						
							|  |  |  | syn match erlangLocalFuncCall  '\<\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*(\)\@=' contains=erlangBIF | 
					
						
							|  |  |  | syn match erlangLocalFuncRef   '\<\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*/\)\@=' | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn match erlangGlobalFuncCall '\<\%(\a[[:alnum:]_@]*\%(\s\|\n\|%.*\n\)*\.\%(\s\|\n\|%.*\n\)*\)*\a[[:alnum:]_@]*\%(\s\|\n\|%.*\n\)*:\%(\s\|\n\|%.*\n\)*\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*(\)\@=' contains=erlangComment,erlangVariable | 
					
						
							|  |  |  | syn match erlangGlobalFuncRef  '\<\%(\a[[:alnum:]_@]*\%(\s\|\n\|%.*\n\)*\.\%(\s\|\n\|%.*\n\)*\)*\a[[:alnum:]_@]*\%(\s\|\n\|%.*\n\)*:\%(\s\|\n\|%.*\n\)*\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*/\)\@=' contains=erlangComment,erlangVariable | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | " Variables, macros, records, maps | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn match erlangVariable '\<[A-Z_][[:alnum:]_@]*' | 
					
						
							|  |  |  | syn match erlangMacro    '??\=[[:alnum:]_@]\+' | 
					
						
							|  |  |  | syn match erlangMacro    '\%(-define(\)\@<=[[:alnum:]_@]\+' | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | syn region erlangQuotedMacro         start=/??\=\s*'/ end=/'/ contains=erlangQuotedAtomModifier | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn match erlangMap      '#' | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn match erlangRecord   '#\s*\l[[:alnum:]_@]*' | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn region erlangQuotedRecord        start=/#\s*'/ end=/'/ contains=erlangQuotedAtomModifier | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Shebang (this line has to be after the ErlangMap) | 
					
						
							|  |  |  | syn match erlangShebang  '^#!.*' | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Bitstrings | 
					
						
							|  |  |  | syn match erlangBitType '\%(\/\%(\s\|\n\|%.*\n\)*\)\@<=\%(integer\|float\|binary\|bytes\|bitstring\|bits\|binary\|utf8\|utf16\|utf32\|signed\|unsigned\|big\|little\|native\|unit\)\%(\%(\s\|\n\|%.*\n\)*-\%(\s\|\n\|%.*\n\)*\%(integer\|float\|binary\|bytes\|bitstring\|bits\|binary\|utf8\|utf16\|utf32\|signed\|unsigned\|big\|little\|native\|unit\)\)*' contains=erlangComment | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Constants and Directives | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | syn match erlangUnknownAttribute '^\s*-\%(\s\|\n\|%.*\n\)*\l[[:alnum:]_@]*' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangAttribute '^\s*-\%(\s\|\n\|%.*\n\)*\%(behaviou\=r\|compile\|export\(_type\)\=\|file\|import\|module\|author\|copyright\|doc\|vsn\|on_load\)\>' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangInclude   '^\s*-\%(\s\|\n\|%.*\n\)*\%(include\|include_lib\)\>' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangRecordDef '^\s*-\%(\s\|\n\|%.*\n\)*record\>' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangDefine    '^\s*-\%(\s\|\n\|%.*\n\)*\%(define\|undef\)\>' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangPreCondit '^\s*-\%(\s\|\n\|%.*\n\)*\%(ifdef\|ifndef\|else\|endif\)\>' contains=erlangComment | 
					
						
							|  |  |  | syn match erlangType      '^\s*-\%(\s\|\n\|%.*\n\)*\%(spec\|type\|opaque\|callback\)\>' contains=erlangComment | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Keywords | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | syn keyword erlangKeyword after begin case catch cond end fun if let of | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn keyword erlangKeyword receive when try | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Build-in-functions (BIFs) | 
					
						
							|  |  |  | syn keyword erlangBIF abs alive apply atom_to_binary atom_to_list contained | 
					
						
							|  |  |  | syn keyword erlangBIF binary_part binary_to_atom contained | 
					
						
							|  |  |  | syn keyword erlangBIF binary_to_existing_atom binary_to_float contained | 
					
						
							|  |  |  | syn keyword erlangBIF binary_to_integer bitstring_to_list contained | 
					
						
							|  |  |  | syn keyword erlangBIF binary_to_list binary_to_term bit_size contained | 
					
						
							|  |  |  | syn keyword erlangBIF byte_size check_old_code check_process_code contained | 
					
						
							|  |  |  | syn keyword erlangBIF concat_binary date delete_module demonitor contained | 
					
						
							|  |  |  | syn keyword erlangBIF disconnect_node element erase error exit contained | 
					
						
							|  |  |  | syn keyword erlangBIF float float_to_binary float_to_list contained | 
					
						
							|  |  |  | syn keyword erlangBIF garbage_collect get get_keys group_leader contained | 
					
						
							|  |  |  | syn keyword erlangBIF halt hd integer_to_binary integer_to_list contained | 
					
						
							|  |  |  | syn keyword erlangBIF iolist_to_binary iolist_size is_alive contained | 
					
						
							|  |  |  | syn keyword erlangBIF is_atom is_binary is_bitstring is_boolean contained | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | syn keyword erlangBIF is_float is_function is_integer is_list is_map is_map_key contained | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn keyword erlangBIF is_number is_pid is_port is_process_alive contained | 
					
						
							|  |  |  | syn keyword erlangBIF is_record is_reference is_tuple length link contained | 
					
						
							|  |  |  | syn keyword erlangBIF list_to_atom list_to_binary contained | 
					
						
							|  |  |  | syn keyword erlangBIF list_to_bitstring list_to_existing_atom contained | 
					
						
							|  |  |  | syn keyword erlangBIF list_to_float list_to_integer list_to_pid contained | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | syn keyword erlangBIF list_to_tuple load_module make_ref map_size max contained | 
					
						
							|  |  |  | syn keyword erlangBIF min module_loaded monitor monitor_node node contained | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | syn keyword erlangBIF nodes now open_port pid_to_list port_close contained | 
					
						
							|  |  |  | syn keyword erlangBIF port_command port_connect pre_loaded contained | 
					
						
							|  |  |  | syn keyword erlangBIF process_flag process_flag process_info contained | 
					
						
							|  |  |  | syn keyword erlangBIF process purge_module put register registered contained | 
					
						
							|  |  |  | syn keyword erlangBIF round self setelement size spawn spawn_link contained | 
					
						
							|  |  |  | syn keyword erlangBIF spawn_monitor spawn_opt split_binary contained | 
					
						
							|  |  |  | syn keyword erlangBIF statistics term_to_binary throw time tl contained | 
					
						
							|  |  |  | syn keyword erlangBIF trunc tuple_size tuple_to_list unlink contained | 
					
						
							|  |  |  | syn keyword erlangBIF unregister whereis contained | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Sync at the beginning of functions: if this is not used, multiline string | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | " are not always recognized, and the indentation script cannot use the | 
					
						
							|  |  |  | " "searchpair" (because it would not always skip strings and comments when | 
					
						
							|  |  |  | " looking for keywords and opening parens/brackets). | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | syn sync match erlangSync grouphere NONE "^[a-z]\s*(" | 
					
						
							| 
									
										
										
										
											2013-06-06 21:36:40 +02:00
										 |  |  | let b:erlang_syntax_synced = 1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Define the default highlighting. See ":help group-name" for the groups and | 
					
						
							|  |  |  | " their colors. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | let s:old_style = (exists("g:erlang_old_style_highlight") && | 
					
						
							|  |  |  |                   \g:erlang_old_style_highlight == 1) | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Comments | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangComment Comment | 
					
						
							|  |  |  | hi def link erlangCommentAnnotation Special | 
					
						
							|  |  |  | hi def link erlangTodo Todo | 
					
						
							|  |  |  | hi def link erlangShebang Comment | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Numbers | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangNumberInteger Number | 
					
						
							|  |  |  | hi def link erlangNumberFloat Float | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Strings, atoms, characters | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangString String | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | if s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangQuotedAtom Type | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangQuotedAtom String | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangStringModifier Special | 
					
						
							|  |  |  | hi def link erlangQuotedAtomModifier Special | 
					
						
							|  |  |  | hi def link erlangModifier Special | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Operators, separators | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangOperator Operator | 
					
						
							|  |  |  | hi def link erlangRightArrow Operator | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | if s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBracket Normal | 
					
						
							|  |  |  | hi def link erlangPipe Normal | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBracket Delimiter | 
					
						
							|  |  |  | hi def link erlangPipe Delimiter | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Atoms, functions, variables, macros | 
					
						
							|  |  |  | if s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangAtom Normal | 
					
						
							|  |  |  | hi def link erlangLocalFuncCall Normal | 
					
						
							|  |  |  | hi def link erlangLocalFuncRef Normal | 
					
						
							|  |  |  | hi def link erlangGlobalFuncCall Function | 
					
						
							|  |  |  | hi def link erlangGlobalFuncRef Function | 
					
						
							|  |  |  | hi def link erlangVariable Normal | 
					
						
							|  |  |  | hi def link erlangMacro Normal | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | hi def link erlangQuotedMacro Normal | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangRecord Normal | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | hi def link erlangQuotedRecord Normal | 
					
						
							|  |  |  | hi def link erlangMap Normal | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangAtom String | 
					
						
							|  |  |  | hi def link erlangLocalFuncCall Normal | 
					
						
							|  |  |  | hi def link erlangLocalFuncRef Normal | 
					
						
							|  |  |  | hi def link erlangGlobalFuncCall Normal | 
					
						
							|  |  |  | hi def link erlangGlobalFuncRef Normal | 
					
						
							|  |  |  | hi def link erlangVariable Identifier | 
					
						
							|  |  |  | hi def link erlangMacro Macro | 
					
						
							| 
									
										
										
										
											2019-11-10 22:09:11 +01:00
										 |  |  | hi def link erlangQuotedMacro Macro | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangRecord Structure | 
					
						
							| 
									
										
										
										
											2017-03-16 17:41:02 +01:00
										 |  |  | hi def link erlangQuotedRecord Structure | 
					
						
							|  |  |  | hi def link erlangMap Structure | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " Bitstrings | 
					
						
							|  |  |  | if !s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBitType Type | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Constants and Directives | 
					
						
							|  |  |  | if s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangAttribute Type | 
					
						
							|  |  |  | hi def link erlangMacroDef Type | 
					
						
							|  |  |  | hi def link erlangUnknownAttribute Normal | 
					
						
							|  |  |  | hi def link erlangInclude Type | 
					
						
							|  |  |  | hi def link erlangRecordDef Type | 
					
						
							|  |  |  | hi def link erlangDefine Type | 
					
						
							|  |  |  | hi def link erlangPreCondit Type | 
					
						
							|  |  |  | hi def link erlangType Type | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangAttribute Keyword | 
					
						
							|  |  |  | hi def link erlangMacroDef Macro | 
					
						
							|  |  |  | hi def link erlangUnknownAttribute Normal | 
					
						
							|  |  |  | hi def link erlangInclude Include | 
					
						
							|  |  |  | hi def link erlangRecordDef Keyword | 
					
						
							|  |  |  | hi def link erlangDefine Define | 
					
						
							|  |  |  | hi def link erlangPreCondit PreCondit | 
					
						
							|  |  |  | hi def link erlangType Type | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Keywords | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangKeyword Keyword | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Build-in-functions (BIFs) | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBIF Function | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | if s:old_style | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBoolean Statement | 
					
						
							|  |  |  | hi def link erlangExtra Statement | 
					
						
							|  |  |  | hi def link erlangSignal Statement | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2016-08-31 22:22:10 +02:00
										 |  |  | hi def link erlangBoolean Boolean | 
					
						
							|  |  |  | hi def link erlangExtra Statement | 
					
						
							|  |  |  | hi def link erlangSignal Statement | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | let b:current_syntax = "erlang" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-17 18:14:19 +02:00
										 |  |  | " vim: sw=2 et |