Rename TreeOptionsWrapper -> TreeOptionsSingleton

This commit is contained in:
Max Brunsfeld 2015-08-16 10:32:12 -07:00
parent b853e0f2eb
commit 553ef6674f
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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) {