aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-08 00:23:14 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-08 00:23:14 +0100
commitc6d02e4778486c350a732105b6413ba1d32a234a (patch)
tree5b1dd564dd1e9c96dcf237cc06b3a09fba8854b2 /src/parser.cpp
parent3d02f8a5fdcd18f08083994a51ac9518fc565f79 (diff)
Fix missing `type_info` with manual linear search
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index e0902d795..ec741ce1e 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -62,6 +62,7 @@ enum ProcTag {
ProcTag_foreign = GB_BIT(0),
ProcTag_inline = GB_BIT(1),
ProcTag_no_inline = GB_BIT(2),
+ ProcTag_pure = GB_BIT(3),
};
enum VarDeclTag {
@@ -1157,6 +1158,8 @@ void parse_proc_tags(AstFile *f, u64 *tags, String *foreign_name) {
check_proc_add_tag(f, tag_expr, tags, ProcTag_inline, tag_name);
} else if (are_strings_equal(tag_name, make_string("no_inline"))) {
check_proc_add_tag(f, tag_expr, tags, ProcTag_no_inline, tag_name);
+ } else if (are_strings_equal(tag_name, make_string("pure"))) {
+ check_proc_add_tag(f, tag_expr, tags, ProcTag_pure, tag_name);
} else {
ast_file_err(f, ast_node_token(tag_expr), "Unknown procedure tag");
}