@@ -210,8 +210,8 @@ def _make_tok_location(self, token):
210210 bad_octal_constant = '0[0-7]*[89]'
211211
212212 # comments are not supported
213- unsupported_c89_comment = r'\/\/ '
214- unsupported_c99_comment = r'\/\* '
213+ unsupported_c_style_comment = r'\/\* '
214+ unsupported_cxx_style_comment = r'\/\/ '
215215
216216 # character constants (K&R2: A.2.5.2)
217217 # Note: a-zA-Z and '.-~^_!=&;,' are allowed as escape chars to support #line
@@ -479,14 +479,14 @@ def t_BAD_CONST_OCT(self, t):
479479 msg = "Invalid octal constant"
480480 self ._error (msg , t )
481481
482- @TOKEN (unsupported_c89_comment )
483- def t_UNSUPPORTED_C89_COMMENT (self , t ):
484- msg = "Comments are not supported (note: GCC's cpp removes comments, Clang's cpp does not) ."
482+ @TOKEN (unsupported_c_style_comment )
483+ def t_UNSUPPORTED_C_STYLE_COMMENT (self , t ):
484+ msg = "Comments are not supported, see https://github.com/eliben/pycparser#3using ."
485485 self ._error (msg , t )
486486
487- @TOKEN (unsupported_c99_comment )
488- def t_UNSUPPORTED_C99_COMMENT (self , t ):
489- msg = "Comments are not supported (note: GCC's cpp removes comments, Clang's cpp does not) ."
487+ @TOKEN (unsupported_cxx_style_comment )
488+ def t_UNSUPPORTED_CXX_STYLE_COMMENT (self , t ):
489+ msg = "Comments are not supported, see https://github.com/eliben/pycparser#3using ."
490490 self ._error (msg , t )
491491
492492 @TOKEN (octal_constant )
0 commit comments