|
522 | 522 | <key>match</key> |
523 | 523 | <string>\G([&*]?)(?:([_a-zA-Z]\w*(:))|([_a-zA-Z]\w*))</string> |
524 | 524 | </dict> |
525 | | - <dict> |
526 | | - <key>include</key> |
527 | | - <string>#parens</string> |
528 | | - </dict> |
529 | | - <dict> |
530 | | - <key>include</key> |
531 | | - <string>#braces</string> |
532 | | - </dict> |
533 | | - <dict> |
534 | | - <key>include</key> |
535 | | - <string>$self</string> |
536 | | - </dict> |
537 | | - </array> |
538 | | - </dict> |
539 | | - </array> |
540 | | - <key>repository</key> |
541 | | - <dict> |
542 | | - <key>braces</key> |
543 | | - <dict> |
544 | | - <key>begin</key> |
545 | | - <string>\{</string> |
546 | | - <key>beginCaptures</key> |
547 | | - <dict> |
548 | | - <key>0</key> |
549 | | - <dict> |
550 | | - <key>name</key> |
551 | | - <string>punctuation.section.function.begin.ruby</string> |
552 | | - </dict> |
553 | | - </dict> |
554 | | - <key>end</key> |
555 | | - <string>\}</string> |
556 | | - <key>endCaptures</key> |
557 | | - <dict> |
558 | | - <key>0</key> |
559 | | - <dict> |
560 | | - <key>name</key> |
561 | | - <string>punctuation.section.function.end.ruby</string> |
562 | | - </dict> |
563 | | - </dict> |
564 | | - <key>patterns</key> |
565 | | - <array> |
566 | | - <dict> |
567 | | - <key>include</key> |
568 | | - <string>#parens</string> |
569 | | - </dict> |
570 | | - <dict> |
571 | | - <key>include</key> |
572 | | - <string>#braces</string> |
573 | | - </dict> |
574 | 525 | <dict> |
575 | 526 | <key>include</key> |
576 | 527 | <string>$self</string> |
577 | 528 | </dict> |
578 | 529 | </array> |
579 | 530 | </dict> |
580 | | - <key>parens</key> |
581 | 531 | <dict> |
582 | | - <key>begin</key> |
583 | | - <string>\(</string> |
584 | | - <key>beginCaptures</key> |
585 | | - <dict> |
586 | | - <key>0</key> |
587 | | - <dict> |
588 | | - <key>name</key> |
589 | | - <string>punctuation.section.function.begin.ruby</string> |
590 | | - </dict> |
591 | | - </dict> |
592 | | - <key>end</key> |
593 | | - <string>\)</string> |
594 | | - <key>endCaptures</key> |
595 | | - <dict> |
596 | | - <key>0</key> |
597 | | - <dict> |
598 | | - <key>name</key> |
599 | | - <string>punctuation.section.function.end.ruby</string> |
600 | | - </dict> |
601 | | - </dict> |
602 | | - <key>patterns</key> |
603 | | - <array> |
604 | | - <dict> |
605 | | - <key>include</key> |
606 | | - <string>#parens</string> |
607 | | - </dict> |
608 | | - <dict> |
609 | | - <key>include</key> |
610 | | - <string>#braces</string> |
611 | | - </dict> |
612 | | - <dict> |
613 | | - <key>include</key> |
614 | | - <string>$self</string> |
615 | | - </dict> |
616 | | - </array> |
| 532 | + <key>include</key> |
| 533 | + <string>$self</string> |
617 | 534 | </dict> |
618 | | - </dict> |
| 535 | + </array> |
619 | 536 | </dict> |
620 | 537 | <dict> |
621 | 538 | <key>begin</key> |
|
644 | 561 | <key>comment</key> |
645 | 562 | <string>same as the previous rule, but without parentheses around the arguments</string> |
646 | 563 | <key>end</key> |
647 | | - <string>$</string> |
| 564 | + <string>(?<=[\w\])}`'";!?])\s*$</string> |
648 | 565 | <key>name</key> |
649 | 566 | <string>meta.function.method.with-arguments.ruby</string> |
650 | 567 | <key>patterns</key> |
651 | 568 | <array> |
652 | 569 | <dict> |
653 | 570 | <key>begin</key> |
654 | | - <string>(?![\s,])</string> |
| 571 | + <string>(?=[&*_a-zA-Z])</string> |
655 | 572 | <key>end</key> |
656 | | - <string>(?=,|$)</string> |
| 573 | + <string>(?=,|\s*$)</string> |
657 | 574 | <key>patterns</key> |
658 | 575 | <array> |
659 | 576 | <dict> |
|
682 | 599 | </dict> |
683 | 600 | <key>match</key> |
684 | 601 | <string>\G([&*]?)(?:([_a-zA-Z]\w*(:))|([_a-zA-Z]\w*))</string> |
685 | | - <key>name</key> |
686 | | - <string>variable.parameter.function.ruby</string> |
687 | 602 | </dict> |
688 | 603 | <dict> |
689 | 604 | <key>include</key> |
690 | 605 | <string>$self</string> |
691 | 606 | </dict> |
692 | 607 | </array> |
693 | 608 | </dict> |
| 609 | + <dict> |
| 610 | + <key>include</key> |
| 611 | + <string>$self</string> |
| 612 | + </dict> |
694 | 613 | </array> |
695 | 614 | </dict> |
696 | 615 | <dict> |
|
1956 | 1875 | <string>punctuation.separator.other.ruby</string> |
1957 | 1876 | </dict> |
1958 | 1877 | <dict> |
1959 | | - <key>match</key> |
| 1878 | + <key>begin</key> |
1960 | 1879 | <string>\{</string> |
1961 | | - <key>name</key> |
1962 | | - <string>punctuation.section.scope.begin.ruby</string> |
1963 | | - </dict> |
1964 | | - <dict> |
1965 | | - <key>match</key> |
| 1880 | + <key>beginCaptures</key> |
| 1881 | + <dict> |
| 1882 | + <key>0</key> |
| 1883 | + <dict> |
| 1884 | + <key>name</key> |
| 1885 | + <string>punctuation.section.scope.begin.ruby</string> |
| 1886 | + </dict> |
| 1887 | + </dict> |
| 1888 | + <key>end</key> |
1966 | 1889 | <string>\}</string> |
1967 | | - <key>name</key> |
1968 | | - <string>punctuation.section.scope.end.ruby</string> |
| 1890 | + <key>endCaptures</key> |
| 1891 | + <dict> |
| 1892 | + <key>0</key> |
| 1893 | + <dict> |
| 1894 | + <key>name</key> |
| 1895 | + <string>punctuation.section.scope.end.ruby</string> |
| 1896 | + </dict> |
| 1897 | + </dict> |
| 1898 | + <key>patterns</key> |
| 1899 | + <array> |
| 1900 | + <dict> |
| 1901 | + <key>include</key> |
| 1902 | + <string>$self</string> |
| 1903 | + </dict> |
| 1904 | + </array> |
1969 | 1905 | </dict> |
1970 | 1906 | <dict> |
1971 | | - <key>match</key> |
| 1907 | + <key>begin</key> |
1972 | 1908 | <string>\[</string> |
1973 | | - <key>name</key> |
1974 | | - <string>punctuation.section.array.begin.ruby</string> |
1975 | | - </dict> |
1976 | | - <dict> |
1977 | | - <key>match</key> |
| 1909 | + <key>beginCaptures</key> |
| 1910 | + <dict> |
| 1911 | + <key>0</key> |
| 1912 | + <dict> |
| 1913 | + <key>name</key> |
| 1914 | + <string>punctuation.section.array.begin.ruby</string> |
| 1915 | + </dict> |
| 1916 | + </dict> |
| 1917 | + <key>end</key> |
1978 | 1918 | <string>\]</string> |
1979 | | - <key>name</key> |
1980 | | - <string>punctuation.section.array.end.ruby</string> |
| 1919 | + <key>endCaptures</key> |
| 1920 | + <dict> |
| 1921 | + <key>0</key> |
| 1922 | + <dict> |
| 1923 | + <key>name</key> |
| 1924 | + <string>punctuation.section.array.end.ruby</string> |
| 1925 | + </dict> |
| 1926 | + </dict> |
| 1927 | + <key>patterns</key> |
| 1928 | + <array> |
| 1929 | + <dict> |
| 1930 | + <key>include</key> |
| 1931 | + <string>$self</string> |
| 1932 | + </dict> |
| 1933 | + </array> |
1981 | 1934 | </dict> |
1982 | 1935 | <dict> |
1983 | | - <key>match</key> |
1984 | | - <string>\(|\)</string> |
1985 | | - <key>name</key> |
1986 | | - <string>punctuation.section.function.ruby</string> |
| 1936 | + <key>begin</key> |
| 1937 | + <string>\(</string> |
| 1938 | + <key>beginCaptures</key> |
| 1939 | + <dict> |
| 1940 | + <key>0</key> |
| 1941 | + <dict> |
| 1942 | + <key>name</key> |
| 1943 | + <string>punctuation.section.function.ruby</string> |
| 1944 | + </dict> |
| 1945 | + </dict> |
| 1946 | + <key>end</key> |
| 1947 | + <string>\)</string> |
| 1948 | + <key>endCaptures</key> |
| 1949 | + <dict> |
| 1950 | + <key>0</key> |
| 1951 | + <dict> |
| 1952 | + <key>name</key> |
| 1953 | + <string>punctuation.section.function.ruby</string> |
| 1954 | + </dict> |
| 1955 | + </dict> |
| 1956 | + <key>patterns</key> |
| 1957 | + <array> |
| 1958 | + <dict> |
| 1959 | + <key>include</key> |
| 1960 | + <string>$self</string> |
| 1961 | + </dict> |
| 1962 | + </array> |
1987 | 1963 | </dict> |
1988 | 1964 | </array> |
1989 | 1965 | <key>repository</key> |
|
0 commit comments