Permalink
Browse files

added private and protected to colorize

  • Loading branch information...
1 parent 74683ec commit c7e2bffe386ac8aa54417c7ed36f6123e1406257 @tinogomes tinogomes committed Sep 3, 2011
Showing with 21 additions and 14 deletions.
  1. +1 −1 Support/RubyMate/run_script.rb
  2. +18 −13 Syntaxes/Ruby.plist
  3. +2 −0 info.plist
@@ -58,7 +58,7 @@
out.join()
else
htmlize(str)
- end
+ end
when :err
"<span style=\"color: red\">#{htmlize str}</span>"
end
View
@@ -5,7 +5,6 @@
<key>comment</key>
<string>
TODO: unresolved issues
-
text:
"p &lt;&lt; end
print me!
@@ -20,13 +19,13 @@
• Nested heredocs are not really supportable at present
text:
- print &lt;&lt;-'THERE'
- This is single quoted.
- The above used #{Time.now}
- THERE
+ print &lt;&lt;-'THERE'
+ This is single quoted.
+ The above used #{Time.now}
+ THERE
symtoms:
From Programming Ruby p306; should be a non-interpolated heredoc.
-
+
text:
"a\332a"
symptoms:
@@ -46,9 +45,7 @@
</string>
<key>fileTypes</key>
<array>
- <string>rb</string>
<string>rbx</string>
- <string>rjs</string>
<string>Rakefile</string>
<string>rake</string>
<string>sake</string>
@@ -254,12 +251,20 @@
<key>comment</key>
<string> everything being a method but having a special function is a..</string>
<key>match</key>
- <string>\b(initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])</string>
+ <string>\b(initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|module_function|private|protected|public)\b(?![?!])</string>
<key>name</key>
<string>keyword.other.special-method.ruby</string>
</dict>
<dict>
<key>comment</key>
+ <string>highlight annotation words</string>
+ <key>match</key>
+ <string>^.*?\b(private|protected|public)\b$\n</string>
+ <key>name</key>
+ <string>keyword.other.annotation.ruby</string>
+ </dict>
+ <dict>
+ <key>comment</key>
<string>keywords associated with state machine DSLs</string>
<key>match</key>
<string>\b(state_machine|event|before_transition|after_transition|transition)\b(?![?!])</string>
@@ -1611,11 +1616,11 @@
?\C-a ?\M-a ?\C-\M-\C-\M-a
examples (4th alternation = normal):
- ?a ?A ?0
- ?* ?" ?(
+ ?a ?A ?0
+ ?* ?" ?(
?. ?#
-
-
+
+
the negative lookbehind prevents against matching
p(42.tainted?)
</string>
View
@@ -639,6 +639,8 @@
<string>34FEBB9F-73CD-4DD4-A0A3-1CF2A5E3DE78</string>
<string>33969819-62C5-4E03-B824-C2337205F364</string>
<string>A7BF14E6-59B1-42E5-8755-8A72BF13685E</string>
+ <string>B2C3ADE8-E19E-4B87-9C6C-593D490114C7</string>
+ <string>59E811FF-E722-46BE-8938-04713612FABB</string>
</array>
<key>uuid</key>
<string>467B298F-6227-11D9-BFB1-000D93589AF6</string>

0 comments on commit c7e2bff

Please sign in to comment.