Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplified replace logic - thanks to http://softnoise.wordpress.com/2…

  • Loading branch information...
commit d30e626b9de0c866f5aa1f4d4a1f8ba87e2b1cee 1 parent f34843c
@aslakhellesoy aslakhellesoy authored
Showing with 188 additions and 188 deletions.
  1. +4 −4 java/src/main/java/gherkin/lexer/Ar.java
  2. +4 −4 java/src/main/java/gherkin/lexer/Bg.java
  3. +4 −4 java/src/main/java/gherkin/lexer/Bm.java
  4. +4 −4 java/src/main/java/gherkin/lexer/Ca.java
  5. +4 −4 java/src/main/java/gherkin/lexer/Cs.java
  6. +4 −4 java/src/main/java/gherkin/lexer/Cy_gb.java
  7. +4 −4 java/src/main/java/gherkin/lexer/Da.java
  8. +4 −4 java/src/main/java/gherkin/lexer/De.java
  9. +4 −4 java/src/main/java/gherkin/lexer/En.java
  10. +4 −4 java/src/main/java/gherkin/lexer/En_au.java
  11. +4 −4 java/src/main/java/gherkin/lexer/En_lol.java
  12. +4 −4 java/src/main/java/gherkin/lexer/En_pirate.java
  13. +4 −4 java/src/main/java/gherkin/lexer/En_scouse.java
  14. +4 −4 java/src/main/java/gherkin/lexer/En_tx.java
  15. +4 −4 java/src/main/java/gherkin/lexer/Eo.java
  16. +4 −4 java/src/main/java/gherkin/lexer/Es.java
  17. +4 −4 java/src/main/java/gherkin/lexer/Et.java
  18. +4 −4 java/src/main/java/gherkin/lexer/Fi.java
  19. +4 −4 java/src/main/java/gherkin/lexer/Fr.java
  20. +4 −4 java/src/main/java/gherkin/lexer/He.java
  21. +4 −4 java/src/main/java/gherkin/lexer/Hr.java
  22. +4 −4 java/src/main/java/gherkin/lexer/Hu.java
  23. +4 −4 java/src/main/java/gherkin/lexer/Id.java
  24. +4 −4 java/src/main/java/gherkin/lexer/Is.java
  25. +4 −4 java/src/main/java/gherkin/lexer/It.java
  26. +4 −4 java/src/main/java/gherkin/lexer/Ja.java
  27. +4 −4 java/src/main/java/gherkin/lexer/Ko.java
  28. +4 −4 java/src/main/java/gherkin/lexer/Lt.java
  29. +4 −4 java/src/main/java/gherkin/lexer/Lu.java
  30. +4 −4 java/src/main/java/gherkin/lexer/Lv.java
  31. +4 −4 java/src/main/java/gherkin/lexer/Nl.java
  32. +4 −4 java/src/main/java/gherkin/lexer/No.java
  33. +4 −4 java/src/main/java/gherkin/lexer/Pl.java
  34. +4 −4 java/src/main/java/gherkin/lexer/Pt.java
  35. +4 −4 java/src/main/java/gherkin/lexer/Ro.java
  36. +4 −4 java/src/main/java/gherkin/lexer/Ru.java
  37. +4 −4 java/src/main/java/gherkin/lexer/Sk.java
  38. +4 −4 java/src/main/java/gherkin/lexer/Sr_cyrl.java
  39. +4 −4 java/src/main/java/gherkin/lexer/Sr_latn.java
  40. +4 −4 java/src/main/java/gherkin/lexer/Sv.java
  41. +4 −4 java/src/main/java/gherkin/lexer/Tr.java
  42. +4 −4 java/src/main/java/gherkin/lexer/Uk.java
  43. +4 −4 java/src/main/java/gherkin/lexer/Uz.java
  44. +4 −4 java/src/main/java/gherkin/lexer/Vi.java
  45. +4 −4 java/src/main/java/gherkin/lexer/Zh_cn.java
  46. +4 −4 java/src/main/java/gherkin/lexer/Zh_tw.java
  47. +4 −4 ragel/lexer.java.rl.erb
