ultraviolet 0.10.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. data/.gitmodules +3 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +28 -0
  4. data/Rakefile +18 -47
  5. data/Readme.md +89 -0
  6. data/bin/theme2latexrender +0 -0
  7. data/bin/theme2xhtmlrender +0 -0
  8. data/bin/uv +0 -0
  9. data/lib/uv.rb +78 -75
  10. data/lib/uv/render_processor.rb +128 -119
  11. data/lib/uv/utility.rb +62 -62
  12. data/lib/uv/version.rb +3 -0
  13. data/spec/spec_helper.rb +2 -0
  14. data/spec/ultraviolet_spec.rb +13 -0
  15. data/ultraviolet.gemspec +15 -0
  16. metadata +123 -271
  17. data/History.txt +0 -25
  18. data/Manifest.txt +0 -233
  19. data/README.txt +0 -52
  20. data/syntax/actionscript.syntax +0 -97
  21. data/syntax/active4d.syntax +0 -276
  22. data/syntax/active4d_html.syntax +0 -311
  23. data/syntax/active4d_ini.syntax +0 -50
  24. data/syntax/active4d_library.syntax +0 -21
  25. data/syntax/ada.syntax +0 -33
  26. data/syntax/antlr.syntax +0 -151
  27. data/syntax/apache.syntax +0 -191
  28. data/syntax/applescript.syntax +0 -384
  29. data/syntax/asp.syntax +0 -70
  30. data/syntax/asp_vb.net.syntax +0 -129
  31. data/syntax/bibtex.syntax +0 -151
  32. data/syntax/blog_html.syntax +0 -41
  33. data/syntax/blog_markdown.syntax +0 -42
  34. data/syntax/blog_text.syntax +0 -27
  35. data/syntax/blog_textile.syntax +0 -27
  36. data/syntax/build.syntax +0 -53
  37. data/syntax/bulletin_board.syntax +0 -287
  38. data/syntax/c++.syntax +0 -109
  39. data/syntax/c.syntax +0 -326
  40. data/syntax/cake.syntax +0 -55
  41. data/syntax/camlp4.syntax +0 -36
  42. data/syntax/cm.syntax +0 -32
  43. data/syntax/coldfusion.syntax +0 -119
  44. data/syntax/context_free.syntax +0 -176
  45. data/syntax/cs.syntax +0 -59
  46. data/syntax/css.syntax +0 -195
  47. data/syntax/css_experimental.syntax +0 -1925
  48. data/syntax/csv.syntax +0 -68
  49. data/syntax/d.syntax +0 -142
  50. data/syntax/diff.syntax +0 -81
  51. data/syntax/dokuwiki.syntax +0 -204
  52. data/syntax/dot.syntax +0 -47
  53. data/syntax/doxygen.syntax +0 -43
  54. data/syntax/dylan.syntax +0 -62
  55. data/syntax/eiffel.syntax +0 -78
  56. data/syntax/erlang.syntax +0 -922
  57. data/syntax/f-script.syntax +0 -80
  58. data/syntax/fortran.syntax +0 -141
  59. data/syntax/fxscript.syntax +0 -142
  60. data/syntax/greasemonkey.syntax +0 -34
  61. data/syntax/gri.syntax +0 -83
  62. data/syntax/groovy.syntax +0 -191
  63. data/syntax/gtd.syntax +0 -22
  64. data/syntax/gtdalt.syntax +0 -143
  65. data/syntax/haml.syntax +0 -88
  66. data/syntax/haskell.syntax +0 -88
  67. data/syntax/html-asp.syntax +0 -27
  68. data/syntax/html.syntax +0 -362
  69. data/syntax/html_django.syntax +0 -36
  70. data/syntax/html_for_asp.net.syntax +0 -424
  71. data/syntax/html_mason.syntax +0 -119
  72. data/syntax/html_rails.syntax +0 -40
  73. data/syntax/html_tcl.syntax +0 -26
  74. data/syntax/icalendar.syntax +0 -32
  75. data/syntax/inform.syntax +0 -48
  76. data/syntax/ini.syntax +0 -55
  77. data/syntax/installer_distribution_script.syntax +0 -77
  78. data/syntax/io.syntax +0 -81
  79. data/syntax/java.syntax +0 -211
  80. data/syntax/javaproperties.syntax +0 -20
  81. data/syntax/javascript.syntax +0 -256
  82. data/syntax/javascript_+_prototype.syntax +0 -72
  83. data/syntax/javascript_+_prototype_bracketed.syntax +0 -140
  84. data/syntax/jquery_javascript.syntax +0 -114
  85. data/syntax/json.syntax +0 -136
  86. data/syntax/languagedefinition.syntax +0 -708
  87. data/syntax/latex.syntax +0 -566
  88. data/syntax/latex_beamer.syntax +0 -41
  89. data/syntax/latex_log.syntax +0 -50
  90. data/syntax/latex_memoir.syntax +0 -64
  91. data/syntax/lexflex.syntax +0 -219
  92. data/syntax/lighttpd.syntax +0 -54
  93. data/syntax/lilypond.syntax +0 -492
  94. data/syntax/lisp.syntax +0 -61
  95. data/syntax/literate_haskell.syntax +0 -24
  96. data/syntax/logo.syntax +0 -29
  97. data/syntax/logtalk.syntax +0 -152
  98. data/syntax/lua.syntax +0 -86
  99. data/syntax/m.syntax +0 -142
  100. data/syntax/macports_portfile.syntax +0 -163
  101. data/syntax/mail.syntax +0 -118
  102. data/syntax/makefile.syntax +0 -36
  103. data/syntax/man.syntax +0 -17
  104. data/syntax/markdown.syntax +0 -543
  105. data/syntax/mediawiki.syntax +0 -567
  106. data/syntax/mel.syntax +0 -92
  107. data/syntax/mips.syntax +0 -66
  108. data/syntax/mod_perl.syntax +0 -50
  109. data/syntax/modula-3.syntax +0 -47
  110. data/syntax/moinmoin.syntax +0 -189
  111. data/syntax/mootools.syntax +0 -572
  112. data/syntax/movable_type.syntax +0 -162
  113. data/syntax/multimarkdown.syntax +0 -39
  114. data/syntax/objective-c++.syntax +0 -18
  115. data/syntax/objective-c.syntax +0 -233
  116. data/syntax/ocaml.syntax +0 -764
  117. data/syntax/ocamllex.syntax +0 -167
  118. data/syntax/ocamlyacc.syntax +0 -184
  119. data/syntax/opengl.syntax +0 -14
  120. data/syntax/pascal.syntax +0 -77
  121. data/syntax/perl.syntax +0 -1115
  122. data/syntax/php.syntax +0 -1253
  123. data/syntax/plain_text.syntax +0 -32
  124. data/syntax/pmwiki.syntax +0 -113
  125. data/syntax/postscript.syntax +0 -114
  126. data/syntax/processing.syntax +0 -106
  127. data/syntax/prolog.syntax +0 -40
  128. data/syntax/property_list.syntax +0 -635
  129. data/syntax/python.syntax +0 -868
  130. data/syntax/python_django.syntax +0 -21
  131. data/syntax/qmake_project.syntax +0 -114
  132. data/syntax/qt_c++.syntax +0 -26
  133. data/syntax/quake3_config.syntax +0 -32
  134. data/syntax/r.syntax +0 -81
  135. data/syntax/r_console.syntax +0 -16
  136. data/syntax/ragel.syntax +0 -201
  137. data/syntax/rd_r_documentation.syntax +0 -91
  138. data/syntax/regexp.syntax +0 -50
  139. data/syntax/regular_expressions_oniguruma.syntax +0 -107
  140. data/syntax/regular_expressions_python.syntax +0 -109
  141. data/syntax/release_notes.syntax +0 -46
  142. data/syntax/remind.syntax +0 -253
  143. data/syntax/restructuredtext.syntax +0 -250
  144. data/syntax/rez.syntax +0 -80
  145. data/syntax/ruby.syntax +0 -1035
  146. data/syntax/ruby_experimental.syntax +0 -145
  147. data/syntax/ruby_on_rails.syntax +0 -88
  148. data/syntax/s5.syntax +0 -69
  149. data/syntax/scheme.syntax +0 -347
  150. data/syntax/scilab.syntax +0 -41
  151. data/syntax/setext.syntax +0 -147
  152. data/syntax/shell-unix-generic.syntax +0 -384
  153. data/syntax/slate.syntax +0 -149
  154. data/syntax/smarty.syntax +0 -63
  155. data/syntax/sql.syntax +0 -237
  156. data/syntax/sql_rails.syntax +0 -18
  157. data/syntax/ssh-config.syntax +0 -33
  158. data/syntax/standard_ml.syntax +0 -121
  159. data/syntax/strings_file.syntax +0 -39
  160. data/syntax/subversion_commit_message.syntax +0 -36
  161. data/syntax/sweave.syntax +0 -84
  162. data/syntax/swig.syntax +0 -57
  163. data/syntax/tcl.syntax +0 -152
  164. data/syntax/template_toolkit.syntax +0 -121
  165. data/syntax/tex.syntax +0 -86
  166. data/syntax/tex_math.syntax +0 -49
  167. data/syntax/textile.syntax +0 -215
  168. data/syntax/tsv.syntax +0 -50
  169. data/syntax/twiki.syntax +0 -241
  170. data/syntax/txt2tags.syntax +0 -79
  171. data/syntax/vectorscript.syntax +0 -57
  172. data/syntax/xhtml_1.0.syntax +0 -4027
  173. data/syntax/xml.syntax +0 -180
  174. data/syntax/xml_strict.syntax +0 -92
  175. data/syntax/xsl.syntax +0 -60
  176. data/syntax/yaml.syntax +0 -160
  177. data/syntax/yui_javascript.syntax +0 -176
  178. data/test/test_uv.rb +0 -0
@@ -1,80 +0,0 @@
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
@@ -1,141 +0,0 @@
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
@@ -1,142 +0,0 @@
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
@@ -1,34 +0,0 @@
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
@@ -1,83 +0,0 @@
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*\})