aboutsummaryrefslogtreecommitdiff
path: root/src/tafnode.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-11-09 22:38:47 +0000
committerMike Buland <eichlan@xagasoft.com>2007-11-09 22:38:47 +0000
commit2ab64959d83ed2793d71ab3fa03b8ebdd4925902 (patch)
tree5417aeff1cadeb36793cfee3bc0733b2b6c77f44 /src/tafnode.cpp
parentbb9c0dc8dd2c852d9b6e89b9fd883232019cea93 (diff)
downloadlibbu++-2ab64959d83ed2793d71ab3fa03b8ebdd4925902.tar.gz
libbu++-2ab64959d83ed2793d71ab3fa03b8ebdd4925902.tar.bz2
libbu++-2ab64959d83ed2793d71ab3fa03b8ebdd4925902.tar.xz
libbu++-2ab64959d83ed2793d71ab3fa03b8ebdd4925902.zip
Figured I might as well add single-line comments to taf, it now supports //
style comments.
Diffstat (limited to 'src/tafnode.cpp')
-rw-r--r--src/tafnode.cpp10
1 files changed, 8 insertions, 2 deletions
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
141 return sValue; 141 return sValue;
142} 142}
143 143
144Bu::TafComment::TafComment( const Bu::FString &sText ) : 144Bu::TafComment::TafComment( const Bu::FString &sText, bool bEOL ) :
145 TafNode( typeComment ), 145 TafNode( typeComment ),
146 sText( sText ) 146 sText( sText ),
147 bEOL( bEOL )
147{ 148{
148} 149}
149 150
@@ -156,3 +157,8 @@ const Bu::FString &Bu::TafComment::getText() const
156 return sText; 157 return sText;
157} 158}
158 159
160bool Bu::TafComment::isEOLStyle() const
161{
162 return bEOL;
163}
164