rubybuntu-gedit 11.08.21 → 11.08.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@
33
33
  </include>
34
34
  </context>
35
35
 
36
- <replace id="html:embedded-lang-hook" ref="erb:block"/><!-- allow erb tags in strings -->
36
+ <replace id="html:embedded-lang-hook" ref="erb:erb"/><!-- allow erb tags in strings -->
37
37
 
38
38
  <context id="html-erb">
39
39
  <include>
@@ -114,9 +114,11 @@
114
114
  <match case-sensitive="false">\s*#.*coding.*</match>
115
115
  </context>
116
116
 
117
+ <define-regex id="no_method_prefix">(?&lt;![\w\.\:])</define-regex>
118
+
117
119
  <context id="keywords" style-ref="keyword">
118
120
  <!-- do not highlight methods like .class -->
119
- <prefix>(?&lt;![\w\.\:])</prefix>
121
+ <prefix>\%{no_method_prefix}</prefix>
120
122
  <!-- only put here if not already used at another place -->
121
123
  <keyword>BEGIN</keyword>
122
124
  <keyword>END</keyword>
@@ -432,7 +434,7 @@
432
434
  <match>@\%{variable}</match>
433
435
  </context>
434
436
 
435
- <context id="constants" style-ref="constant">
437
+ <context id="constants" style-ref="constant" extend-parent="false">
436
438
  <match>\b[A-Z][A-Za-z0-9_]*\b</match>
437
439
  </context>
438
440
 
@@ -463,22 +465,27 @@
463
465
  <context id="special-values">
464
466
  <include>
465
467
  <context id="self" style-ref="self">
468
+ <prefix>\%{no_method_prefix}</prefix>
466
469
  <keyword>self</keyword>
467
470
  </context>
468
471
 
469
472
  <context id="false" style-ref="false">
473
+ <prefix>\%{no_method_prefix}</prefix>
470
474
  <keyword>false</keyword>
471
475
  </context>
472
476
 
473
477
  <context id="true" style-ref="true">
478
+ <prefix>\%{no_method_prefix}</prefix>
474
479
  <keyword>true</keyword>
475
480
  </context>
476
481
 
477
482
  <context id="nil" style-ref="nil">
483
+ <prefix>\%{no_method_prefix}</prefix>
478
484
  <keyword>nil</keyword>
479
485
  </context>
480
486
 
481
487
  <context id="special-values-words" style-ref="special-value">
488
+ <prefix>\%{no_method_prefix}</prefix>
482
489
  <keyword>__ENCODING__</keyword>
483
490
  <keyword>__FILE__</keyword>
484
491
  <keyword>__LINE__</keyword>
@@ -502,6 +509,8 @@
502
509
 
503
510
  <context ref="class-variables"/>
504
511
  <context ref="instance-variables"/>
512
+
513
+ <context ref="syntax-chars"/>
505
514
  </include>
506
515
  </context>
507
516
 
@@ -1030,7 +1039,7 @@
1030
1039
  </include>
1031
1040
  </context>
1032
1041
 
1033
- <context id="symbols" style-ref="symbol">
1042
+ <context id="symbol" style-ref="symbol">
1034
1043
  <start extended="true">
1035
1044
  (?&lt;!:)(:)(
1036
1045
  \$ \%{special-variables-1-char}
@@ -1046,23 +1055,77 @@
1046
1055
  </include>
1047
1056
  </context>
1048
1057
 
1049
- <context id="symbols-single-quoted" style-ref="symbol">
1058
+ <context id="single-quoted-symbol" style-ref="symbol">
1050
1059
  <start>:'</start>
1051
1060
  <end>'</end>
1052
1061
  <include>
1053
1062
  <context style-ref="special-char"><match>\\[\'\\]</match></context>
1054
1063
  <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1055
- <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1064
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1056
1065
  </include>
1057
1066
  </context>
1058
1067
 
1059
- <context id="symbols-double-quoted" style-ref="symbol">
1068
+ <context id="double-quoted-symbol" style-ref="symbol">
1060
1069
  <start>:"</start>
1061
1070
  <end>"</end>
1062
1071
  <include>
1063
1072
  <context style-ref="special-char"><match>\\[\"\\]</match></context>
1064
1073
  <context ref="double-quoted"/>
1065
1074
  <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1075
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1076
+ </include>
1077
+ </context>
1078
+
1079
+ <!-- %s{Hello world} -->
1080
+ <context id="single-quoted-symbol-curly" style-ref="symbol">
1081
+ <start>%s\{</start>
1082
+ <end>\}</end>
1083
+ <include>
1084
+ <context style-ref="special-char"><match>\\[}\\]</match></context>
1085
+ <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1086
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1087
+ </include>
1088
+ </context>
1089
+
1090
+ <!-- %s(Hello world) -->
1091
+ <context id="single-quoted-symbol-normal" style-ref="symbol">
1092
+ <start>%s\(</start>
1093
+ <end>\)</end>
1094
+ <include>
1095
+ <context style-ref="special-char"><match>\\[)\\]</match></context>
1096
+ <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1097
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1098
+ </include>
1099
+ </context>
1100
+
1101
+ <!-- %s[Hello world] -->
1102
+ <context id="single-quoted-symbol-square" style-ref="symbol">
1103
+ <start>%s\[</start>
1104
+ <end>\]</end>
1105
+ <include><context style-ref="special-char"><match>\\[\]\\]</match></context>
1106
+ <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1107
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1108
+ </include>
1109
+ </context>
1110
+
1111
+ <!-- %s<Hello world> -->
1112
+ <context id="single-quoted-symbol-angle" style-ref="symbol">
1113
+ <start>%s&lt;</start>
1114
+ <end>&gt;</end>
1115
+ <include>
1116
+ <context style-ref="special-char"><match>\\[%gt;\\]</match></context>
1117
+ <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1118
+ <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1119
+ </include>
1120
+ </context>
1121
+
1122
+ <!-- %s-Hello world- %s+Hello world+ %s*Hello world* and so on... -->
1123
+ <context id="single-quoted-symbol-generic" style-ref="symbol">
1124
+ <start>%s([[:print:]])(?&lt;![[:alnum:]])</start>
1125
+ <end>\%{1@start}</end>
1126
+ <include>
1127
+ <!--context style-ref="special-char"><match>\\[\%{1@start}\\]</match></context-->
1128
+ <context where="start" sub-pattern="0" style-ref="symbol-delimiter"/>
1066
1129
  <context where="end" sub-pattern="0" style-ref="symbol-delimiter"/>
