We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189dad6 commit ec66febCopy full SHA for ec66feb
templates/include/prism/ast.h.erb
@@ -55,7 +55,7 @@ typedef uint16_t pm_node_flags_t;
55
#define PM_NODE_FLAG_BITS (sizeof(pm_node_flags_t) * 8)
56
static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = (1 << (PM_NODE_FLAG_BITS - 1));
57
static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = (1 << (PM_NODE_FLAG_BITS - 2));
58
-static const pm_node_flags_t PM_NODE_FLAG_COMMON_MASK = PM_NODE_FLAG_NEWLINE | PM_NODE_FLAG_STATIC_LITERAL;
+static const pm_node_flags_t PM_NODE_FLAG_COMMON_MASK = (1 << (PM_NODE_FLAG_BITS - 1)) | (1 << (PM_NODE_FLAG_BITS - 2));
59
60
// For easy access, we define some macros to check node type
61
#define PM_NODE_TYPE(node) ((enum pm_node_type)node->type)
0 commit comments