From 2ab64959d83ed2793d71ab3fa03b8ebdd4925902 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2007 22:38:47 +0000 Subject: Figured I might as well add single-line comments to taf, it now supports // style comments. --- src/tafnode.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/tafnode.cpp') diff --git a/src/tafnode.cpp b/src/tafnode.cpp index c04455b..ec51535 100644 --- a/src/tafnode.cpp +++ b/src/tafnode.cpp @@ -141,9 +141,10 @@ const Bu::FString &Bu::TafProperty::getValue() const return sValue; } -Bu::TafComment::TafComment( const Bu::FString &sText ) : +Bu::TafComment::TafComment( const Bu::FString &sText, bool bEOL ) : TafNode( typeComment ), - sText( sText ) + sText( sText ), + bEOL( bEOL ) { } @@ -156,3 +157,8 @@ const Bu::FString &Bu::TafComment::getText() const return sText; } +bool Bu::TafComment::isEOLStyle() const +{ + return bEOL; +} + -- cgit v1.2.3