rubybuntu-gedit 11.08.20 → 11.08.21
Sign up to get free protection for your applications and to get access to all the features.
- data/data/language-specs/ruby.lang +327 -135
- data/data/styles/README.rdoc +5 -1
- data/rubybuntu-gedit.gemspec +1 -1
- metadata +34 -64
@@ -33,52 +33,52 @@
|
|
33
33
|
</metadata>
|
34
34
|
|
35
35
|
<styles>
|
36
|
-
<style id="method"
|
37
|
-
<style id="important-method"
|
38
|
-
<style id="keyword"
|
39
|
-
<style id="syntax-char"
|
40
|
-
<style id="operator"
|
41
|
-
<style id="special-value"
|
42
|
-
<style id="self"
|
43
|
-
<style id="true"
|
44
|
-
<style id="false"
|
45
|
-
<style id="nil"
|
46
|
-
<style id="collection"
|
47
|
-
<style id="function"
|
48
|
-
|
49
|
-
<style id="constant"
|
50
|
-
<style id="important-constant"
|
51
|
-
|
52
|
-
<style id="instance-variable"
|
53
|
-
<style id="class-variable"
|
54
|
-
<style id="global-variable"
|
55
|
-
<style id="special-variable"
|
56
|
-
|
57
|
-
<style id="comment"
|
58
|
-
<style id="encoding-comment"
|
59
|
-
<style id="comment-tag"
|
60
|
-
<!--style id="comment-tag-value"
|
61
|
-
|
62
|
-
<style id="string"
|
63
|
-
<style id="string-delimiter"
|
64
|
-
<style id="character"
|
65
|
-
<style id="special-char"
|
66
|
-
|
67
|
-
<style id="system"
|
68
|
-
<style id="system-delimiter"
|
69
|
-
|
70
|
-
<style id="symbol"
|
71
|
-
<style id="symbol-delimiter"
|
72
|
-
|
73
|
-
<style id="regex"
|
74
|
-
<style id="regex-delimiter"
|
75
|
-
<style id="regex-options"
|
76
|
-
|
77
|
-
<style id="float"
|
78
|
-
<style id="integer"
|
79
|
-
<style id="base-n-integer"
|
80
|
-
|
81
|
-
<style id="error"
|
36
|
+
<style id="method" _name="Method or local variable" map-to="def:identifier"/>
|
37
|
+
<style id="important-method" _name="Important methods" map-to="def:builtin"/>
|
38
|
+
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
|
39
|
+
<style id="syntax-char" _name="Syntactical characters" map-to="ruby:keyword"/>
|
40
|
+
<style id="operator" _name="Operators" map-to="def:operator"/>
|
41
|
+
<style id="special-value" _name="nil, false, true" map-to="def:boolean"/>
|
42
|
+
<style id="self" _name="self" map-to="ruby:special-value"/>
|
43
|
+
<style id="true" _name="true" map-to="ruby:special-value"/>
|
44
|
+
<style id="false" _name="false" map-to="ruby:special-value"/>
|
45
|
+
<style id="nil" _name="nil" map-to="ruby:special-value"/>
|
46
|
+
<style id="collection" _name="Collections (Arrays, Hashes)" map-to="ruby:syntax-char"/>
|
47
|
+
<style id="function" _name="Function definition" map-to="def:function"/>
|
48
|
+
|
49
|
+
<style id="constant" _name="Constant" map-to="def:constant"/>
|
50
|
+
<style id="important-constant" _name="Important constant" map-to="def:special-constant"/>
|
51
|
+
|
52
|
+
<style id="instance-variable" _name="Instance variable" map-to="def:identifier"/>
|
53
|
+
<style id="class-variable" _name="Class variable" map-to="ruby:instance-variable"/>
|
54
|
+
<style id="global-variable" _name="Global variable" map-to="def:identifier"/>
|
55
|
+
<style id="special-variable" _name="Special variable" map-to="ruby:global-variable"/>
|
56
|
+
|
57
|
+
<style id="comment" _name="Comment" map-to="def:comment"/>
|
58
|
+
<style id="encoding-comment" _name="Magic Comment" map-to="def:shebang"/>
|
59
|
+
<style id="comment-tag" _name="YARD comment tag" map-to="def:doc-comment"/>
|
60
|
+
<!--style id="comment-tag-value" _name="YARD comment tag value" map-to="def:doc-comment-element"/-->
|
61
|
+
|
62
|
+
<style id="string" _name="String" map-to="def:string"/>
|
63
|
+
<style id="string-delimiter" _name="String delimiter" map-to="ruby:string"/>
|
64
|
+
<style id="character" _name="Character in question mark notation" map-to="def:character"/>
|
65
|
+
<style id="special-char" _name="Escaped Character" map-to="def:special-char"/>
|
66
|
+
|
67
|
+
<style id="system" _name="System command" map-to="ruby:string"/>
|
68
|
+
<style id="system-delimiter" _name="System command delimiter" map-to="ruby:system"/>
|
69
|
+
|
70
|
+
<style id="symbol" _name="Symbol" map-to="ruby:function"/>
|
71
|
+
<style id="symbol-delimiter" _name="Symbol delimiter" map-to="ruby:symbol"/>
|
72
|
+
|
73
|
+
<style id="regex" _name="Regular expression" map-to="ruby:string"/>
|
74
|
+
<style id="regex-delimiter" _name="Regular expression delimiter" map-to="ruby:regex"/>
|
75
|
+
<style id="regex-options" _name="Regular expression options" map-to="ruby:regex-delimiter"/>
|
76
|
+
|
77
|
+
<style id="float" _name="Floating point number" map-to="def:floating-point"/>
|
78
|
+
<style id="integer" _name="Integer number" map-to="def:decimal"/>
|
79
|
+
<style id="base-n-integer" _name="Base-N number" map-to="def:base-n-integer"/>
|
80
|
+
|
81
|
+
<style id="error" _name="Erroneous syntax" map-to="def:error"/>
|
82
82
|
</styles>
|
83
83
|
|
84
84
|
<definitions>
|
@@ -96,7 +96,8 @@
|
|
96
96
|
</include>
|
97
97
|
</context>
|
98
98
|
|
99
|
-
<context id="shell-like-comment" style-ref="comment" end-at-line-end="true"
|
99
|
+
<context id="shell-like-comment" style-ref="comment" end-at-line-end="true"
|
100
|
+
class-disabled="no-spell-check">
|
100
101
|
<start>#</start>
|
101
102
|
<include>
|
102
103
|
<context ref="def:in-comment"/>
|
@@ -108,7 +109,8 @@
|
|
108
109
|
<match>@\w+(\s*\[.*?\])?</match>
|
109
110
|
</context>
|
110
111
|
|
111
|
-
<context id="encoding-comment" style-ref="encoding-comment"
|
112
|
+
<context id="encoding-comment" style-ref="encoding-comment" first-line-only="true"
|
113
|
+
class="no-spell-check">
|
112
114
|
<match case-sensitive="false">\s*#.*coding.*</match>
|
113
115
|
</context>
|
114
116
|
|
@@ -540,72 +542,105 @@
|
|
540
542
|
<context id="double-quoted-string" style-ref="string" class-disabled="no-spell-check" style-inside="true">
|
541
543
|
<start>"</start>
|
542
544
|
<end>"</end>
|
543
|
-
<include
|
544
|
-
|
545
|
+
<include>
|
546
|
+
<context style-ref="special-char"><match>\\[\"\\]</match></context>
|
547
|
+
<context ref="double-quoted"/>
|
548
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
549
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
550
|
+
</include>
|
545
551
|
</context>
|
546
552
|
|
547
553
|
<!-- %Q{Hello world} %{Hello world} -->
|
548
554
|
<context id="double-quoted-string-curly" style-ref="string">
|
549
555
|
<start>%Q?\{</start>
|
550
556
|
<end>\}</end>
|
551
|
-
<include
|
552
|
-
|
557
|
+
<include>
|
558
|
+
<context style-ref="special-char"><match>\\[}\\]</match></context>
|
559
|
+
<context ref="double-quoted"/>
|
560
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
561
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
562
|
+
</include>
|
553
563
|
</context>
|
554
564
|
|
555
565
|
<!-- %Q(Hello world) %(Hello world) -->
|
556
566
|
<context id="double-quoted-string-normal" style-ref="string">
|
557
567
|
<start>%Q?\(</start>
|
558
568
|
<end>\)</end>
|
559
|
-
<include
|
560
|
-
|
569
|
+
<include>
|
570
|
+
<context style-ref="special-char"><match>\\[)\\]</match></context>
|
571
|
+
<context ref="double-quoted"/>
|
572
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
573
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
574
|
+
</include>
|
561
575
|
</context>
|
562
576
|
|
563
577
|
<!-- %Q[Hello world] %[Hello world] -->
|
564
578
|
<context id="double-quoted-string-square" style-ref="string">
|
565
579
|
<start>%Q?\[</start>
|
566
580
|
<end>\]</end>
|
567
|
-
<include
|
568
|
-
|
581
|
+
<include>
|
582
|
+
<context style-ref="special-char"><match>\\[\]\\]</match></context>
|
583
|
+
<context ref="double-quoted"/>
|
584
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
585
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
586
|
+
</include>
|
569
587
|
</context>
|
570
588
|
|
571
589
|
<!-- %Q<Hello world> %<Hello world> -->
|
572
590
|
<context id="double-quoted-string-angle" style-ref="string">
|
573
591
|
<start>%Q?<</start>
|
574
592
|
<end>></end>
|
575
|
-
<include
|
576
|
-
|
593
|
+
<include>
|
594
|
+
<context style-ref="special-char"><match>\\[>\\]</match></context>
|
595
|
+
<context ref="double-quoted"/>
|
596
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
597
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
598
|
+
</include>
|
577
599
|
</context>
|
578
600
|
|
579
601
|
<!-- %Q-Hello world- %-Hello world- %+hello world+ and so on... -->
|
580
602
|
<context id="double-quoted-string-generic" style-ref="string" extend-parent="false">
|
581
603
|
<start>%Q?([[:print:]])(?<![[:alnum:][:space:]])</start>
|
582
604
|
<end>\%{1@start}</end>
|
583
|
-
<include
|
584
|
-
|
605
|
+
<include>
|
606
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
607
|
+
<context ref="double-quoted"/>
|
608
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
609
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
610
|
+
</include>
|
585
611
|
</context>
|
586
612
|
|
587
613
|
<!-- 'Hello world' -->
|
588
614
|
<context id="single-quoted-string" style-ref="string" class-disabled="no-spell-check">
|
589
615
|
<start>'</start>
|
590
616
|
<end>'</end>
|
591
|
-
<include
|
592
|
-
|
617
|
+
<include>
|
618
|
+
<context style-ref="special-char"><match>\\['\\]</match></context>
|
619
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
620
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
621
|
+
</include>
|
593
622
|
</context>
|
594
623
|
|
595
624
|
<!-- %q{Hello world} -->
|
596
625
|
<context id="single-quoted-string-curly" style-ref="string">
|
597
626
|
<start>%q\{</start>
|
598
627
|
<end>\}</end>
|
599
|
-
<include
|
600
|
-
|
628
|
+
<include>
|
629
|
+
<context style-ref="special-char"><match>\\[}\\]</match></context>
|
630
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
631
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
632
|
+
</include>
|
601
633
|
</context>
|
602
634
|
|
603
635
|
<!-- %q(Hello world) -->
|
604
636
|
<context id="single-quoted-string-normal" style-ref="string">
|
605
637
|
<start>%q\(</start>
|
606
638
|
<end>\)</end>
|
607
|
-
<include
|
608
|
-
|
639
|
+
<include>
|
640
|
+
<context style-ref="special-char"><match>\\[)\\]</match></context>
|
641
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
642
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
643
|
+
</include>
|
609
644
|
</context>
|
610
645
|
|
611
646
|
<!-- %q[Hello world] -->
|
@@ -613,23 +648,31 @@
|
|
613
648
|
<start>%q\[</start>
|
614
649
|
<end>\]</end>
|
615
650
|
<include><context style-ref="special-char"><match>\\[\]\\]</match></context>
|
616
|
-
|
651
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
652
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
653
|
+
</include>
|
617
654
|
</context>
|
618
655
|
|
619
656
|
<!-- %q<Hello world> -->
|
620
657
|
<context id="single-quoted-string-angle" style-ref="string">
|
621
658
|
<start>%q<</start>
|
622
659
|
<end>></end>
|
623
|
-
<include
|
624
|
-
|
660
|
+
<include>
|
661
|
+
<context style-ref="special-char"><match>\\[%gt;\\]</match></context>
|
662
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
663
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
664
|
+
</include>
|
625
665
|
</context>
|
626
666
|
|
627
667
|
<!-- %q-Hello world- %q+Hello world+ %q*Hello world* and so on... -->
|
628
668
|
<context id="single-quoted-string-generic" style-ref="string">
|
629
669
|
<start>%q([[:print:]])(?<![[:alnum:]])</start>
|
630
670
|
<end>\%{1@start}</end>
|
631
|
-
<include
|
632
|
-
|
671
|
+
<include>
|
672
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
673
|
+
<context where="start" sub-pattern="0" style-ref="string-delimiter"/>
|
674
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
675
|
+
</include>
|
633
676
|
</context>
|
634
677
|
|
635
678
|
<!-- Arrays of strings
|
@@ -637,32 +680,48 @@
|
|
637
680
|
<context id="double-quoted-word-array-curly" style-ref="string">
|
638
681
|
<start>%W\{</start>
|
639
682
|
<end>\}</end>
|
640
|
-
<include
|
641
|
-
|
683
|
+
<include>
|
684
|
+
<context style-ref="special-char"><match>\\[}\\]</match></context>
|
685
|
+
<context ref="double-quoted"/>
|
686
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
687
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
688
|
+
</include>
|
642
689
|
</context>
|
643
690
|
|
644
691
|
<!-- %W(Array of #{interpolated} strings) -->
|
645
692
|
<context id="double-quoted-word-array-normal" style-ref="string">
|
646
693
|
<start>%W\(</start>
|
647
694
|
<end>\)</end>
|
648
|
-
<include
|
649
|
-
|
695
|
+
<include>
|
696
|
+
<context style-ref="special-char"><match>\\[)\\]</match></context>
|
697
|
+
<context ref="double-quoted"/>
|
698
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
699
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
700
|
+
</include>
|
650
701
|
</context>
|
651
702
|
|
652
703
|
<!-- %W[Array of #{interpolated} strings] -->
|
653
704
|
<context id="double-quoted-word-array-square" style-ref="string">
|
654
705
|
<start>%W\[</start>
|
655
706
|
<end>\]</end>
|
656
|
-
<include
|
657
|
-
|
707
|
+
<include>
|
708
|
+
<context style-ref="special-char"><match>\\[\]\\]</match></context>
|
709
|
+
<context ref="double-quoted"/>
|
710
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
711
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
712
|
+
</include>
|
658
713
|
</context>
|
659
714
|
|
660
715
|
<!-- %W<Array of #{interpolated} strings> -->
|
661
716
|
<context id="double-quoted-word-array-angle" style-ref="string">
|
662
717
|
<start>%W<</start>
|
663
718
|
<end>></end>
|
664
|
-
<include
|
665
|
-
|
719
|
+
<include>
|
720
|
+
<context style-ref="special-char"><match>\\[>\\]</match></context>
|
721
|
+
<context ref="double-quoted"/>
|
722
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
723
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
724
|
+
</include>
|
666
725
|
</context>
|
667
726
|
|
668
727
|
<!-- %W-Array of #{interpolated} strings-
|
@@ -671,90 +730,130 @@
|
|
671
730
|
<context id="double-quoted-word-array-generic" style-ref="string">
|
672
731
|
<start>%W([[:print:]])(?<![[:alnum:]])</start>
|
673
732
|
<end>\%{1@start}</end>
|
674
|
-
<include
|
675
|
-
|
733
|
+
<include>
|
734
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
735
|
+
<context ref="double-quoted"/>
|
736
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
737
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
738
|
+
</include>
|
676
739
|
</context>
|
677
740
|
|
678
741
|
<!-- %w{Array of strings} -->
|
679
742
|
<context id="single-quoted-word-array-curly" style-ref="string">
|
680
743
|
<start>%w\{</start>
|
681
744
|
<end>\}</end>
|
682
|
-
<include
|
683
|
-
|
745
|
+
<include>
|
746
|
+
<context style-ref="special-char"><match>\\[}\\]</match></context>
|
747
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
748
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
749
|
+
</include>
|
684
750
|
</context>
|
685
751
|
|
686
752
|
<!-- %w(Array of strings) -->
|
687
753
|
<context id="single-quoted-word-array-normal" style-ref="string">
|
688
754
|
<start>%w\(</start>
|
689
755
|
<end>\)</end>
|
690
|
-
<include
|
691
|
-
|
756
|
+
<include>
|
757
|
+
<context style-ref="special-char"><match>\\[)\\]</match></context>
|
758
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
759
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
760
|
+
</include>
|
692
761
|
</context>
|
693
762
|
|
694
763
|
<!-- %w[Array of strings] -->
|
695
764
|
<context id="single-quoted-word-array-square" style-ref="string">
|
696
765
|
<start>%w\[</start>
|
697
766
|
<end>\]</end>
|
698
|
-
<include
|
699
|
-
|
767
|
+
<include>
|
768
|
+
<context style-ref="special-char"><match>\\[\]\\]</match></context>
|
769
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
770
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
771
|
+
</include>
|
700
772
|
</context>
|
701
773
|
|
702
774
|
<!-- %w<Array of strings> -->
|
703
775
|
<context id="single-quoted-word-array-angle" style-ref="string">
|
704
776
|
<start>%w<</start>
|
705
777
|
<end>></end>
|
706
|
-
<include
|
707
|
-
|
778
|
+
<include>
|
779
|
+
<context style-ref="special-char"><match>\\[>\\]</match></context>
|
780
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
781
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
782
|
+
</include>
|
708
783
|
</context>
|
709
784
|
|
710
785
|
<!-- %w-Array of strings- %w+Array of strings+ %w*Array of strings* and so on... -->
|
711
786
|
<context id="single-quoted-word-array-generic" style-ref="string">
|
712
787
|
<start>%w([[:print:]])(?<![[:alnum:]])</start>
|
713
788
|
<end>\%{1@start}</end>
|
714
|
-
<include
|
715
|
-
|
789
|
+
<include>
|
790
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
791
|
+
<context where="start" sub-pattern="0" style-ref="collection"/>
|
792
|
+
<context where="end" sub-pattern="0" style-ref="collection"/>
|
793
|
+
</include>
|
716
794
|
</context>
|
717
795
|
|
718
796
|
<context id="backtick-quoted-string" style-ref="system">
|
719
797
|
<start>`</start>
|
720
798
|
<end>`</end>
|
721
|
-
<include
|
722
|
-
|
799
|
+
<include>
|
800
|
+
<context style-ref="special-char"><match>\\[`\\]</match></context>
|
801
|
+
<context ref="double-quoted"/>
|
802
|
+
<context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
803
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
804
|
+
</include>
|
723
805
|
</context>
|
724
806
|
|
725
807
|
<context id="backtick-quoted-string-curly" style-ref="system">
|
726
808
|
<start>%x\{</start>
|
727
809
|
<end>\}</end>
|
728
|
-
<include
|
729
|
-
|
810
|
+
<include>
|
811
|
+
<context style-ref="special-char"><match>\\[}\\]</match></context>
|
812
|
+
<context ref="double-quoted"/>
|
813
|
+
<context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
814
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
815
|
+
</include>
|
730
816
|
</context>
|
731
817
|
|
732
818
|
<context id="backtick-quoted-string-normal" style-ref="system">
|
733
819
|
<start>%x\(</start>
|
734
820
|
<end>\)</end>
|
735
821
|
<include><context style-ref="special-char"><match>\\[)\\]</match></context>
|
736
|
-
<context ref="double-quoted"/><context where="start" sub-pattern="0" style-ref="system-delimiter"
|
822
|
+
<context ref="double-quoted"/><context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
823
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/></include>
|
737
824
|
</context>
|
738
825
|
|
739
826
|
<context id="backtick-quoted-string-square" style-ref="system">
|
740
827
|
<start>%x\[</start>
|
741
828
|
<end>\]</end>
|
742
|
-
<include
|
743
|
-
|
829
|
+
<include>
|
830
|
+
<context style-ref="special-char"><match>\\[\]\\]</match></context>
|
831
|
+
<context ref="double-quoted"/>
|
832
|
+
<context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
833
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
834
|
+
</include>
|
744
835
|
</context>
|
745
836
|
|
746
837
|
<context id="backtick-quoted-string-angle" style-ref="system">
|
747
838
|
<start>%x<</start>
|
748
839
|
<end>></end>
|
749
|
-
<include
|
750
|
-
|
840
|
+
<include>
|
841
|
+
<context style-ref="special-char"><match>\\[>\\]</match></context>
|
842
|
+
<context ref="double-quoted"/>
|
843
|
+
<context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
844
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
845
|
+
</include>
|
751
846
|
</context>
|
752
847
|
|
753
848
|
<context id="backtick-quoted-string-generic" style-ref="system">
|
754
849
|
<start>%x([[:print:]])(?<![[:alnum:]])</start>
|
755
850
|
<end>\%{1@start}</end>
|
756
|
-
<include
|
757
|
-
|
851
|
+
<include>
|
852
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
853
|
+
<context ref="double-quoted"/>
|
854
|
+
<context where="start" sub-pattern="0" style-ref="system-delimiter"/>
|
855
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
856
|
+
</include>
|
758
857
|
</context>
|
759
858
|
|
760
859
|
<define-regex id="start-heredoc">([^a-zA-Z0-9\s\]\)>}])\s*(<<)</define-regex>
|
@@ -762,49 +861,93 @@
|
|
762
861
|
<context id="heredoc-string" style-ref="string">
|
763
862
|
<start>\%{start-heredoc}((\w+))</start>
|
764
863
|
<end>^\%{4@start}$</end>
|
765
|
-
<include
|
864
|
+
<include>
|
865
|
+
<context ref="double-quoted"/>
|
866
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
867
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
868
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
869
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
870
|
+
</include>
|
766
871
|
</context>
|
767
872
|
|
768
873
|
<context id="heredoc-indented-string" style-ref="string">
|
769
874
|
<start>\%{start-heredoc}(-(\w+))</start>
|
770
875
|
<end>^\s*\%{4@start}$</end>
|
771
|
-
<include
|
876
|
+
<include>
|
877
|
+
<context ref="double-quoted"/>
|
878
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
879
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
880
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
881
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
882
|
+
</include>
|
772
883
|
</context>
|
773
884
|
|
774
885
|
<context id="heredoc-single-quoted-string" style-ref="string">
|
775
886
|
<start>\%{start-heredoc}('(\w+)')</start>
|
776
887
|
<end>^\%{4@start}$</end>
|
777
|
-
<include
|
888
|
+
<include>
|
889
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
890
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
891
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
892
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
893
|
+
</include>
|
778
894
|
</context>
|
779
895
|
|
780
896
|
<context id="heredoc-double-quoted-string" style-ref="string">
|
781
897
|
<start>\%{start-heredoc}("(\w+)")</start>
|
782
898
|
<end>^\%{4@start}$</end>
|
783
|
-
<include
|
899
|
+
<include>
|
900
|
+
<context ref="double-quoted"/>
|
901
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
902
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
903
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
904
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
905
|
+
</include>
|
784
906
|
</context>
|
785
907
|
|
786
908
|
<context id="heredoc-backtick-quoted-string" style-ref="system">
|
787
909
|
<start>\%{start-heredoc}(`(\w+)`)</start>
|
788
910
|
<end>^\%{4@start}$</end>
|
789
|
-
<include
|
911
|
+
<include>
|
912
|
+
<context ref="double-quoted"/>
|
913
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
914
|
+
<context where="start" sub-pattern="2" style-ref="system-delimiter"/>
|
915
|
+
<context where="start" sub-pattern="3" style-ref="system-delimiter"/>
|
916
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
917
|
+
</include>
|
790
918
|
</context>
|
791
919
|
|
792
920
|
<context id="heredoc-single-quoted-indented-string" style-ref="string">
|
793
921
|
<start>\%{start-heredoc}(-'(\w+)')</start>
|
794
922
|
<end>^\s*\%{4@start}$</end>
|
795
|
-
<include
|
923
|
+
<include>
|
924
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
925
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
926
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
927
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
928
|
+
</include>
|
796
929
|
</context>
|
797
930
|
|
798
931
|
<context id="heredoc-double-quoted-indented-string" style-ref="string">
|
799
932
|
<start>\%{start-heredoc}(-"(\w+)")</start>
|
800
933
|
<end>^\s*\%{4@start}$</end>
|
801
|
-
<include
|
934
|
+
<include>
|
935
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
936
|
+
<context where="start" sub-pattern="2" style-ref="string-delimiter"/>
|
937
|
+
<context where="start" sub-pattern="3" style-ref="string-delimiter"/>
|
938
|
+
<context where="end" sub-pattern="0" style-ref="string-delimiter"/>
|
939
|
+
</include>
|
802
940
|
</context>
|
803
941
|
|
804
942
|
<context id="heredoc-backtick-quoted-indented-string" style-ref="system">
|
805
943
|
<start>\%{start-heredoc}(-`(\w+)`)</start>
|
806
944
|
<end>^\s*\%{4@start}$</end>
|
807
|
-
<include
|
945
|
+
<include>
|
946
|
+
<context where="start" sub-pattern="1" style-ref="operator"/>
|
947
|
+
<context where="start" sub-pattern="2" style-ref="system-delimiter"/>
|
948
|
+
<context where="start" sub-pattern="3" style-ref="system-delimiter"/>
|
949
|
+
<context where="end" sub-pattern="0" style-ref="system-delimiter"/>
|
950
|
+
</include>
|
808
951
|
</context>
|
809
952
|
|
810
953
|
<define-regex id="regex-options">([mixo]*[neus]?[mixo]*)</define-regex>
|
@@ -818,43 +961,73 @@
|
|
818
961
|
\/\%{regex-options}
|
819
962
|
)</start>
|
820
963
|
<end>(\/)\%{regex-options}</end>
|
821
|
-
<include
|
822
|
-
|
964
|
+
<include>
|
965
|
+
<context style-ref="special-char"><match>\\[/\\]</match></context>
|
966
|
+
<context ref="double-quoted"/>
|
967
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
968
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
969
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
970
|
+
</include>
|
823
971
|
</context>
|
824
972
|
|
825
973
|
<context id="regex-curly" style-ref="regex">
|
826
974
|
<start>%r\{</start>
|
827
975
|
<end>(\})%{regex-options}</end>
|
828
|
-
<include
|
829
|
-
|
976
|
+
<include>
|
977
|
+
<context style-ref="special-char"><match>\\[/\\]</match></context>
|
978
|
+
<context ref="double-quoted"/>
|
979
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
980
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
981
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
982
|
+
</include>
|
830
983
|
</context>
|
831
984
|
|
832
985
|
<context id="regex-normal" style-ref="regex">
|
833
986
|
<start>%r\(</start>
|
834
987
|
<end>(\))%{regex-options}</end>
|
835
|
-
<include
|
836
|
-
|
988
|
+
<include>
|
989
|
+
<context style-ref="special-char"><match>\\[)\\]</match></context>
|
990
|
+
<context ref="double-quoted"/>
|
991
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
992
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
993
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
994
|
+
</include>
|
837
995
|
</context>
|
838
996
|
|
839
997
|
<context id="regex-square" style-ref="regex">
|
840
998
|
<start>%r\[</start>
|
841
999
|
<end>(\])%{regex-options}</end>
|
842
|
-
<include
|
843
|
-
|
1000
|
+
<include>
|
1001
|
+
<context style-ref="special-char"><match>\\[\]\\]</match></context>
|
1002
|
+
<context ref="double-quoted"/>
|
1003
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
1004
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
1005
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
1006
|
+
</include>
|
844
1007
|
</context>
|
845
1008
|
|
846
1009
|
<context id="regex-angle" style-ref="regex">
|
847
1010
|
<start>%r<</start>
|
848
1011
|
<end>(>)\%{regex-options}</end>
|
849
|
-
<include
|
850
|
-
|
1012
|
+
<include>
|
1013
|
+
<context style-ref="special-char"><match>\\[>\\]</match></context>
|
1014
|
+
<context ref="double-quoted"/>
|
1015
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
1016
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
1017
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
1018
|
+
</include>
|
851
1019
|
</context>
|
852
1020
|
|
853
1021
|
<context id="regex-generic" style-ref="regex">
|
854
1022
|
<start>%r([[:print:]])(?<![[:alnum:]])</start>
|
855
1023
|
<end>(\%{1@start})\%{regex-options}</end>
|
856
|
-
<include
|
857
|
-
|
1024
|
+
<include>
|
1025
|
+
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
1026
|
+
<context ref="double-quoted"/>
|
1027
|
+
<context where="start" sub-pattern="0" style-ref="regex-delimiter"/>
|
1028
|
+
<context where="end" sub-pattern="1" style-ref="regex-delimiter"/>
|
1029
|
+
<context where="end" sub-pattern="2" style-ref="regex-options"/>
|
1030
|
+
</include>
|
858
1031
|
</context>
|
859
1032
|
|
860
1033
|
<context id="symbols" style-ref="symbol">
|
@@ -876,22 +1049,29 @@
|
|
876
1049
|
<context id="symbols-single-quoted" style-ref="symbol">
|
877
1050
|
<start>:'</start>
|
878
1051
|
<end>'</end>
|
879
|
-
<include
|
880
|
-
|
1052
|
+
<include>
|
1053
|
+
<context style-ref="special-char"><match>\\[\'\\]</match></context>
|
1054
|
+
<context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
|
1055
|
+
<context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
|
1056
|
+
</include>
|
881
1057
|
</context>
|
882
1058
|
|
883
1059
|
<context id="symbols-double-quoted" style-ref="symbol">
|
884
1060
|
<start>:"</start>
|
885
1061
|
<end>"</end>
|
886
|
-
<include
|
887
|
-
|
1062
|
+
<include>
|
1063
|
+
<context style-ref="special-char"><match>\\[\"\\]</match></context>
|
1064
|
+
<context ref="double-quoted"/>
|
1065
|
+
<context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
|
1066
|
+
<context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
|
1067
|
+
</include>
|
888
1068
|
</context>
|
889
1069
|
|
890
1070
|
<context id="function">
|
891
|
-
<start>(?<![\w\.])
|
1071
|
+
<start>(?<![\w\.])\b(def)\b\s*</start>
|
892
1072
|
<end>([^.]+?)(?=[\s(;]|$)</end>
|
893
1073
|
<include>
|
894
|
-
<context where="start" sub-pattern="
|
1074
|
+
<context where="start" sub-pattern="1" style-ref="keyword"/>
|
895
1075
|
<context where="end" sub-pattern="1" style-ref="function"/>
|
896
1076
|
<context ref="ruby:*"/>
|
897
1077
|
</include>
|
@@ -907,17 +1087,29 @@
|
|
907
1087
|
|
908
1088
|
<context id="brackets">
|
909
1089
|
<include>
|
910
|
-
<context id="normal-brackets"
|
1090
|
+
<context id="normal-brackets">
|
911
1091
|
<start>\(</start><end>\)</end>
|
912
|
-
<include
|
1092
|
+
<include>
|
1093
|
+
<context where="start" sub-pattern="0" style-ref="syntax-char"/>
|
1094
|
+
<context where="end" sub-pattern="0" style-ref="syntax-char"/>
|
1095
|
+
<context ref="ruby:*"/>
|
1096
|
+
</include>
|
913
1097
|
</context>
|
914
|
-
<context id="square-brackets"
|
1098
|
+
<context id="square-brackets">
|
915
1099
|
<start>\[</start><end>\]</end>
|
916
|
-
<include
|
1100
|
+
<include>
|
1101
|
+
<context where="start" sub-pattern="0" style-ref="syntax-char"/>
|
1102
|
+
<context where="end" sub-pattern="0" style-ref="syntax-char"/>
|
1103
|
+
<context ref="ruby:*"/>
|
1104
|
+
</include>
|
917
1105
|
</context>
|
918
|
-
<context id="curly-brackets"
|
919
|
-
<start>(?<=[\])\w])\s
|
920
|
-
<include
|
1106
|
+
<context id="curly-brackets">
|
1107
|
+
<start>(?<=[\])\w])\s*(\{)</start><end>\}</end>
|
1108
|
+
<include>
|
1109
|
+
<context where="start" sub-pattern="1" style-ref="syntax-char"/>
|
1110
|
+
<context where="end" sub-pattern="0" style-ref="syntax-char"/>
|
1111
|
+
<context ref="ruby:*"/>
|
1112
|
+
</include>
|
921
1113
|
</context>
|
922
1114
|
</include>
|
923
1115
|
</context>
|
data/data/styles/README.rdoc
CHANGED
@@ -14,4 +14,8 @@ Designed for usage with {these language specs}[https://github.com/janlelis/rubyb
|
|
14
14
|
mkdir -p ~/.local/share/gtksourceview-2.0/styles
|
15
15
|
cp *.xml ~/.local/share/gtksourceview-2.0/styles
|
16
16
|
|
17
|
-
==
|
17
|
+
== Contribute
|
18
|
+
|
19
|
+
Feel free to add your own styles that use the new ruby language spec :).
|
20
|
+
|
21
|
+
J-_-L
|
data/rubybuntu-gedit.gemspec
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems' unless defined? Gem
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "rubybuntu-gedit"
|
6
|
-
s.version = '11.08.
|
6
|
+
s.version = '11.08.21'#Time.now.strftime("%y.%m.%d")
|
7
7
|
s.authors = ["Jan Lelis", "Snippets by Christoph Olszowka", "Please see individual files for author and license"]
|
8
8
|
s.email = "mail@janlelis.de"
|
9
9
|
s.homepage = "https://github.com/janlelis/rubybuntu-gedit"
|
metadata
CHANGED
@@ -1,47 +1,37 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubybuntu-gedit
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 11.08.21
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 11
|
8
|
-
- 8
|
9
|
-
- 20
|
10
|
-
version: 11.08.20
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jan Lelis
|
14
9
|
- Snippets by Christoph Olszowka
|
15
10
|
- Please see individual files for author and license
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2011-08-20 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
23
17
|
name: paint
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &11317860 !ruby/object:Gem::Requirement
|
26
19
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
34
24
|
type: :runtime
|
35
|
-
|
36
|
-
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *11317860
|
27
|
+
description: Ruby/Rails/Web related gedit language definitions, mime types, styles
|
28
|
+
and snippets.
|
37
29
|
email: mail@janlelis.de
|
38
|
-
executables:
|
30
|
+
executables:
|
39
31
|
- rubybuntu-gedit
|
40
32
|
extensions: []
|
41
|
-
|
42
33
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
34
|
+
files:
|
45
35
|
- bin/rubybuntu-gedit
|
46
36
|
- README.rdoc
|
47
37
|
- data/language-specs/ruby-erb.lang
|
@@ -107,50 +97,30 @@ files:
|
|
107
97
|
- Rakefile
|
108
98
|
- rubybuntu-gedit.gemspec
|
109
99
|
homepage: https://github.com/janlelis/rubybuntu-gedit
|
110
|
-
licenses:
|
100
|
+
licenses:
|
111
101
|
- GPL
|
112
|
-
post_install_message: !
|
113
|
-
|
114
|
-
|
115
|
-
gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU
|
116
|
-
kAogSi1fLUwg4pSCIGh0dHBzOi8vZ2l0aHViLmNvbS9qYW5sZWxpcy9ydWJ5
|
117
|
-
YnVudHUtZ2VkaXQg4pSCCiAgICAgICDilJzilIDilIAgdXNhZ2Ug4pSA4pSA
|
118
|
-
4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA
|
119
|
-
4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA
|
120
|
-
4pSA4pSA4pSA4pSA4pSkCiAgICAgICDilIIgcnVieWJ1bnR1LWdlZGl0IGlu
|
121
|
-
c3RhbGwgICAgICAgICAgICAgICAgICAgICDilIIKICAgICAgIOKUlOKUgOKU
|
122
|
-
gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU
|
123
|
-
gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU
|
124
|
-
gOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUmA==
|
125
|
-
|
102
|
+
post_install_message: ! " ┌── info ─────────────────────────────────────┐\n
|
103
|
+
J-_-L │ https://github.com/janlelis/rubybuntu-gedit │\n ├── usage ────────────────────────────────────┤\n
|
104
|
+
\ │ rubybuntu-gedit install │\n └─────────────────────────────────────────────┘"
|
126
105
|
rdoc_options: []
|
127
|
-
|
128
|
-
require_paths:
|
106
|
+
require_paths:
|
129
107
|
- lib
|
130
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
109
|
none: false
|
132
|
-
requirements:
|
133
|
-
- -
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
|
136
|
-
|
137
|
-
- 0
|
138
|
-
version: "0"
|
139
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
115
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
|
145
|
-
segments:
|
146
|
-
- 0
|
147
|
-
version: "0"
|
116
|
+
requirements:
|
117
|
+
- - ! '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
148
120
|
requirements: []
|
149
|
-
|
150
121
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.8.
|
122
|
+
rubygems_version: 1.8.5
|
152
123
|
signing_key:
|
153
124
|
specification_version: 3
|
154
125
|
summary: Ruby/Web devoloper's gedit
|
155
126
|
test_files: []
|
156
|
-
|