5
This catches a comma that is followed by another character than a space, for
6
example "a,b,c", which should be "a, b, c". It is a little complex because it
7
should not catch commas in string constants or character constants.
10
error_msg = "A space is mandatory after ','."
12
strip_comments_and_strings = True
13
regexp = r""",[^\s]"""
17
"do_something('\t','u')",
18
'do_something("\t","u")',
21
## missing_space_after_comma.cc
22
"float __,_,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;",
23
"float ____,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z;",
24
"float XX = ff(_,0,1,2,3,4);",
25
"float YY = ff(_,5,6,7,8,9);",
29
'''do_something(",", ',')''',
30
'/* We,are inside a comment,*/',
31
'// This is,a comment too',
34
## missing_space_after_comma.cc
35
'float ff(float, float, float, float, float, float);',