You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ga...@apache.org on 2008/11/14 18:54:43 UTC
svn commit: r714084 -
/hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj
Author: gates
Date: Fri Nov 14 09:54:42 2008
New Revision: 714084
URL: http://svn.apache.org/viewvc?rev=714084&view=rev
Log:
PIG-519. Add #! as a comment operator so that scripts can be read directly in unix without the need to invoke the pig command. Contributed by Ian Holsman.
Modified:
hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj
Modified: hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj
URL: http://svn.apache.org/viewvc/hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj?rev=714084&r1=714083&r2=714084&view=diff
==============================================================================
--- hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj (original)
+++ hadoop/pig/branches/types/src/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj Fri Nov 14 09:54:42 2008
@@ -115,6 +115,7 @@
// Skip comments(single line and multiline)
SKIP : {
<"--"(~["\r","\n"])*>
+| <"#!" (~["\r","\n"])*>
| <"/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/">
}