gherkin 2.11.6 → 2.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +0 -1
- data/Gemfile +1 -1
- data/History.md +13 -0
- data/README.md +10 -4
- data/examples/parse_and_output_json.rb +2 -2
- data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +494 -494
- data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +30 -30
- data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +30 -30
- data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +30 -30
- data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +30 -30
- data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +30 -30
- data/ext/gherkin_lexer_da/gherkin_lexer_da.c +30 -30
- data/ext/gherkin_lexer_de/gherkin_lexer_de.c +30 -30
- data/ext/gherkin_lexer_el/extconf.rb +6 -0
- data/ext/gherkin_lexer_el/gherkin_lexer_el.c +1977 -0
- data/ext/gherkin_lexer_en/gherkin_lexer_en.c +30 -30
- data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +30 -30
- data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +30 -30
- data/ext/gherkin_lexer_en_old/extconf.rb +6 -0
- data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +1309 -0
- data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +30 -30
- data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +30 -30
- data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +30 -30
- data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +30 -30
- data/ext/gherkin_lexer_es/gherkin_lexer_es.c +30 -30
- data/ext/gherkin_lexer_et/gherkin_lexer_et.c +30 -30
- data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +30 -30
- data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +30 -30
- data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +30 -30
- data/ext/gherkin_lexer_he/gherkin_lexer_he.c +30 -30
- data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +30 -30
- data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +30 -30
- data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +30 -30
- data/ext/gherkin_lexer_id/gherkin_lexer_id.c +30 -30
- data/ext/gherkin_lexer_is/gherkin_lexer_is.c +30 -30
- data/ext/gherkin_lexer_it/gherkin_lexer_it.c +30 -30
- data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +30 -30
- data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +30 -30
- data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +30 -30
- data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +30 -30
- data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +30 -30
- data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +30 -30
- data/ext/gherkin_lexer_no/gherkin_lexer_no.c +30 -30
- data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +30 -30
- data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +30 -30
- data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +30 -30
- data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +30 -30
- data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +30 -30
- data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +30 -30
- data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +617 -614
- data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +30 -30
- data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +30 -30
- data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +30 -30
- data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +30 -30
- data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +30 -30
- data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +622 -614
- data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +30 -30
- data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +30 -30
- data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +30 -30
- data/features/.cucumber/stepdefs.json +66 -66
- data/features/step_definitions/json_formatter_steps.rb +4 -4
- data/features/step_definitions/json_parser_steps.rb +2 -1
- data/features/support/env.rb +2 -3
- data/gherkin.gemspec +8 -6
- data/lib/gherkin/formatter/json_formatter.rb +5 -5
- data/lib/gherkin/formatter/tag_filter.rb +2 -2
- data/lib/gherkin/i18n.json +28 -0
- data/lib/gherkin/i18n.rb +6 -6
- data/lib/gherkin/json_parser.rb +4 -4
- data/lib/gherkin/native/java.rb +2 -2
- data/lib/gherkin/parser/parser.rb +1 -0
- data/lib/gherkin/platform.rb +12 -0
- data/lib/gherkin/tag_expression.rb +7 -1
- data/spec/gherkin/formatter/json_formatter_spec.rb +74 -3
- data/spec/gherkin/i18n_spec.rb +2 -0
- data/spec/gherkin/json_parser_spec.rb +11 -10
- data/spec/gherkin/parser/parser_spec.rb +1 -1
- data/spec/gherkin/tag_expression_spec.rb +19 -15
- data/spec/spec_helper.rb +4 -1
- data/tasks/rspec.rake +1 -2
- metadata +139 -226
- data/lib/gherkin/lexer/tl.rb +0 -1723
- data/lib/gherkin/lexer/tt.rb +0 -1640
- data/spec/gherkin/output_stream_string_io.rb +0 -20
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
#line 1 "/
|
2
|
+
#line 1 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
3
3
|
#include <assert.h>
|
4
4
|
#include <ruby.h>
|
5
5
|
|
@@ -80,7 +80,7 @@ static VALUE rb_eGherkinLexingError;
|
|
80
80
|
lexer->line_number)
|
81
81
|
|
82
82
|
|
83
|
-
#line 254 "/
|
83
|
+
#line 254 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1503,7 +1503,7 @@ static const int lexer_error = 0;
|
|
1503
1503
|
static const int lexer_en_main = 1;
|
1504
1504
|
|
1505
1505
|
|
1506
|
-
#line 258 "/
|
1506
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1507
1507
|
|
1508
1508
|
static VALUE
|
1509
1509
|
unindent(VALUE con, int start_col)
|
@@ -1676,7 +1676,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1676
1676
|
cs = lexer_start;
|
1677
1677
|
}
|
1678
1678
|
|
1679
|
-
#line 425 "/
|
1679
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1680
1680
|
|
1681
1681
|
#line 1682 "ext/gherkin_lexer_ru/gherkin_lexer_ru.c"
|
1682
1682
|
{
|
@@ -1752,7 +1752,7 @@ _match:
|
|
1752
1752
|
switch ( *_acts++ )
|
1753
1753
|
{
|
1754
1754
|
case 0:
|
1755
|
-
#line 83 "/
|
1755
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1756
1756
|
{
|
1757
1757
|
MARK(content_start, p);
|
1758
1758
|
lexer->current_line = lexer->line_number;
|
@@ -1760,20 +1760,20 @@ _match:
|
|
1760
1760
|
}
|
1761
1761
|
break;
|
1762
1762
|
case 1:
|
1763
|
-
#line 89 "/
|
1763
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1764
1764
|
{
|
1765
1765
|
MARK(content_start, p);
|
1766
1766
|
}
|
1767
1767
|
break;
|
1768
1768
|
case 2:
|
1769
|
-
#line 93 "/
|
1769
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1770
1770
|
{
|
1771
1771
|
lexer->current_line = lexer->line_number;
|
1772
1772
|
lexer->start_col = p - data - lexer->last_newline;
|
1773
1773
|
}
|
1774
1774
|
break;
|
1775
1775
|
case 3:
|
1776
|
-
#line 98 "/
|
1776
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1777
1777
|
{
|
1778
1778
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1779
1779
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1785,49 +1785,49 @@ _match:
|
|
1785
1785
|
}
|
1786
1786
|
break;
|
1787
1787
|
case 4:
|
1788
|
-
#line 108 "/
|
1788
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1789
1789
|
{
|
1790
1790
|
MARK(docstring_content_type_start, p);
|
1791
1791
|
}
|
1792
1792
|
break;
|
1793
1793
|
case 5:
|
1794
|
-
#line 112 "/
|
1794
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1795
1795
|
{
|
1796
1796
|
MARK(docstring_content_type_end, p);
|
1797
1797
|
}
|
1798
1798
|
break;
|
1799
1799
|
case 6:
|
1800
|
-
#line 116 "/
|
1800
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1801
1801
|
{
|
1802
1802
|
STORE_KW_END_CON(feature);
|
1803
1803
|
}
|
1804
1804
|
break;
|
1805
1805
|
case 7:
|
1806
|
-
#line 120 "/
|
1806
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1807
1807
|
{
|
1808
1808
|
STORE_KW_END_CON(background);
|
1809
1809
|
}
|
1810
1810
|
break;
|
1811
1811
|
case 8:
|
1812
|
-
#line 124 "/
|
1812
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1813
1813
|
{
|
1814
1814
|
STORE_KW_END_CON(scenario);
|
1815
1815
|
}
|
1816
1816
|
break;
|
1817
1817
|
case 9:
|
1818
|
-
#line 128 "/
|
1818
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1819
1819
|
{
|
1820
1820
|
STORE_KW_END_CON(scenario_outline);
|
1821
1821
|
}
|
1822
1822
|
break;
|
1823
1823
|
case 10:
|
1824
|
-
#line 132 "/
|
1824
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1825
1825
|
{
|
1826
1826
|
STORE_KW_END_CON(examples);
|
1827
1827
|
}
|
1828
1828
|
break;
|
1829
1829
|
case 11:
|
1830
|
-
#line 136 "/
|
1830
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1831
1831
|
{
|
1832
1832
|
store_kw_con(listener, "step",
|
1833
1833
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1836,34 +1836,34 @@ _match:
|
|
1836
1836
|
}
|
1837
1837
|
break;
|
1838
1838
|
case 12:
|
1839
|
-
#line 143 "/
|
1839
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1840
1840
|
{
|
1841
1841
|
STORE_ATTR(comment);
|
1842
1842
|
lexer->mark = 0;
|
1843
1843
|
}
|
1844
1844
|
break;
|
1845
1845
|
case 13:
|
1846
|
-
#line 148 "/
|
1846
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1847
1847
|
{
|
1848
1848
|
STORE_ATTR(tag);
|
1849
1849
|
lexer->mark = 0;
|
1850
1850
|
}
|
1851
1851
|
break;
|
1852
1852
|
case 14:
|
1853
|
-
#line 153 "/
|
1853
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1854
1854
|
{
|
1855
1855
|
lexer->line_number += 1;
|
1856
1856
|
MARK(final_newline, p);
|
1857
1857
|
}
|
1858
1858
|
break;
|
1859
1859
|
case 15:
|
1860
|
-
#line 158 "/
|
1860
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1861
1861
|
{
|
1862
1862
|
MARK(last_newline, p + 1);
|
1863
1863
|
}
|
1864
1864
|
break;
|
1865
1865
|
case 16:
|
1866
|
-
#line 162 "/
|
1866
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1867
1867
|
{
|
1868
1868
|
if (lexer->mark == 0) {
|
1869
1869
|
MARK(mark, p);
|
@@ -1871,7 +1871,7 @@ _match:
|
|
1871
1871
|
}
|
1872
1872
|
break;
|
1873
1873
|
case 17:
|
1874
|
-
#line 168 "/
|
1874
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1875
1875
|
{
|
1876
1876
|
MARK(keyword_end, p);
|
1877
1877
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1880,13 +1880,13 @@ _match:
|
|
1880
1880
|
}
|
1881
1881
|
break;
|
1882
1882
|
case 18:
|
1883
|
-
#line 175 "/
|
1883
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1884
1884
|
{
|
1885
1885
|
MARK(content_end, p);
|
1886
1886
|
}
|
1887
1887
|
break;
|
1888
1888
|
case 19:
|
1889
|
-
#line 179 "/
|
1889
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1890
1890
|
{
|
1891
1891
|
p = p - 1;
|
1892
1892
|
lexer->current_line = lexer->line_number;
|
@@ -1894,13 +1894,13 @@ _match:
|
|
1894
1894
|
}
|
1895
1895
|
break;
|
1896
1896
|
case 20:
|
1897
|
-
#line 185 "/
|
1897
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1898
1898
|
{
|
1899
1899
|
MARK(content_start, p);
|
1900
1900
|
}
|
1901
1901
|
break;
|
1902
1902
|
case 21:
|
1903
|
-
#line 189 "/
|
1903
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1904
1904
|
{
|
1905
1905
|
VALUE re_pipe, re_newline, re_backslash;
|
1906
1906
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1916,13 +1916,13 @@ _match:
|
|
1916
1916
|
}
|
1917
1917
|
break;
|
1918
1918
|
case 22:
|
1919
|
-
#line 203 "/
|
1919
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1920
1920
|
{
|
1921
1921
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1922
1922
|
}
|
1923
1923
|
break;
|
1924
1924
|
case 23:
|
1925
|
-
#line 207 "/
|
1925
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1926
1926
|
{
|
1927
1927
|
int line;
|
1928
1928
|
if (cs < lexer_first_final) {
|
@@ -1985,7 +1985,7 @@ _again:
|
|
1985
1985
|
while ( __nacts-- > 0 ) {
|
1986
1986
|
switch ( *__acts++ ) {
|
1987
1987
|
case 23:
|
1988
|
-
#line 207 "/
|
1988
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
1989
1989
|
{
|
1990
1990
|
int line;
|
1991
1991
|
if (cs < lexer_first_final) {
|
@@ -2039,7 +2039,7 @@ _again:
|
|
2039
2039
|
_out: {}
|
2040
2040
|
}
|
2041
2041
|
|
2042
|
-
#line 426 "/
|
2042
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/ru.c.rl"
|
2043
2043
|
|
2044
2044
|
assert(p <= pe && "data overflow after parsing execute");
|
2045
2045
|
assert(lexer->content_start <= len && "content starts after data end");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
#line 1 "/
|
2
|
+
#line 1 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
3
3
|
#include <assert.h>
|
4
4
|
#include <ruby.h>
|
5
5
|
|
@@ -80,7 +80,7 @@ static VALUE rb_eGherkinLexingError;
|
|
80
80
|
lexer->line_number)
|
81
81
|
|
82
82
|
|
83
|
-
#line 254 "/
|
83
|
+
#line 254 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
84
84
|
|
85
85
|
|
86
86
|
/** Data **/
|
@@ -1171,7 +1171,7 @@ static const int lexer_error = 0;
|
|
1171
1171
|
static const int lexer_en_main = 1;
|
1172
1172
|
|
1173
1173
|
|
1174
|
-
#line 258 "/
|
1174
|
+
#line 258 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1175
1175
|
|
1176
1176
|
static VALUE
|
1177
1177
|
unindent(VALUE con, int start_col)
|
@@ -1344,7 +1344,7 @@ static VALUE CLexer_scan(VALUE self, VALUE input)
|
|
1344
1344
|
cs = lexer_start;
|
1345
1345
|
}
|
1346
1346
|
|
1347
|
-
#line 425 "/
|
1347
|
+
#line 425 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1348
1348
|
|
1349
1349
|
#line 1350 "ext/gherkin_lexer_sk/gherkin_lexer_sk.c"
|
1350
1350
|
{
|
@@ -1420,7 +1420,7 @@ _match:
|
|
1420
1420
|
switch ( *_acts++ )
|
1421
1421
|
{
|
1422
1422
|
case 0:
|
1423
|
-
#line 83 "/
|
1423
|
+
#line 83 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1424
1424
|
{
|
1425
1425
|
MARK(content_start, p);
|
1426
1426
|
lexer->current_line = lexer->line_number;
|
@@ -1428,20 +1428,20 @@ _match:
|
|
1428
1428
|
}
|
1429
1429
|
break;
|
1430
1430
|
case 1:
|
1431
|
-
#line 89 "/
|
1431
|
+
#line 89 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1432
1432
|
{
|
1433
1433
|
MARK(content_start, p);
|
1434
1434
|
}
|
1435
1435
|
break;
|
1436
1436
|
case 2:
|
1437
|
-
#line 93 "/
|
1437
|
+
#line 93 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1438
1438
|
{
|
1439
1439
|
lexer->current_line = lexer->line_number;
|
1440
1440
|
lexer->start_col = p - data - lexer->last_newline;
|
1441
1441
|
}
|
1442
1442
|
break;
|
1443
1443
|
case 3:
|
1444
|
-
#line 98 "/
|
1444
|
+
#line 98 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1445
1445
|
{
|
1446
1446
|
int len = LEN(content_start, PTR_TO(final_newline));
|
1447
1447
|
int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
|
@@ -1453,49 +1453,49 @@ _match:
|
|
1453
1453
|
}
|
1454
1454
|
break;
|
1455
1455
|
case 4:
|
1456
|
-
#line 108 "/
|
1456
|
+
#line 108 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1457
1457
|
{
|
1458
1458
|
MARK(docstring_content_type_start, p);
|
1459
1459
|
}
|
1460
1460
|
break;
|
1461
1461
|
case 5:
|
1462
|
-
#line 112 "/
|
1462
|
+
#line 112 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1463
1463
|
{
|
1464
1464
|
MARK(docstring_content_type_end, p);
|
1465
1465
|
}
|
1466
1466
|
break;
|
1467
1467
|
case 6:
|
1468
|
-
#line 116 "/
|
1468
|
+
#line 116 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1469
1469
|
{
|
1470
1470
|
STORE_KW_END_CON(feature);
|
1471
1471
|
}
|
1472
1472
|
break;
|
1473
1473
|
case 7:
|
1474
|
-
#line 120 "/
|
1474
|
+
#line 120 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1475
1475
|
{
|
1476
1476
|
STORE_KW_END_CON(background);
|
1477
1477
|
}
|
1478
1478
|
break;
|
1479
1479
|
case 8:
|
1480
|
-
#line 124 "/
|
1480
|
+
#line 124 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1481
1481
|
{
|
1482
1482
|
STORE_KW_END_CON(scenario);
|
1483
1483
|
}
|
1484
1484
|
break;
|
1485
1485
|
case 9:
|
1486
|
-
#line 128 "/
|
1486
|
+
#line 128 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1487
1487
|
{
|
1488
1488
|
STORE_KW_END_CON(scenario_outline);
|
1489
1489
|
}
|
1490
1490
|
break;
|
1491
1491
|
case 10:
|
1492
|
-
#line 132 "/
|
1492
|
+
#line 132 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1493
1493
|
{
|
1494
1494
|
STORE_KW_END_CON(examples);
|
1495
1495
|
}
|
1496
1496
|
break;
|
1497
1497
|
case 11:
|
1498
|
-
#line 136 "/
|
1498
|
+
#line 136 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1499
1499
|
{
|
1500
1500
|
store_kw_con(listener, "step",
|
1501
1501
|
PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
|
@@ -1504,34 +1504,34 @@ _match:
|
|
1504
1504
|
}
|
1505
1505
|
break;
|
1506
1506
|
case 12:
|
1507
|
-
#line 143 "/
|
1507
|
+
#line 143 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1508
1508
|
{
|
1509
1509
|
STORE_ATTR(comment);
|
1510
1510
|
lexer->mark = 0;
|
1511
1511
|
}
|
1512
1512
|
break;
|
1513
1513
|
case 13:
|
1514
|
-
#line 148 "/
|
1514
|
+
#line 148 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1515
1515
|
{
|
1516
1516
|
STORE_ATTR(tag);
|
1517
1517
|
lexer->mark = 0;
|
1518
1518
|
}
|
1519
1519
|
break;
|
1520
1520
|
case 14:
|
1521
|
-
#line 153 "/
|
1521
|
+
#line 153 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1522
1522
|
{
|
1523
1523
|
lexer->line_number += 1;
|
1524
1524
|
MARK(final_newline, p);
|
1525
1525
|
}
|
1526
1526
|
break;
|
1527
1527
|
case 15:
|
1528
|
-
#line 158 "/
|
1528
|
+
#line 158 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1529
1529
|
{
|
1530
1530
|
MARK(last_newline, p + 1);
|
1531
1531
|
}
|
1532
1532
|
break;
|
1533
1533
|
case 16:
|
1534
|
-
#line 162 "/
|
1534
|
+
#line 162 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1535
1535
|
{
|
1536
1536
|
if (lexer->mark == 0) {
|
1537
1537
|
MARK(mark, p);
|
@@ -1539,7 +1539,7 @@ _match:
|
|
1539
1539
|
}
|
1540
1540
|
break;
|
1541
1541
|
case 17:
|
1542
|
-
#line 168 "/
|
1542
|
+
#line 168 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1543
1543
|
{
|
1544
1544
|
MARK(keyword_end, p);
|
1545
1545
|
MARK(keyword_start, PTR_TO(mark));
|
@@ -1548,13 +1548,13 @@ _match:
|
|
1548
1548
|
}
|
1549
1549
|
break;
|
1550
1550
|
case 18:
|
1551
|
-
#line 175 "/
|
1551
|
+
#line 175 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1552
1552
|
{
|
1553
1553
|
MARK(content_end, p);
|
1554
1554
|
}
|
1555
1555
|
break;
|
1556
1556
|
case 19:
|
1557
|
-
#line 179 "/
|
1557
|
+
#line 179 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1558
1558
|
{
|
1559
1559
|
p = p - 1;
|
1560
1560
|
lexer->current_line = lexer->line_number;
|
@@ -1562,13 +1562,13 @@ _match:
|
|
1562
1562
|
}
|
1563
1563
|
break;
|
1564
1564
|
case 20:
|
1565
|
-
#line 185 "/
|
1565
|
+
#line 185 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1566
1566
|
{
|
1567
1567
|
MARK(content_start, p);
|
1568
1568
|
}
|
1569
1569
|
break;
|
1570
1570
|
case 21:
|
1571
|
-
#line 189 "/
|
1571
|
+
#line 189 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1572
1572
|
{
|
1573
1573
|
VALUE re_pipe, re_newline, re_backslash;
|
1574
1574
|
VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
|
@@ -1584,13 +1584,13 @@ _match:
|
|
1584
1584
|
}
|
1585
1585
|
break;
|
1586
1586
|
case 22:
|
1587
|
-
#line 203 "/
|
1587
|
+
#line 203 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1588
1588
|
{
|
1589
1589
|
rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
|
1590
1590
|
}
|
1591
1591
|
break;
|
1592
1592
|
case 23:
|
1593
|
-
#line 207 "/
|
1593
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1594
1594
|
{
|
1595
1595
|
int line;
|
1596
1596
|
if (cs < lexer_first_final) {
|
@@ -1653,7 +1653,7 @@ _again:
|
|
1653
1653
|
while ( __nacts-- > 0 ) {
|
1654
1654
|
switch ( *__acts++ ) {
|
1655
1655
|
case 23:
|
1656
|
-
#line 207 "/
|
1656
|
+
#line 207 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1657
1657
|
{
|
1658
1658
|
int line;
|
1659
1659
|
if (cs < lexer_first_final) {
|
@@ -1707,7 +1707,7 @@ _again:
|
|
1707
1707
|
_out: {}
|
1708
1708
|
}
|
1709
1709
|
|
1710
|
-
#line 426 "/
|
1710
|
+
#line 426 "/home/son/work/github/cucumber/gherkin/tasks/../ragel/i18n/sk.c.rl"
|
1711
1711
|
|
1712
1712
|
assert(p <= pe && "data overflow after parsing execute");
|
1713
1713
|
assert(lexer->content_start <= len && "content starts after data end");
|