enhanced the tokenization code to check for hash-marked directives better

This commit is contained in:
2022-07-24 00:49:03 +00:00
parent 5abe10668b
commit f99841442a
2 changed files with 60 additions and 24 deletions

View File

@ -195,7 +195,8 @@ enum hcl_iotok_type_t
HCL_IOTOK_VBAR, /* | */
HCL_IOTOK_EOL, /* end of line */
HCL_IOTOK_INCLUDE
HCL_IOTOK_INCLUDE,
HCL_IOTOK_PRAGMA
};
typedef enum hcl_iotok_type_t hcl_iotok_type_t;
@ -556,8 +557,8 @@ struct hcl_flx_hn_t
int radix;
/* state data */
int invalid;
hcl_oow_t digit_count;
hcl_oow_t invalid_digit_count;
};
typedef struct hcl_flx_qt_t hcl_flx_qt_t; /* quoted token */