From 553ef6674f590b399e638db49b55f806e480f8ce Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 16 Aug 2015 10:32:12 -0700 Subject: [PATCH] Rename TreeOptionsWrapper -> TreeOptionsSingleton --- src/runtime/tree.c | 2 +- src/runtime/tree.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/tree.c b/src/runtime/tree.c index 205f0219..6767cd0d 100644 --- a/src/runtime/tree.c +++ b/src/runtime/tree.c @@ -69,7 +69,7 @@ TSTree *ts_tree_make_node(TSSymbol symbol, size_t child_count, options |= TSTreeOptionsHidden; if (child_count == 1 && symbol != ts_builtin_sym_document && (ts_tree_is_visible(children[0]) || ts_tree_is_wrapper(children[0]))) - options |= (TSTreeOptionsWrapper | TSTreeOptionsHidden); + options |= (TSTreeOptionsSingleton | TSTreeOptionsHidden); if (child_count > 0) { if (ts_tree_is_fragile_left(children[0])) options |= (TSTreeOptionsFragileLeft); diff --git a/src/runtime/tree.h b/src/runtime/tree.h index 9b463ed8..a3491d05 100644 --- a/src/runtime/tree.h +++ b/src/runtime/tree.h @@ -11,7 +11,7 @@ extern "C" { typedef enum { TSTreeOptionsHidden = 1 << 0, TSTreeOptionsExtra = 1 << 1, - TSTreeOptionsWrapper = 1 << 2, + TSTreeOptionsSingleton = 1 << 2, TSTreeOptionsFragileLeft = 1 << 3, TSTreeOptionsFragileRight = 1 << 4, } TSTreeOptions; @@ -48,7 +48,7 @@ static inline bool ts_tree_is_visible(const TSTree *tree) { } static inline bool ts_tree_is_wrapper(const TSTree *tree) { - return !!(tree->options & TSTreeOptionsWrapper); + return !!(tree->options & TSTreeOptionsSingleton); } static inline void ts_tree_set_options(TSTree *tree, TSTreeOptions options) {