c8bdb9cf2b944e1b761f9a40f1b17477ad4429fe
[debian/jabref.git] / debian / patches / 05_antlr.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 05_antlr.dpatch by  <gregor+debian@comodo.priv.at>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: antlr3 in debian is newer than the beta release used by jabref.
6
7 @DPATCH@
8 diff -urNad jabref-2.3~/src/java/net/sf/jabref/bst/BstLexer.java jabref-2.3/src/java/net/sf/jabref/bst/BstLexer.java
9 --- jabref-2.3~/src/java/net/sf/jabref/bst/BstLexer.java        2008-04-12 22:45:05.000000000 +0200
10 +++ jabref-2.3/src/java/net/sf/jabref/bst/BstLexer.java 2008-04-12 22:59:37.000000000 +0200
11 @@ -45,6 +45,8 @@
12          super(input);
13      }
14      public String getGrammarFileName() { return "Bst.g"; }
15 +    
16 +    int ruleNestingLevel = 0;
17  
18      // $ANTLR start T25
19      public void mT25() throws RecognitionException {
20 @@ -65,7 +67,7 @@
21  
22  
23                      if ( token==null && ruleNestingLevel==1 ) {
24 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
25 +                        emit();
26                      }
27  
28                          }
29 @@ -94,7 +96,7 @@
30  
31  
32                      if ( token==null && ruleNestingLevel==1 ) {
33 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
34 +                        emit();
35                      }
36  
37                          }
38 @@ -123,7 +125,7 @@
39  
40  
41                      if ( token==null && ruleNestingLevel==1 ) {
42 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
43 +                        emit();
44                      }
45  
46                          }
47 @@ -152,7 +154,7 @@
48  
49  
50                      if ( token==null && ruleNestingLevel==1 ) {
51 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
52 +                        emit();
53                      }
54  
55                          }
56 @@ -181,7 +183,7 @@
57  
58  
59                      if ( token==null && ruleNestingLevel==1 ) {
60 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
61 +                        emit();
62                      }
63  
64                          }
65 @@ -210,7 +212,7 @@
66  
67  
68                      if ( token==null && ruleNestingLevel==1 ) {
69 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
70 +                        emit();
71                      }
72  
73                          }
74 @@ -239,7 +241,7 @@
75  
76  
77                      if ( token==null && ruleNestingLevel==1 ) {
78 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
79 +                        emit();
80                      }
81  
82                          }
83 @@ -269,7 +271,7 @@
84  
85  
86                      if ( token==null && ruleNestingLevel==1 ) {
87 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
88 +                        emit();
89                      }
90  
91                          }
92 @@ -298,7 +300,7 @@
93  
94  
95                      if ( token==null && ruleNestingLevel==1 ) {
96 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
97 +                        emit();
98                      }
99  
100                          }
101 @@ -328,7 +330,7 @@
102  
103  
104                      if ( token==null && ruleNestingLevel==1 ) {
105 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
106 +                        emit();
107                      }
108  
109                          }
110 @@ -358,7 +360,7 @@
111  
112  
113                      if ( token==null && ruleNestingLevel==1 ) {
114 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
115 +                        emit();
116                      }
117  
118                          }
119 @@ -388,7 +390,7 @@
120  
121  
122                      if ( token==null && ruleNestingLevel==1 ) {
123 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
124 +                        emit();
125                      }
126  
127                          }
128 @@ -418,7 +420,7 @@
129  
130  
131                      if ( token==null && ruleNestingLevel==1 ) {
132 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
133 +                        emit();
134                      }
135  
136                          }
137 @@ -448,7 +450,7 @@
138  
139  
140                      if ( token==null && ruleNestingLevel==1 ) {
141 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
142 +                        emit();
143                      }
144  
145                          }
146 @@ -478,7 +480,7 @@
147  
148  
149                      if ( token==null && ruleNestingLevel==1 ) {
150 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
151 +                        emit();
152                      }
153  
154                          }
155 @@ -508,7 +510,7 @@
156  
157  
158                      if ( token==null && ruleNestingLevel==1 ) {
159 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
160 +                        emit();
161                      }
162  
163                          }
164 @@ -538,7 +540,7 @@
165  
166  
167                      if ( token==null && ruleNestingLevel==1 ) {
168 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
169 +                        emit();
170                      }
171  
172                          }
173 @@ -568,7 +570,7 @@
174  
175  
176                      if ( token==null && ruleNestingLevel==1 ) {
177 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
178 +                        emit();
179                      }
180  
181                          }
182 @@ -598,7 +600,7 @@
183  
184  
185                      if ( token==null && ruleNestingLevel==1 ) {
186 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
187 +                        emit();
188                      }
189  
190                          }
191 @@ -628,7 +630,7 @@
192  
193  
194                      if ( token==null && ruleNestingLevel==1 ) {
195 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
196 +                        emit();
197                      }
198  
199                          }
200 @@ -691,7 +693,7 @@
201  
202  
203                      if ( token==null && ruleNestingLevel==1 ) {
204 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
205 +                        emit();
206                      }
207  
208                          }
209 @@ -781,7 +783,7 @@
210  
211  
212                      if ( token==null && ruleNestingLevel==1 ) {
213 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
214 +                        emit();
215                      }
216  
217                          }
218 @@ -865,7 +867,7 @@
219  
220  
221                      if ( token==null && ruleNestingLevel==1 ) {
222 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
223 +                        emit();
224                      }
225  
226                          }
227 @@ -956,7 +958,7 @@
228  
229  
230                      if ( token==null && ruleNestingLevel==1 ) {
231 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
232 +                        emit();
233                      }
234  
235                          }
236 @@ -1037,7 +1039,7 @@
237  
238  
239                      if ( token==null && ruleNestingLevel==1 ) {
240 -                        emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1);
241 +                        emit();
242                      }
243  
244                          }
245 @@ -1656,4 +1658,4 @@
246  
247   
248  
249 -}
250 \ No newline at end of file
251 +}