mirror of
https://github.com/nasa/trick.git
synced 2025-04-12 21:53:03 +00:00
Updated not to process *io as for io(<io_spec>). (#1828)
* Update FieldDescription.cpp Updated not to process *io as for io(<io_spec>). * Revert "Update FieldDescription.cpp" This reverts commit 288cb44f03f0610ec5e4bcce8d6be17801b2f4c7. * Updated the pattern so that it matches "io" or "@io" but "*io". Updated the pattern so that it matches "io" or "@io" but "*io".
This commit is contained in:
parent
db998604cd
commit
525f09ecc0
@ -163,13 +163,13 @@ void FieldDescription::parseComment(std::string comment) {
|
||||
comment = get_regex_field(comment , "(.*)@?trick_io[\\({]([^\\)}]+)[\\)}]" , 1) +
|
||||
get_regex_field(comment , "@?trick_io[\\({]([^\\)}]+)[\\)}](.*)" , 2) ;
|
||||
}
|
||||
ret_str = get_regex_field(comment , "@?io[\\({]([^\\)}]+)[\\)}]" , 1) ;
|
||||
ret_str = get_regex_field(comment , "(^|[^*])@?io[\\({]([^\\)}]+)[\\)}]" , 2) ;
|
||||
if ( ! ret_str.empty()) {
|
||||
io = io_map[ret_str] ;
|
||||
if(debug_level >= 4) std::cout << "go for io " << io << std::endl ;
|
||||
io_found = true ;
|
||||
comment = get_regex_field(comment , "(.*)@?io[\\({]([^\\)}]+)[\\)}]" , 1) +
|
||||
get_regex_field(comment , "@?io[\\({]([^\\)}]+)[\\)}](.*)" , 2) ;
|
||||
comment = get_regex_field(comment , "(.*)(^|[^*])@?io[\\({]([^\\)}]+)[\\)}]" , 1) +
|
||||
get_regex_field(comment , "(^|[^*])@?io[\\({]([^\\)}]+)[\\)}](.*)" , 3) ;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user