-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.rb
37 lines (33 loc) · 1.18 KB
/
bundle.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'ruble'
bundle do |bundle|
bundle.author = 'Thomas Deuling'
bundle.contact_email_rot_13 = '[email protected]'
bundle.display_name = t(:bundle_name)
bundle.description = <<END
Aptana Studio 3 - ExtBase Bundle for TYPO3 CMS Extension-Development - http://coding.ms
END
increase_indent = /^\s*.*(:|-) ?(&\w+)?(\{[^}"']*|\([^)"']*)?$/
decrease_indent = /^\s+\}$/
bundle.indent['source.yaml'] = increase_indent, decrease_indent
# Set up folding. Folding is now done in Java code for this language
# start_folding = /^[^#]\s*.*:(\s*\[?| &.+)?$/
# end_folding = /^\s*$|^\s*\}|^\s*\]|^\s*\)/
# bundle.folding['source.yaml'] = start_folding, end_folding
bundle.menu t(:bundle_name) do |main_menu|
main_menu.command t(:key_value)
main_menu.command t(:add_list_item)
main_menu.separator
main_menu.command t(:sort_keys_alphabetically)
main_menu.command t(:convert_to_ruby)
main_menu.separator
main_menu.command t(:cheat_sheet)
end
end
# Special ENV vars
#env "source.yaml" do |e|
# e['TM_COMMENT_START'] = "# "
# e.delete('TM_COMMENT_END')
# e.delete('TM_COMMENT_START_2')
# e.delete('TM_COMMENT_END_2')
# e.delete('TM_COMMENT_DISABLE_INDENT')
#end