1067
1130
  </include>
1068
1131
  </context>
@@ -1104,7 +1167,7 @@
1104
1167
  </include>
1105
1168
  </context>
1106
1169
  <context id="curly-brackets">
1107
- <start>(?&lt;=[\])\w])\s*(\{)</start><end>\}</end>
1170
+ <start>(?&lt;=(?:.[\])\w]|->))\s*(\{)</start><end>\}</end>
1108
1171
  <include>
1109
1172
  <context where="start" sub-pattern="1" style-ref="syntax-char"/>
1110
1173
  <context where="end" sub-pattern="0" style-ref="syntax-char"/>
@@ -1114,7 +1177,7 @@
1114
1177
  </include>
1115
1178
  </context>
1116
1179
 
1117
- <context id="hash-symbols" style-ref="symbol">
1180
+ <context id="hash-symbol" style-ref="symbol">
1118
1181
  <match>[a-zA-Z0-9_]+(!|\?)?:(?!:)</match>
1119
1182
  </context>
1120
1183
 
@@ -1123,12 +1186,12 @@
1123
1186
  </context>
1124
1187
 
1125
1188
  <context id="hash" extend-parent="false">
1126
- <start>(?&lt;![\])\w])\s*\{</start>
1189
+ <start>(?&lt;!(?:.[\])\w]|->))\s*\{</start>
1127
1190
  <end>\}</end>
1128
1191
  <include>
1129
1192
  <context where="start" sub-pattern="0" style-ref="collection"/>
1130
1193
  <context where="end" sub-pattern="0" style-ref="collection"/>
1131
- <context ref="hash-symbols"/>
1194
+ <context ref="hash-symbol"/>
1132
1195
  <context ref="hash-strings"/>
1133
1196
  <context ref="ruby:*"/>
1134
1197
  </include>
@@ -1178,12 +1241,18 @@
1178
1241
  <context ref="heredoc-double-quoted-indented-string"/>
1179
1242
  <context ref="heredoc-backtick-quoted-indented-string"/>
1180
1243
 
1181
- <context ref="symbols"/>
1182
- <context ref="symbols-single-quoted"/>
1183
- <context ref="symbols-double-quoted"/>
1184
-
1185
1244
  <context ref="question-mark-string"/>
1186
1245
 
1246
+ <context ref="symbol"/>
1247
+ <context ref="single-quoted-symbol"/>
1248
+ <context ref="double-quoted-symbol"/>
1249
+ <context ref="single-quoted-symbol-curly"/>
1250
+ <context ref="single-quoted-symbol-normal"/>
1251
+ <context ref="single-quoted-symbol-square"/>
1252
+ <context ref="single-quoted-symbol-angle"/>
1253
+ <context ref="single-quoted-symbol-generic"/>
1254
+
1255
+
1187
1256
  <context ref="double-quoted-string"/>
1188
1257
  <context ref="double-quoted-string-curly"/>
1189
1258
  <context ref="double-quoted-string-normal"/>
@@ -102,8 +102,10 @@
102
102
  <!-- other ruby stuff-->
103
103
  <style name="erb:tag" foreground="#ff592c"/>
104
104
  <style name="erb:output" foreground="#ff342c"/>
105
-
106
- <style name="ruby-bundler-gemfile-lock:gem_name" foreground="#d8843f"/>
105
+
106
+ <style name="ruby-bundler-gemfile-lock:gem_name" foreground="#d8843f"/>
107
+ <style name="ruby-bundler-gemfile-lock:gem_dependency_type" foreground="#edc268" bold="true"/>
108
+ <style name="ruby-bundler-gemfile-lock:gem_dependency_version" foreground="#edc268"/>
107
109
 
108
110
  <!-- non ruby -->
109
111
  <style name="xml:element-name" foreground="#edc268"/><!-- html:tag -->
@@ -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.21'#Time.now.strftime("%y.%m.%d")
6
+ s.version = 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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubybuntu-gedit
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.08.21
4
+ version: 11.08.23
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-08-20 00:00:00.000000000Z
14
+ date: 2011-08-23 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: paint
18
- requirement: &11317860 !ruby/object:Gem::Requirement
18
+ requirement: &24285300 !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: *11317860
26
+ version_requirements: *24285300
27
27
  description: Ruby/Rails/Web related gedit language definitions, mime types, styles
28
28
  and snippets.
29
29
  email: mail@janlelis.de
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 1.8.5
122
+ rubygems_version: 1.8.6
123
123
  signing_key:
124
124
  specification_version: 3
125
125
  summary: Ruby/Web devoloper's gedit