diff options
Diffstat (limited to 'pbx/ael/ael.flex')
-rw-r--r-- | pbx/ael/ael.flex | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index f773dd4e9..1c4722e9b 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -26,7 +26,7 @@ * * %x describes the contexts we have: paren, semic and argg, plus INITIAL */ -%x paren semic argg +%x paren semic argg comment /* prefix used for various globally-visible functions and variables. * This renames also yywrap, but since we do not use it, we just @@ -211,6 +211,13 @@ catch { STORE_POS; return KW_CATCH;} switches { STORE_POS; return KW_SWITCHES;} eswitches { STORE_POS; return KW_ESWITCHES;} includes { STORE_POS; return KW_INCLUDES;} +"/*" { BEGIN(comment); my_col += 2; } + +<comment>[^*\n]* { my_col += yyleng; } +<comment>[^*\n]*\n { ++my_lineno; my_col=1;} +<comment>"*"+[^*/\n]* { my_col += yyleng; } +<comment>"*"+[^*/\n]*\n { ++my_lineno; my_col=1;} +<comment>"*/" { my_col += 2; BEGIN(INITIAL); } \n { my_lineno++; my_col = 1; } [ ]+ { my_col += yyleng; } |