Mercurial > vim
annotate runtime/syntax/erlang.vim @ 10189:2392e065efea v7.4.2364
commit https://github.com/vim/vim/commit/e1c8c7a6742be6072290f9aa54ae358060d9c42f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 11 16:48:50 2016 +0200
patch 7.4.2364
Problem: Sort test sometimes fails.
Solution: Add it to the list of flaky tests.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Sep 2016 17:00:08 +0200 |
parents | 46763b01cd9a |
children | d0a20101ecb2 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
4437 | 2 " Language: Erlang (http://www.erlang.org) |
3 " Maintainer: Csaba Hoch <csaba.hoch@gmail.com> | |
5277 | 4 " Last Update: 2013-Jul-25 |
3281 | 5 " License: Vim license |
4437 | 6 " URL: https://github.com/hcs42/vim-erlang |
7 | 7 |
4780 | 8 " Acknowledgements: This script was originally created by Kresimir Marzic [1]. |
9 " The script was then revamped by Csaba Hoch [2]. During the revamp, the new | |
10 " highlighting style and some code was taken from the Erlang syntax script | |
11 " that is part of vimerl [3], created by Oscar Hellström [4] and improved by | |
12 " Ricardo Catalinas Jiménez [5]. | |
13 | |
14 " [1]: Kreąimir Marľić (Kresimir Marzic) <kmarzic@fly.srk.fer.hr> | |
15 " [2]: Csaba Hoch <csaba.hoch@gmail.com> | |
16 " [3]: https://github.com/jimenezrick/vimerl | |
17 " [4]: Oscar Hellström <oscar@oscarh.net> (http://oscar.hellstrom.st) | |
18 " [5]: Ricardo Catalinas Jiménez <jimenezrick@gmail.com> | |
19 | |
4437 | 20 " Customization: |
21 " | |
4780 | 22 " To use the old highlighting style, add this to your .vimrc: |
4437 | 23 " |
4780 | 24 " let g:erlang_old_style_highlight = 1 |
4437 | 25 " |
4780 | 26 " To highlight further module attributes, add them to |
27 " ~/.vim/after/syntax/erlang.vim: | |
4437 | 28 " |
4780 | 29 " syn keyword erlangAttribute myattr1 myattr2 contained |
4437 | 30 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
31 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
32 if exists("b:current_syntax") |
4437 | 33 finish |
7 | 34 endif |
35 | |
5277 | 36 let s:cpo_save = &cpo |
37 set cpo&vim | |
38 | |
4437 | 39 " Case sensitive |
3281 | 40 syn case match |
41 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
42 setlocal iskeyword+=$,@-@ |
3281 | 43 |
4437 | 44 " Comments |
4780 | 45 syn match erlangComment '%.*$' contains=erlangCommentAnnotation,erlangTodo |
46 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 | |
47 syn match erlangCommentAnnotation /`[^']*'/ contained | |
48 syn keyword erlangTodo TODO FIXME XXX contained | |
49 syn match erlangShebang '^#!.*' | |
4437 | 50 |
51 " Numbers (minimum base is 2, maximum is 36.) | |
4780 | 52 syn match erlangNumberInteger '\<\d\+\>' |
53 syn match erlangNumberInteger '\<\%([2-9]\|[12]\d\|3[0-6]\)\+#[[:alnum:]]\+\>' | |
54 syn match erlangNumberFloat '\<\d\+\.\d\+\%([eE][+-]\=\d\+\)\=\>' | |
7 | 55 |
4437 | 56 " Strings, atoms, characters |
4780 | 57 syn region erlangString start=/"/ end=/"/ contains=erlangStringModifier |
58 syn region erlangQuotedAtom start=/'/ end=/'/ contains=erlangQuotedAtomModifier | |
59 syn match erlangStringModifier '\~\a\|\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)' contained | |
60 syn match erlangQuotedAtomModifier '\~\a\|\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)' contained | |
61 syn match erlangModifier '\$\%([^\\]\|\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)\)' | |
62 | |
63 " Operators, separators | |
64 syn match erlangOperator '==\|=:=\|/=\|=/=\|<\|=<\|>\|>=\|++\|--\|=\|!\|<-\|+\|-\|\*\|\/' | |
65 syn keyword erlangOperator div rem or xor bor bxor bsl bsr and band not bnot andalso orelse | |
66 syn match erlangBracket '{\|}\|\[\|]\||\|||' | |
67 syn match erlangPipe '|' | |
68 syn match erlangRightArrow '->' | |
7 | 69 |
4780 | 70 " Atoms, function calls (order is important) |
71 syn match erlangAtom '\<\l[[:alnum:]_@]*' contains=erlangBoolean | |
72 syn keyword erlangBoolean true false contained | |
73 syn match erlangLocalFuncCall '\<\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*(\)\@=' contains=erlangBIF | |
74 syn match erlangLocalFuncRef '\<\a[[:alnum:]_@]*\>\%(\%(\s\|\n\|%.*\n\)*/\)\@=' | |
75 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 | |
76 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 | |
3281 | 77 |
4780 | 78 " Variables, macros, records |
79 syn match erlangVariable '\<[A-Z_][[:alnum:]_@]*' | |
80 syn match erlangMacro '??\=[[:alnum:]_@]\+' | |
81 syn match erlangMacro '\%(-define(\)\@<=[[:alnum:]_@]\+' | |
82 syn match erlangRecord '#\s*\l[[:alnum:]_@]*' | |
7 | 83 |
4780 | 84 " Bitstrings |
85 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 | |
4437 | 86 |
87 " Constants and Directives | |
5277 | 88 syn match erlangUnknownAttribute '^\s*-\%(\s\|\n\|%.*\n\)*\l[[:alnum:]_@]*' contains=erlangComment |
89 syn match erlangAttribute '^\s*-\%(\s\|\n\|%.*\n\)*\%(behaviou\=r\|compile\|export\(_type\)\=\|file\|import\|module\|author\|copyright\|doc\|vsn\|on_load\)\>' contains=erlangComment | |
90 syn match erlangInclude '^\s*-\%(\s\|\n\|%.*\n\)*\%(include\|include_lib\)\>' contains=erlangComment | |
91 syn match erlangRecordDef '^\s*-\%(\s\|\n\|%.*\n\)*record\>' contains=erlangComment | |
92 syn match erlangDefine '^\s*-\%(\s\|\n\|%.*\n\)*\%(define\|undef\)\>' contains=erlangComment | |
93 syn match erlangPreCondit '^\s*-\%(\s\|\n\|%.*\n\)*\%(ifdef\|ifndef\|else\|endif\)\>' contains=erlangComment | |
94 syn match erlangType '^\s*-\%(\s\|\n\|%.*\n\)*\%(spec\|type\|opaque\|callback\)\>' contains=erlangComment | |
7 | 95 |
4437 | 96 " Keywords |
4780 | 97 syn keyword erlangKeyword after begin case catch cond end fun if let of query |
98 syn keyword erlangKeyword receive when try | |
7 | 99 |
4780 | 100 " Build-in-functions (BIFs) |
101 syn keyword erlangBIF abs alive apply atom_to_binary atom_to_list contained | |
102 syn keyword erlangBIF binary_part binary_to_atom contained | |
103 syn keyword erlangBIF binary_to_existing_atom binary_to_float contained | |
104 syn keyword erlangBIF binary_to_integer bitstring_to_list contained | |
105 syn keyword erlangBIF binary_to_list binary_to_term bit_size contained | |
106 syn keyword erlangBIF byte_size check_old_code check_process_code contained | |
107 syn keyword erlangBIF concat_binary date delete_module demonitor contained | |
108 syn keyword erlangBIF disconnect_node element erase error exit contained | |
109 syn keyword erlangBIF float float_to_binary float_to_list contained | |
110 syn keyword erlangBIF garbage_collect get get_keys group_leader contained | |
111 syn keyword erlangBIF halt hd integer_to_binary integer_to_list contained | |
112 syn keyword erlangBIF iolist_to_binary iolist_size is_alive contained | |
113 syn keyword erlangBIF is_atom is_binary is_bitstring is_boolean contained | |
114 syn keyword erlangBIF is_float is_function is_integer is_list contained | |
115 syn keyword erlangBIF is_number is_pid is_port is_process_alive contained | |
116 syn keyword erlangBIF is_record is_reference is_tuple length link contained | |
117 syn keyword erlangBIF list_to_atom list_to_binary contained | |
118 syn keyword erlangBIF list_to_bitstring list_to_existing_atom contained | |
119 syn keyword erlangBIF list_to_float list_to_integer list_to_pid contained | |
120 syn keyword erlangBIF list_to_tuple load_module make_ref max min contained | |
121 syn keyword erlangBIF module_loaded monitor monitor_node node contained | |
122 syn keyword erlangBIF nodes now open_port pid_to_list port_close contained | |
123 syn keyword erlangBIF port_command port_connect pre_loaded contained | |
124 syn keyword erlangBIF process_flag process_flag process_info contained | |
125 syn keyword erlangBIF process purge_module put register registered contained | |
126 syn keyword erlangBIF round self setelement size spawn spawn_link contained | |
127 syn keyword erlangBIF spawn_monitor spawn_opt split_binary contained | |
128 syn keyword erlangBIF statistics term_to_binary throw time tl contained | |
129 syn keyword erlangBIF trunc tuple_size tuple_to_list unlink contained | |
130 syn keyword erlangBIF unregister whereis contained | |
4437 | 131 |
132 " Sync at the beginning of functions: if this is not used, multiline string | |
4780 | 133 " are not always recognized, and the indentation script cannot use the |
134 " "searchpair" (because it would not always skip strings and comments when | |
135 " looking for keywords and opening parens/brackets). | |
4437 | 136 syn sync match erlangSync grouphere NONE "^[a-z]\s*(" |
4780 | 137 let b:erlang_syntax_synced = 1 |
4437 | 138 |
4780 | 139 " Define the default highlighting. See ":help group-name" for the groups and |
140 " their colors. | |
141 | |
5277 | 142 let s:old_style = (exists("g:erlang_old_style_highlight") && |
143 \g:erlang_old_style_highlight == 1) | |
4780 | 144 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
145 " Only when an item doesn't have highlighting yet |
7 | 146 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
147 " Comments |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
148 hi def link erlangComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
149 hi def link erlangCommentAnnotation Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
150 hi def link erlangTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
151 hi def link erlangShebang Comment |
4437 | 152 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
153 " Numbers |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
154 hi def link erlangNumberInteger Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
155 hi def link erlangNumberFloat Float |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
156 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
157 " Strings, atoms, characters |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
158 hi def link erlangString String |
4780 | 159 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
160 if s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
161 hi def link erlangQuotedAtom Type |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
162 else |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
163 hi def link erlangQuotedAtom String |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
164 endif |
4437 | 165 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
166 hi def link erlangStringModifier Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
167 hi def link erlangQuotedAtomModifier Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
168 hi def link erlangModifier Special |
4780 | 169 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
170 " Operators, separators |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
171 hi def link erlangOperator Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
172 hi def link erlangRightArrow Operator |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
173 if s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
174 hi def link erlangBracket Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
175 hi def link erlangPipe Normal |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
176 else |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
177 hi def link erlangBracket Delimiter |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
178 hi def link erlangPipe Delimiter |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
179 endif |
4780 | 180 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
181 " Atoms, functions, variables, macros |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
182 if s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
183 hi def link erlangAtom Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
184 hi def link erlangLocalFuncCall Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
185 hi def link erlangLocalFuncRef Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
186 hi def link erlangGlobalFuncCall Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
187 hi def link erlangGlobalFuncRef Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
188 hi def link erlangVariable Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
189 hi def link erlangMacro Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
190 hi def link erlangRecord Normal |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
191 else |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
192 hi def link erlangAtom String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
193 hi def link erlangLocalFuncCall Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
194 hi def link erlangLocalFuncRef Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
195 hi def link erlangGlobalFuncCall Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
196 hi def link erlangGlobalFuncRef Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
197 hi def link erlangVariable Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
198 hi def link erlangMacro Macro |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
199 hi def link erlangRecord Structure |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
200 endif |
4780 | 201 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
202 " Bitstrings |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
203 if !s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
204 hi def link erlangBitType Type |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
205 endif |
4780 | 206 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
207 " Constants and Directives |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
208 if s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
209 hi def link erlangAttribute Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
210 hi def link erlangMacroDef Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
211 hi def link erlangUnknownAttribute Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
212 hi def link erlangInclude Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
213 hi def link erlangRecordDef Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
214 hi def link erlangDefine Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
215 hi def link erlangPreCondit Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
216 hi def link erlangType Type |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
217 else |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
218 hi def link erlangAttribute Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
219 hi def link erlangMacroDef Macro |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
220 hi def link erlangUnknownAttribute Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
221 hi def link erlangInclude Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
222 hi def link erlangRecordDef Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
223 hi def link erlangDefine Define |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
224 hi def link erlangPreCondit PreCondit |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
225 hi def link erlangType Type |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
226 endif |
4780 | 227 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
228 " Keywords |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
229 hi def link erlangKeyword Keyword |
4780 | 230 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
231 " Build-in-functions (BIFs) |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
232 hi def link erlangBIF Function |
4437 | 233 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
234 if s:old_style |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
235 hi def link erlangBoolean Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
236 hi def link erlangExtra Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
237 hi def link erlangSignal Statement |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
238 else |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
239 hi def link erlangBoolean Boolean |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
240 hi def link erlangExtra Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
241 hi def link erlangSignal Statement |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5277
diff
changeset
|
242 endif |
4437 | 243 |
244 | |
245 let b:current_syntax = "erlang" | |
246 | |
5277 | 247 let &cpo = s:cpo_save |
248 unlet s:cpo_save | |
249 | |
4437 | 250 " vim: sw=2 et |