rubybuntu-gedit 11.08.31 → 11.09.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ Part of {RubyBuntuGedit}[https://github.com/janlelis/rubybuntu-gedit]
|
|
6
6
|
Contains various language specs needed by Ruby/Rails/Web developers and also tries to maintain them.
|
7
7
|
|
8
8
|
* The Ruby language specification has been improved alot. It uses 1.9.2 as reference implementation, recognizes many Ruby-specific language constructs (that can be highlighted differently) and implements many language details. To see all these changes, you need a style that supports ("uses") the new specification, for example, {these styles}[https://github.com/janlelis/rubybuntu-editor-styles]. See below for a changelog summary.
|
9
|
-
* ERB is not only usable with HTML, but also with JavaScript, YAML and XML
|
9
|
+
* ERB is not only usable with HTML, but also with JavaScript, YAML and XML...
|
10
10
|
* Gemfile.lock highlighting
|
11
11
|
|
12
12
|
== Setup
|
@@ -44,6 +44,7 @@ You should also use up-to-date {mime types}[https://github.com/janlelis/rubybunt
|
|
44
44
|
* Different heredoc matching
|
45
45
|
* Better symbol detection
|
46
46
|
* Small language details, like recognizing `__END__`
|
47
|
+
* Better unicode support
|
47
48
|
* See `git log` for full details
|
48
49
|
* Based on https://github.com/gmate/gmate/blob/master/lang-specs/ruby_on_rails.lang
|
49
50
|
|
@@ -68,6 +69,5 @@ Meanwhile, you can, for example, use the ones found in gmate[https://github.com/
|
|
68
69
|
|
69
70
|
=== MAYBE
|
70
71
|
* RDOC markup support (and cross-referencing in ruby)
|
71
|
-
* ruby: make unicode-aware/test with unicode code
|
72
72
|
|
73
73
|
== J-_-L
|
@@ -416,26 +416,26 @@
|
|
416
416
|
</match>
|
417
417
|
</context>
|
418
418
|
|
419
|
-
<define-regex id="
|
419
|
+
<define-regex id="alnum">[^&><!?"'`@$%/()=\\{\[\]}*+~#|;,:.\-\^\s]</define-regex>
|
420
420
|
|
421
421
|
<context id="methods" style-ref="method" extend-parent="false">
|
422
|
-
<match>\%{
|
422
|
+
<match>\%{alnum}(?<![A-Z0-9:])\%{alnum}*[!?]?</match>
|
423
423
|
</context>
|
424
424
|
|
425
425
|
<context id="global-variables" style-ref="global-variable">
|
426
|
-
<match>\$\%{
|
426
|
+
<match>\$\%{alnum}(?<![0-9])\%{alnum}*</match>
|
427
427
|
</context>
|
428
428
|
|
429
429
|
<context id="class-variables" style-ref="class-variable">
|
430
|
-
<match>@@\%{
|
430
|
+
<match>@@\%{alnum}(?<![0-9])\%{alnum}*</match>
|
431
431
|
</context>
|
432
432
|
|
433
433
|
<context id="instance-variables" style-ref="instance-variable">
|
434
|
-
<match>@\%{
|
434
|
+
<match>@\%{alnum}(?<![0-9])\%{alnum}*</match>
|
435
435
|
</context>
|
436
436
|
|
437
437
|
<context id="constants" style-ref="constant" extend-parent="false">
|
438
|
-
<match
|
438
|
+
<match>[A-Z]\%{alnum}*</match>
|
439
439
|
</context>
|
440
440
|
|
441
441
|
<define-regex id="n">\d(_?\d)*</define-regex>
|
@@ -518,7 +518,7 @@
|
|
518
518
|
|
519
519
|
<context id="variable-interpolation">
|
520
520
|
<start>(#)(?=[@$])</start>
|
521
|
-
<end>(?!\%{
|
521
|
+
<end>(?!\%{alnum})</end>
|
522
522
|
<include>
|
523
523
|
<context where="start" sub-pattern="1" style-ref="string-delimiter"/>
|
524
524
|
<context ref="class-variables"/>
|
@@ -599,7 +599,7 @@
|
|
599
599
|
|
600
600
|
<!-- %Q-Hello world- %-Hello world- %+hello world+ and so on... -->
|
601
601
|
<context id="double-quoted-string-generic" style-ref="string" extend-parent="false">
|
602
|
-
<start>%Q?([[:print:]])(?<![[:alnum:]
|
602
|
+
<start>%Q?([[:print:]])(?<![[:alnum:]])</start>
|
603
603
|
<end>\%{1@start}</end>
|
604
604
|
<include>
|
605
605
|
<!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
|
@@ -1034,7 +1034,7 @@
|
|
1034
1034
|
(?<!:)(:)
|
1035
1035
|
( \$ \%{special-variables-1-char}
|
1036
1036
|
| \$ \%{special-variables-2-chars}
|
1037
|
-
| [
|
1037
|
+
| (?:\%{alnum}|\$|@@?) (?<![0-9]) \%{alnum}* [?!=]?
|
1038
1038
|
| <=> | <= | >= | <<? | >>? | != | [!=]~ | ===? | \[\]=? | \*\*? | [+-]@?
|
1039
1039
|
| [!|~\^&]
|
1040
1040
|
)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# constants
|
2
|
+
A☆B
|
3
|
+
A☆
|
4
|
+
|
5
|
+
# methods
|
6
|
+
a☆b
|
7
|
+
☆☆
|
8
|
+
☆
|
9
|
+
|
10
|
+
# symbols
|
11
|
+
:a☆b
|
12
|
+
:☆☆
|
13
|
+
:☆
|
14
|
+
|
15
|
+
# variables
|
16
|
+
@@a☆b
|
17
|
+
@@☆☆
|
18
|
+
@@☆
|
19
|
+
|
20
|
+
@a☆b
|
21
|
+
@☆☆
|
22
|
+
@☆
|
23
|
+
|
24
|
+
$a☆b
|
25
|
+
$☆☆
|
26
|
+
$☆
|
27
|
+
|
28
|
+
# strings
|
29
|
+
"a☆b"
|
30
|
+
"☆☆"
|
31
|
+
"☆"
|
32
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
3
|
+
<mime-type type="application/x-rdoc">
|
4
|
+
<alias type="text/x-rdoc"/>
|
5
|
+
<comment>RDoc File</comment>
|
6
|
+
<glob pattern="*.rdoc"/>
|
7
|
+
</mime-type>
|
8
|
+
</mime-info>
|
data/data/styles/rubybuntu1.xml
CHANGED
@@ -59,6 +59,7 @@
|
|
59
59
|
<style name="ruby:special-variable" foreground="#d33521" bold="true"/>
|
60
60
|
|
61
61
|
<style name="def:comment" foreground="#a77362"/>
|
62
|
+
<style name="ruby:comment-delimiter" foreground="#ffffff" bold="false" italic="false" underline="false"/>
|
62
63
|
<style name="ruby:encoding-comment" foreground="#a76265"/>
|
63
64
|
<style name="def:shebang" foreground="#a76265" bold="true"/>
|
64
65
|
<style name="def:note" bold="true"/>
|
@@ -86,6 +87,12 @@
|
|
86
87
|
|
87
88
|
<style name="def:error" strikethrough="true"/>
|
88
89
|
|
90
|
+
<!-- rdoc -->
|
91
|
+
<style name="rdoc:sharp" foreground="#ffffff" bold="false" italic="false" underline="false"/>
|
92
|
+
<style name="rdoc:italic" italic="true"/>
|
93
|
+
<style name="rdoc:bold" bold="true"/>
|
94
|
+
<style name="rdoc:typewriter" underline="true"/>
|
95
|
+
|
89
96
|
<!-- maybe used in future
|
90
97
|
<style name="ruby:module"/>
|
91
98
|
<style name="ruby:begin"/>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubybuntu-gedit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.09.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-
|
14
|
+
date: 2011-09-14 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: paint
|
18
|
-
requirement: &
|
18
|
+
requirement: &22906640 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *22906640
|
27
27
|
description: Ruby/Rails/Web related gedit language definitions, mime types, styles
|
28
28
|
and snippets.
|
29
29
|
email: mail@janlelis.de
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- data/language-specs/yml-erb.lang
|
41
41
|
- data/language-specs/README.rdoc
|
42
42
|
- data/language-specs/ruby.lang-extras/important-methods.rb
|
43
|
+
- data/language-specs/ruby.lang-extras/unicode.rb
|
43
44
|
- data/language-specs/ruby.lang-extras/important-constants.rb
|
44
45
|
- data/language-specs/ruby.lang-extras/known-bugs.rb
|
45
46
|
- data/language-specs/ruby.lang-extras/examples.rb
|
@@ -47,6 +48,7 @@ files:
|
|
47
48
|
- data/language-specs/ruby.lang
|
48
49
|
- data/language-specs/javascript-erb.lang
|
49
50
|
- data/language-specs/xml-erb.lang
|
51
|
+
- data/mime/ruby-rdoc.xml
|
50
52
|
- data/mime/ruby-builder.xml
|
51
53
|
- data/mime/ruby-thor.xml
|
52
54
|
- data/mime/ruby-rack.xml
|