Skip to content

Commit

Permalink
fix directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellipse0934 committed Jan 21, 2022
1 parent 89f3e3d commit 64f6123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ directives = ["address_size", "align", "branchtargets", "callprototype",
"minnctapersm", "param", "pragma", "reg", "reqntid", "section",
"shared", "sreg", "target", "tex", "version", "visible", "weak"]

r_directive = join(directives, "|")
r_directive = "(?:.(?:" * join(directives, "|") * "))"


r_hex = "0[xX][A-F]+U?"
Expand Down Expand Up @@ -121,7 +121,7 @@ r_label = "[\\w_]+:"
r_comment = "//"
r_unknown = "[^\\s]*"

r_line = "(?:(?:.$r_directive)|(?:$r_instruction)|(?:$r_register)|(?:$r_number)|(?:$r_label)|(?:$r_guard_predicate)|(?:$r_comment)|(?:$r_identifier)|(?:$r_unknown))"
r_line = "(?:(?:$r_directive)|(?:$r_instruction)|(?:$r_register)|(?:$r_number)|(?:$r_label)|(?:$r_guard_predicate)|(?:$r_comment)|(?:$r_identifier)|(?:$r_unknown))"

get_token(n::Nothing) = nothing, nothing, nothing

Expand Down

0 comments on commit 64f6123

Please sign in to comment.