Bayeux 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. data/.hgrc +2 -0
  2. data/.rvmrc +27 -0
  3. data/Gemfile +42 -0
  4. data/Gemfile.lock +42 -0
  5. data/HISTORY +63 -0
  6. data/README.rdoc +19 -0
  7. data/Rakefile +89 -0
  8. data/VERSION +1 -0
  9. data/bib/Modules.bib +21 -0
  10. data/code/render/latex/active4d.render +132 -0
  11. data/code/render/latex/all_hallows_eve.render +96 -0
  12. data/code/render/latex/amy.render +171 -0
  13. data/code/render/latex/blackboard.render +111 -0
  14. data/code/render/latex/brilliance_black.render +552 -0
  15. data/code/render/latex/brilliance_dull.render +561 -0
  16. data/code/render/latex/cobalt.render +162 -0
  17. data/code/render/latex/dawn.render +126 -0
  18. data/code/render/latex/eiffel.render +132 -0
  19. data/code/render/latex/espresso_libre.render +123 -0
  20. data/code/render/latex/idle.render +93 -0
  21. data/code/render/latex/iplastic.render +99 -0
  22. data/code/render/latex/lazy.render +96 -0
  23. data/code/render/latex/mac_classic.render +135 -0
  24. data/code/render/latex/magicwb_amiga.render +117 -0
  25. data/code/render/latex/pastels_on_dark.render +204 -0
  26. data/code/render/latex/slush_poppies.render +123 -0
  27. data/code/render/latex/spacecadet.render +81 -0
  28. data/code/render/latex/sunburst.render +186 -0
  29. data/code/render/latex/twilight.render +153 -0
  30. data/code/render/latex/zenburnesque.render +126 -0
  31. data/code/render/old/txt2tags.render +131 -0
  32. data/code/render/xhtml/active4d.render +140 -0
  33. data/code/render/xhtml/all_hallows_eve.render +104 -0
  34. data/code/render/xhtml/amy.render +179 -0
  35. data/code/render/xhtml/blackboard.render +119 -0
  36. data/code/render/xhtml/brilliance_black.render +560 -0
  37. data/code/render/xhtml/brilliance_dull.render +569 -0
  38. data/code/render/xhtml/cobalt.render +170 -0
  39. data/code/render/xhtml/dawn.render +134 -0
  40. data/code/render/xhtml/eiffel.render +140 -0
  41. data/code/render/xhtml/espresso_libre.render +131 -0
  42. data/code/render/xhtml/files/css/active4d.css +114 -0
  43. data/code/render/xhtml/files/css/all_hallows_eve.css +72 -0
  44. data/code/render/xhtml/files/css/amy.css +147 -0
  45. data/code/render/xhtml/files/css/blackboard.css +88 -0
  46. data/code/render/xhtml/files/css/brilliance_black.css +605 -0
  47. data/code/render/xhtml/files/css/brilliance_dull.css +599 -0
  48. data/code/render/xhtml/files/css/cobalt.css +149 -0
  49. data/code/render/xhtml/files/css/dawn.css +121 -0
  50. data/code/render/xhtml/files/css/eiffel.css +121 -0
  51. data/code/render/xhtml/files/css/espresso_libre.css +109 -0
  52. data/code/render/xhtml/files/css/idle.css +62 -0
  53. data/code/render/xhtml/files/css/iplastic.css +80 -0
  54. data/code/render/xhtml/files/css/lazy.css +73 -0
  55. data/code/render/xhtml/files/css/mac_classic.css +123 -0
  56. data/code/render/xhtml/files/css/magicwb_amiga.css +104 -0
  57. data/code/render/xhtml/files/css/pastels_on_dark.css +188 -0
  58. data/code/render/xhtml/files/css/slush_poppies.css +85 -0
  59. data/code/render/xhtml/files/css/spacecadet.css +51 -0
  60. data/code/render/xhtml/files/css/sunburst.css +180 -0
  61. data/code/render/xhtml/files/css/twilight.css +137 -0
  62. data/code/render/xhtml/files/css/zenburnesque.css +91 -0
  63. data/code/render/xhtml/idle.render +101 -0
  64. data/code/render/xhtml/iplastic.render +107 -0
  65. data/code/render/xhtml/lazy.render +104 -0
  66. data/code/render/xhtml/mac_classic.render +143 -0
  67. data/code/render/xhtml/magicwb_amiga.render +125 -0
  68. data/code/render/xhtml/pastels_on_dark.render +212 -0
  69. data/code/render/xhtml/slush_poppies.render +131 -0
  70. data/code/render/xhtml/spacecadet.render +89 -0
  71. data/code/render/xhtml/sunburst.render +194 -0
  72. data/code/render/xhtml/twilight.render +161 -0
  73. data/code/render/xhtml/zenburnesque.render +134 -0
  74. data/code/syntax/actionscript.syntax +97 -0
  75. data/code/syntax/active4d.syntax +276 -0
  76. data/code/syntax/active4d_html.syntax +311 -0
  77. data/code/syntax/active4d_ini.syntax +50 -0
  78. data/code/syntax/active4d_library.syntax +21 -0
  79. data/code/syntax/ada.syntax +33 -0
  80. data/code/syntax/antlr.syntax +151 -0
  81. data/code/syntax/apache.syntax +191 -0
  82. data/code/syntax/applescript.syntax +384 -0
  83. data/code/syntax/asp.syntax +70 -0
  84. data/code/syntax/asp_vb.net.syntax +129 -0
  85. data/code/syntax/bibtex.syntax +151 -0
  86. data/code/syntax/blog_html.syntax +41 -0
  87. data/code/syntax/blog_markdown.syntax +42 -0
  88. data/code/syntax/blog_text.syntax +27 -0
  89. data/code/syntax/blog_textile.syntax +27 -0
  90. data/code/syntax/build.syntax +53 -0
  91. data/code/syntax/bulletin_board.syntax +287 -0
  92. data/code/syntax/cake.syntax +55 -0
  93. data/code/syntax/camlp4.syntax +36 -0
  94. data/code/syntax/cm.syntax +32 -0
  95. data/code/syntax/coldfusion.syntax +119 -0
  96. data/code/syntax/context_free.syntax +176 -0
  97. data/code/syntax/cs.syntax +59 -0
  98. data/code/syntax/css.syntax +195 -0
  99. data/code/syntax/css_experimental.syntax +1925 -0
  100. data/code/syntax/csv.syntax +68 -0
  101. data/code/syntax/d.syntax +142 -0
  102. data/code/syntax/diff.syntax +81 -0
  103. data/code/syntax/dokuwiki.syntax +204 -0
  104. data/code/syntax/dot.syntax +47 -0
  105. data/code/syntax/doxygen.syntax +43 -0
  106. data/code/syntax/dylan.syntax +62 -0
  107. data/code/syntax/eiffel.syntax +78 -0
  108. data/code/syntax/erlang.syntax +922 -0
  109. data/code/syntax/f-script.syntax +80 -0
  110. data/code/syntax/fortran.syntax +141 -0
  111. data/code/syntax/fxscript.syntax +142 -0
  112. data/code/syntax/greasemonkey.syntax +34 -0
  113. data/code/syntax/gri.syntax +83 -0
  114. data/code/syntax/groovy.syntax +191 -0
  115. data/code/syntax/gtd.syntax +22 -0
  116. data/code/syntax/gtdalt.syntax +143 -0
  117. data/code/syntax/haml.syntax +88 -0
  118. data/code/syntax/haskell.syntax +88 -0
  119. data/code/syntax/html-asp.syntax +27 -0
  120. data/code/syntax/html.syntax +362 -0
  121. data/code/syntax/html_django.syntax +36 -0
  122. data/code/syntax/html_for_asp.net.syntax +424 -0
  123. data/code/syntax/html_mason.syntax +119 -0
  124. data/code/syntax/html_rails.syntax +40 -0
  125. data/code/syntax/html_tcl.syntax +26 -0
  126. data/code/syntax/icalendar.syntax +32 -0
  127. data/code/syntax/inform.syntax +48 -0
  128. data/code/syntax/ini.syntax +55 -0
  129. data/code/syntax/installer_distribution_script.syntax +77 -0
  130. data/code/syntax/io.syntax +81 -0
  131. data/code/syntax/java.syntax +211 -0
  132. data/code/syntax/javaproperties.syntax +20 -0
  133. data/code/syntax/javascript.syntax +256 -0
  134. data/code/syntax/javascript_+_prototype.syntax +72 -0
  135. data/code/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  136. data/code/syntax/jquery_javascript.syntax +114 -0
  137. data/code/syntax/json.syntax +136 -0
  138. data/code/syntax/languagedefinition.syntax +708 -0
  139. data/code/syntax/latex.syntax +566 -0
  140. data/code/syntax/latex_beamer.syntax +41 -0
  141. data/code/syntax/latex_log.syntax +50 -0
  142. data/code/syntax/latex_memoir.syntax +64 -0
  143. data/code/syntax/lexflex.syntax +219 -0
  144. data/code/syntax/lighttpd.syntax +54 -0
  145. data/code/syntax/lilypond.syntax +492 -0
  146. data/code/syntax/lisp.syntax +61 -0
  147. data/code/syntax/literate_haskell.syntax +24 -0
  148. data/code/syntax/logo.syntax +29 -0
  149. data/code/syntax/logtalk.syntax +152 -0
  150. data/code/syntax/lua.syntax +86 -0
  151. data/code/syntax/m.syntax +142 -0
  152. data/code/syntax/macports_portfile.syntax +163 -0
  153. data/code/syntax/makefile.syntax +36 -0
  154. data/code/syntax/man.syntax +17 -0
  155. data/code/syntax/mediawiki.syntax +567 -0
  156. data/code/syntax/mips.syntax +66 -0
  157. data/code/syntax/mod_perl.syntax +50 -0
  158. data/code/syntax/modula-3.syntax +47 -0
  159. data/code/syntax/moinmoin.syntax +189 -0
  160. data/code/syntax/mootools.syntax +572 -0
  161. data/code/syntax/movable_type.syntax +162 -0
  162. data/code/syntax/multimarkdown.syntax +39 -0
  163. data/code/syntax/objective-c++.syntax +18 -0
  164. data/code/syntax/objective-c.syntax +233 -0
  165. data/code/syntax/ocaml.syntax +764 -0
  166. data/code/syntax/ocamllex.syntax +167 -0
  167. data/code/syntax/ocamlyacc.syntax +184 -0
  168. data/code/syntax/opengl.syntax +14 -0
  169. data/code/syntax/pascal.syntax +77 -0
  170. data/code/syntax/perl.syntax +1115 -0
  171. data/code/syntax/plain_text.syntax +32 -0
  172. data/code/syntax/postscript.syntax +114 -0
  173. data/code/syntax/processing.syntax +106 -0
  174. data/code/syntax/prolog.syntax +40 -0
  175. data/code/syntax/property_list.syntax +635 -0
  176. data/code/syntax/python.syntax +868 -0
  177. data/code/syntax/python_django.syntax +21 -0
  178. data/code/syntax/qmake_project.syntax +114 -0
  179. data/code/syntax/qt_c++.syntax +26 -0
  180. data/code/syntax/quake3_config.syntax +32 -0
  181. data/code/syntax/r.syntax +81 -0
  182. data/code/syntax/r_console.syntax +16 -0
  183. data/code/syntax/ragel.syntax +201 -0
  184. data/code/syntax/rd_r_documentation.syntax +91 -0
  185. data/code/syntax/regexp.syntax +50 -0
  186. data/code/syntax/release_notes.syntax +46 -0
  187. data/code/syntax/remind.syntax +253 -0
  188. data/code/syntax/restructuredtext.syntax +250 -0
  189. data/code/syntax/rez.syntax +80 -0
  190. data/code/syntax/ruby.syntax +1035 -0
  191. data/code/syntax/ruby_experimental.syntax +145 -0
  192. data/code/syntax/ruby_on_rails.syntax +88 -0
  193. data/code/syntax/s5.syntax +69 -0
  194. data/code/syntax/scheme.syntax +347 -0
  195. data/code/syntax/scilab.syntax +41 -0
  196. data/code/syntax/setext.syntax +147 -0
  197. data/code/syntax/shell-unix-generic.syntax +384 -0
  198. data/code/syntax/slate.syntax +149 -0
  199. data/code/syntax/sql.syntax +237 -0
  200. data/code/syntax/sql_rails.syntax +18 -0
  201. data/code/syntax/ssh-config.syntax +33 -0
  202. data/code/syntax/standard_ml.syntax +121 -0
  203. data/code/syntax/strings_file.syntax +39 -0
  204. data/code/syntax/subversion_commit_message.syntax +36 -0
  205. data/code/syntax/sweave.syntax +84 -0
  206. data/code/syntax/swig.syntax +57 -0
  207. data/code/syntax/tcl.syntax +152 -0
  208. data/code/syntax/template_toolkit.syntax +121 -0
  209. data/code/syntax/tex.syntax +86 -0
  210. data/code/syntax/tex_math.syntax +49 -0
  211. data/code/syntax/textile.syntax +215 -0
  212. data/code/syntax/tsv.syntax +50 -0
  213. data/code/syntax/twiki.syntax +241 -0
  214. data/code/syntax/txt2tags.syntax +79 -0
  215. data/code/syntax/vectorscript.syntax +57 -0
  216. data/code/syntax/xhtml_1.0.syntax +4027 -0
  217. data/code/syntax/xml.syntax +180 -0
  218. data/code/syntax/xml_strict.syntax +92 -0
  219. data/code/syntax/xsl.syntax +60 -0
  220. data/code/syntax/yaml.syntax +160 -0
  221. data/code/syntax/yui_javascript.syntax +176 -0
  222. data/lib/bayeux/bayeux.rb +727 -0
  223. data/lib/bayeux/html_gen.rb +506 -0
  224. data/lib/bayeux/latex_gen.rb +333 -0
  225. data/lib/bayeux/para_block.rb +201 -0
  226. data/lib/bayeux/text_gen.rb +307 -0
  227. data/lib/bayeux/tree_walker.rb +166 -0
  228. data/lib/filters/bayeux.rb +44 -0
  229. data/lib/filters/pandoc.rb +23 -0
  230. data/lib/filters/section_id.rb +105 -0
  231. data/lib/helpers/breadcrumbs.rb +64 -0
  232. data/lib/helpers/site_toc.rb +11 -0
  233. data/lib/lib/uv.rb +92 -0
  234. data/lib/lib/uv/render_processor.rb +146 -0
  235. data/lib/lib/uv/utility.rb +67 -0
  236. data/lib/refs/Doc_Blocks.rb +2 -0
  237. data/lib/refs/References.rb +104 -0
  238. metadata +415 -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
@@ -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*\})