| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b61fc91 commit c1ec2e7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,28 +47,29 @@ | |||
| 47 | 47 | <property name="uuc" value="@SuppressWarnings({ "unused", "unchecked", "cast" })${line.separator}" /> | |
| 48 | 48 | <property name="uc" value="@SuppressWarnings({ "unused", "cast" })${line.separator}" /> | |
| 49 | 49 | ||
| 50 | + <!-- need to match against the previous line so that we don't re-add --> | ||
| 50 | 51 | <replaceregexp | |
| 51 | 52 | file="generated/processing/mode/java/preproc/JavaLexer.java" | |
| 52 | - match="(public class JavaLexer .*)" | ||
| 53 | - replace="${uuc}\1"> | ||
| 53 | + match="(\n\n)(public class JavaLexer .*)" | ||
| 54 | + replace="\1${uuc}\2"> | ||
| 54 | 55 | </replaceregexp> | |
| 55 | 56 | ||
| 56 | 57 | <replaceregexp | |
| 57 | 58 | file="generated/processing/mode/java/preproc/JavaRecognizer.java" | |
| 58 | - match="(public class JavaRecognizer .*)" | ||
| 59 | - replace="${uc}\1"> | ||
| 59 | + match="(\*/\n)(public class JavaRecognizer .*)" | ||
| 60 | + replace="\1${uc}\2"> | ||
| 60 | 61 | </replaceregexp> | |
| 61 | 62 | ||
| 62 | 63 | <replaceregexp | |
| 63 | 64 | file="generated/processing/mode/java/preproc/PdeLexer.java" | |
| 64 | - match="(public class PdeLexer .*)" | ||
| 65 | - replace="${uuc}\1"> | ||
| 65 | + match="(\n\n)(public class PdeLexer .*)" | ||
| 66 | + replace="\1${uuc}\2"> | ||
| 66 | 67 | </replaceregexp> | |
| 67 | 68 | ||
| 68 | 69 | <replaceregexp | |
| 69 | 70 | file="generated/processing/mode/java/preproc/PdeRecognizer.java" | |
| 70 | - match="(public class PdeRecognizer .*)" | ||
| 71 | - replace="${uc}\1"> | ||
| 71 | + match="(\n\n)(public class PdeRecognizer .*)" | ||
| 72 | + replace="\1${uc}\2"> | ||
| 72 | 73 | </replaceregexp> | |
| 73 | 74 | <!-- end of workaround for old antlr --> | |
| 74 | 75 | </target> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments