aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/map.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-02-23 23:32:21 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2016-02-23 23:32:21 +0100
commitb10c9b4f5b28a50c752ddadc8dc4319546c9d039 (patch)
tree2c544bc2c01abea43f59e9a48598f3d74df45760 /src/nvim/map.h
parent18605d678517ca7347a8fae234e5f39f79fb6904 (diff)
parent2a4ea9a54674b642c39fc0745c7feca11f14ec46 (diff)
downloadrneovim-b10c9b4f5b28a50c752ddadc8dc4319546c9d039.tar.gz
rneovim-b10c9b4f5b28a50c752ddadc8dc4319546c9d039.tar.bz2
rneovim-b10c9b4f5b28a50c752ddadc8dc4319546c9d039.zip
Merge pull request #1817 from bfredl/bufmatch
support buffer-associated highlighting by external plugins
Diffstat (limited to 'src/nvim/map.h')
-rw-r--r--src/nvim/map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/map.h b/src/nvim/map.h
index c0e2ca3aac..e90cc360ce 100644
--- a/src/nvim/map.h
+++ b/src/nvim/map.h
@@ -6,6 +6,7 @@
#include "nvim/map_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/msgpack_rpc/defs.h"
+#include "nvim/bufhl_defs.h"
#define MAP_DECLS(T, U) \
KHASH_DECLARE(T##_##U##_map, T, U) \
@@ -19,6 +20,7 @@
U map_##T##_##U##_get(Map(T, U) *map, T key); \
bool map_##T##_##U##_has(Map(T, U) *map, T key); \
U map_##T##_##U##_put(Map(T, U) *map, T key, U value); \
+ U *map_##T##_##U##_ref(Map(T, U) *map, T key, bool put); \
U map_##T##_##U##_del(Map(T, U) *map, T key); \
void map_##T##_##U##_clear(Map(T, U) *map);
@@ -28,12 +30,14 @@ MAP_DECLS(cstr_t, ptr_t)
MAP_DECLS(ptr_t, ptr_t)
MAP_DECLS(uint64_t, ptr_t)
MAP_DECLS(String, MsgpackRpcRequestHandler)
+MAP_DECLS(linenr_T, bufhl_vec_T)
#define map_new(T, U) map_##T##_##U##_new
#define map_free(T, U) map_##T##_##U##_free
#define map_get(T, U) map_##T##_##U##_get
#define map_has(T, U) map_##T##_##U##_has
#define map_put(T, U) map_##T##_##U##_put
+#define map_ref(T, U) map_##T##_##U##_ref
#define map_del(T, U) map_##T##_##U##_del
#define map_clear(T, U) map_##T##_##U##_clear