ultraviolet1x 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +16 -0
  4. data/History.txt +25 -0
  5. data/README.rdoc +29 -0
  6. data/README.txt +52 -0
  7. data/Rakefile +11 -0
  8. data/bin/theme2latexrender +122 -0
  9. data/bin/theme2xhtmlrender +156 -0
  10. data/bin/uv +140 -0
  11. data/broken_syntax/markdown.syntax +543 -0
  12. data/broken_syntax/php.syntax +1253 -0
  13. data/lib/uv/render_processor.rb +140 -0
  14. data/lib/uv/utility.rb +67 -0
  15. data/lib/uv/version.rb +3 -0
  16. data/lib/uv.rb +95 -0
  17. data/mm/manual.mm +840 -0
  18. data/render/latex/active4d.render +132 -0
  19. data/render/latex/all_hallows_eve.render +96 -0
  20. data/render/latex/amy.render +171 -0
  21. data/render/latex/blackboard.render +111 -0
  22. data/render/latex/brilliance_black.render +552 -0
  23. data/render/latex/brilliance_dull.render +561 -0
  24. data/render/latex/cobalt.render +162 -0
  25. data/render/latex/dawn.render +126 -0
  26. data/render/latex/eiffel.render +132 -0
  27. data/render/latex/espresso_libre.render +123 -0
  28. data/render/latex/idle.render +93 -0
  29. data/render/latex/iplastic.render +99 -0
  30. data/render/latex/lazy.render +96 -0
  31. data/render/latex/mac_classic.render +135 -0
  32. data/render/latex/magicwb_amiga.render +117 -0
  33. data/render/latex/pastels_on_dark.render +204 -0
  34. data/render/latex/slush_poppies.render +123 -0
  35. data/render/latex/spacecadet.render +81 -0
  36. data/render/latex/sunburst.render +186 -0
  37. data/render/latex/twilight.render +153 -0
  38. data/render/latex/zenburnesque.render +126 -0
  39. data/render/old/txt2tags.render +131 -0
  40. data/render/xhtml/active4d.render +140 -0
  41. data/render/xhtml/all_hallows_eve.render +104 -0
  42. data/render/xhtml/amy.render +179 -0
  43. data/render/xhtml/blackboard.render +119 -0
  44. data/render/xhtml/brilliance_black.render +560 -0
  45. data/render/xhtml/brilliance_dull.render +569 -0
  46. data/render/xhtml/cobalt.render +170 -0
  47. data/render/xhtml/dawn.render +134 -0
  48. data/render/xhtml/eiffel.render +140 -0
  49. data/render/xhtml/espresso_libre.render +131 -0
  50. data/render/xhtml/files/css/active4d.css +114 -0
  51. data/render/xhtml/files/css/all_hallows_eve.css +72 -0
  52. data/render/xhtml/files/css/amy.css +147 -0
  53. data/render/xhtml/files/css/blackboard.css +88 -0
  54. data/render/xhtml/files/css/brilliance_black.css +605 -0
  55. data/render/xhtml/files/css/brilliance_dull.css +599 -0
  56. data/render/xhtml/files/css/cobalt.css +149 -0
  57. data/render/xhtml/files/css/dawn.css +121 -0
  58. data/render/xhtml/files/css/eiffel.css +121 -0
  59. data/render/xhtml/files/css/espresso_libre.css +109 -0
  60. data/render/xhtml/files/css/idle.css +62 -0
  61. data/render/xhtml/files/css/iplastic.css +80 -0
  62. data/render/xhtml/files/css/lazy.css +73 -0
  63. data/render/xhtml/files/css/mac_classic.css +123 -0
  64. data/render/xhtml/files/css/magicwb_amiga.css +104 -0
  65. data/render/xhtml/files/css/pastels_on_dark.css +188 -0
  66. data/render/xhtml/files/css/slush_poppies.css +85 -0
  67. data/render/xhtml/files/css/spacecadet.css +51 -0
  68. data/render/xhtml/files/css/sunburst.css +180 -0
  69. data/render/xhtml/files/css/twilight.css +137 -0
  70. data/render/xhtml/files/css/zenburnesque.css +91 -0
  71. data/render/xhtml/idle.render +101 -0
  72. data/render/xhtml/iplastic.render +107 -0
  73. data/render/xhtml/lazy.render +104 -0
  74. data/render/xhtml/mac_classic.render +143 -0
  75. data/render/xhtml/magicwb_amiga.render +125 -0
  76. data/render/xhtml/pastels_on_dark.render +212 -0
  77. data/render/xhtml/slush_poppies.render +131 -0
  78. data/render/xhtml/spacecadet.render +89 -0
  79. data/render/xhtml/sunburst.render +194 -0
  80. data/render/xhtml/twilight.render +161 -0
  81. data/render/xhtml/zenburnesque.render +134 -0
  82. data/syntax/actionscript.syntax +97 -0
  83. data/syntax/active4d.syntax +276 -0
  84. data/syntax/active4d_html.syntax +311 -0
  85. data/syntax/active4d_ini.syntax +50 -0
  86. data/syntax/active4d_library.syntax +21 -0
  87. data/syntax/ada.syntax +33 -0
  88. data/syntax/antlr.syntax +151 -0
  89. data/syntax/apache.syntax +191 -0
  90. data/syntax/applescript.syntax +384 -0
  91. data/syntax/asp.syntax +70 -0
  92. data/syntax/asp_vb.net.syntax +129 -0
  93. data/syntax/bibtex.syntax +151 -0
  94. data/syntax/blog_html.syntax +41 -0
  95. data/syntax/blog_markdown.syntax +42 -0
  96. data/syntax/blog_text.syntax +27 -0
  97. data/syntax/blog_textile.syntax +27 -0
  98. data/syntax/buggy/nemerle.syntax +74 -0
  99. data/syntax/build.syntax +53 -0
  100. data/syntax/bulletin_board.syntax +287 -0
  101. data/syntax/c++.syntax +186 -0
  102. data/syntax/c.syntax +414 -0
  103. data/syntax/cake.syntax +55 -0
  104. data/syntax/camlp4.syntax +36 -0
  105. data/syntax/cm.syntax +32 -0
  106. data/syntax/coffeescript.syntax +216 -0
  107. data/syntax/coldfusion.syntax +119 -0
  108. data/syntax/context_free.syntax +176 -0
  109. data/syntax/cs.syntax +59 -0
  110. data/syntax/css.syntax +195 -0
  111. data/syntax/css_experimental.syntax +1925 -0
  112. data/syntax/csv.syntax +68 -0
  113. data/syntax/d.syntax +142 -0
  114. data/syntax/diff.syntax +81 -0
  115. data/syntax/dokuwiki.syntax +204 -0
  116. data/syntax/dot.syntax +47 -0
  117. data/syntax/doxygen.syntax +43 -0
  118. data/syntax/dylan.syntax +62 -0
  119. data/syntax/eiffel.syntax +78 -0
  120. data/syntax/erlang.syntax +922 -0
  121. data/syntax/f-script.syntax +80 -0
  122. data/syntax/fortran.syntax +141 -0
  123. data/syntax/fxscript.syntax +142 -0
  124. data/syntax/greasemonkey.syntax +34 -0
  125. data/syntax/gri.syntax +83 -0
  126. data/syntax/groovy.syntax +191 -0
  127. data/syntax/gtd.syntax +22 -0
  128. data/syntax/gtdalt.syntax +143 -0
  129. data/syntax/haml.syntax +88 -0
  130. data/syntax/haskell.syntax +88 -0
  131. data/syntax/html-asp.syntax +27 -0
  132. data/syntax/html.syntax +362 -0
  133. data/syntax/html_django.syntax +36 -0
  134. data/syntax/html_for_asp.net.syntax +424 -0
  135. data/syntax/html_mason.syntax +119 -0
  136. data/syntax/html_rails.syntax +40 -0
  137. data/syntax/html_tcl.syntax +26 -0
  138. data/syntax/icalendar.syntax +32 -0
  139. data/syntax/inform.syntax +48 -0
  140. data/syntax/ini.syntax +55 -0
  141. data/syntax/installer_distribution_script.syntax +77 -0
  142. data/syntax/io.syntax +81 -0
  143. data/syntax/java.syntax +211 -0
  144. data/syntax/javaproperties.syntax +20 -0
  145. data/syntax/javascript.syntax +256 -0
  146. data/syntax/javascript_+_prototype.syntax +72 -0
  147. data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  148. data/syntax/jquery_javascript.syntax +114 -0
  149. data/syntax/json.syntax +136 -0
  150. data/syntax/languagedefinition.syntax +708 -0
  151. data/syntax/latex.syntax +566 -0
  152. data/syntax/latex_beamer.syntax +41 -0
  153. data/syntax/latex_log.syntax +50 -0
  154. data/syntax/latex_memoir.syntax +64 -0
  155. data/syntax/lexflex.syntax +219 -0
  156. data/syntax/lighttpd.syntax +54 -0
  157. data/syntax/lilypond.syntax +492 -0
  158. data/syntax/lisp.syntax +61 -0
  159. data/syntax/literate_haskell.syntax +24 -0
  160. data/syntax/logo.syntax +29 -0
  161. data/syntax/logtalk.syntax +152 -0
  162. data/syntax/lua.syntax +86 -0
  163. data/syntax/m.syntax +142 -0
  164. data/syntax/macports_portfile.syntax +163 -0
  165. data/syntax/mail.syntax +118 -0
  166. data/syntax/makefile.syntax +36 -0
  167. data/syntax/man.syntax +17 -0
  168. data/syntax/mediawiki.syntax +567 -0
  169. data/syntax/mel.syntax +92 -0
  170. data/syntax/mips.syntax +66 -0
  171. data/syntax/mod_perl.syntax +50 -0
  172. data/syntax/modula-3.syntax +47 -0
  173. data/syntax/moinmoin.syntax +189 -0
  174. data/syntax/mootools.syntax +572 -0
  175. data/syntax/movable_type.syntax +162 -0
  176. data/syntax/multimarkdown.syntax +39 -0
  177. data/syntax/objective-c++.syntax +18 -0
  178. data/syntax/objective-c.syntax +233 -0
  179. data/syntax/ocaml.syntax +764 -0
  180. data/syntax/ocamllex.syntax +167 -0
  181. data/syntax/ocamlyacc.syntax +184 -0
  182. data/syntax/old/YAML.yaml +160 -0
  183. data/syntax/old/txt2tags.yaml +139 -0
  184. data/syntax/opengl.syntax +14 -0
  185. data/syntax/pascal.syntax +77 -0
  186. data/syntax/perl.syntax +1115 -0
  187. data/syntax/plain_text.syntax +32 -0
  188. data/syntax/pmwiki.syntax +113 -0
  189. data/syntax/postscript.syntax +114 -0
  190. data/syntax/processing.syntax +106 -0
  191. data/syntax/prolog.syntax +40 -0
  192. data/syntax/property_list.syntax +635 -0
  193. data/syntax/python.syntax +868 -0
  194. data/syntax/python_django.syntax +21 -0
  195. data/syntax/qmake_project.syntax +114 -0
  196. data/syntax/qt_c++.syntax +26 -0
  197. data/syntax/quake3_config.syntax +32 -0
  198. data/syntax/r.syntax +81 -0
  199. data/syntax/r_console.syntax +16 -0
  200. data/syntax/ragel.syntax +201 -0
  201. data/syntax/rd_r_documentation.syntax +91 -0
  202. data/syntax/regexp.syntax +50 -0
  203. data/syntax/regular_expressions_oniguruma.syntax +107 -0
  204. data/syntax/regular_expressions_python.syntax +109 -0
  205. data/syntax/release_notes.syntax +46 -0
  206. data/syntax/remind.syntax +253 -0
  207. data/syntax/restructuredtext.syntax +250 -0
  208. data/syntax/rez.syntax +80 -0
  209. data/syntax/ruby.syntax +1035 -0
  210. data/syntax/ruby_experimental.syntax +145 -0
  211. data/syntax/ruby_on_rails.syntax +88 -0
  212. data/syntax/s5.syntax +69 -0
  213. data/syntax/sass.syntax +45 -0
  214. data/syntax/scheme.syntax +347 -0
  215. data/syntax/scilab.syntax +41 -0
  216. data/syntax/setext.syntax +147 -0
  217. data/syntax/shell-unix-generic.syntax +384 -0
  218. data/syntax/slate.syntax +149 -0
  219. data/syntax/smarty.syntax +63 -0
  220. data/syntax/sql.syntax +237 -0
  221. data/syntax/sql_rails.syntax +18 -0
  222. data/syntax/ssh-config.syntax +33 -0
  223. data/syntax/standard_ml.syntax +121 -0
  224. data/syntax/strings_file.syntax +39 -0
  225. data/syntax/subversion_commit_message.syntax +36 -0
  226. data/syntax/sweave.syntax +84 -0
  227. data/syntax/swig.syntax +57 -0
  228. data/syntax/tcl.syntax +152 -0
  229. data/syntax/template_toolkit.syntax +121 -0
  230. data/syntax/tex.syntax +86 -0
  231. data/syntax/tex_math.syntax +49 -0
  232. data/syntax/textile.syntax +215 -0
  233. data/syntax/tsv.syntax +50 -0
  234. data/syntax/twiki.syntax +241 -0
  235. data/syntax/txt2tags.syntax +79 -0
  236. data/syntax/vectorscript.syntax +57 -0
  237. data/syntax/xhtml_1.0.syntax +4027 -0
  238. data/syntax/xml.syntax +180 -0
  239. data/syntax/xml_strict.syntax +92 -0
  240. data/syntax/xsl.syntax +60 -0
  241. data/syntax/yaml.syntax +160 -0
  242. data/syntax/yui_javascript.syntax +176 -0
  243. data/test/ultraviolet_test.rb +17 -0
  244. data/test/uv_test.rb +0 -0
  245. data/ultraviolet1x.gemspec +22 -0
  246. metadata +333 -0
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: F-Script
3
+ fileTypes:
4
+ - fscript
5
+ scopeName: source.fscript
6
+ uuid: C2CB9A74-C9FC-4F63-8BAF-E64B72A60DD4
7
+ foldingStartMarker: \[
8
+ patterns:
9
+ - name: meta.dummy.symbol.ignore.fscript
10
+ match: "(:|\\w):"
11
+ - name: constant.other.symbol.fscript
12
+ captures:
13
+ "1":
14
+ name: punctuation.definition.symbol.fscript
15
+ match: (:)\w+\b
16
+ - name: constant.numeric.fscript
17
+ match: \b((([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b
18
+ - name: constant.other.block.compact.fscript
19
+ match: "#([[:lower:]]|_|[+=\\-/!%&*|><~?])(\\w|[+=\\-/!%&*|><~?:])*"
20
+ - name: meta.block.empty.fscript
21
+ captures:
22
+ "1":
23
+ name: punctuation.section.block.fscript
24
+ "2":
25
+ name: variable.parameter.block.fscript
26
+ "3":
27
+ name: punctuation.section.block.fscript
28
+ match: (\[)(?:\s*((?::\w+\s+)*:\w+)\s*\|)?\s*(\])
29
+ - name: meta.block.fscript
30
+ endCaptures:
31
+ "0":
32
+ name: punctuation.section.block.fscript
33
+ begin: (\[)(?:\s*((?::\w+\s+)*:\w+)\s*\|)?
34
+ beginCaptures:
35
+ "1":
36
+ name: punctuation.section.block.fscript
37
+ "2":
38
+ name: variable.parameter.block.fscript
39
+ end: \]
40
+ patterns:
41
+ - name: meta.block.header.fscript
42
+ match: \s+
43
+ - name: meta.block.content.fscript
44
+ captures:
45
+ "1":
46
+ name: variable.other.local.fscript
47
+ begin: (?:\|(\s*(?:\w+\s+)*\w+\s*)?\||(?=[^\s|]))
48
+ end: (?=\])
49
+ patterns:
50
+ - include: $base
51
+ - name: constant.language.fscript
52
+ match: \b(true|YES|false|NO|sys|nil)\b
53
+ - captures:
54
+ "1":
55
+ name: entity.name.function.fscript
56
+ match: ^(\w+)\s*:=\s*(?=\[)
57
+ comment: a hack for the symbol popup
58
+ - name: comment.block.quotes.fscript
59
+ endCaptures:
60
+ "0":
61
+ name: punctuation.definition.comment.end.fscript
62
+ begin: "\""
63
+ beginCaptures:
64
+ "0":
65
+ name: punctuation.definition.comment.begin.fscript
66
+ end: "\""
67
+ - name: string.quoted.single.fscript
68
+ endCaptures:
69
+ "0":
70
+ name: punctuation.definition.string.end.fscript
71
+ begin: "'"
72
+ beginCaptures:
73
+ "0":
74
+ name: punctuation.definition.string.begin.fscript
75
+ end: "'"
76
+ patterns:
77
+ - name: constant.character.escape.fscript
78
+ match: \\.
79
+ foldingStopMarker: \]
80
+ keyEquivalent: ^~F
@@ -0,0 +1,141 @@
1
+ ---
2
+ name: Fortran
3
+ fileTypes:
4
+ - f
5
+ - F
6
+ - f77
7
+ - F77
8
+ - f90
9
+ - F90
10
+ - f95
11
+ - F95
12
+ - for
13
+ - FOR
14
+ - fpp
15
+ - FPP
16
+ - dmod1
17
+ - dt
18
+ firstLineMatch: "(?i)-[*]- mode: f90 -[*]-"
19
+ scopeName: source.fortran
20
+ uuid: 45253F88-F7CC-49C5-9C32-F3FADD2AB579
21
+ foldingStartMarker: ^\s*(?i:(if|for|do|module(?!\s*procedure)|interface|type(?!\s*\()|subroutine|function))\s.*$
22
+ patterns:
23
+ - name: meta.function.fortran
24
+ endCaptures:
25
+ "0":
26
+ name: punctuation.definition.parameters.fortran
27
+ begin: "(?x)\n (?: (?i:subroutine\\s+) | (?i:function\\s+) )\n \t([A-Za-z_][A-Za-z0-9_:]+)\n \t \\s*((\\()(?=[^)\\n]*))?\n "
28
+ beginCaptures:
29
+ "1":
30
+ name: entity.name.function.fortran
31
+ "2":
32
+ name: punctuation.definition.parameters.fortran
33
+ end: \)
34
+ patterns:
35
+ - include: $base
36
+ - name: keyword.control.fortran
37
+ match: \b(?i:(use|if|for|do|go\sto|then|else|function|end|enddo|endif|contains|assign|backspace|call|close|continue|endfile|inquire|open|print|read|return|rewind|stop|write))\b
38
+ - name: comment.line.c.fortran.punchcard-style
39
+ begin: ^[Cc]
40
+ beginCaptures:
41
+ "0":
42
+ name: punctuation.definition.comment.fortran
43
+ end: $\n?
44
+ patterns:
45
+ - match: \\\s*\n
46
+ - name: comment.line.asterisk.fortran.modern
47
+ begin: ^[*]
48
+ beginCaptures:
49
+ "0":
50
+ name: punctuation.definition.comment.fortran
51
+ end: $\n?
52
+ patterns:
53
+ - match: \\\s*\n
54
+ - name: comment.line.exclamation.fortran.modern
55
+ begin: "[!]"
56
+ beginCaptures:
57
+ "0":
58
+ name: punctuation.definition.comment.fortran
59
+ end: $\n?
60
+ patterns:
61
+ - match: \\\s*\n
62
+ - name: string.quoted.single.fortran
63
+ endCaptures:
64
+ "0":
65
+ name: punctuation.definition.string.end.fortran
66
+ begin: "'"
67
+ beginCaptures:
68
+ "0":
69
+ name: punctuation.definition.string.begin.fortran
70
+ end: "'"
71
+ patterns:
72
+ - name: constant.character.escape.fortran
73
+ match: \\.
74
+ - name: string.quoted.double.fortran
75
+ endCaptures:
76
+ "0":
77
+ name: punctuation.definition.string.end.fortran
78
+ begin: "\""
79
+ beginCaptures:
80
+ "0":
81
+ name: punctuation.definition.string.begin.fortran
82
+ end: "\""
83
+ patterns:
84
+ - name: constant.character.escape.fortran
85
+ match: \\.
86
+ - name: storage.type.fortran
87
+ match: \b(?i:data|double|block\sdata|double\sprecision|type(?=\s*\()|entry|equivalence|integer|real|character|intrinsic|logical|parameter)\b
88
+ - name: storage.modifier.fortran
89
+ match: \b(?i:(private|public|external|format|implicit|common|intent|in|out|inout))\b
90
+ - name: keyword.other.fortran.90
91
+ match: \b(?i:(recursive|optional|interface|procedure|module|pointer|target))\b
92
+ - name: keyword.other.fortran
93
+ match: \b(?i:(program|save|subroutine|function|module|none))\b
94
+ - name: constant.language.fortran
95
+ match: \b(?i:(r8|r4|TRUE|FALSE))\b
96
+ - name: keyword.operator.fortran
97
+ match: (?i:(\.and\.|\.or\.|\.eq\.|\.lt\.|\.le\.|\.gt\.|\.ge\.|\.ne\.|\.not\.|\.eqv\.|\.neqv\.))
98
+ - name: keyword.operator.fortran.90
99
+ match: (\=\=|\/\=|\>\=|\>|\<|\<\=|\%|\=\>|\=|\:\:)
100
+ - name: constant.numeric.fortran
101
+ match: \b((0(x|X)[0-9a-fA-F]*)|([0-9\.]*_[ri][0-9]+)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
102
+ - name: meta.tag.preprocessor.macro.fortran
103
+ begin: "(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n \t\t\\((\n \t\t\t\\s* \\g<id> \\s* # first argument\n \t\t\t(, \\s* \\g<id> \\s*)* # additional arguments\n \t\t)\\)\n \t"
104
+ end: (?=(?://|/\*))|$
105
+ - name: meta.preprocessor.include.fortran
106
+ begin: ^\s*(#)\s*(include|import)\b\s+
107
+ beginCaptures:
108
+ "1":
109
+ name: punctuation.definition.preprocessor.fortran
110
+ "2":
111
+ name: keyword.control.import.fortran
112
+ end: (?=(?://|/\*))|$
113
+ patterns:
114
+ - match: \\\s*\n
115
+ - name: string.quoted.double.include.fortran
116
+ endCaptures:
117
+ "0":
118
+ name: punctuation.definition.string.end.fortran
119
+ begin: "\""
120
+ beginCaptures:
121
+ "0":
122
+ name: punctuation.definition.string.begin.fortran
123
+ end: "\""
124
+ - name: string.quoted.other.lt-gt.include.fortran
125
+ endCaptures:
126
+ "0":
127
+ name: punctuation.definition.string.end.fortran
128
+ begin: <
129
+ beginCaptures:
130
+ "0":
131
+ name: punctuation.definition.string.begin.fortran
132
+ end: ">"
133
+ - name: meta.preprocessor.fortran
134
+ begin: ^\s*#\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef|endif)\b
135
+ end: (?=(?://|/\*))|$
136
+ patterns:
137
+ - match: \\\s*\n
138
+ - name: keyword.other.non-executable.fortran
139
+ match: \b(?i:(dimension|function))\b
140
+ foldingStopMarker: ^\s*(?i:(end)).*$
141
+ keyEquivalent: ^~F
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: FXScript
3
+ fileTypes:
4
+ - fxscript
5
+ scopeName: source.fxscript
6
+ uuid: 43751327-3FD1-4BE7-AD05-136FC552BABA
7
+ foldingStartMarker: (^|(?<=;)[ \t]*)on[ \t]+(\w+)[ \t]*
8
+ patterns:
9
+ - name: meta.function.fxscript
10
+ captures:
11
+ "2":
12
+ name: entity.name.function.fxscript
13
+ begin: (^|(?<=;)[ \t]*)on[ \t]+(\w+)[ \t]*(?=\([^\)]*\))
14
+ end: end(;|;?[ \t]*\n|;?[ \t]*//.*[ \t]*\n)
15
+ patterns:
16
+ - begin: \((?=(?i:clip|color|float|image|point|string|value|point3d))
17
+ end: \)
18
+ patterns:
19
+ - captures:
20
+ "1":
21
+ name: support.type.fxscript
22
+ "2":
23
+ name: variable.parameter.function.fxscript
24
+ match: ((?i:clip|color|float|image|point|string|value|point3d))[ \t]+([^,)]+)
25
+ - include: $self
26
+ - name: keyword.other.input-control.fxscript
27
+ begin: (^|(?<=;)[ \t]*)input[ \t]*
28
+ end: \n
29
+ patterns:
30
+ - include: $self
31
+ - captures:
32
+ "1":
33
+ name: variable.other.global.fxscript
34
+ "2":
35
+ name: string.quoted.double.fxscript
36
+ "3":
37
+ name: support.type.fxscript
38
+ match: \b(\w+),[ \t]+("[^"]+"),[ \t]+(?i:Angle|CheckBox|Clip|Color|FontList|Label|Point|Popup|RadioGroup|Slider|Text),?
39
+ comment: Input Controls
40
+ - name: storage.type.fxscript
41
+ match: (?i:float|image|point|point3d|region|string|value|YUVcolor)\b
42
+ comment: Data Types
43
+ - name: keyword.control.fxscrpt
44
+ match: \b(?i:if|(end|else)( if)?|for|next|return|repeat( While| With (Counter|List)))\b
45
+ - name: keyword.other.definition-statements.fxscript
46
+ match: /b(?i:AlphaType|EffectID|FullFrame|Group|InformationFlag|InvalEntireItem|KeyType|ProducesAlpha|QTEffect|RenderEachFrameWhenStill|WipeCode)/b
47
+ - name: keyword.operator.arithmetic.fxscrpt
48
+ match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|!==|<=|>=|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^="
49
+ - name: comment.line.double-slash.fxscript
50
+ captures:
51
+ "1":
52
+ name: punctuation.definition.comment.fxscript
53
+ match: (//).*$\n?
54
+ - name: support.constant.colorspace.fxscript
55
+ match: (?i:kFormatRGB219|kFormatRGB255|kFormatYUV219)
56
+ - name: constant.numeric.fxscript
57
+ match: \b[0-9]+(\.[0-9]*)?\b
58
+ - name: constant.numeric.hex.fxscript
59
+ match: \b0x([a-fA-F0-9]*)?\b
60
+ - name: support.constant.color.fxscript
61
+ match: (?i:kBlack|kBlue|kCyan|kGray|kGreen|kMagenta|kRed|kWhite|kYellow)
62
+ - name: support.constant.formatting.fxscript
63
+ match: (?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)
64
+ - name: support.constant.general.fxscript
65
+ match: (?i:false|kAlpha|kNone|kUndefined|true)\b
66
+ - name: support.constant.key.fxscript
67
+ match: (?i:kKeyAdd|kKeyDarken|kKeyDifference|kKeyHardLight|kKeyLighten|kKeyMultiply|kKeyNormal|kKeyOverlay|kKeyScreen|kKeySoftLight|kKeySubtract)
68
+ - name: support.constant.formatting.fxscript
69
+ match: (?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)
70
+ - name: support.variable.predeclared.fxscript
71
+ match: \b(?i:clip1|clip2|dest|duration|exposedBackground|fieldNumber|fieldprocessing|fps|frame|linearRamp|previewing|ratio|renderRes|RGBtoYUV|src1|src2|srcIsGap1|srcIsGap2|srcType1|srcType2|topfield|YUVtoRGB)\b
72
+ - name: support.constant.text.fxscript
73
+ match: (?i:kbold|kbolditalic|kcenterjustify|kitalic|kleftjustify|kplain|krightjustify)
74
+ - name: support.constant.shapes.fxscript
75
+ match: (?i:kDiamond|kRound|kSquare)
76
+ - captures:
77
+ "6":
78
+ name: entity.name.function.color.chroma-u.fxscript
79
+ "7":
80
+ name: entity.name.function.color.chroma-v.fxscript
81
+ "1":
82
+ name: entity.name.function.color.alpha.fxscript
83
+ "2":
84
+ name: entity.name.function.color.red.fxscript
85
+ "3":
86
+ name: entity.name.function.color.green.fxscript
87
+ "4":
88
+ name: entity.name.function.color.blue.fxscript
89
+ "5":
90
+ name: entity.name.function.color.luma.fxscript
91
+ match: \b\w+\.(?i:(a)|(r)|(g)|(b)|(y)|(u)|(v))\b
92
+ - name: string.quoted.double.fxscript
93
+ endCaptures:
94
+ "0":
95
+ name: punctuation.definition.string.end.fxscript
96
+ begin: "\""
97
+ beginCaptures:
98
+ "0":
99
+ name: punctuation.definition.string.begin.fxscript
100
+ end: "\""
101
+ patterns:
102
+ - name: constant.character.escape.fxscript
103
+ match: \\.
104
+ - name: support.function.composite.fxscript
105
+ match: \b(?i:Add|AddOffset|Darken|Difference|ImageAnd|ImageOr|ImageXor|Invert|InvertChannel|Lighten|Matte|Multiply|Overlay|Screen|Subtract|UnMultiply)\b
106
+ - name: support.function.blit.fxscript
107
+ match: \b(?i:Blit|BlitRect|MaskCopy|MeshBlit|MeshBlit3D|PagePeel|RegionCopy)\b
108
+ - name: support.function.clip.fxscript
109
+ match: \b(?i:GetLimits|GetReelName|GetTimeCode|GetVideo)
110
+ - name: support.function.distort.fxscript
111
+ match: \b(?i:BumpMap|Cylinder|Displace|Fisheye|OffsetPixels|PondRipple|Ripple|Wave|Whirlpool)\b
112
+ - name: support.function.external.fxscript
113
+ match: \b(?i:Filter|Generator|Transition)\b
114
+ - name: support.function.geometry.fxscript
115
+ match: \b(?i:AngleTo|AspectOf|BoundsOf|CenterOf|Convert2dto3d|convert3dto2d|DimensionsOf|DistTo|Grid|Interpolate|Mesh)\b
116
+ - name: support.function.key.fxscript
117
+ match: \b(?i:BGDiff|BlueScreen|GreenScreen|RGBColorKey|YUVColorKey)\b
118
+ - name: support.function.math.fxscript
119
+ match: \b(?i:Abs|Integer|Sign|Sqrt|Power)\b
120
+ - name: support.function.parser.fxscript
121
+ match: \b(?i:BezToLevelMap|ChromaAngleKey)
122
+ - name: support.function.process.fxscript
123
+ match: \b(?i:Blend|Blur|BlurChannel|Channel(Copy|Fill|Multiply)|ColorTransform|Convolve|Desaturate|Diffuse|DiffuseOffset|LevelMap|MotionBlur|RadialBlur)\b
124
+ - name: support.function.shapes.process.fxscript
125
+ match: \b(?i:CurveTo|DrawSoftDot|FillArc|FillOval|FillPoly|FillRegion|FrameArc|FrameOval|FramePoly|FrameRegion|Line|MakeRect|MakeRegion|OvalRegion|RegionIsEmpty)\b
126
+ - name: support.function.string.fxscript
127
+ match: \b(?i:ASCIIOf|ASCIIToSTring|CharsOf|CountTextLines|FindString|getTextLine|GetTimecodeStringFromClip|Length|NumToString|StringToNum)
128
+ - name: support.function.text.fxscript
129
+ match: \b(?i:DrawString|DrawStringPlain|MeasureString|MeasureStringPlain|ResetText|SetTextFont|SetTextJustify|SetTextSize|SetTextStyle)
130
+ - name: support.function.transform.fxscript
131
+ match: \b(?i:Offset|Offset3d|Outset3d|Rotate|Rotate3d|Scale|Scale3d)\b
132
+ - name: support.function.undocumented.fxscript
133
+ match: \b(?i:getNativeAspect|getNativeSize|FilteredBlitRect|BlurChannel_alt)\b
134
+ - name: support.function.debug.fxscript
135
+ match: \b(?i:debugtext)\b
136
+ - name: support.function.utility.fxscript
137
+ match: \b(?i:Assert|CircleLight|ColorOf|ConvertImage|GetConversionMatrix|GetPixelFormat|Highlight|MatrixConcat|PointTrack|Random(Noise|Seed|Table)?|SetPixelFormat|SysTime|Truncate)\b
138
+ - name: support.function.joe.fxscript
139
+ match: \b((?i:absNoInt|ArrayFloatAbs|ArrayFloatAverage|ArrayFloatCount|ArrayFloatCountAll|ArrayFloatFlatten|ArrayFloatIndexExists|ArrayFloatInsertionSort|ArrayFloatMax|ArrayFloatMin|ArrayFloatNormalize|ArrayFloatPrint_r|ArrayFloatQuickSort|ArrayFloatSum|ArrayPointCount|ArrayPointReverse|ArrayPointWrap|BlurChannelInPlace|BoundsOfPoly|ceil|CenterOfPoly|ChannelCopyFit|ChannelMultiplyYUV|ChannelScreen|ChannelView|ColorRampImage|ColorReporter|DeInterlace|DeInterlaceFast|DeInterlaceInterpolate|DifferenceMask|DimensionsOfPoly|DrawGridFrames|ease|easeIn|easeMiddle|easeOut|easeS|ErrorReporter|factorial|factorialabsNoInt|FastRotate|FieldDouble|fitPoly|fitRange|fitRect|floor|gcd|getField|indexExistsPt|isFloatArray|isIndexFloat|isIndexFloatArray|makeLevelMapBez|makeThresholdMapBez|max|min|mirrorRect|NumReporter|PlaceFrame|PointInPoly|pt3dReporter|PtReporter|RandomNoiseScaled|RandomSeedFPS|RGBtoYUVcolor|round|scaleToFit|sumNaturals|T_borderFade|whattype|YUVtoRGBcolor))\b
140
+ comment: "Joe Maller\xE2\x80\x99s personal FXScript Functions, these will be appearing on the FXScript Reference site someday."
141
+ foldingStopMarker: end(;|;?[ \t]*|;?[ \t]*//.*[ \t]*)
142
+ keyEquivalent: ^~F
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: Greasemonkey
3
+ fileTypes:
4
+ - user.js
5
+ firstLineMatch: // ==UserScript==
6
+ scopeName: source.js.greasemonkey
7
+ uuid: B57ED36B-65DD-492A-82D7-E6C80253BAAB
8
+ foldingStartMarker: // ==UserScript==
9
+ patterns:
10
+ - name: support.class.greasemonkey
11
+ match: \bunsafeWindow\b
12
+ - name: support.function.greasemonkey
13
+ match: \bGM_(registerMenuCommand|xmlhttpRequest|setValue|getValue|log|openInTab|addStyle)\b(?=\()
14
+ - name: meta.header.greasemonkey
15
+ begin: // ==UserScript==
16
+ end: // ==/UserScript==\s*
17
+ patterns:
18
+ - name: meta.directive.standard.greasemonkey
19
+ captures:
20
+ "1":
21
+ name: keyword.other.greasemonkey
22
+ "3":
23
+ name: string.unquoted.greasemonkey
24
+ match: // (@(name|namespace|description|include|exclude))\b\s*(.+\s+)?
25
+ - name: meta.directive.nonstandard.greasemonkey
26
+ captures:
27
+ "1":
28
+ name: keyword.other.greasemonkey
29
+ "3":
30
+ name: string.unquoted.greasemonkey
31
+ match: // (@(\S+))\b\s*(.+\s+)?
32
+ - include: source.js
33
+ foldingStopMarker: // ==/UserScript==
34
+ keyEquivalent: ^~G
data/syntax/gri.syntax ADDED
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: Gri
3
+ fileTypes:
4
+ - gri
5
+ firstLineMatch: -[*]-( Mode:)? Gri -[*]-
6
+ scopeName: source.gri
7
+ uuid: A7E000BE-6A87-4D7E-A053-469DA0DFEA02
8
+ foldingStartMarker: (/\*\*|\{\s*$)
9
+ patterns:
10
+ - name: meta.function.gri
11
+ captures:
12
+ "1":
13
+ name: punctuation.definition.function.gri
14
+ "2":
15
+ name: entity.name.function.gri
16
+ "3":
17
+ name: punctuation.definition.function.gri
18
+ match: (\`)(.*)(')
19
+ - name: comment.line.number-sign.gri
20
+ begin: "#"
21
+ beginCaptures:
22
+ "0":
23
+ name: punctuation.definition.comment.gri
24
+ end: $\n?
25
+ patterns:
26
+ - name: punctuation.separator.continuation.gri
27
+ match: (?>\\\s*\n)
28
+ - name: comment.line.double-slash.gri
29
+ begin: //
30
+ beginCaptures:
31
+ "0":
32
+ name: punctuation.definition.comment.gri
33
+ end: $\n?
34
+ patterns:
35
+ - name: punctuation.separator.continuation.gri
36
+ match: (?>\\\s*\n)
37
+ - name: keyword.control.gri
38
+ match: \b(break|else|end|if|return|rpn|while)\b
39
+ - name: keyword.operator.arithmetic.gri
40
+ match: (\-|\+|\*|\/|%\/%|%%|\^)
41
+ - name: keyword.operator.assignment.gri
42
+ match: (=|<-)
43
+ - name: keyword.operator.comparison.gri
44
+ match: (==|!=)
45
+ - name: constant.numeric.gri
46
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b
47
+ - name: string.unquoted.heredoc.doublequote.gri
48
+ captures:
49
+ "1":
50
+ name: punctuation.definition.heredoc.gri
51
+ "3":
52
+ name: punctuation.definition.heredoc.gri
53
+ begin: (<< *")([^"]*)(")
54
+ end: ^\2$
55
+ - name: variable.other.synonym.gri
56
+ captures:
57
+ "1":
58
+ name: punctuation.definition.variable.gri
59
+ match: (\\)[\.a-zA-Z0-9_][\.a-zA-Z0-9_]*\b
60
+ - name: variable.other.variable.gri
61
+ captures:
62
+ "1":
63
+ name: punctuation.definition.variable.gri
64
+ "2":
65
+ name: punctuation.definition.variable.gri
66
+ match: (\.)[a-zA-Z0-9_][a-zA-Z0-9_]*(\.)
67
+ - name: variable.other.variabledot.gri
68
+ captures:
69
+ "1":
70
+ name: punctuation.definition.variable.gri
71
+ "2":
72
+ name: punctuation.definition.variable.gri
73
+ match: (\.\.)[a-zA-Z0-9_][a-zA-Z0-9_]*(\.\.)
74
+ - name: string.quoted.double.gri
75
+ endCaptures:
76
+ "0":
77
+ name: punctuation.definition.string.end.gri
78
+ begin: "\""
79
+ beginCaptures:
80
+ "0":
81
+ name: punctuation.definition.string.begin.gri
82
+ end: "\""
83
+ foldingStopMarker: (\*\*/|^\s*\})