textpow1x 0.11.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -2
- data/Gemfile.lock +11 -10
- data/README.rdoc +4 -6
- data/Rakefile +2 -7
- data/lib/textpow.rb +4 -0
- data/lib/textpow/syntax/actionscript.syntax +97 -0
- data/lib/textpow/syntax/active4d.syntax +276 -0
- data/lib/textpow/syntax/active4d_html.syntax +311 -0
- data/lib/textpow/syntax/active4d_ini.syntax +50 -0
- data/lib/textpow/syntax/active4d_library.syntax +21 -0
- data/lib/textpow/syntax/ada.syntax +33 -0
- data/lib/textpow/syntax/antlr.syntax +151 -0
- data/lib/textpow/syntax/apache.syntax +191 -0
- data/lib/textpow/syntax/applescript.syntax +384 -0
- data/lib/textpow/syntax/asp.syntax +70 -0
- data/lib/textpow/syntax/asp_vb.net.syntax +129 -0
- data/lib/textpow/syntax/bibtex.syntax +151 -0
- data/lib/textpow/syntax/blog_html.syntax +41 -0
- data/lib/textpow/syntax/blog_markdown.syntax +42 -0
- data/lib/textpow/syntax/blog_text.syntax +27 -0
- data/lib/textpow/syntax/blog_textile.syntax +27 -0
- data/lib/textpow/syntax/broken/markdown.syntax +543 -0
- data/lib/textpow/syntax/broken/php.syntax +1253 -0
- data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
- data/lib/textpow/syntax/build.syntax +53 -0
- data/lib/textpow/syntax/bulletin_board.syntax +287 -0
- data/lib/textpow/syntax/c++.syntax +186 -0
- data/lib/textpow/syntax/c.syntax +414 -0
- data/lib/textpow/syntax/cake.syntax +55 -0
- data/lib/textpow/syntax/camlp4.syntax +36 -0
- data/lib/textpow/syntax/cm.syntax +32 -0
- data/lib/textpow/syntax/coffeescript.syntax +216 -0
- data/lib/textpow/syntax/coldfusion.syntax +119 -0
- data/lib/textpow/syntax/context_free.syntax +176 -0
- data/lib/textpow/syntax/cs.syntax +59 -0
- data/lib/textpow/syntax/css.syntax +195 -0
- data/lib/textpow/syntax/css_experimental.syntax +1925 -0
- data/lib/textpow/syntax/csv.syntax +68 -0
- data/lib/textpow/syntax/d.syntax +142 -0
- data/lib/textpow/syntax/diff.syntax +81 -0
- data/lib/textpow/syntax/dokuwiki.syntax +204 -0
- data/lib/textpow/syntax/dot.syntax +47 -0
- data/lib/textpow/syntax/doxygen.syntax +43 -0
- data/lib/textpow/syntax/dylan.syntax +62 -0
- data/lib/textpow/syntax/eiffel.syntax +78 -0
- data/lib/textpow/syntax/erlang.syntax +922 -0
- data/lib/textpow/syntax/f-script.syntax +80 -0
- data/lib/textpow/syntax/fortran.syntax +141 -0
- data/lib/textpow/syntax/fxscript.syntax +142 -0
- data/lib/textpow/syntax/greasemonkey.syntax +34 -0
- data/lib/textpow/syntax/gri.syntax +83 -0
- data/lib/textpow/syntax/groovy.syntax +191 -0
- data/lib/textpow/syntax/gtd.syntax +22 -0
- data/lib/textpow/syntax/gtdalt.syntax +143 -0
- data/lib/textpow/syntax/haml.syntax +88 -0
- data/lib/textpow/syntax/haskell.syntax +88 -0
- data/lib/textpow/syntax/html-asp.syntax +27 -0
- data/lib/textpow/syntax/html.syntax +362 -0
- data/lib/textpow/syntax/html_django.syntax +36 -0
- data/lib/textpow/syntax/html_for_asp.net.syntax +424 -0
- data/lib/textpow/syntax/html_mason.syntax +119 -0
- data/lib/textpow/syntax/html_rails.syntax +40 -0
- data/lib/textpow/syntax/html_tcl.syntax +26 -0
- data/lib/textpow/syntax/icalendar.syntax +32 -0
- data/lib/textpow/syntax/inform.syntax +48 -0
- data/lib/textpow/syntax/ini.syntax +55 -0
- data/lib/textpow/syntax/installer_distribution_script.syntax +77 -0
- data/lib/textpow/syntax/io.syntax +81 -0
- data/lib/textpow/syntax/java.syntax +211 -0
- data/lib/textpow/syntax/javaproperties.syntax +20 -0
- data/lib/textpow/syntax/javascript.syntax +256 -0
- data/lib/textpow/syntax/javascript_+_prototype.syntax +72 -0
- data/lib/textpow/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/lib/textpow/syntax/jquery_javascript.syntax +114 -0
- data/lib/textpow/syntax/json.syntax +136 -0
- data/lib/textpow/syntax/languagedefinition.syntax +708 -0
- data/lib/textpow/syntax/latex.syntax +566 -0
- data/lib/textpow/syntax/latex_beamer.syntax +41 -0
- data/lib/textpow/syntax/latex_log.syntax +50 -0
- data/lib/textpow/syntax/latex_memoir.syntax +64 -0
- data/lib/textpow/syntax/lexflex.syntax +219 -0
- data/lib/textpow/syntax/lighttpd.syntax +54 -0
- data/lib/textpow/syntax/lilypond.syntax +492 -0
- data/lib/textpow/syntax/lisp.syntax +61 -0
- data/lib/textpow/syntax/literate_haskell.syntax +24 -0
- data/lib/textpow/syntax/logo.syntax +29 -0
- data/lib/textpow/syntax/logtalk.syntax +152 -0
- data/lib/textpow/syntax/lua.syntax +86 -0
- data/lib/textpow/syntax/m.syntax +142 -0
- data/lib/textpow/syntax/macports_portfile.syntax +163 -0
- data/lib/textpow/syntax/mail.syntax +118 -0
- data/lib/textpow/syntax/makefile.syntax +36 -0
- data/lib/textpow/syntax/man.syntax +17 -0
- data/lib/textpow/syntax/mediawiki.syntax +567 -0
- data/lib/textpow/syntax/mel.syntax +92 -0
- data/lib/textpow/syntax/mips.syntax +66 -0
- data/lib/textpow/syntax/mod_perl.syntax +50 -0
- data/lib/textpow/syntax/modula-3.syntax +47 -0
- data/lib/textpow/syntax/moinmoin.syntax +189 -0
- data/lib/textpow/syntax/mootools.syntax +572 -0
- data/lib/textpow/syntax/movable_type.syntax +162 -0
- data/lib/textpow/syntax/multimarkdown.syntax +39 -0
- data/lib/textpow/syntax/objective-c++.syntax +18 -0
- data/lib/textpow/syntax/objective-c.syntax +233 -0
- data/lib/textpow/syntax/ocaml.syntax +764 -0
- data/lib/textpow/syntax/ocamllex.syntax +167 -0
- data/lib/textpow/syntax/ocamlyacc.syntax +184 -0
- data/lib/textpow/syntax/old/YAML.yaml +160 -0
- data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
- data/lib/textpow/syntax/opengl.syntax +14 -0
- data/lib/textpow/syntax/pascal.syntax +77 -0
- data/lib/textpow/syntax/perl.syntax +1113 -0
- data/lib/textpow/syntax/plain_text.syntax +32 -0
- data/lib/textpow/syntax/pmwiki.syntax +113 -0
- data/lib/textpow/syntax/postscript.syntax +114 -0
- data/lib/textpow/syntax/processing.syntax +106 -0
- data/lib/textpow/syntax/prolog.syntax +40 -0
- data/lib/textpow/syntax/property_list.syntax +635 -0
- data/lib/textpow/syntax/python.syntax +868 -0
- data/lib/textpow/syntax/python_django.syntax +21 -0
- data/lib/textpow/syntax/qmake_project.syntax +114 -0
- data/lib/textpow/syntax/qt_c++.syntax +26 -0
- data/lib/textpow/syntax/quake3_config.syntax +32 -0
- data/lib/textpow/syntax/r.syntax +81 -0
- data/lib/textpow/syntax/r_console.syntax +16 -0
- data/lib/textpow/syntax/ragel.syntax +201 -0
- data/lib/textpow/syntax/rd_r_documentation.syntax +91 -0
- data/lib/textpow/syntax/regexp.syntax +50 -0
- data/lib/textpow/syntax/regular_expressions_oniguruma.syntax +107 -0
- data/lib/textpow/syntax/regular_expressions_python.syntax +109 -0
- data/lib/textpow/syntax/release_notes.syntax +46 -0
- data/lib/textpow/syntax/remind.syntax +253 -0
- data/lib/textpow/syntax/restructuredtext.syntax +250 -0
- data/lib/textpow/syntax/rez.syntax +80 -0
- data/lib/textpow/syntax/ruby.syntax +1035 -0
- data/lib/textpow/syntax/ruby_experimental.syntax +145 -0
- data/lib/textpow/syntax/ruby_on_rails.syntax +88 -0
- data/lib/textpow/syntax/s5.syntax +69 -0
- data/lib/textpow/syntax/sass.syntax +45 -0
- data/lib/textpow/syntax/scheme.syntax +347 -0
- data/lib/textpow/syntax/scilab.syntax +41 -0
- data/lib/textpow/syntax/setext.syntax +147 -0
- data/lib/textpow/syntax/shell-unix-generic.syntax +384 -0
- data/lib/textpow/syntax/slate.syntax +149 -0
- data/lib/textpow/syntax/smarty.syntax +63 -0
- data/lib/textpow/syntax/sql.syntax +237 -0
- data/lib/textpow/syntax/sql_rails.syntax +18 -0
- data/lib/textpow/syntax/ssh-config.syntax +33 -0
- data/lib/textpow/syntax/standard_ml.syntax +121 -0
- data/lib/textpow/syntax/strings_file.syntax +39 -0
- data/lib/textpow/syntax/subversion_commit_message.syntax +36 -0
- data/lib/textpow/syntax/sweave.syntax +84 -0
- data/lib/textpow/syntax/swig.syntax +57 -0
- data/lib/textpow/syntax/tcl.syntax +152 -0
- data/lib/textpow/syntax/template_toolkit.syntax +121 -0
- data/lib/textpow/syntax/tex.syntax +86 -0
- data/lib/textpow/syntax/tex_math.syntax +49 -0
- data/lib/textpow/syntax/textile.syntax +215 -0
- data/lib/textpow/syntax/tsv.syntax +50 -0
- data/lib/textpow/syntax/twiki.syntax +241 -0
- data/lib/textpow/syntax/txt2tags.syntax +79 -0
- data/lib/textpow/syntax/vectorscript.syntax +57 -0
- data/lib/textpow/syntax/xhtml_1.0.syntax +4027 -0
- data/lib/textpow/syntax/xml.syntax +180 -0
- data/lib/textpow/syntax/xml_strict.syntax +92 -0
- data/lib/textpow/syntax/xsl.syntax +60 -0
- data/lib/textpow/syntax/yaml.syntax +160 -0
- data/lib/textpow/syntax/yui_javascript.syntax +176 -0
- data/lib/textpow/version.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- data/spec/textpow_spec.rb +34 -0
- metadata +169 -5
- data/test/textpow_test.rb +0 -24
@@ -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*\})
|