View
8 java/src/main/java/gherkin/lexer/Ar.java
@@ -745,7 +745,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ar.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -865,9 +865,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Bg.java
@@ -882,7 +882,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/bg.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1002,9 +1002,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Bm.java
@@ -713,7 +713,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/bm.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -833,9 +833,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Ca.java
@@ -836,7 +836,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ca.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -956,9 +956,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Cs.java
@@ -741,7 +741,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cs.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -861,9 +861,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Cy_gb.java
@@ -652,7 +652,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/cy_gb.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -772,9 +772,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Da.java
@@ -664,7 +664,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/da.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -784,9 +784,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/De.java
@@ -737,7 +737,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/de.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -857,9 +857,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En.java
@@ -732,7 +732,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -852,9 +852,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En_au.java
@@ -955,7 +955,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en_au.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1075,9 +1075,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En_lol.java
@@ -587,7 +587,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en_lol.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -707,9 +707,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En_pirate.java
@@ -771,7 +771,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en_pirate.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -891,9 +891,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En_scouse.java
@@ -870,7 +870,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en_scouse.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -990,9 +990,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/En_tx.java
@@ -642,7 +642,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/en_tx.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -762,9 +762,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Eo.java
@@ -627,7 +627,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/eo.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -747,9 +747,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Es.java
@@ -724,7 +724,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/es.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -844,9 +844,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Et.java
@@ -622,7 +622,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/et.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -742,9 +742,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Fi.java
@@ -610,7 +610,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/fi.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -730,9 +730,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Fr.java
@@ -778,7 +778,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/fr.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -898,9 +898,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/He.java
@@ -708,7 +708,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/he.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -828,9 +828,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Hr.java
@@ -674,7 +674,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/hr.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -794,9 +794,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Hu.java
@@ -706,7 +706,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/hu.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -826,9 +826,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Id.java
@@ -606,7 +606,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/id.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -726,9 +726,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Is.java
@@ -712,7 +712,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/is.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -832,9 +832,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/It.java
@@ -691,7 +691,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/it.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -811,9 +811,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Ja.java
@@ -911,7 +911,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ja.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1031,9 +1031,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Ko.java
@@ -700,7 +700,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ko.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -820,9 +820,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Lt.java
@@ -658,7 +658,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/lt.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -778,9 +778,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Lu.java
@@ -716,7 +716,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/lu.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -836,9 +836,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Lv.java
@@ -740,7 +740,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/lv.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -860,9 +860,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Nl.java
@@ -704,7 +704,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/nl.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -824,9 +824,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/No.java
@@ -670,7 +670,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/no.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -790,9 +790,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Pl.java
@@ -934,7 +934,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/pl.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1054,9 +1054,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Pt.java
@@ -918,7 +918,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/pt.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1038,9 +1038,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Ro.java
@@ -741,7 +741,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ro.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -861,9 +861,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Ru.java
@@ -1142,7 +1142,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/ru.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1262,9 +1262,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Sk.java
@@ -663,7 +663,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sk.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -783,9 +783,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Sr_cyrl.java
@@ -1168,7 +1168,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_cyrl.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1288,9 +1288,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Sr_latn.java
@@ -828,7 +828,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sr_latn.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -948,9 +948,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Sv.java
@@ -677,7 +677,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/sv.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -797,9 +797,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Tr.java
@@ -692,7 +692,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -812,9 +812,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Uk.java
@@ -1060,7 +1060,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/uk.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1180,9 +1180,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Uz.java
@@ -883,7 +883,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/uz.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -1003,9 +1003,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Vi.java
@@ -760,7 +760,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/vi.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -880,9 +880,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Zh_cn.java
@@ -668,7 +668,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/zh_cn.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -788,9 +788,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 java/src/main/java/gherkin/lexer/Zh_tw.java
@@ -667,7 +667,7 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/zh_tw.java.rl"
{
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -787,9 +787,9 @@ else if ( data[p] > _lexer_trans_keys[_mid+1] )
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
break;
View
8 ragel/lexer.java.rl.erb
@@ -39,7 +39,7 @@ public class <%= @i18n.underscored_iso_code.capitalize %> implements Lexer {
}
action store_docstring_content {
- String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replaceAll("\\\\\"\\\\\"\\\\\"", "\"\"\""));
+ String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
@@ -127,9 +127,9 @@ public class <%= @i18n.underscored_iso_code.capitalize %> implements Lexer {
action store_cell_content {
String con = substring(data, contentStart, p).trim();
currentRow.add(con
- .replaceAll("\\\\\\|", "|")
- .replaceAll("\\\\n", "\n")
- .replaceAll("\\\\\\\\", "\\\\")
+ .replace("\\|", "|")
+ .replace("\\n", "\n")
+ .replace("\\\\", "\\")
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.