Permalink
Browse files

Fix handling of functions without arguments

In case function has no argument then right paranthesis comes right after the left one.  In such cases right paranthesis were handled as any char (regex: . ) so required handling of paranthesis counting was not done
  • Loading branch information...
1 parent 24ffbb7 commit d15eb9689d1d7e92a810314ccd446a47473091f3 @dnsmkl dnsmkl committed Jan 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/fsqlf.lex
View
@@ -135,6 +135,7 @@ SEMICOLON ;
<stP_SUB>{COMMENT_ML_START} { kw_print(yyout,"(",kw_left_p ); PUSH_STATE(stCOMMENTML) ; echo_print(yyout,yytext);};
<stP_SUB>{COMMENT_ONE_LINE} { kw_print(yyout,"(",kw_left_p ); echo_print(yyout,yytext);};
<stP_SUB>{SPACE} { echo_print(yyout,""); };
+<stP_SUB>{RIGHTP} { kw_print(yyout,"(",kw_left_p ); POP_STATE(); kw_print(yyout,yytext,kw_right_p); }
<stP_SUB>. { BEGIN_STATE(peek_stack()); kw_print(yyout,"(",kw_left_p ); echo_print(yyout,yytext); };
{RIGHTP} {

0 comments on commit d15eb96

Please sign in to comment.