Author: hibou
Date: Sun Jun 24 14:10:21 2012
New Revision: 1353269
URL: http://svn.apache.org/viewvc?rev=1353269&view=rev
Log:
Use '#' for doc, '@' might be more usefull in macro
Modified:
ant/sandbox/antdsl/doc/index.html
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDSL.xtext
ant/sandbox/antdsl/test/build.ant
Modified: ant/sandbox/antdsl/doc/index.html
URL:
http://svn.apache.org/viewvc/ant/sandbox/antdsl/doc/index.html?rev=1353269&r1=1353268&r2=1353269&view=diff
==============================================================================
--- ant/sandbox/antdsl/doc/index.html (original)
+++ ant/sandbox/antdsl/doc/index.html Sun Jun 24 14:10:21 2012
@@ -29,7 +29,7 @@ namespaces {
echo(message="${foo}")
}
-@ Some documentation of the macro
+# Some documentation of the macro
macrodef mymacro(arg t = "mymacro")
{
echo(message = "@{t}")
@@ -52,8 +52,8 @@ target notexecuted
echo(message = "must not be printed")
}
-@ description of the target
-@ which is on a multiline
+# description of the target
+# which is on a multiline
target build
depends dep, notexecuted
{
Modified:
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
URL:
http://svn.apache.org/viewvc/ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g?rev=1353269&r1=1353268&r2=1353269&view=diff
==============================================================================
--- ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
(original)
+++ ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
Sun Jun 24 14:10:21 2012
@@ -734,7 +734,7 @@ doc returns [String s]:
;
Doc:
- ( '@' ~('\n'|'\r')* '\r'? '\n' )+
+ ( '#' ~('\n'|'\r')* '\r'? '\n' )+
;
ML_COMMENT:
Modified:
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDSL.xtext
URL:
http://svn.apache.org/viewvc/ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDSL.xtext?rev=1353269&r1=1353268&r2=1353269&view=diff
==============================================================================
---
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDSL.xtext
(original)
+++
ant/sandbox/antdsl/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDSL.xtext
Sun Jun 24 14:10:21 2012
@@ -398,7 +398,7 @@ terminal VARIABLE:
;
terminal DOC:
- ( '@' !('\n'|'\r')* '\r'? '\n' )+
+ ( '#' !('\n'|'\r')* '\r'? '\n' )+
;
terminal ML_COMMENT:
Modified: ant/sandbox/antdsl/test/build.ant
URL:
http://svn.apache.org/viewvc/ant/sandbox/antdsl/test/build.ant?rev=1353269&r1=1353268&r2=1353269&view=diff
==============================================================================
--- ant/sandbox/antdsl/test/build.ant (original)
+++ ant/sandbox/antdsl/test/build.ant Sun Jun 24 14:10:21 2012
@@ -10,7 +10,7 @@ namespaces {
echo(message="${foo}")
}
-@ Some documentation of the macro
+# Some documentation of the macro
macrodef mymacro(arg t = "mymacro")
{
echo(message = "@{t}")
@@ -33,8 +33,8 @@ target notexecuted
echo(message = "must not be printed")
}
-@ description of the target
-@ which is on a multiline
+# description of the target
+# which is on a multiline
target build
depends dep, notexecuted
{