[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/appserver/src/_featuretest OdlLexer.py
From: |
Daniel E. Baumann |
Subject: |
gnue/appserver/src/_featuretest OdlLexer.py |
Date: |
Mon, 16 Sep 2002 01:39:46 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Daniel E. Baumann <address@hidden> 02/09/16 01:39:46
Modified files:
appserver/src/_featuretest: OdlLexer.py
Log message:
Fix it so we now match and ignore c++-style one line comments.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/appserver/src/_featuretest/OdlLexer.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/appserver/src/_featuretest/OdlLexer.py
diff -c gnue/appserver/src/_featuretest/OdlLexer.py:1.1
gnue/appserver/src/_featuretest/OdlLexer.py:1.2
*** gnue/appserver/src/_featuretest/OdlLexer.py:1.1 Mon Sep 16 00:47:12 2002
--- gnue/appserver/src/_featuretest/OdlLexer.py Mon Sep 16 01:39:46 2002
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: OdlLexer.py,v 1.1 2002/09/16 04:47:12 baumannd Exp $
import lex
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: OdlLexer.py,v 1.2 2002/09/16 05:39:46 baumannd Exp $
import lex
***************
*** 80,86 ****
return t;
def t_comment_single_line(t):
! r'//.*$'
print "found single line comment"
t.lineno += t.value.count('\n')
--- 80,86 ----
return t;
def t_comment_single_line(t):
! r'//.*'
print "found single line comment"
t.lineno += t.value.count('\n')
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/appserver/src/_featuretest OdlLexer.py,
Daniel E. Baumann <=