Skip to content

Commit

Permalink
[enhance] plugins: Allow paren to encapsulate the register type
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Jan 7, 2013
1 parent 346b780 commit 84946a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/libbsl/bslJsParse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ let extract_end_module =

let extract_register implementation =
let re = Str.regexp (
"^{\\([^}]*\\)}" ^ (* Type between brackets *)
"^[{(]\\([^}]*\\)[)}]" ^ (* Type between brackets or paren *)
"\\([ \t]+[a-zA-Z][a-zA-Z0-9_]*\\)?[ \t]*" ^ (* Optional bypass name *)
"\\([^ \t]+\\)?[ \t]*$" (* Optional source code *)
) in
Expand Down

0 comments on commit 84946a4

Please sign in to comment.