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"])*>
| <"/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/">
}