code_rippa 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
@@ -1,80 +1,80 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: F-Script
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- fscript
|
5
5
|
scopeName: source.fscript
|
6
6
|
uuid: C2CB9A74-C9FC-4F63-8BAF-E64B72A60DD4
|
7
|
-
foldingStartMarker:
|
8
|
-
patterns:
|
7
|
+
foldingStartMarker: "\\["
|
8
|
+
patterns:
|
9
9
|
- name: meta.dummy.symbol.ignore.fscript
|
10
10
|
match: "(:|\\w):"
|
11
11
|
- name: constant.other.symbol.fscript
|
12
|
-
captures:
|
13
|
-
|
12
|
+
captures:
|
13
|
+
'1':
|
14
14
|
name: punctuation.definition.symbol.fscript
|
15
|
-
match: (:)
|
15
|
+
match: "(:)\\w+\\b"
|
16
16
|
- name: constant.numeric.fscript
|
17
|
-
match:
|
17
|
+
match: "\\b((([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b"
|
18
18
|
- name: constant.other.block.compact.fscript
|
19
19
|
match: "#([[:lower:]]|_|[+=\\-/!%&*|><~?])(\\w|[+=\\-/!%&*|><~?:])*"
|
20
20
|
- name: meta.block.empty.fscript
|
21
|
-
captures:
|
22
|
-
|
21
|
+
captures:
|
22
|
+
'1':
|
23
23
|
name: punctuation.section.block.fscript
|
24
|
-
|
24
|
+
'2':
|
25
25
|
name: variable.parameter.block.fscript
|
26
|
-
|
26
|
+
'3':
|
27
27
|
name: punctuation.section.block.fscript
|
28
|
-
match: (
|
28
|
+
match: "(\\[)(?:\\s*((?::\\w+\\s+)*:\\w+)\\s*\\|)?\\s*(\\])"
|
29
29
|
- name: meta.block.fscript
|
30
|
-
endCaptures:
|
31
|
-
|
30
|
+
endCaptures:
|
31
|
+
'0':
|
32
32
|
name: punctuation.section.block.fscript
|
33
|
-
begin: (
|
34
|
-
beginCaptures:
|
35
|
-
|
33
|
+
begin: "(\\[)(?:\\s*((?::\\w+\\s+)*:\\w+)\\s*\\|)?"
|
34
|
+
beginCaptures:
|
35
|
+
'1':
|
36
36
|
name: punctuation.section.block.fscript
|
37
|
-
|
37
|
+
'2':
|
38
38
|
name: variable.parameter.block.fscript
|
39
|
-
end:
|
40
|
-
patterns:
|
39
|
+
end: "\\]"
|
40
|
+
patterns:
|
41
41
|
- name: meta.block.header.fscript
|
42
|
-
match:
|
42
|
+
match: "\\s+"
|
43
43
|
- name: meta.block.content.fscript
|
44
|
-
captures:
|
45
|
-
|
44
|
+
captures:
|
45
|
+
'1':
|
46
46
|
name: variable.other.local.fscript
|
47
|
-
begin: (
|
48
|
-
end: (
|
49
|
-
patterns:
|
50
|
-
- include: $base
|
47
|
+
begin: "(?:\\|(\\s*(?:\\w+\\s+)*\\w+\\s*)?\\||(?=[^\\s|]))"
|
48
|
+
end: "(?=\\])"
|
49
|
+
patterns:
|
50
|
+
- include: "$base"
|
51
51
|
- name: constant.language.fscript
|
52
|
-
match:
|
53
|
-
- captures:
|
54
|
-
|
52
|
+
match: "\\b(true|YES|false|NO|sys|nil)\\b"
|
53
|
+
- captures:
|
54
|
+
'1':
|
55
55
|
name: entity.name.function.fscript
|
56
|
-
match: ^(
|
56
|
+
match: "^(\\w+)\\s*:=\\s*(?=\\[)"
|
57
57
|
comment: a hack for the symbol popup
|
58
58
|
- name: comment.block.quotes.fscript
|
59
|
-
endCaptures:
|
60
|
-
|
59
|
+
endCaptures:
|
60
|
+
'0':
|
61
61
|
name: punctuation.definition.comment.end.fscript
|
62
62
|
begin: "\""
|
63
|
-
beginCaptures:
|
64
|
-
|
63
|
+
beginCaptures:
|
64
|
+
'0':
|
65
65
|
name: punctuation.definition.comment.begin.fscript
|
66
66
|
end: "\""
|
67
67
|
- name: string.quoted.single.fscript
|
68
|
-
endCaptures:
|
69
|
-
|
68
|
+
endCaptures:
|
69
|
+
'0':
|
70
70
|
name: punctuation.definition.string.end.fscript
|
71
71
|
begin: "'"
|
72
|
-
beginCaptures:
|
73
|
-
|
72
|
+
beginCaptures:
|
73
|
+
'0':
|
74
74
|
name: punctuation.definition.string.begin.fscript
|
75
75
|
end: "'"
|
76
|
-
patterns:
|
76
|
+
patterns:
|
77
77
|
- name: constant.character.escape.fscript
|
78
|
-
match:
|
79
|
-
foldingStopMarker:
|
80
|
-
keyEquivalent: ^~F
|
78
|
+
match: "\\\\."
|
79
|
+
foldingStopMarker: "\\]"
|
80
|
+
keyEquivalent: "^~F"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Fortran
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- f
|
5
5
|
- F
|
6
6
|
- f77
|
@@ -18,124 +18,128 @@ fileTypes:
|
|
18
18
|
firstLineMatch: "(?i)-[*]- mode: f90 -[*]-"
|
19
19
|
scopeName: source.fortran
|
20
20
|
uuid: 45253F88-F7CC-49C5-9C32-F3FADD2AB579
|
21
|
-
foldingStartMarker:
|
22
|
-
patterns:
|
21
|
+
foldingStartMarker: "^\\s*(?i:(if|for|do|module(?!\\s*procedure)|interface|type(?!\\s*\\()|subroutine|function))\\s.*$"
|
22
|
+
patterns:
|
23
23
|
- name: meta.function.fortran
|
24
|
-
endCaptures:
|
25
|
-
|
24
|
+
endCaptures:
|
25
|
+
'0':
|
26
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
|
28
|
-
|
29
|
-
|
27
|
+
begin: "(?x)\n (?: (?i:subroutine\\s+) | (?i:function\\s+) )\n \t([A-Za-z_][A-Za-z0-9_:]+)\n
|
28
|
+
\ \t \\s*((\\()(?=[^)\\n]*))?\n "
|
29
|
+
beginCaptures:
|
30
|
+
'1':
|
30
31
|
name: entity.name.function.fortran
|
31
|
-
|
32
|
+
'2':
|
32
33
|
name: punctuation.definition.parameters.fortran
|
33
|
-
end:
|
34
|
-
patterns:
|
35
|
-
- include: $base
|
34
|
+
end: "\\)"
|
35
|
+
patterns:
|
36
|
+
- include: "$base"
|
36
37
|
- name: keyword.control.fortran
|
37
|
-
match:
|
38
|
+
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
39
|
- name: comment.line.c.fortran.punchcard-style
|
39
|
-
begin: ^[Cc]
|
40
|
-
beginCaptures:
|
41
|
-
|
40
|
+
begin: "^[Cc]"
|
41
|
+
beginCaptures:
|
42
|
+
'0':
|
42
43
|
name: punctuation.definition.comment.fortran
|
43
|
-
end:
|
44
|
-
patterns:
|
45
|
-
- match:
|
44
|
+
end: "$\\n?"
|
45
|
+
patterns:
|
46
|
+
- match: "\\\\\\s*\\n"
|
46
47
|
- name: comment.line.asterisk.fortran.modern
|
47
|
-
begin: ^[*]
|
48
|
-
beginCaptures:
|
49
|
-
|
48
|
+
begin: "^[*]"
|
49
|
+
beginCaptures:
|
50
|
+
'0':
|
50
51
|
name: punctuation.definition.comment.fortran
|
51
|
-
end:
|
52
|
-
patterns:
|
53
|
-
- match:
|
52
|
+
end: "$\\n?"
|
53
|
+
patterns:
|
54
|
+
- match: "\\\\\\s*\\n"
|
54
55
|
- name: comment.line.exclamation.fortran.modern
|
55
56
|
begin: "[!]"
|
56
|
-
beginCaptures:
|
57
|
-
|
57
|
+
beginCaptures:
|
58
|
+
'0':
|
58
59
|
name: punctuation.definition.comment.fortran
|
59
|
-
end:
|
60
|
-
patterns:
|
61
|
-
- match:
|
60
|
+
end: "$\\n?"
|
61
|
+
patterns:
|
62
|
+
- match: "\\\\\\s*\\n"
|
62
63
|
- name: string.quoted.single.fortran
|
63
|
-
endCaptures:
|
64
|
-
|
64
|
+
endCaptures:
|
65
|
+
'0':
|
65
66
|
name: punctuation.definition.string.end.fortran
|
66
67
|
begin: "'"
|
67
|
-
beginCaptures:
|
68
|
-
|
68
|
+
beginCaptures:
|
69
|
+
'0':
|
69
70
|
name: punctuation.definition.string.begin.fortran
|
70
71
|
end: "'"
|
71
|
-
patterns:
|
72
|
+
patterns:
|
72
73
|
- name: constant.character.escape.fortran
|
73
|
-
match:
|
74
|
+
match: "\\\\."
|
74
75
|
- name: string.quoted.double.fortran
|
75
|
-
endCaptures:
|
76
|
-
|
76
|
+
endCaptures:
|
77
|
+
'0':
|
77
78
|
name: punctuation.definition.string.end.fortran
|
78
79
|
begin: "\""
|
79
|
-
beginCaptures:
|
80
|
-
|
80
|
+
beginCaptures:
|
81
|
+
'0':
|
81
82
|
name: punctuation.definition.string.begin.fortran
|
82
83
|
end: "\""
|
83
|
-
patterns:
|
84
|
+
patterns:
|
84
85
|
- name: constant.character.escape.fortran
|
85
|
-
match:
|
86
|
+
match: "\\\\."
|
86
87
|
- name: storage.type.fortran
|
87
|
-
match:
|
88
|
+
match: "\\b(?i:data|double|block\\sdata|double\\sprecision|type(?=\\s*\\()|entry|equivalence|integer|real|character|intrinsic|logical|parameter)\\b"
|
88
89
|
- name: storage.modifier.fortran
|
89
|
-
match:
|
90
|
+
match: "\\b(?i:(private|public|external|format|implicit|common|intent|in|out|inout))\\b"
|
90
91
|
- name: keyword.other.fortran.90
|
91
|
-
match:
|
92
|
+
match: "\\b(?i:(recursive|optional|interface|procedure|module|pointer|target))\\b"
|
92
93
|
- name: keyword.other.fortran
|
93
|
-
match:
|
94
|
+
match: "\\b(?i:(program|save|subroutine|function|module|none))\\b"
|
94
95
|
- name: constant.language.fortran
|
95
|
-
match:
|
96
|
+
match: "\\b(?i:(r8|r4|TRUE|FALSE))\\b"
|
96
97
|
- name: keyword.operator.fortran
|
97
|
-
match: (?i:(
|
98
|
+
match: "(?i:(\\.and\\.|\\.or\\.|\\.eq\\.|\\.lt\\.|\\.le\\.|\\.gt\\.|\\.ge\\.|\\.ne\\.|\\.not\\.|\\.eqv\\.|\\.neqv\\.))"
|
98
99
|
- name: keyword.operator.fortran.90
|
99
|
-
match: (
|
100
|
+
match: "(\\=\\=|\\/\\=|\\>\\=|\\>|\\<|\\<\\=|\\%|\\=\\>|\\=|\\:\\:)"
|
100
101
|
- name: constant.numeric.fortran
|
101
|
-
match:
|
102
|
+
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
103
|
- 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_]*))
|
104
|
-
|
104
|
+
begin: "(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?<id>[a-zA-Z_][a-zA-Z0-9_]*))
|
105
|
+
\ # macro name\n \t\t\\((\n \t\t\t\\s* \\g<id> \\s* #
|
106
|
+
first argument\n \t\t\t(, \\s* \\g<id> \\s*)* # additional arguments\n
|
107
|
+
\ \t\t)\\)\n \t"
|
108
|
+
end: "(?=(?://|/\\*))|$"
|
105
109
|
- name: meta.preprocessor.include.fortran
|
106
|
-
begin:
|
107
|
-
beginCaptures:
|
108
|
-
|
110
|
+
begin: "^\\s*(#)\\s*(include|import)\\b\\s+"
|
111
|
+
beginCaptures:
|
112
|
+
'1':
|
109
113
|
name: punctuation.definition.preprocessor.fortran
|
110
|
-
|
114
|
+
'2':
|
111
115
|
name: keyword.control.import.fortran
|
112
|
-
end: (?=(
|
113
|
-
patterns:
|
114
|
-
- match:
|
116
|
+
end: "(?=(?://|/\\*))|$"
|
117
|
+
patterns:
|
118
|
+
- match: "\\\\\\s*\\n"
|
115
119
|
- name: string.quoted.double.include.fortran
|
116
|
-
endCaptures:
|
117
|
-
|
120
|
+
endCaptures:
|
121
|
+
'0':
|
118
122
|
name: punctuation.definition.string.end.fortran
|
119
123
|
begin: "\""
|
120
|
-
beginCaptures:
|
121
|
-
|
124
|
+
beginCaptures:
|
125
|
+
'0':
|
122
126
|
name: punctuation.definition.string.begin.fortran
|
123
127
|
end: "\""
|
124
128
|
- name: string.quoted.other.lt-gt.include.fortran
|
125
|
-
endCaptures:
|
126
|
-
|
129
|
+
endCaptures:
|
130
|
+
'0':
|
127
131
|
name: punctuation.definition.string.end.fortran
|
128
|
-
begin: <
|
129
|
-
beginCaptures:
|
130
|
-
|
132
|
+
begin: "<"
|
133
|
+
beginCaptures:
|
134
|
+
'0':
|
131
135
|
name: punctuation.definition.string.begin.fortran
|
132
136
|
end: ">"
|
133
137
|
- name: meta.preprocessor.fortran
|
134
|
-
begin:
|
135
|
-
end: (?=(
|
136
|
-
patterns:
|
137
|
-
- match:
|
138
|
+
begin: "^\\s*#\\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef|endif)\\b"
|
139
|
+
end: "(?=(?://|/\\*))|$"
|
140
|
+
patterns:
|
141
|
+
- match: "\\\\\\s*\\n"
|
138
142
|
- name: keyword.other.non-executable.fortran
|
139
|
-
match:
|
140
|
-
foldingStopMarker:
|
141
|
-
keyEquivalent: ^~F
|
143
|
+
match: "\\b(?i:(dimension|function))\\b"
|
144
|
+
foldingStopMarker: "^\\s*(?i:(end)).*$"
|
145
|
+
keyEquivalent: "^~F"
|
@@ -1,142 +1,143 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: FXScript
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- fxscript
|
5
5
|
scopeName: source.fxscript
|
6
6
|
uuid: 43751327-3FD1-4BE7-AD05-136FC552BABA
|
7
|
-
foldingStartMarker: (^|(?<=;)[
|
8
|
-
patterns:
|
7
|
+
foldingStartMarker: "(^|(?<=;)[ \\t]*)on[ \\t]+(\\w+)[ \\t]*"
|
8
|
+
patterns:
|
9
9
|
- name: meta.function.fxscript
|
10
|
-
captures:
|
11
|
-
|
10
|
+
captures:
|
11
|
+
'2':
|
12
12
|
name: entity.name.function.fxscript
|
13
|
-
begin: (^|(?<=;)[
|
13
|
+
begin: "(^|(?<=;)[ \\t]*)on[ \\t]+(\\w+)[ \\t]*(?=\\([^\\)]*\\))"
|
14
14
|
end: end(;|;?[ \t]*\n|;?[ \t]*//.*[ \t]*\n)
|
15
|
-
patterns:
|
16
|
-
- begin:
|
17
|
-
end:
|
18
|
-
patterns:
|
19
|
-
- captures:
|
20
|
-
|
15
|
+
patterns:
|
16
|
+
- begin: "\\((?=(?i:clip|color|float|image|point|string|value|point3d))"
|
17
|
+
end: "\\)"
|
18
|
+
patterns:
|
19
|
+
- captures:
|
20
|
+
'1':
|
21
21
|
name: support.type.fxscript
|
22
|
-
|
22
|
+
'2':
|
23
23
|
name: variable.parameter.function.fxscript
|
24
|
-
match: ((?i:clip|color|float|image|point|string|value|point3d))[
|
25
|
-
- include: $self
|
24
|
+
match: "((?i:clip|color|float|image|point|string|value|point3d))[ \\t]+([^,)]+)"
|
25
|
+
- include: "$self"
|
26
26
|
- name: keyword.other.input-control.fxscript
|
27
|
-
begin: (^|(?<=;)[
|
28
|
-
end:
|
29
|
-
patterns:
|
30
|
-
- include: $self
|
31
|
-
- captures:
|
32
|
-
|
27
|
+
begin: "(^|(?<=;)[ \\t]*)input[ \\t]*"
|
28
|
+
end: "\\n"
|
29
|
+
patterns:
|
30
|
+
- include: "$self"
|
31
|
+
- captures:
|
32
|
+
'1':
|
33
33
|
name: variable.other.global.fxscript
|
34
|
-
|
34
|
+
'2':
|
35
35
|
name: string.quoted.double.fxscript
|
36
|
-
|
36
|
+
'3':
|
37
37
|
name: support.type.fxscript
|
38
|
-
match:
|
38
|
+
match: "\\b(\\w+),[ \\t]+(\"[^\"]+\"),[ \\t]+(?i:Angle|CheckBox|Clip|Color|FontList|Label|Point|Popup|RadioGroup|Slider|Text),?"
|
39
39
|
comment: Input Controls
|
40
40
|
- name: storage.type.fxscript
|
41
|
-
match: (?i:float|image|point|point3d|region|string|value|YUVcolor)
|
41
|
+
match: "(?i:float|image|point|point3d|region|string|value|YUVcolor)\\b"
|
42
42
|
comment: Data Types
|
43
43
|
- name: keyword.control.fxscrpt
|
44
|
-
match:
|
44
|
+
match: "\\b(?i:if|(end|else)( if)?|for|next|return|repeat( While| With (Counter|List)))\\b"
|
45
45
|
- name: keyword.other.definition-statements.fxscript
|
46
|
-
match: /b(?i:AlphaType|EffectID|FullFrame|Group|InformationFlag|InvalEntireItem|KeyType|ProducesAlpha|QTEffect|RenderEachFrameWhenStill|WipeCode)/b
|
46
|
+
match: "/b(?i:AlphaType|EffectID|FullFrame|Group|InformationFlag|InvalEntireItem|KeyType|ProducesAlpha|QTEffect|RenderEachFrameWhenStill|WipeCode)/b"
|
47
47
|
- name: keyword.operator.arithmetic.fxscrpt
|
48
48
|
match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|!==|<=|>=|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^="
|
49
49
|
- name: comment.line.double-slash.fxscript
|
50
|
-
captures:
|
51
|
-
|
50
|
+
captures:
|
51
|
+
'1':
|
52
52
|
name: punctuation.definition.comment.fxscript
|
53
|
-
match: (//)
|
53
|
+
match: "(//).*$\\n?"
|
54
54
|
- name: support.constant.colorspace.fxscript
|
55
|
-
match: (?i:kFormatRGB219|kFormatRGB255|kFormatYUV219)
|
55
|
+
match: "(?i:kFormatRGB219|kFormatRGB255|kFormatYUV219)"
|
56
56
|
- name: constant.numeric.fxscript
|
57
|
-
match:
|
57
|
+
match: "\\b[0-9]+(\\.[0-9]*)?\\b"
|
58
58
|
- name: constant.numeric.hex.fxscript
|
59
|
-
match:
|
59
|
+
match: "\\b0x([a-fA-F0-9]*)?\\b"
|
60
60
|
- name: support.constant.color.fxscript
|
61
|
-
match: (?i:kBlack|kBlue|kCyan|kGray|kGreen|kMagenta|kRed|kWhite|kYellow)
|
61
|
+
match: "(?i:kBlack|kBlue|kCyan|kGray|kGreen|kMagenta|kRed|kWhite|kYellow)"
|
62
62
|
- name: support.constant.formatting.fxscript
|
63
|
-
match: (?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)
|
63
|
+
match: "(?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)"
|
64
64
|
- name: support.constant.general.fxscript
|
65
|
-
match: (?i:false|kAlpha|kNone|kUndefined|true)
|
65
|
+
match: "(?i:false|kAlpha|kNone|kUndefined|true)\\b"
|
66
66
|
- name: support.constant.key.fxscript
|
67
|
-
match: (?i:kKeyAdd|kKeyDarken|kKeyDifference|kKeyHardLight|kKeyLighten|kKeyMultiply|kKeyNormal|kKeyOverlay|kKeyScreen|kKeySoftLight|kKeySubtract)
|
67
|
+
match: "(?i:kKeyAdd|kKeyDarken|kKeyDifference|kKeyHardLight|kKeyLighten|kKeyMultiply|kKeyNormal|kKeyOverlay|kKeyScreen|kKeySoftLight|kKeySubtract)"
|
68
68
|
- name: support.constant.formatting.fxscript
|
69
|
-
match: (?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)
|
69
|
+
match: "(?i:k16mm|k24fps|k25fps|k30df|k30fps|k35mm|k60df|k60fps|kFloat2|kFloat4|kFloat6|kInteger|kSize)"
|
70
70
|
- name: support.variable.predeclared.fxscript
|
71
|
-
match:
|
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
72
|
- name: support.constant.text.fxscript
|
73
|
-
match: (?i:kbold|kbolditalic|kcenterjustify|kitalic|kleftjustify|kplain|krightjustify)
|
73
|
+
match: "(?i:kbold|kbolditalic|kcenterjustify|kitalic|kleftjustify|kplain|krightjustify)"
|
74
74
|
- name: support.constant.shapes.fxscript
|
75
|
-
match: (?i:kDiamond|kRound|kSquare)
|
76
|
-
- captures:
|
77
|
-
|
75
|
+
match: "(?i:kDiamond|kRound|kSquare)"
|
76
|
+
- captures:
|
77
|
+
'6':
|
78
78
|
name: entity.name.function.color.chroma-u.fxscript
|
79
|
-
|
79
|
+
'7':
|
80
80
|
name: entity.name.function.color.chroma-v.fxscript
|
81
|
-
|
81
|
+
'1':
|
82
82
|
name: entity.name.function.color.alpha.fxscript
|
83
|
-
|
83
|
+
'2':
|
84
84
|
name: entity.name.function.color.red.fxscript
|
85
|
-
|
85
|
+
'3':
|
86
86
|
name: entity.name.function.color.green.fxscript
|
87
|
-
|
87
|
+
'4':
|
88
88
|
name: entity.name.function.color.blue.fxscript
|
89
|
-
|
89
|
+
'5':
|
90
90
|
name: entity.name.function.color.luma.fxscript
|
91
|
-
match:
|
91
|
+
match: "\\b\\w+\\.(?i:(a)|(r)|(g)|(b)|(y)|(u)|(v))\\b"
|
92
92
|
- name: string.quoted.double.fxscript
|
93
|
-
endCaptures:
|
94
|
-
|
93
|
+
endCaptures:
|
94
|
+
'0':
|
95
95
|
name: punctuation.definition.string.end.fxscript
|
96
96
|
begin: "\""
|
97
|
-
beginCaptures:
|
98
|
-
|
97
|
+
beginCaptures:
|
98
|
+
'0':
|
99
99
|
name: punctuation.definition.string.begin.fxscript
|
100
100
|
end: "\""
|
101
|
-
patterns:
|
101
|
+
patterns:
|
102
102
|
- name: constant.character.escape.fxscript
|
103
|
-
match:
|
103
|
+
match: "\\\\."
|
104
104
|
- name: support.function.composite.fxscript
|
105
|
-
match:
|
105
|
+
match: "\\b(?i:Add|AddOffset|Darken|Difference|ImageAnd|ImageOr|ImageXor|Invert|InvertChannel|Lighten|Matte|Multiply|Overlay|Screen|Subtract|UnMultiply)\\b"
|
106
106
|
- name: support.function.blit.fxscript
|
107
|
-
match:
|
107
|
+
match: "\\b(?i:Blit|BlitRect|MaskCopy|MeshBlit|MeshBlit3D|PagePeel|RegionCopy)\\b"
|
108
108
|
- name: support.function.clip.fxscript
|
109
|
-
match:
|
109
|
+
match: "\\b(?i:GetLimits|GetReelName|GetTimeCode|GetVideo)"
|
110
110
|
- name: support.function.distort.fxscript
|
111
|
-
match:
|
111
|
+
match: "\\b(?i:BumpMap|Cylinder|Displace|Fisheye|OffsetPixels|PondRipple|Ripple|Wave|Whirlpool)\\b"
|
112
112
|
- name: support.function.external.fxscript
|
113
|
-
match:
|
113
|
+
match: "\\b(?i:Filter|Generator|Transition)\\b"
|
114
114
|
- name: support.function.geometry.fxscript
|
115
|
-
match:
|
115
|
+
match: "\\b(?i:AngleTo|AspectOf|BoundsOf|CenterOf|Convert2dto3d|convert3dto2d|DimensionsOf|DistTo|Grid|Interpolate|Mesh)\\b"
|
116
116
|
- name: support.function.key.fxscript
|
117
|
-
match:
|
117
|
+
match: "\\b(?i:BGDiff|BlueScreen|GreenScreen|RGBColorKey|YUVColorKey)\\b"
|
118
118
|
- name: support.function.math.fxscript
|
119
|
-
match:
|
119
|
+
match: "\\b(?i:Abs|Integer|Sign|Sqrt|Power)\\b"
|
120
120
|
- name: support.function.parser.fxscript
|
121
|
-
match:
|
121
|
+
match: "\\b(?i:BezToLevelMap|ChromaAngleKey)"
|
122
122
|
- name: support.function.process.fxscript
|
123
|
-
match:
|
123
|
+
match: "\\b(?i:Blend|Blur|BlurChannel|Channel(Copy|Fill|Multiply)|ColorTransform|Convolve|Desaturate|Diffuse|DiffuseOffset|LevelMap|MotionBlur|RadialBlur)\\b"
|
124
124
|
- name: support.function.shapes.process.fxscript
|
125
|
-
match:
|
125
|
+
match: "\\b(?i:CurveTo|DrawSoftDot|FillArc|FillOval|FillPoly|FillRegion|FrameArc|FrameOval|FramePoly|FrameRegion|Line|MakeRect|MakeRegion|OvalRegion|RegionIsEmpty)\\b"
|
126
126
|
- name: support.function.string.fxscript
|
127
|
-
match:
|
127
|
+
match: "\\b(?i:ASCIIOf|ASCIIToSTring|CharsOf|CountTextLines|FindString|getTextLine|GetTimecodeStringFromClip|Length|NumToString|StringToNum)"
|
128
128
|
- name: support.function.text.fxscript
|
129
|
-
match:
|
129
|
+
match: "\\b(?i:DrawString|DrawStringPlain|MeasureString|MeasureStringPlain|ResetText|SetTextFont|SetTextJustify|SetTextSize|SetTextStyle)"
|
130
130
|
- name: support.function.transform.fxscript
|
131
|
-
match:
|
131
|
+
match: "\\b(?i:Offset|Offset3d|Outset3d|Rotate|Rotate3d|Scale|Scale3d)\\b"
|
132
132
|
- name: support.function.undocumented.fxscript
|
133
|
-
match:
|
133
|
+
match: "\\b(?i:getNativeAspect|getNativeSize|FilteredBlitRect|BlurChannel_alt)\\b"
|
134
134
|
- name: support.function.debug.fxscript
|
135
|
-
match:
|
135
|
+
match: "\\b(?i:debugtext)\\b"
|
136
136
|
- name: support.function.utility.fxscript
|
137
|
-
match:
|
137
|
+
match: "\\b(?i:Assert|CircleLight|ColorOf|ConvertImage|GetConversionMatrix|GetPixelFormat|Highlight|MatrixConcat|PointTrack|Random(Noise|Seed|Table)?|SetPixelFormat|SysTime|Truncate)\\b"
|
138
138
|
- name: support.function.joe.fxscript
|
139
|
-
match:
|
140
|
-
comment:
|
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’s personal FXScript Functions, these will be appearing on the
|
141
|
+
FXScript Reference site someday.
|
141
142
|
foldingStopMarker: end(;|;?[ \t]*|;?[ \t]*//.*[ \t]*)
|
142
|
-
keyEquivalent: ^~F
|
143
|
+
keyEquivalent: "^~F"
|