ruby-uv 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.rdoc +79 -0
- data/Rakefile +1 -0
- data/bin/theme2latexrender +122 -0
- data/bin/theme2xhtmlrender +158 -0
- data/bin/uv +140 -0
- data/lib/uv/engine.rb +4 -0
- data/lib/uv/render_processor.rb +140 -0
- data/lib/uv/utility.rb +67 -0
- data/lib/uv/version.rb +3 -0
- data/lib/uv.rb +98 -0
- data/render/latex/active4d.render +132 -0
- data/render/latex/all_hallows_eve.render +96 -0
- data/render/latex/amy.render +171 -0
- data/render/latex/blackboard.render +111 -0
- data/render/latex/brilliance_black.render +552 -0
- data/render/latex/brilliance_dull.render +561 -0
- data/render/latex/cobalt.render +162 -0
- data/render/latex/dawn.render +126 -0
- data/render/latex/eiffel.render +132 -0
- data/render/latex/espresso_libre.render +123 -0
- data/render/latex/idle.render +93 -0
- data/render/latex/iplastic.render +99 -0
- data/render/latex/lazy.render +96 -0
- data/render/latex/mac_classic.render +135 -0
- data/render/latex/magicwb_amiga.render +117 -0
- data/render/latex/pastels_on_dark.render +204 -0
- data/render/latex/slush_poppies.render +123 -0
- data/render/latex/spacecadet.render +81 -0
- data/render/latex/sunburst.render +186 -0
- data/render/latex/twilight.render +153 -0
- data/render/latex/zenburnesque.render +126 -0
- data/render/old/txt2tags.render +131 -0
- data/render/xhtml/active4d.render +140 -0
- data/render/xhtml/all_hallows_eve.render +104 -0
- data/render/xhtml/amy.render +179 -0
- data/render/xhtml/blackboard.render +119 -0
- data/render/xhtml/brilliance_black.render +560 -0
- data/render/xhtml/brilliance_dull.render +569 -0
- data/render/xhtml/cobalt.render +170 -0
- data/render/xhtml/dawn.render +134 -0
- data/render/xhtml/eiffel.render +140 -0
- data/render/xhtml/espresso_libre.render +131 -0
- data/render/xhtml/idle.render +101 -0
- data/render/xhtml/iplastic.render +107 -0
- data/render/xhtml/lazy.render +104 -0
- data/render/xhtml/mac_classic.render +143 -0
- data/render/xhtml/magicwb_amiga.render +125 -0
- data/render/xhtml/pastels_on_dark.render +212 -0
- data/render/xhtml/railscasts.render +93 -0
- data/render/xhtml/slush_poppies.render +131 -0
- data/render/xhtml/spacecadet.render +83 -0
- data/render/xhtml/sunburst.render +194 -0
- data/render/xhtml/twilight.render +161 -0
- data/render/xhtml/zenburnesque.render +134 -0
- data/ruby-uv.gemspec +24 -0
- data/syntax/actionscript.syntax +97 -0
- data/syntax/active4d.syntax +276 -0
- data/syntax/active4d_html.syntax +311 -0
- data/syntax/active4d_ini.syntax +50 -0
- data/syntax/active4d_library.syntax +21 -0
- data/syntax/ada.syntax +33 -0
- data/syntax/antlr.syntax +151 -0
- data/syntax/apache.syntax +191 -0
- data/syntax/applescript.syntax +384 -0
- data/syntax/asp.syntax +70 -0
- data/syntax/asp_vb.net.syntax +129 -0
- data/syntax/bibtex.syntax +151 -0
- data/syntax/blog_html.syntax +41 -0
- data/syntax/blog_markdown.syntax +42 -0
- data/syntax/blog_text.syntax +27 -0
- data/syntax/blog_textile.syntax +27 -0
- data/syntax/build.syntax +53 -0
- data/syntax/bulletin_board.syntax +287 -0
- data/syntax/cake.syntax +55 -0
- data/syntax/camlp4.syntax +36 -0
- data/syntax/cm.syntax +32 -0
- data/syntax/coldfusion.syntax +119 -0
- data/syntax/context_free.syntax +176 -0
- data/syntax/cs.syntax +59 -0
- data/syntax/css.syntax +195 -0
- data/syntax/css_experimental.syntax +1925 -0
- data/syntax/csv.syntax +68 -0
- data/syntax/d.syntax +142 -0
- data/syntax/diff.syntax +81 -0
- data/syntax/dokuwiki.syntax +204 -0
- data/syntax/dot.syntax +47 -0
- data/syntax/doxygen.syntax +43 -0
- data/syntax/dylan.syntax +62 -0
- data/syntax/eiffel.syntax +78 -0
- data/syntax/erlang.syntax +922 -0
- data/syntax/f-script.syntax +80 -0
- data/syntax/fortran.syntax +141 -0
- data/syntax/fxscript.syntax +142 -0
- data/syntax/greasemonkey.syntax +34 -0
- data/syntax/gri.syntax +83 -0
- data/syntax/groovy.syntax +191 -0
- data/syntax/gtd.syntax +22 -0
- data/syntax/gtdalt.syntax +143 -0
- data/syntax/haml.syntax +88 -0
- data/syntax/haskell.syntax +88 -0
- data/syntax/html-asp.syntax +27 -0
- data/syntax/html.syntax +362 -0
- data/syntax/html_django.syntax +36 -0
- data/syntax/html_for_asp.net.syntax +424 -0
- data/syntax/html_mason.syntax +119 -0
- data/syntax/html_rails.syntax +40 -0
- data/syntax/html_tcl.syntax +26 -0
- data/syntax/icalendar.syntax +32 -0
- data/syntax/inform.syntax +48 -0
- data/syntax/ini.syntax +55 -0
- data/syntax/installer_distribution_script.syntax +77 -0
- data/syntax/io.syntax +81 -0
- data/syntax/java.syntax +211 -0
- data/syntax/javaproperties.syntax +20 -0
- data/syntax/javascript.syntax +256 -0
- data/syntax/javascript_+_prototype.syntax +72 -0
- data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/syntax/jquery_javascript.syntax +114 -0
- data/syntax/json.syntax +136 -0
- data/syntax/languagedefinition.syntax +708 -0
- data/syntax/latex.syntax +566 -0
- data/syntax/latex_beamer.syntax +41 -0
- data/syntax/latex_log.syntax +50 -0
- data/syntax/latex_memoir.syntax +64 -0
- data/syntax/lexflex.syntax +219 -0
- data/syntax/lighttpd.syntax +54 -0
- data/syntax/lilypond.syntax +492 -0
- data/syntax/lisp.syntax +61 -0
- data/syntax/literate_haskell.syntax +24 -0
- data/syntax/logo.syntax +29 -0
- data/syntax/logtalk.syntax +152 -0
- data/syntax/lua.syntax +86 -0
- data/syntax/m.syntax +142 -0
- data/syntax/macports_portfile.syntax +163 -0
- data/syntax/makefile.syntax +36 -0
- data/syntax/man.syntax +17 -0
- data/syntax/mediawiki.syntax +567 -0
- data/syntax/mips.syntax +66 -0
- data/syntax/mod_perl.syntax +50 -0
- data/syntax/modula-3.syntax +47 -0
- data/syntax/moinmoin.syntax +189 -0
- data/syntax/mootools.syntax +572 -0
- data/syntax/movable_type.syntax +162 -0
- data/syntax/multimarkdown.syntax +39 -0
- data/syntax/objective-c++.syntax +18 -0
- data/syntax/objective-c.syntax +233 -0
- data/syntax/ocaml.syntax +764 -0
- data/syntax/ocamllex.syntax +167 -0
- data/syntax/ocamlyacc.syntax +184 -0
- data/syntax/opengl.syntax +14 -0
- data/syntax/pascal.syntax +77 -0
- data/syntax/perl.syntax +1115 -0
- data/syntax/plain_text.syntax +32 -0
- data/syntax/postscript.syntax +114 -0
- data/syntax/processing.syntax +106 -0
- data/syntax/prolog.syntax +40 -0
- data/syntax/property_list.syntax +635 -0
- data/syntax/python.syntax +868 -0
- data/syntax/python_django.syntax +21 -0
- data/syntax/qmake_project.syntax +114 -0
- data/syntax/qt_c++.syntax +26 -0
- data/syntax/quake3_config.syntax +32 -0
- data/syntax/r.syntax +81 -0
- data/syntax/r_console.syntax +16 -0
- data/syntax/ragel.syntax +201 -0
- data/syntax/rd_r_documentation.syntax +91 -0
- data/syntax/regexp.syntax +50 -0
- data/syntax/release_notes.syntax +46 -0
- data/syntax/remind.syntax +253 -0
- data/syntax/restructuredtext.syntax +250 -0
- data/syntax/rez.syntax +80 -0
- data/syntax/ruby.syntax +1035 -0
- data/syntax/ruby_experimental.syntax +145 -0
- data/syntax/ruby_on_rails.syntax +88 -0
- data/syntax/s5.syntax +69 -0
- data/syntax/scheme.syntax +347 -0
- data/syntax/scilab.syntax +41 -0
- data/syntax/setext.syntax +147 -0
- data/syntax/shell-unix-generic.syntax +384 -0
- data/syntax/slate.syntax +149 -0
- data/syntax/sql.syntax +237 -0
- data/syntax/sql_rails.syntax +18 -0
- data/syntax/ssh-config.syntax +33 -0
- data/syntax/standard_ml.syntax +121 -0
- data/syntax/strings_file.syntax +39 -0
- data/syntax/subversion_commit_message.syntax +36 -0
- data/syntax/sweave.syntax +84 -0
- data/syntax/swig.syntax +57 -0
- data/syntax/tcl.syntax +152 -0
- data/syntax/template_toolkit.syntax +121 -0
- data/syntax/tex.syntax +86 -0
- data/syntax/tex_math.syntax +49 -0
- data/syntax/textile.syntax +215 -0
- data/syntax/tsv.syntax +50 -0
- data/syntax/twiki.syntax +241 -0
- data/syntax/txt2tags.syntax +79 -0
- data/syntax/vectorscript.syntax +57 -0
- data/syntax/xhtml_1.0.syntax +4027 -0
- data/syntax/xml.syntax +180 -0
- data/syntax/xml_strict.syntax +92 -0
- data/syntax/xsl.syntax +60 -0
- data/syntax/yaml.syntax +160 -0
- data/syntax/yui_javascript.syntax +176 -0
- data/test/test_uv.rb +17 -0
- data/vendor/assets/stylesheets/active4d.css +117 -0
- data/vendor/assets/stylesheets/all_hallows_eve.css +75 -0
- data/vendor/assets/stylesheets/all_uv_themes.css +4 -0
- data/vendor/assets/stylesheets/amy.css +150 -0
- data/vendor/assets/stylesheets/blackboard.css +91 -0
- data/vendor/assets/stylesheets/brilliance_black.css +608 -0
- data/vendor/assets/stylesheets/brilliance_dull.css +602 -0
- data/vendor/assets/stylesheets/cobalt.css +152 -0
- data/vendor/assets/stylesheets/dawn.css +124 -0
- data/vendor/assets/stylesheets/eiffel.css +124 -0
- data/vendor/assets/stylesheets/espresso_libre.css +112 -0
- data/vendor/assets/stylesheets/idle.css +65 -0
- data/vendor/assets/stylesheets/iplastic.css +83 -0
- data/vendor/assets/stylesheets/lazy.css +76 -0
- data/vendor/assets/stylesheets/mac_classic.css +126 -0
- data/vendor/assets/stylesheets/magicwb_amiga.css +107 -0
- data/vendor/assets/stylesheets/pastels_on_dark.css +191 -0
- data/vendor/assets/stylesheets/railscasts.css +74 -0
- data/vendor/assets/stylesheets/slush_poppies.css +88 -0
- data/vendor/assets/stylesheets/spacecadet.css +54 -0
- data/vendor/assets/stylesheets/sunburst.css +183 -0
- data/vendor/assets/stylesheets/twilight.css +140 -0
- data/vendor/assets/stylesheets/zenburnesque.css +94 -0
- metadata +302 -0
data/syntax/ini.syntax
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
name: Ini
|
3
|
+
fileTypes:
|
4
|
+
- ini
|
5
|
+
- conf
|
6
|
+
scopeName: source.ini
|
7
|
+
uuid: 77DC23B6-8A90-11D9-BAA4-000A9584EC8C
|
8
|
+
foldingStartMarker: \[
|
9
|
+
patterns:
|
10
|
+
- name: comment.line.number-sign.ini
|
11
|
+
captures:
|
12
|
+
"1":
|
13
|
+
name: punctuation.definition.comment.ini
|
14
|
+
match: (#).*$\n?
|
15
|
+
- name: comment.line.semicolon.ini
|
16
|
+
captures:
|
17
|
+
"1":
|
18
|
+
name: punctuation.definition.comment.ini
|
19
|
+
match: (;).*$\n?
|
20
|
+
- captures:
|
21
|
+
"1":
|
22
|
+
name: keyword.other.definition.ini
|
23
|
+
"2":
|
24
|
+
name: punctuation.separator.key-value.ini
|
25
|
+
match: \b([a-zA-Z0-9_.-]+)\b\s*(=)
|
26
|
+
- name: entity.name.section.group-title.ini
|
27
|
+
captures:
|
28
|
+
"1":
|
29
|
+
name: punctuation.definition.entity.ini
|
30
|
+
"3":
|
31
|
+
name: punctuation.definition.entity.ini
|
32
|
+
match: ^(\[)(.*?)(\])
|
33
|
+
- name: string.quoted.single.ini
|
34
|
+
endCaptures:
|
35
|
+
"0":
|
36
|
+
name: punctuation.definition.string.end.ini
|
37
|
+
begin: "'"
|
38
|
+
beginCaptures:
|
39
|
+
"0":
|
40
|
+
name: punctuation.definition.string.begin.ini
|
41
|
+
end: "'"
|
42
|
+
patterns:
|
43
|
+
- name: constant.character.escape.ini
|
44
|
+
match: \\.
|
45
|
+
- name: string.quoted.double.ini
|
46
|
+
endCaptures:
|
47
|
+
"0":
|
48
|
+
name: punctuation.definition.string.end.ini
|
49
|
+
begin: "\""
|
50
|
+
beginCaptures:
|
51
|
+
"0":
|
52
|
+
name: punctuation.definition.string.begin.ini
|
53
|
+
end: "\""
|
54
|
+
foldingStopMarker: \[
|
55
|
+
keyEquivalent: ^~I
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
name: Installer Distribution Script
|
3
|
+
fileTypes:
|
4
|
+
- dist
|
5
|
+
scopeName: text.xml.apple-dist
|
6
|
+
uuid: 25D29CD3-07B7-44C6-A96A-46CF771130EB
|
7
|
+
foldingStartMarker: ^\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))
|
8
|
+
patterns:
|
9
|
+
- name: source.js.embedded.apple-dist
|
10
|
+
captures:
|
11
|
+
"1":
|
12
|
+
name: meta.tag.xml
|
13
|
+
"2":
|
14
|
+
name: punctuation.definition.tag.xml
|
15
|
+
"3":
|
16
|
+
name: entity.name.tag.xml
|
17
|
+
"4":
|
18
|
+
name: punctuation.definition.tag.xml
|
19
|
+
begin: ((<)(script)(>))
|
20
|
+
end: ((</)(script)(>))
|
21
|
+
patterns:
|
22
|
+
- name: support.class.apple-dist
|
23
|
+
begin: \bsystem\b
|
24
|
+
end: (?=(\(|\s))|$
|
25
|
+
patterns:
|
26
|
+
- name: support.function.apple-dist
|
27
|
+
match: \b(compareVersions|defaults|gestalt|localizedString(WithFormat)?|localizedStandardString(WithFormat)?|log|propertiesOf|run(Once)?|sysctl|users\.desktopSessionsCount|version)\b
|
28
|
+
- name: support.function.apple-dist
|
29
|
+
begin: \b(applications)\b
|
30
|
+
end: (?=(\(|\s))|$
|
31
|
+
patterns:
|
32
|
+
- name: support.variable.apple-dist
|
33
|
+
match: \b(fromPID|fromIdentifier|all)\b
|
34
|
+
- name: support.function.apple-dist
|
35
|
+
begin: \b(files)\b
|
36
|
+
end: (?=(\(|\s))|$
|
37
|
+
patterns:
|
38
|
+
- name: support.variable.apple-dist
|
39
|
+
match: \b(fileExistsAtPath|plistAtPath|bundleAtPath)\b
|
40
|
+
- name: support.function.apple-dist
|
41
|
+
begin: \b(ioregistry)\b
|
42
|
+
end: (?=(\(|\s))|$
|
43
|
+
patterns:
|
44
|
+
- name: support.variable.apple-dist
|
45
|
+
match: \b(fromPath|matching(Class|Name)|(children|parents)Of)\b
|
46
|
+
- name: support.class.apple-dist
|
47
|
+
begin: \b(choices)\b
|
48
|
+
end: (?=(\(|\s))|$
|
49
|
+
patterns:
|
50
|
+
- name: support.variable.apple-dist
|
51
|
+
match: \b(.*)\.(bundle|customLocation(AllowAlternateVolumes)?|description(-mime-type)?|(start_)?enabled|id|(start_)?selected|tooltip|(start_)?visible|title|packages|packageUpgradeAction)\b
|
52
|
+
- name: support.class.apple-dist
|
53
|
+
begin: \bmy\b
|
54
|
+
end: (?=(\(|\s))|$
|
55
|
+
patterns:
|
56
|
+
- name: support.function.apple-dist
|
57
|
+
begin: \b(choice)\b
|
58
|
+
end: (?=(\(|\s))|$
|
59
|
+
patterns:
|
60
|
+
- name: support.variable.apple-dist
|
61
|
+
match: \b(bundle|customLocation(AllowAlternateVolumes)?|description(-mime-type)?|(start_)?enabled|id|(start_)?selected|tooltip|(start_)?visible|title|packages|packageUpgradeAction)\b
|
62
|
+
- name: support.function.apple-dist
|
63
|
+
begin: \b(result)\b
|
64
|
+
end: (?=(\(|\s))|$
|
65
|
+
patterns:
|
66
|
+
- name: support.variable.apple-dist
|
67
|
+
match: \b(type|title|message)\b
|
68
|
+
- name: support.function.apple-dist
|
69
|
+
begin: \b(target)\b
|
70
|
+
end: (?=(\(|\s))|$
|
71
|
+
patterns:
|
72
|
+
- name: support.variable.apple-dist
|
73
|
+
match: \b(mountpoint|availableKilobytes|systemVersion|receiptForIdentifier)\b
|
74
|
+
- include: source.js
|
75
|
+
- include: text.xml
|
76
|
+
foldingStopMarker: ^\s*(</[^>]+>|[/%]>|-->)\s*$
|
77
|
+
keyEquivalent: ^~I
|
data/syntax/io.syntax
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
name: Io
|
3
|
+
fileTypes:
|
4
|
+
- io
|
5
|
+
scopeName: source.io
|
6
|
+
uuid: BD798537-3548-47F3-A6AB-7FB95C45DB83
|
7
|
+
foldingStartMarker: (/\*\*|\([^\)]*$|if\()
|
8
|
+
patterns:
|
9
|
+
- captures:
|
10
|
+
"1":
|
11
|
+
name: meta.empty-parenthesis.io
|
12
|
+
match: \((\))
|
13
|
+
comment: we match this to overload return inside () --Allan; scoping rules for what gets the scope have changed, so we now group the ) instead of the ( -- Rob
|
14
|
+
- captures:
|
15
|
+
"1":
|
16
|
+
name: meta.comma-parenthesis.io
|
17
|
+
match: \,(\))
|
18
|
+
comment: We want to do the same for ,) -- Seckar; same as above -- Rob
|
19
|
+
- name: keyword.control.io
|
20
|
+
match: \b(if|ifTrue|ifFalse|ifTrueIfFalse|for|loop|reverseForeach|foreach|map|continue|break|while|do|return)\b
|
21
|
+
- name: comment.block.io
|
22
|
+
captures:
|
23
|
+
"0":
|
24
|
+
name: punctuation.definition.comment.io
|
25
|
+
begin: /\*
|
26
|
+
end: \*/
|
27
|
+
- name: comment.line.double-slash.io
|
28
|
+
captures:
|
29
|
+
"1":
|
30
|
+
name: punctuation.definition.comment.io
|
31
|
+
match: (//).*$\n?
|
32
|
+
- name: comment.line.number-sign.io
|
33
|
+
captures:
|
34
|
+
"1":
|
35
|
+
name: punctuation.definition.comment.io
|
36
|
+
match: (#).*$\n?
|
37
|
+
- name: variable.language.io
|
38
|
+
match: \b(self|sender|target|proto|protos|parent)\b
|
39
|
+
comment: I wonder if some of this isn't variable.other.language? --Allan; scoping this as variable.language to match Objective-C's handling of 'self', which is inconsistent with C++'s handling of 'this' but perhaps intentionally so -- Rob
|
40
|
+
- name: keyword.operator.io
|
41
|
+
match: <=|>=|=|:=|\*|\||\|\||\+|-|/|&|&&|>|<|\?|@|@@|\b(and|or)\b
|
42
|
+
- name: constant.other.io
|
43
|
+
match: \bGL[\w_]+\b
|
44
|
+
- name: support.class.io
|
45
|
+
match: \b([A-Z](\w+)?)\b
|
46
|
+
- name: support.function.io
|
47
|
+
match: \b(clone|call|init|method|list|vector|block|(\w+(?=\s*\()))\b
|
48
|
+
- name: support.function.open-gl.io
|
49
|
+
match: \b(gl(u|ut)?[A-Z]\w+)\b
|
50
|
+
- name: string.quoted.triple.io
|
51
|
+
endCaptures:
|
52
|
+
"0":
|
53
|
+
name: punctuation.definition.string.end.io
|
54
|
+
begin: "\"\"\""
|
55
|
+
beginCaptures:
|
56
|
+
"0":
|
57
|
+
name: punctuation.definition.string.begin.io
|
58
|
+
end: "\"\"\""
|
59
|
+
patterns:
|
60
|
+
- name: constant.character.escape.io
|
61
|
+
match: \\.
|
62
|
+
- name: string.quoted.double.io
|
63
|
+
endCaptures:
|
64
|
+
"0":
|
65
|
+
name: punctuation.definition.string.end.io
|
66
|
+
begin: "\""
|
67
|
+
beginCaptures:
|
68
|
+
"0":
|
69
|
+
name: punctuation.definition.string.begin.io
|
70
|
+
end: "\""
|
71
|
+
patterns:
|
72
|
+
- name: constant.character.escape.io
|
73
|
+
match: \\.
|
74
|
+
- name: constant.numeric.io
|
75
|
+
match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\b
|
76
|
+
- name: variable.other.global.io
|
77
|
+
match: (Lobby)\b
|
78
|
+
- name: constant.language.io
|
79
|
+
match: \b(TRUE|true|FALSE|false|NULL|null|Null|Nil|nil|YES|NO)\b
|
80
|
+
foldingStopMarker: (\*\*/|^\s*\))
|
81
|
+
keyEquivalent: ^~I
|
data/syntax/java.syntax
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
---
|
2
|
+
name: Java
|
3
|
+
fileTypes:
|
4
|
+
- java
|
5
|
+
- bsh
|
6
|
+
scopeName: source.java
|
7
|
+
repository:
|
8
|
+
statement-remainder:
|
9
|
+
patterns:
|
10
|
+
- name: meta.definition.param-list.java
|
11
|
+
begin: \(
|
12
|
+
end: (?=\))
|
13
|
+
patterns:
|
14
|
+
- include: "#all-types"
|
15
|
+
- name: meta.definition.throws.java
|
16
|
+
captures:
|
17
|
+
"1":
|
18
|
+
name: keyword.other.class-fns.java
|
19
|
+
begin: (throws)
|
20
|
+
end: (?={)
|
21
|
+
patterns:
|
22
|
+
- include: "#all-types"
|
23
|
+
comments:
|
24
|
+
patterns:
|
25
|
+
- name: comment.block.java
|
26
|
+
captures:
|
27
|
+
"0":
|
28
|
+
name: punctuation.definition.comment.java
|
29
|
+
begin: /\*
|
30
|
+
end: \*/
|
31
|
+
- name: comment.line.double-slash.java
|
32
|
+
captures:
|
33
|
+
"1":
|
34
|
+
name: punctuation.definition.comment.java
|
35
|
+
match: (//).*$\n?
|
36
|
+
all-types:
|
37
|
+
patterns:
|
38
|
+
- include: "#support-type-built-ins-java"
|
39
|
+
- include: "#support-type-java"
|
40
|
+
- include: "#storage-type-java"
|
41
|
+
support-type-java:
|
42
|
+
name: support.type.java
|
43
|
+
match: \b(java(x)?\.([a-z]\w+\.)+[A-Z]\w+)\b
|
44
|
+
support-type-built-ins-java:
|
45
|
+
name: support.type.built-ins.java
|
46
|
+
match: \b(R(GBImageFilter|MI(S(ocketFactory|e(curity(Manager|Exception)|rver(SocketFactory|Impl(_Stub)?)?))|C(onnect(ion(Impl(_Stub)?)?|or(Server)?)|l(ientSocketFactory|assLoader(Spi)?))|IIOPServerImpl|JRMPServerImpl|FailureHandler)|SA(MultiPrimePrivateCrtKey(Spec)?|OtherPrimeInfo|P(ublicKey(Spec)?|rivate(CrtKey(Spec)?|Key(Spec)?))|Key(GenParameterSpec)?)|o(otPane(Container|UI)|und(Rectangle2D|ingMode)|w(Mapper|Set(Reader|MetaData(Impl)?|Internal|Event|W(arning|riter)|Listener)?)|le(Result|Status|NotFoundException|Info(NotFoundException)?|Unresolved(List)?|List)?|bot)|dn|C(2ParameterSpec|5ParameterSpec)|u(n(nable|time(M(XBean|BeanException)|OperationsException|Permission|E(rrorException|xception))?)|leBasedCollator)|TFEditorKit|e(s(caleOp|o(urceBundle|l(utionSyntax|ve(Result|r)))|ult(Set(MetaData)?)?|ponseCache)|nder(ingHints|Context|e(dImage(Factory)?|r)|ableImage(Op|Producer)?)|c(tang(ularShape|le(2D)?)|eiver)|tention(Policy)?|jectedExecution(Handler|Exception)|p(licateScaleFilter|aintManager)|entrant(ReadWriteLock|Lock)|verbType|qu(iredModelMBean|estingUserName)|f(er(ence(UriSchemesSupported|able|Queue)?|ralException)|lect(ionException|Permission)|resh(able|FailedException)|Addr)?|lation(S(upport(MBean)?|ervice(MBean|NotRegisteredException)?)|Not(ification|FoundException)|Type(Support|NotFoundException)?|Exception)?|a(d(er|OnlyBufferException|able(ByteChannel)?|WriteLock)|lmC(hoiceCallback|allback))|gi(st(erableService|ry(Handler)?)|on)|mote(Ref|S(tub|erver)|Call|Object(InvocationHandler)?|Exception)?)|a(ster(Op|FormatException)?|ndom(Access(File)?)?))|G(uard(edObject)?|ener(ic(SignatureFormatError|Declaration|ArrayType)|al(SecurityException|Path))|ZIP(InputStream|OutputStream)|lyph(Metrics|JustificationInfo|V(iew|ector))|a(theringByteChannel|ugeMonitor(MBean)?|pContent|rbageCollectorMXBean)|r(id(Bag(Constraints|Layout)|Layout)|oup|egorianCalendar|a(yFilter|dientPaint|phic(s(2D|Config(uration|Template)|Device|Environment)?|Attribute))))|X(ML(GregorianCalendar|Constants|Decoder|ParseException|Encoder|Formatter)|id|Path(Constants|Ex(ception|pression(Exception)?)|VariableResolver|F(unction(Resolver|Exception)?|actory(ConfigurationException)?))?|50(9(C(RL(Selector|Entry)?|ert(ificate|Selector))|TrustManager|E(ncodedKeySpec|xten(sion|dedKeyManager))|KeyManager)|0Pri(ncipal|vateCredential))|ml(Reader|Writer)|A(Resource|Connection|DataSource|Exception))|M(GF1ParameterSpec|Bean(Registration(Exception)?|Server(Builder|Notification(Filter)?|Connection|InvocationHandler|Delegate(MBean)?|Permission|F(orwarder|actory))?|NotificationInfo|ConstructorInfo|TrustPermission|Info|OperationInfo|P(ermission|arameterInfo)|Exception|FeatureInfo|AttributeInfo)|i(ssing(ResourceException|Format(WidthException|ArgumentException))|nimalHTMLWriter|di(Message|System|Channel|Device(Provider)?|UnavailableException|Event|File(Reader|Format|Writer))|xer(Provider)?|meTypeParseException)|o(nitor(MBean|SettingException|Notification)?|d(ifi(cationItem|er)|elMBean(Notification(Broadcaster|Info)|ConstructorInfo|Info(Support)?|OperationInfo|AttributeInfo)?)|use(Motion(Listener|Adapter)|In(put(Listener|Adapter)|fo)|DragGestureRecognizer|Event|Wheel(Event|Listener)|Listener|Adapter))|u(table(ComboBoxModel|TreeNode|AttributeSet)|lti(RootPaneUI|castSocket|Menu(BarUI|ItemUI)|ButtonUI|S(croll(BarUI|PaneUI)|p(innerUI|litPaneUI)|eparatorUI|liderUI)|Co(lorChooserUI|mboBoxUI)|T(ool(BarUI|TipUI)|extUI|ab(le(HeaderUI|UI)|bedPaneUI)|reeUI)|InternalFrameUI|ple(Master|DocumentHandling)|OptionPaneUI|D(oc(Print(Service|Job))?|esktop(IconUI|PaneUI))|P(ixelPackedSampleModel|opupMenuUI|anelUI|rogressBarUI)|ViewportUI|FileChooserUI|L(istUI|ookAndFeel|abelUI)))|e(ssage(Digest(Spi)?|Format)|nu(Bar(UI)?|S(hortcut|electionManager)|Co(ntainer|mponent)|Item(UI)?|DragMouse(Event|Listener)|E(vent|lement)|Key(Event|Listener)|Listener)?|t(hod(Descriptor)?|a(Message|EventListener|l(R(ootPaneUI|adioButtonUI)|MenuBarUI|B(orders|uttonUI)|S(croll(B(utton|arUI)|PaneUI)|plitPaneUI|eparatorUI|liderUI)|C(heckBox(Icon|UI)|omboBox(Button|Icon|UI|Editor))|T(heme|o(ol(BarUI|TipUI)|ggleButtonUI)|extFieldUI|abbedPaneUI|reeUI)|I(nternalFrame(TitlePane|UI)|conFactory)|DesktopIconUI|P(opupMenuSeparatorUI|rogressBarUI)|FileChooserUI|L(ookAndFeel|abelUI))))|dia(Size(Name)?|Name|Tra(y|cker)|PrintableArea)?|m(ory(M(XBean|anagerMXBean)|Handler|NotificationInfo|CacheImage(InputStream|OutputStream)|Type|ImageSource|Usage|PoolMXBean)|ber))|a(skFormatter|n(ifest|age(ReferralControl|rFactoryParameters|ment(Permission|Factory)))|c(Spi)?|t(h(Context)?|ch(Result|er)|teBorder)|p(pedByteBuffer)?|lformed(InputException|ObjectNameException|URLException|ParameterizedTypeException|LinkException)|rshal(Exception|ledObject))|Let(MBean)?)|B(yte(Buffer|Channel|Order|LookupTable|Array(InputStream|OutputStream))?|MPImageWriteParam|i(n(d(ing|Exception)|aryRefAddr)|tSet|di|g(Integer|Decimal))|o(o(k|lean(Control)?)|undedRangeModel|rder(UIResource|Factory|Layout)?|x(View|Layout)?)|u(tton(Group|Model|UI)?|ffer(Strategy|Capabilities|ed(Reader|I(nputStream|mage(Op|Filter)?)|OutputStream|Writer)|OverflowException|UnderflowException)?)|e(velBorder|an(s|Context(Membership(Event|Listener)|S(upport|ervice(s(Support|Listener)?|Revoked(Event|Listener)|Provider(BeanInfo)?|AvailableEvent))|C(hild(Support|ComponentProxy)?|ontainerProxy)|Proxy|Event)?|Info|Descriptor))|lo(ck(ingQueue|View)|b)|a(s(ic(R(ootPaneUI|adioButton(MenuItemUI|UI))|GraphicsUtils|Menu(BarUI|ItemUI|UI)|B(orders|utton(UI|Listener))|S(croll(BarUI|PaneUI)|troke|p(innerUI|litPane(Divider|UI))|eparatorUI|liderUI)|HTML|C(heckBox(MenuItemUI|UI)|o(ntrol|lorChooserUI|mbo(Box(Renderer|UI|Editor)|Popup)))|T(o(ol(Bar(SeparatorUI|UI)|TipUI)|ggleButtonUI)|ext(UI|PaneUI|FieldUI|AreaUI)|ab(le(HeaderUI|UI)|bedPaneUI)|reeUI)|I(nternalFrame(TitlePane|UI)|conFactory)|OptionPaneUI|D(irectoryModel|esktop(IconUI|PaneUI))|P(opupMenu(SeparatorUI|UI)|ermission|a(sswordFieldUI|nelUI)|rogressBarUI)|EditorPaneUI|ViewportUI|F(ileChooserUI|ormattedTextFieldUI)|L(istUI|ookAndFeel|abelUI)|A(ttribute(s)?|rrowButton))|eRowSet)|nd(CombineOp|edSampleModel)|ckingStoreException|tchUpdateException|d(BinaryOpValueExpException|StringOperationException|PaddingException|LocationException|AttributeValueExpException))|r(okenBarrierException|eakIterator))|S(slRMI(ServerSocketFactory|ClientSocketFactory)|h(ort(Message|Buffer(Exception)?|LookupTable)?|eetCollate|ape(GraphicAttribute)?)|y(s(tem(Color|FlavorMap)?|exMessage)|n(c(hronousQueue|Resolver|Provider(Exception)?|Fa(ctory(Exception)?|iledException))|th(GraphicsUtils|Style(Factory)?|Con(stants|text)|esizer|Painter|LookAndFeel)))|c(he(duled(ThreadPoolExecutor|ExecutorService|Future)|ma(ViolationException|Factory(Loader)?)?)|a(nner|tteringByteChannel)|roll(BarUI|Pane(Constants|UI|Layout|Adjustable)?|able|bar))|t(yle(Sheet|d(Document|EditorKit)|Con(stants|text))?|ub(NotFoundException|Delegate)?|a(ndardMBean|ck(TraceElement|OverflowError)?|te(Edit(able)?|Factory|ment)|rtTlsRe(sponse|quest))|r(i(ng(Re(fAddr|ader)|Monitor(MBean)?|Bu(ilder|ffer(InputStream)?)|Selection|C(haracterIterator|ontent)|Tokenizer|IndexOutOfBoundsException|ValueExp|Writer)?|ctMath)|oke|uct|eam(Result|Source|Handler|CorruptedException|Tokenizer|PrintService(Factory)?)))|i(ngle(SelectionModel|PixelPackedSampleModel)|ze(Requirements|Sequence|2DSyntax|LimitExceededException)|des|gn(e(dObject|r)|ature(Spi|Exception)?)|mple(BeanInfo|T(ype|imeZone)|D(oc|ateFormat)|Formatter|AttributeSet))|SL(S(ocket(Factory)?|e(ssion(Binding(Event|Listener)|Context)?|rverSocket(Factory)?))|HandshakeException|Context(Spi)?|P(e(erUnverifiedException|rmission)|rotocolException)|E(ngine(Result)?|xception)|KeyException)|o(cket(SecurityException|Handler|Channel|TimeoutException|Impl(Factory)?|Options|Permission|Exception|Factory|Address)?|u(ndbank(Re(source|ader))?|rce(DataLine|Locator)?)|ft(Reference|BevelBorder)|rt(ResponseControl|ingFocusTraversalPolicy|Control|ed(Map|Set)|Key))|u(pp(ortedValuesAttribute|ressWarnings)|bject(D(omainCombiner|elegationPermission))?)|p(inner(Model|NumberModel|DateModel|UI|ListModel)|litPaneUI|ring(Layout)?)|e(c(ur(ity(Manager|Permission|Exception)?|e(Random(Spi)?|C(lassLoader|acheResponse)))|retKey(Spec|Factory(Spi)?)?)|t(OfIntegerSyntax)?|paratorUI|verity|quence(InputStream|r)?|lect(ionKey|or(Provider)?|ableChannel)|a(ledObject|rch(Result|Controls))|r(ial(Ref|Blob|izable(Permission)?|Struct|Clob|Datalink|JavaObject|Exception|Array)|v(ice(Registry|NotFoundException|U(navailableException|I(Factory)?)|Permission)|er(R(untimeException|ef)|Socket(Channel|Factory)?|NotActiveException|CloneException|E(rror|xception))))|gment|maphore)|keleton(MismatchException|NotFoundException)?|wing(Constants|Utilities|PropertyChangeSupport)|liderUI|a(sl(Server(Factory)?|Client(Factory)?|Exception)?|vepoint|mpleModel)|QL(Input(Impl)?|Output(Impl)?|Data|Permission|Exception|Warning)|AX(Result|Source|TransformerFactory|Parser(Factory)?))|H(yperlink(Event|Listener)|ttp(sURLConnection|RetryException|URLConnection)|i(erarchy(Bounds(Listener|Adapter)|Event|Listener)|ghlighter)|ostnameVerifier|TML(Document|EditorKit|FrameHyperlinkEvent|Writer)?|eadlessException|a(s(h(Map|table|Set|DocAttributeSet|Print(RequestAttributeSet|ServiceAttributeSet|JobAttributeSet)|AttributeSet)|Controls)|nd(shakeCompleted(Event|Listener)|ler)))|N(o(RouteToHostException|n(ReadableChannelException|invertibleTransformException|WritableChannelException)|t(BoundException|ification(Result|Broadcaster(Support)?|Emitter|Filter(Support)?|Listener)?|SerializableException|Yet(BoundException|ConnectedException)|Co(ntextException|mpliantMBeanException)|OwnerException|ActiveException)|Such(MethodE(rror|xception)|ObjectException|P(addingException|roviderException)|ElementException|FieldE(rror|xception)|A(ttributeException|lgorithmException))|deChange(Event|Listener)|C(onnectionPendingException|lassDefFoundError)|InitialContextException|PermissionException)|u(ll(Cipher|PointerException)|m(ericShaper|ber(Of(InterveningJobs|Documents)|Up(Supported)?|Format(ter|Exception)?)?))|e(t(Permission|workInterface)|gativeArraySizeException)|a(vigationFilter|m(ing(Manager|SecurityException|E(numeration|vent|xception(Event)?)|Listener)?|e(spaceC(hangeListener|ontext)|NotFoundException|C(lassPair|allback)|Parser|AlreadyBoundException)?)))|C(h(oice(Callback|Format)?|eck(sum|ed(InputStream|OutputStream)|box(Group|MenuItem)?)|a(n(nel(s)?|ge(dCharSetException|Event|Listener))|r(set(Decoder|Provider|Encoder)?|Buffer|Sequence|ConversionException|acter(CodingException|Iterator)?|Array(Reader|Writer)))|romaticity)|R(C32|L(Selector|Exception)?)|yclicBarrier|MMException|ipher(Spi|InputStream|OutputStream)?|SS|o(n(s(tructor|oleHandler)|nect(ion(P(oolDataSource|endingException)|Event(Listener)?)?|IOException|Exception)|current(M(odificationException|ap)|HashMap|LinkedQueue)|t(e(nt(Model|Handler(Factory)?)|xt(NotEmptyException|ualRenderedImageFactory)?)|ainer(OrderFocusTraversalPolicy|Event|Listener|Adapter)?|rol(lerEventListener|Factory)?)|dition|volveOp|fi(rmationCallback|guration(Exception)?))|okieHandler|d(ingErrorAction|e(S(igner|ource)|r(Result|MalfunctionError)))|unt(erMonitor(MBean)?|DownLatch)|p(yOnWriteArray(Set|List)|ies(Supported)?)|l(or(Model|S(upported|pace|electionModel)|C(hooser(ComponentFactory|UI)|onvertOp)|Type|UIResource)?|l(ection(s|CertStoreParameters)?|at(ion(ElementIterator|Key)|or)))|m(p(il(er|ationMXBean)|o(site(Name|Context|Type|Data(Support)?|View)?|nent(SampleModel|ColorModel|InputMap(UIResource)?|Orientation|UI|Event|View|Listener|Adapter)?|und(Border|Name|Control|Edit))|letionService|ara(tor|ble)|ression)|municationException|bo(Box(Model|UI|Editor)|Popup)))|u(stomizer|r(sor|rency)|bicCurve2D)|e(ll(RendererPane|Editor(Listener)?)|rt(ificate(NotYetValidException|ParsingException|E(ncodingException|x(ception|piredException))|Factory(Spi)?)?|S(tore(Spi|Parameters|Exception)?|elector)|Path(Builder(Result|Spi|Exception)?|TrustManagerParameters|Parameters|Validator(Result|Spi|Exception)?)?))|l(ip(board(Owner)?)?|o(se(d(ByInterruptException|SelectorException|ChannelException)|able)|ne(NotSupportedException|able)|b)|ass(NotFoundException|C(ircularityError|astException)|De(sc|finition)|F(ileTransformer|ormatError)|Load(ingMXBean|er(Repository)?))?)|a(n(not(RedoException|UndoException|ProceedException)|cel(l(edKeyException|ationException)|ablePrintJob)|vas)|che(Re(sponse|quest)|dRowSet)|l(endar|l(able(Statement)?|back(Handler)?))|r(dLayout|et(Event|Listener)?))|r(opImageFilter|edential(NotFoundException|Ex(ception|piredException))))|T(hr(owable|ead(Group|MXBean|Info|Death|PoolExecutor|Factory|Local)?)|ype(s|NotPresentException|InfoProvider|Variable)?|i(tledBorder|e|leObserver|me(stamp|outException|Zone|Unit|r(MBean|Notification|Task|AlarmClockNotification)?|LimitExceededException)?)|oo(ManyListenersException|l(BarUI|Tip(Manager|UI)|kit))|e(xt(Measurer|Syntax|HitInfo|Component|urePaint|InputCallback|OutputCallback|UI|Event|Field|L(istener|ayout)|A(ction|ttribute|rea))|mplates(Handler)?)|a(rget(edNotification|DataLine)?|gElement|b(S(top|et)|ular(Type|Data(Support)?)|Expander|le(Model(Event|Listener)?|HeaderUI|C(olumn(Model(Event|Listener)?)?|ell(Renderer|Editor))|UI|View)|ableView|bedPaneUI))|r(ust(Manager(Factory(Spi)?)?|Anchor)|ee(M(odel(Event|Listener)?|ap)|Se(t|lection(Model|Event|Listener))|Node|Cell(Renderer|Editor)|UI|Path|Expansion(Event|Listener)|WillExpandListener)|a(ns(parency|f(orm(er(Handler|ConfigurationException|Exception|Factory(ConfigurationError)?)?|Attribute)|er(Handler|able))|action(R(olledbackException|equiredException)|alWriter)|mitter)|ck)))|I(n(s(t(an(ce(NotFoundException|AlreadyExistsException)|tiationE(rror|xception))|rument(ation)?)|ufficientResourcesException|ets(UIResource)?)|herit(ed|ableThreadLocal)|comp(leteAnnotationException|atibleClassChangeError)|t(Buffer|e(r(na(tionalFormatter|l(Error|Frame(UI|Event|FocusTraversalPolicy|Listener|Adapter)))|rupt(ibleChannel|ed(NamingException|IOException|Exception)))|ger(Syntax)?)|rospect(ionException|or))|itial(Context(Factory(Builder)?)?|DirContext|LdapContext)|dex(ColorModel|edProperty(ChangeEvent|Descriptor)|OutOfBoundsException)|put(M(ismatchException|ethod(Requests|Highlight|Context|Descriptor|Event|Listener)?|ap(UIResource)?)|S(tream(Reader)?|ubset)|Context|Event|Verifier)|et(SocketAddress|4Address|Address|6Address)|v(ocation(Handler|TargetException|Event)|alid(R(ole(InfoException|ValueException)|elation(ServiceException|TypeException|IdException))|M(idiDataException|arkException)|Search(ControlsException|FilterException)|NameException|ClassException|T(argetObjectTypeException|ransactionException)|O(penTypeException|bjectException)|DnDOperationException|P(arameter(SpecException|Exception)|r(opertiesFormatException|eferencesFormatException))|Key(SpecException|Exception)|A(ctivityException|ttribute(sException|IdentifierException|ValueException)|pplicationException|lgorithmParameterException)))|flater(InputStream)?|lineView)|con(UIResource|View)?|te(ra(tor|ble)|m(Selectable|Event|Listener))|dentity(Scope|HashMap)?|CC_(ColorSpace|Profile(RGB|Gray)?)|IO(Re(ad(UpdateListener|ProgressListener|WarningListener)|gistry)|Metadata(Node|Controller|Format(Impl)?)?|ByteBuffer|ServiceProvider|I(nvalidTreeException|mage)|Param(Controller)?|Exception|Write(ProgressListener|WarningListener))|OException|vParameterSpec|llegal(MonitorStateException|Block(ingModeException|SizeException)|S(tateException|electorException)|C(harsetNameException|omponentStateException|lassFormatException)|ThreadStateException|PathStateException|Format(Co(nversionException|dePointException)|PrecisionException|Exception|FlagsException|WidthException)|A(ccessE(rror|xception)|rgumentException))|mag(ingOpException|e(Read(er(Spi|WriterSpi)?|Param)|GraphicAttribute|C(onsumer|apabilities)|T(ypeSpecifier|ranscoder(Spi)?)|I(nputStream(Spi|Impl)?|con|O)|O(utputStream(Spi|Impl)?|bserver)|Producer|View|Filter|Write(Param|r(Spi)?))?))|Z(ip(InputStream|OutputStream|E(ntry|xception)|File)|oneView)|O(ceanTheme|ut(put(Stream(Writer)?|DeviceAssigned|Keys)|OfMemoryError)|p(tion(PaneUI|alDataException)?|e(n(MBean(ConstructorInfo(Support)?|Info(Support)?|OperationInfo(Support)?|ParameterInfo(Support)?|AttributeInfo(Support)?)|Type|DataException)|rati(ngSystemMXBean|on(sException|NotSupportedException)?)))|ver(la(yLayout|ppingFileLockException)|ride)|wner|rientationRequested|b(serv(er|able)|j(ID|ect(Stream(C(onstants|lass)|Exception|Field)|Name|ChangeListener|In(stance|put(Stream|Validation)?)|Output(Stream)?|View|Factory(Builder)?)?))|AEPParameterSpec)|D(GC|ynamicMBean|nDConstants|i(splayMode|ctionary|alog|r(StateFactory|Context|ect(oryManager|ColorModel)|ObjectFactory)|gest(InputStream|OutputStream|Exception)|mension(2D|UIResource)?)|SA(P(ublicKey(Spec)?|aram(s|eterSpec)|rivateKey(Spec)?)|Key(PairGenerator)?)|H(GenParameterSpec|P(ublicKey(Spec)?|arameterSpec|rivateKey(Spec)?)|Key)|o(c(ument(Builder(Factory)?|Name|ed|Parser|Event|Filter|Listener)?|PrintJob|Flavor|Attribute(Set)?)?|uble(Buffer)?|mainCombiner)|u(plicateFormatFlagsException|ration)|TD(Constants)?|e(s(criptor(Support|Access)?|t(ination|roy(able|FailedException))|ignMode|ktop(Manager|IconUI|PaneUI))|cimalFormat(Symbols)?|precated|f(later(OutputStream)?|ault(M(utableTreeNode|e(nuLayout|talTheme))|B(oundedRangeModel|uttonModel)|S(tyledDocument|ingleSelectionModel)|Highlighter|C(o(lorSelectionModel|mboBoxModel)|ellEditor|aret)|T(extUI|able(Model|C(olumnModel|ellRenderer))|ree(Model|SelectionModel|Cell(Renderer|Editor)))|DesktopManager|PersistenceDelegate|EditorKit|KeyboardFocusManager|Fo(cus(Manager|TraversalPolicy)|rmatter(Factory)?)|L(ist(Model|SelectionModel|CellRenderer)|oaderRepository)))|l(egationPermission|ay(ed|Queue))|bugGraphics)|OM(Result|Source|Locator)|ES(edeKeySpec|KeySpec)|at(e(Time(Syntax|At(C(ompleted|reation)|Processing))|Format(ter|Symbols)?)?|a(Buffer(Byte|Short|Int|Double|UShort|Float)?|type(Con(stants|figurationException)|Factory)|Source|Truncation|Input(Stream)?|Output(Stream)?|gram(Socket(Impl(Factory)?)?|Channel|Packet)|F(ormatException|lavor)|baseMetaData|Line))|r(iver(Manager|PropertyInfo)?|opTarget(Context|Dr(opEvent|agEvent)|Event|Listener|Adapter)?|ag(Gesture(Recognizer|Event|Listener)|Source(MotionListener|Context|Dr(opEvent|agEvent)|Event|Listener|Adapter)?)))|U(R(I(Resolver|Syntax(Exception)?|Exception)?|L(StreamHandler(Factory)?|C(onnection|lassLoader)|Decoder|Encoder)?)|n(s(olicitedNotification(Event|Listener)?|upported(C(harsetException|lassVersionError|allbackException)|OperationException|EncodingException|FlavorException|LookAndFeelException|A(ddressTypeException|udioFileException))|atisfiedLinkError)|icastRemoteObject|d(o(Manager|ableEdit(Support|Event|Listener)?)|eclaredThrowableException)|expectedException|known(GroupException|ServiceException|HostException|ObjectException|Error|Format(ConversionException|FlagsException))|re(solved(Permission|AddressException)|coverable(EntryException|KeyException)|ferenced)|m(odifiable(SetException|ClassException)|a(ppableCharacterException|rshalException)))|til(ities|Delegate)?|TFDataFormatException|I(Resource|Manager|D(efaults)?)|UID)|J(R(ootPane|adioButton(MenuItem)?)|M(RuntimeException|X(Serv(iceURL|erErrorException)|Connect(ionNotification|or(Server(MBean|Provider|Factory)?|Provider|Factory)?)|Pr(incipal|oviderException)|Authenticator)|enu(Bar|Item)?|Exception)|Button|S(croll(Bar|Pane)|p(inner|litPane)|eparator|lider)|o(in(RowSet|able)|b(Me(ssageFromOperator|diaSheets(Supported|Completed)?)|S(heets|tate(Reason(s)?)?)|HoldUntil|Name|Impressions(Supported|Completed)?|OriginatingUserName|Priority(Supported)?|KOctets(Supported|Processed)?|Attributes))|dbcRowSet|C(heckBox(MenuItem)?|o(lorChooser|m(ponent|boBox)))|T(o(ol(Bar|Tip)|ggleButton)|ext(Component|Pane|Field|Area)|ab(le(Header)?|bedPane)|ree)|InternalFrame|OptionPane|D(ialog|esktopPane)|P(opupMenu|EG(HuffmanTable|Image(ReadParam|WriteParam)|QTable)|a(sswordField|nel)|rogressBar)|EditorPane|ar(InputStream|OutputStream|URLConnection|E(ntry|xception)|File)|Viewport|F(ileChooser|ormattedTextField|rame)|Window|L(ist|a(yeredPane|bel))|Applet)|P(hantomReference|BE(ParameterSpec|Key(Spec)?)|i(pe(d(Reader|InputStream|OutputStream|Writer))?|xel(Grabber|InterleavedSampleModel))|S(SParameterSpec|ource)|o(sition|int(2D|erInfo)?|oledConnection|pup(Menu(UI|Event|Listener)?|Factory)?|l(ygon|icy(Node|QualifierInfo)?)|rt(UnreachableException|ableRemoteObject(Delegate)?)?)|u(shback(Reader|InputStream)|blicKey)|er(sisten(ceDelegate|tMBean)|mission(s|Collection)?)|DLOverrideSupported|lain(Document|View)|a(ssword(Callback|View|Authentication)|nel(UI)?|ck(200|edColorModel|age)|t(hIterator|ch|tern(SyntaxException)?)|int(Context|Event)?|per|r(se(Position|Exception|r(ConfigurationException|Delegator)?)|tialResultException|a(graphView|meter(MetaData|Block|izedType|Descriptor)))|ge(sPerMinute(Color)?|Ranges|dResults(ResponseControl|Control)|able|Format|Attributes))|K(CS8EncodedKeySpec|IX(BuilderParameters|CertPath(BuilderResult|Checker|ValidatorResult)|Parameters))|r(i(n(cipal|t(RequestAttribute(Set)?|Graphics|S(tream|ervice(Lookup|Attribute(Set|Event|Listener)?)?)|er(Resolution|Graphics|M(oreInfo(Manufacturer)?|essageFromOperator|akeAndModel)|State(Reason(s)?)?|Name|I(sAcceptingJobs|nfo|OException)|URI|Job|Exception|Location|AbortException)|Job(Event|Listener|A(ttribute(Set|Event|Listener)?|dapter))?|E(vent|xception)|able|Quality|Writer))|ority(BlockingQueue|Queue)|v(ileged(ExceptionAction|Action(Exception)?)|ate(MLet|C(lassLoader|redentialPermission)|Key)))|o(cess(Builder)?|t(ocolException|ectionDomain)|pert(y(ResourceBundle|Change(Support|Event|Listener(Proxy)?)|Descriptor|Permission|Editor(Manager|Support)?|VetoException)|ies)|vider(Exception)?|fileDataException|gress(Monitor(InputStream)?|BarUI)|xy(Selector)?)|e(sentationDirection|dicate|paredStatement|ference(s(Factory)?|Change(Event|Listener)))))|E(n(c(ode(dKeySpec|r)|ryptedPrivateKeyInfo)|tity|um(Map|S(yntax|et)|Con(stantNotPresentException|trol)|eration)?)|tchedBorder|ditorKit|C(GenParameterSpec|P(oint|ublicKey(Spec)?|arameterSpec|rivateKey(Spec)?)|Key|Field(F(2m|p))?)|OFException|vent(SetDescriptor|Handler|Context|Object|DirContext|Queue|Listener(Proxy|List)?)?|l(ement(Type|Iterator)?|lip(se2D|ticCurve))|rror(Manager|Listener)?|x(c(hanger|eption(InInitializerError|Listener)?)|te(ndedRe(sponse|quest)|rnalizable)|p(ortException|andVetoException|ression)|e(cut(ionException|or(s|Service|CompletionService)?)|mptionMechanism(Spi|Exception)?))|mpty(Border|StackException))|V(MID|i(sibility|ew(port(UI|Layout)|Factory)?|rtualMachineError)|o(i(ceStatus|d)|latileImage)|e(ctor|toableChange(Support|Listener(Proxy)?)|rifyError)|a(l(idator(Handler)?|ue(Handler(MultiFormat)?|Exp))|riableHeightLayoutCache))|Ke(y(Rep|Generator(Spi)?|Manage(r(Factory(Spi)?)?|mentException)|S(t(ore(BuilderParameters|Spi|Exception)?|roke)|pec)|Pair(Generator(Spi)?)?|E(vent(Dispatcher|PostProcessor)?|xception)|Factory(Spi)?|map|boardFocusManager|Listener|A(dapter|lreadyExistsException|greement(Spi)?))?|r(nel|beros(Ticket|Principal|Key)))|Q(Name|u(e(ue(dJobCount)?|ry(E(val|xp))?)|adCurve2D))|F(i(nishings|delity|eld(Position|View)?|l(ter(Reader|InputStream|ed(RowSet|ImageSource)|OutputStream|Writer)?|e(Reader|nameFilter|SystemView|Handler|N(otFoundException|ameMap)|C(h(ooserUI|annel)|acheImage(InputStream|OutputStream))|I(nputStream|mage(InputStream|OutputStream))|OutputStream|D(ialog|escriptor)|Permission|View|Filter|Writer|Lock(InterruptionException)?)?)|xedHeightLayoutCache)|o(nt(RenderContext|Metrics|UIResource|FormatException)?|cus(Manager|TraversalPolicy|Event|Listener|Adapter)|rm(SubmitEvent|at(t(er(ClosedException)?|able(Flags)?)|ConversionProvider|FlagsConversionMismatchException)?|View))|uture(Task)?|eatureDescriptor|l(o(w(View|Layout)|at(Buffer|Control)?)|ushable|a(tteningPathIterator|vor(Map|Table|E(vent|xception)|Listener)))|a(ctoryConfigurationError|iledLoginException)|rame)|W(i(ndow(StateListener|Constants|Event|FocusListener|Listener|Adapter)?|ldcardType)|e(ak(Reference|HashMap)|bRowSet)|r(it(e(r|AbortedException)|able(R(enderedImage|aster)|ByteChannel))|appedPlainView))|L(i(st(ResourceBundle|Model|Selection(Model|Event|Listener)|CellRenderer|Iterator|enerNotFoundException|Data(Event|Listener)|UI|View)?|n(e(Metrics|B(order|reakMeasurer)|2D|Number(Reader|InputStream)|UnavailableException|Event|Listener)?|k(Ref|ed(BlockingQueue|Hash(Map|Set)|List)|Exception|ageError|LoopException))|mitExceededException)|o(ng(Buffer)?|c(k(Support)?|a(teRegistry|le))|ok(up(Table|Op)|AndFeel)|aderHandler|g(Record|Manager|in(Module|Context|Exception)|Stream|g(ing(MXBean|Permission)|er)))|dap(ReferralException|Name|Context)|e(vel|ase)|DAPCertStoreParameters|a(stOwnerException|y(out(Manager(2)?|Queue|FocusTraversalPolicy)|eredHighlighter)|nguageCallback|bel(UI|View)?))|A(s(sertionError|ync(hronousCloseException|BoxView))|n(notat(ion(TypeMismatchException|FormatError)?|edElement)|cestor(Event|Listener))|c(c(ount(NotFoundException|Ex(ception|piredException)|LockedException)|ess(ible(R(ole|e(sourceBundle|lation(Set)?))|Bundle|S(t(ate(Set)?|reamable)|election)|Hyper(text|link)|Co(ntext|mponent)|T(ext(Sequence)?|able(ModelChange)?)|Icon|Object|E(ditableText|xtended(Component|T(ext|able)))|Value|KeyBinding|A(ction|ttributeSequence))?|Control(Context|Exception|ler)|Exception))|ti(on(Map(UIResource)?|Event|Listener)?|v(ity(RequiredException|CompletedException)|eEvent|at(ion(Group(_Stub|ID|Desc)?|Monitor|System|I(nstantiator|D)|Desc|Exception)|or|eFailedException|able)))|l(NotFoundException|Entry)?)|t(tribute(s|ModificationException|Set(Utilities)?|d(String|CharacterIterator)|NotFoundException|ChangeNotification(Filter)?|InUseException|Exception|ValueExp|List)?|omic(Reference(FieldUpdater|Array)?|MarkableReference|Boolean|StampedReference|Integer(FieldUpdater|Array)?|Long(FieldUpdater|Array)?))|d(just(able|ment(Event|Listener))|ler32)|u(t(h(orizeCallback|enticat(ion(NotSupportedException|Exception)|or)|P(ermission|rovider))|oscroll)|dio(System|Clip|InputStream|Permission|F(ile(Reader|Format|Writer)|ormat)))|pp(ConfigurationEntry|endable|let(Stub|Context|Initializer)?)|ffineTransform(Op)?|l(phaComposite|lPermission|ready(BoundException|ConnectedException)|gorithmParameter(s(Spi)?|Generator(Spi)?|Spec))|r(c2D|ithmeticException|ea(AveragingScaleFilter)?|ray(s|BlockingQueue|StoreException|Type|IndexOutOfBoundsException|List)?)|bstract(M(ethodError|ap)|B(order|utton)|S(pinnerModel|e(t|quentialList|lect(ionKey|or|ableChannel)))|C(ol(orChooserPanel|lection)|ellEditor)|TableModel|InterruptibleChannel|Document|UndoableEdit|Preferences|ExecutorService|Queue(dSynchronizer)?|Writer|L(ist(Model)?|ayoutCache)|Action)|WT(Permission|E(vent(Multicaster|Listener(Proxy)?)?|rror|xception)|KeyStroke)))\b
|
47
|
+
strings:
|
48
|
+
patterns:
|
49
|
+
- name: string.quoted.double.java
|
50
|
+
endCaptures:
|
51
|
+
"0":
|
52
|
+
name: punctuation.definition.string.end.java
|
53
|
+
begin: "\""
|
54
|
+
beginCaptures:
|
55
|
+
"0":
|
56
|
+
name: punctuation.definition.string.begin.java
|
57
|
+
end: "\""
|
58
|
+
patterns:
|
59
|
+
- name: constant.character.escape.java
|
60
|
+
match: \\.
|
61
|
+
- name: string.quoted.single.java
|
62
|
+
endCaptures:
|
63
|
+
"0":
|
64
|
+
name: punctuation.definition.string.end.java
|
65
|
+
begin: "'"
|
66
|
+
beginCaptures:
|
67
|
+
"0":
|
68
|
+
name: punctuation.definition.string.begin.java
|
69
|
+
end: "'"
|
70
|
+
patterns:
|
71
|
+
- name: constant.character.escape.java
|
72
|
+
match: \\.
|
73
|
+
storage-type-java:
|
74
|
+
name: storage.type.java
|
75
|
+
match: \b(void|byte|short|char|int|long|float|double|boolean|([a-z]\w+\.)*[A-Z]\w+)\b
|
76
|
+
uuid: 2B449DF6-6B1D-11D9-94EC-000D93589AF6
|
77
|
+
foldingStartMarker: (\{\s*(//.*)?$|^\s*// \{\{\{)
|
78
|
+
patterns:
|
79
|
+
- name: comment.block.empty.java
|
80
|
+
captures:
|
81
|
+
"0":
|
82
|
+
name: punctuation.definition.comment.java
|
83
|
+
match: /\*\*/
|
84
|
+
- name: comment.block.documentation.java
|
85
|
+
captures:
|
86
|
+
"0":
|
87
|
+
name: punctuation.definition.comment.java
|
88
|
+
begin: (^\s*)?/\*\*
|
89
|
+
end: \*/(\s*\n)?
|
90
|
+
patterns:
|
91
|
+
- name: keyword.other.documentation.javadoc.java
|
92
|
+
match: "@(param|return|throws|exception|author|version|see|since|serial|serialField|serialData|deprecated)\\b"
|
93
|
+
- name: keyword.other.documentation.javadoc.link.java
|
94
|
+
match: \{@link\s+[^\}]*\}
|
95
|
+
- name: meta.definition.class.java
|
96
|
+
captures:
|
97
|
+
"1":
|
98
|
+
name: storage.modifier.java
|
99
|
+
"3":
|
100
|
+
name: storage.type.java
|
101
|
+
"4":
|
102
|
+
name: entity.name.type.class.java
|
103
|
+
begin: |-
|
104
|
+
(?x)^\s*
|
105
|
+
((?:\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient)\b\s*)*) # modifier
|
106
|
+
(class|interface)\s+
|
107
|
+
(\w+)\s* # identifier
|
108
|
+
end: (?={)
|
109
|
+
patterns:
|
110
|
+
- name: meta.definition.class.extends.java
|
111
|
+
captures:
|
112
|
+
"1":
|
113
|
+
name: storage.modifier.java
|
114
|
+
begin: \b(extends)\b\s+
|
115
|
+
end: (?={|implements)
|
116
|
+
patterns:
|
117
|
+
- include: "#all-types"
|
118
|
+
- name: meta.definition.class.implements.java
|
119
|
+
captures:
|
120
|
+
"1":
|
121
|
+
name: storage.modifier.java
|
122
|
+
begin: \b(implements)\b\s+
|
123
|
+
end: (?={|extends)
|
124
|
+
patterns:
|
125
|
+
- include: "#all-types"
|
126
|
+
- name: meta.definition.constructor.java
|
127
|
+
captures:
|
128
|
+
"1":
|
129
|
+
name: storage.modifier.java
|
130
|
+
"3":
|
131
|
+
name: entity.name.function.constructor.java
|
132
|
+
begin: |-
|
133
|
+
(?x)^\s*
|
134
|
+
((?:\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient)\b\s*)*) # modifier
|
135
|
+
((?!(if|while|for|catch|this|print|return|synchronized|switch))\w+)\s* # identifier
|
136
|
+
(?!.*;) # abort if line has a ;
|
137
|
+
(?=\()
|
138
|
+
end: (?={)
|
139
|
+
patterns:
|
140
|
+
- include: "#statement-remainder"
|
141
|
+
- include: "#comments"
|
142
|
+
- name: meta.definition.method.java
|
143
|
+
begin: |-
|
144
|
+
(?x)^\s*
|
145
|
+
((?:\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient)\b\s*)*) # modifier
|
146
|
+
(\b(void|boolean|byte|char|short|int|float|long|double|(\w+\.)*[A-Z]\w+)\b(<((?:\w+\.)*[A-Z]\w+)>|\[\s*\])?)\s* # type
|
147
|
+
(\w+)\s* # identifier
|
148
|
+
(?!.*;) # abort if line has a ;
|
149
|
+
(?=\()
|
150
|
+
beginCaptures:
|
151
|
+
"6":
|
152
|
+
name: storage.type.java
|
153
|
+
"8":
|
154
|
+
name: entity.name.function.java
|
155
|
+
"1":
|
156
|
+
name: storage.modifier.java
|
157
|
+
"4":
|
158
|
+
name: storage.type.java
|
159
|
+
end: (?={)
|
160
|
+
patterns:
|
161
|
+
- include: "#statement-remainder"
|
162
|
+
- include: "#comments"
|
163
|
+
- name: constant.other.java
|
164
|
+
match: \b([A-Z][A-Z0-9_]+)\b
|
165
|
+
- include: "#comments"
|
166
|
+
- include: "#all-types"
|
167
|
+
- name: storage.modifier.access-control.java
|
168
|
+
match: \b(private|protected|public)\b
|
169
|
+
- name: storage.modifier.java
|
170
|
+
match: \b(abstract|final|native|static|transient|synchronized|volatile|strictfp|extends|implements)\b
|
171
|
+
- name: storage.type.java
|
172
|
+
match: \b(class|interface)\b
|
173
|
+
- name: keyword.control.catch-exception.java
|
174
|
+
match: \b(try|catch|finally|throw)\b
|
175
|
+
- name: keyword.control.java
|
176
|
+
match: \b(return|break|case|continue|default|do|while|for|switch|if|else)\b
|
177
|
+
- name: meta.import.java
|
178
|
+
captures:
|
179
|
+
"1":
|
180
|
+
name: keyword.other.class-fns.java
|
181
|
+
"2":
|
182
|
+
name: entity.name.type.import.java
|
183
|
+
match: ^\s*(import)\s+([^ ;]+?);
|
184
|
+
- name: meta.package.java
|
185
|
+
captures:
|
186
|
+
"1":
|
187
|
+
name: keyword.other.class-fns.java
|
188
|
+
"2":
|
189
|
+
name: entity.name.function.package.java
|
190
|
+
match: ^\s*(package)\s+([^ ;]+?);
|
191
|
+
- name: keyword.other.class-fns.java
|
192
|
+
match: \b(new|throws)\b
|
193
|
+
- name: keyword.operator.java
|
194
|
+
match: \b(instanceof)\b
|
195
|
+
- name: constant.language.java
|
196
|
+
match: \b(true|false|null)\b
|
197
|
+
- name: variable.language.java
|
198
|
+
match: \b(this|super)\b
|
199
|
+
- name: constant.numeric.java
|
200
|
+
match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)([LlFfUuDd]|UL|ul)?\b
|
201
|
+
- include: "#strings"
|
202
|
+
- name: keyword.operator.comparison.java
|
203
|
+
match: (==|!=|<=|>=|<>|<|>)
|
204
|
+
- name: keyword.operator.increment-decrement.java
|
205
|
+
match: (\-\-|\+\+)
|
206
|
+
- name: keyword.operator.arithmetic.java
|
207
|
+
match: (\-|\+|\*|\/|%)
|
208
|
+
- name: keyword.operator.logical.java
|
209
|
+
match: (!|&&|\|\|)
|
210
|
+
foldingStopMarker: ^\s*(\}|// \}\}\}$)
|
211
|
+
keyEquivalent: ^~J
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Java Properties
|
3
|
+
fileTypes:
|
4
|
+
- properties
|
5
|
+
scopeName: source.java-props
|
6
|
+
uuid: 2A28E50A-6B1D-11D9-8689-000D93589AF6
|
7
|
+
patterns:
|
8
|
+
- name: comment.line.number-sign.java-props
|
9
|
+
captures:
|
10
|
+
"1":
|
11
|
+
name: punctuation.definition.comment.java-props
|
12
|
+
match: ([#!])(.+)?$\n?
|
13
|
+
- captures:
|
14
|
+
"1":
|
15
|
+
name: keyword.other.java-props
|
16
|
+
"2":
|
17
|
+
name: punctuation.separator.key-value.java-props
|
18
|
+
match: ^([^:=]+)([:=])(.*)$
|
19
|
+
comment: Not compliant with the properties file spec, but this works for me, and I'm the one who counts around here.
|
20
|
+
keyEquivalent: ^~J
|