diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex index 56e90c79d..51de21223 100644 --- a/ivlpp/lexor.lex +++ b/ivlpp/lexor.lex @@ -1,7 +1,7 @@ %option prefix="yy" %{ /* - * Copyright (c) 1999-2016 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2020 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -575,7 +575,7 @@ keywords (include|define|undef|ifdef|ifndef|else|elseif|endif) {W} { macro_add_to_arg(1); } -"(" { macro_add_to_arg(0); ma_parenthesis_level++; } +[({] { macro_add_to_arg(0); ma_parenthesis_level++; } "," { if (ma_parenthesis_level > 0) @@ -584,7 +584,7 @@ keywords (include|define|undef|ifdef|ifndef|else|elseif|endif) macro_finish_arg(); } -")" { +[)}] { if (ma_parenthesis_level > 0) { macro_add_to_arg(0); ma_parenthesis_level--;