spox-ultraviolet 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +25 -0
- data/Manifest.txt +233 -0
- data/README.txt +52 -0
- data/bin/theme2latexrender +122 -0
- data/bin/theme2xhtmlrender +156 -0
- data/bin/uv +140 -0
- data/lib/uv/render_processor.rb +131 -0
- data/lib/uv/utility.rb +67 -0
- data/lib/uv.rb +90 -0
- data/render/latex/active4d.render +132 -0
- data/render/latex/all_hallows_eve.render +96 -0
- data/render/latex/amy.render +171 -0
- data/render/latex/blackboard.render +111 -0
- data/render/latex/brilliance_black.render +552 -0
- data/render/latex/brilliance_dull.render +561 -0
- data/render/latex/cobalt.render +162 -0
- data/render/latex/dawn.render +126 -0
- data/render/latex/eiffel.render +132 -0
- data/render/latex/espresso_libre.render +123 -0
- data/render/latex/idle.render +93 -0
- data/render/latex/iplastic.render +99 -0
- data/render/latex/lazy.render +96 -0
- data/render/latex/mac_classic.render +135 -0
- data/render/latex/magicwb_amiga.render +117 -0
- data/render/latex/pastels_on_dark.render +204 -0
- data/render/latex/slush_poppies.render +123 -0
- data/render/latex/spacecadet.render +81 -0
- data/render/latex/sunburst.render +186 -0
- data/render/latex/twilight.render +153 -0
- data/render/latex/zenburnesque.render +126 -0
- data/render/old/txt2tags.render +131 -0
- data/render/xhtml/active4d.render +140 -0
- data/render/xhtml/all_hallows_eve.render +104 -0
- data/render/xhtml/amy.render +179 -0
- data/render/xhtml/blackboard.render +119 -0
- data/render/xhtml/brilliance_black.render +560 -0
- data/render/xhtml/brilliance_dull.render +569 -0
- data/render/xhtml/cobalt.render +170 -0
- data/render/xhtml/dawn.render +134 -0
- data/render/xhtml/eiffel.render +140 -0
- data/render/xhtml/espresso_libre.render +131 -0
- data/render/xhtml/files/css/active4d.css +114 -0
- data/render/xhtml/files/css/all_hallows_eve.css +72 -0
- data/render/xhtml/files/css/amy.css +147 -0
- data/render/xhtml/files/css/blackboard.css +88 -0
- data/render/xhtml/files/css/brilliance_black.css +605 -0
- data/render/xhtml/files/css/brilliance_dull.css +599 -0
- data/render/xhtml/files/css/cobalt.css +149 -0
- data/render/xhtml/files/css/dawn.css +121 -0
- data/render/xhtml/files/css/eiffel.css +121 -0
- data/render/xhtml/files/css/espresso_libre.css +109 -0
- data/render/xhtml/files/css/idle.css +62 -0
- data/render/xhtml/files/css/iplastic.css +80 -0
- data/render/xhtml/files/css/lazy.css +73 -0
- data/render/xhtml/files/css/mac_classic.css +123 -0
- data/render/xhtml/files/css/magicwb_amiga.css +104 -0
- data/render/xhtml/files/css/pastels_on_dark.css +188 -0
- data/render/xhtml/files/css/slush_poppies.css +85 -0
- data/render/xhtml/files/css/spacecadet.css +51 -0
- data/render/xhtml/files/css/sunburst.css +180 -0
- data/render/xhtml/files/css/twilight.css +137 -0
- data/render/xhtml/files/css/zenburnesque.css +91 -0
- data/render/xhtml/idle.render +101 -0
- data/render/xhtml/iplastic.render +107 -0
- data/render/xhtml/lazy.render +104 -0
- data/render/xhtml/mac_classic.render +143 -0
- data/render/xhtml/magicwb_amiga.render +125 -0
- data/render/xhtml/pastels_on_dark.render +212 -0
- data/render/xhtml/slush_poppies.render +131 -0
- data/render/xhtml/spacecadet.render +89 -0
- data/render/xhtml/sunburst.render +194 -0
- data/render/xhtml/twilight.render +161 -0
- data/render/xhtml/zenburnesque.render +134 -0
- data/syntax/actionscript.syntax +97 -0
- data/syntax/active4d.syntax +276 -0
- data/syntax/active4d_html.syntax +311 -0
- data/syntax/active4d_ini.syntax +50 -0
- data/syntax/active4d_library.syntax +21 -0
- data/syntax/ada.syntax +33 -0
- data/syntax/antlr.syntax +151 -0
- data/syntax/apache.syntax +191 -0
- data/syntax/applescript.syntax +384 -0
- data/syntax/asp.syntax +70 -0
- data/syntax/asp_vb.net.syntax +129 -0
- data/syntax/bibtex.syntax +151 -0
- data/syntax/blog_html.syntax +41 -0
- data/syntax/blog_markdown.syntax +42 -0
- data/syntax/blog_text.syntax +27 -0
- data/syntax/blog_textile.syntax +27 -0
- data/syntax/build.syntax +53 -0
- data/syntax/bulletin_board.syntax +287 -0
- data/syntax/cake.syntax +55 -0
- data/syntax/camlp4.syntax +36 -0
- data/syntax/cm.syntax +32 -0
- data/syntax/coldfusion.syntax +119 -0
- data/syntax/context_free.syntax +176 -0
- data/syntax/cs.syntax +59 -0
- data/syntax/css.syntax +195 -0
- data/syntax/css_experimental.syntax +1925 -0
- data/syntax/csv.syntax +68 -0
- data/syntax/d.syntax +142 -0
- data/syntax/diff.syntax +81 -0
- data/syntax/dokuwiki.syntax +204 -0
- data/syntax/dot.syntax +47 -0
- data/syntax/doxygen.syntax +43 -0
- data/syntax/dylan.syntax +62 -0
- data/syntax/eiffel.syntax +78 -0
- data/syntax/erlang.syntax +922 -0
- data/syntax/f-script.syntax +80 -0
- data/syntax/fortran.syntax +141 -0
- data/syntax/fxscript.syntax +142 -0
- data/syntax/greasemonkey.syntax +34 -0
- data/syntax/gri.syntax +83 -0
- data/syntax/groovy.syntax +191 -0
- data/syntax/gtd.syntax +22 -0
- data/syntax/gtdalt.syntax +143 -0
- data/syntax/haml.syntax +88 -0
- data/syntax/haskell.syntax +88 -0
- data/syntax/html-asp.syntax +27 -0
- data/syntax/html.syntax +362 -0
- data/syntax/html_django.syntax +36 -0
- data/syntax/html_for_asp.net.syntax +424 -0
- data/syntax/html_mason.syntax +119 -0
- data/syntax/html_rails.syntax +40 -0
- data/syntax/html_tcl.syntax +26 -0
- data/syntax/icalendar.syntax +32 -0
- data/syntax/inform.syntax +48 -0
- data/syntax/ini.syntax +55 -0
- data/syntax/installer_distribution_script.syntax +77 -0
- data/syntax/io.syntax +81 -0
- data/syntax/java.syntax +211 -0
- data/syntax/javaproperties.syntax +20 -0
- data/syntax/javascript.syntax +256 -0
- data/syntax/javascript_+_prototype.syntax +72 -0
- data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/syntax/jquery_javascript.syntax +114 -0
- data/syntax/json.syntax +136 -0
- data/syntax/languagedefinition.syntax +708 -0
- data/syntax/latex.syntax +566 -0
- data/syntax/latex_beamer.syntax +41 -0
- data/syntax/latex_log.syntax +50 -0
- data/syntax/latex_memoir.syntax +64 -0
- data/syntax/lexflex.syntax +219 -0
- data/syntax/lighttpd.syntax +54 -0
- data/syntax/lilypond.syntax +492 -0
- data/syntax/lisp.syntax +61 -0
- data/syntax/literate_haskell.syntax +24 -0
- data/syntax/logo.syntax +29 -0
- data/syntax/logtalk.syntax +152 -0
- data/syntax/lua.syntax +86 -0
- data/syntax/m.syntax +142 -0
- data/syntax/macports_portfile.syntax +163 -0
- data/syntax/makefile.syntax +36 -0
- data/syntax/man.syntax +17 -0
- data/syntax/mediawiki.syntax +567 -0
- data/syntax/mips.syntax +66 -0
- data/syntax/mod_perl.syntax +50 -0
- data/syntax/modula-3.syntax +47 -0
- data/syntax/moinmoin.syntax +189 -0
- data/syntax/mootools.syntax +572 -0
- data/syntax/movable_type.syntax +162 -0
- data/syntax/multimarkdown.syntax +39 -0
- data/syntax/objective-c++.syntax +18 -0
- data/syntax/objective-c.syntax +233 -0
- data/syntax/ocaml.syntax +764 -0
- data/syntax/ocamllex.syntax +167 -0
- data/syntax/ocamlyacc.syntax +184 -0
- data/syntax/opengl.syntax +14 -0
- data/syntax/pascal.syntax +77 -0
- data/syntax/perl.syntax +1115 -0
- data/syntax/plain_text.syntax +32 -0
- data/syntax/postscript.syntax +114 -0
- data/syntax/processing.syntax +106 -0
- data/syntax/prolog.syntax +40 -0
- data/syntax/property_list.syntax +635 -0
- data/syntax/python.syntax +868 -0
- data/syntax/python_django.syntax +21 -0
- data/syntax/qmake_project.syntax +114 -0
- data/syntax/qt_c++.syntax +26 -0
- data/syntax/quake3_config.syntax +32 -0
- data/syntax/r.syntax +81 -0
- data/syntax/r_console.syntax +16 -0
- data/syntax/ragel.syntax +201 -0
- data/syntax/rd_r_documentation.syntax +91 -0
- data/syntax/regexp.syntax +50 -0
- data/syntax/release_notes.syntax +46 -0
- data/syntax/remind.syntax +253 -0
- data/syntax/restructuredtext.syntax +250 -0
- data/syntax/rez.syntax +80 -0
- data/syntax/ruby.syntax +1035 -0
- data/syntax/ruby_experimental.syntax +145 -0
- data/syntax/ruby_on_rails.syntax +88 -0
- data/syntax/s5.syntax +69 -0
- data/syntax/scheme.syntax +347 -0
- data/syntax/scilab.syntax +41 -0
- data/syntax/setext.syntax +147 -0
- data/syntax/shell-unix-generic.syntax +384 -0
- data/syntax/slate.syntax +149 -0
- data/syntax/sql.syntax +237 -0
- data/syntax/sql_rails.syntax +18 -0
- data/syntax/ssh-config.syntax +33 -0
- data/syntax/standard_ml.syntax +121 -0
- data/syntax/strings_file.syntax +39 -0
- data/syntax/subversion_commit_message.syntax +36 -0
- data/syntax/sweave.syntax +84 -0
- data/syntax/swig.syntax +57 -0
- data/syntax/tcl.syntax +152 -0
- data/syntax/template_toolkit.syntax +121 -0
- data/syntax/tex.syntax +86 -0
- data/syntax/tex_math.syntax +49 -0
- data/syntax/textile.syntax +215 -0
- data/syntax/tsv.syntax +50 -0
- data/syntax/twiki.syntax +241 -0
- data/syntax/txt2tags.syntax +79 -0
- data/syntax/vectorscript.syntax +57 -0
- data/syntax/xhtml_1.0.syntax +4027 -0
- data/syntax/xml.syntax +180 -0
- data/syntax/xml_strict.syntax +92 -0
- data/syntax/xsl.syntax +60 -0
- data/syntax/yaml.syntax +160 -0
- data/syntax/yui_javascript.syntax +176 -0
- metadata +293 -0
@@ -0,0 +1,152 @@
|
|
1
|
+
---
|
2
|
+
name: Logtalk
|
3
|
+
fileTypes:
|
4
|
+
- lgt
|
5
|
+
- config
|
6
|
+
scopeName: source.logtalk
|
7
|
+
uuid: C11FA1F2-6EDB-11D9-8798-000A95DAA580
|
8
|
+
foldingStartMarker: (/\*|:-\s+(object|protocol|category)(?=[(]))
|
9
|
+
patterns:
|
10
|
+
- name: comment.block.logtalk
|
11
|
+
captures:
|
12
|
+
"0":
|
13
|
+
name: punctuation.definition.comment.logtalk
|
14
|
+
begin: /\*
|
15
|
+
end: \*/
|
16
|
+
- name: comment.line.percentage.logtalk
|
17
|
+
captures:
|
18
|
+
"1":
|
19
|
+
name: punctuation.definition.comment.logtalk
|
20
|
+
match: (%).*$\n?
|
21
|
+
- captures:
|
22
|
+
"1":
|
23
|
+
name: storage.type.opening.logtalk
|
24
|
+
"2":
|
25
|
+
name: punctuation.definition.storage.type.logtalk
|
26
|
+
"4":
|
27
|
+
name: entity.name.type.logtalk
|
28
|
+
match: ((:-)\s+(object|protocol|category|module))(?:\()([^(,)]+)
|
29
|
+
- name: storage.type.closing.logtalk
|
30
|
+
captures:
|
31
|
+
"1":
|
32
|
+
name: punctuation.definition.storage.type.logtalk
|
33
|
+
match: (:-)\s+(end_(object|protocol|category))(?=[.])
|
34
|
+
- name: storage.type.relations.logtalk
|
35
|
+
match: \b(extends|i(nstantiates|mp(orts|lements))|specializes)(?=[(])
|
36
|
+
- name: storage.modifier.others.logtalk
|
37
|
+
captures:
|
38
|
+
"1":
|
39
|
+
name: punctuation.definition.storage.modifier.logtalk
|
40
|
+
match: (:-)\s+(dynamic|threaded)(?=[.])
|
41
|
+
- name: storage.modifier.others.logtalk
|
42
|
+
captures:
|
43
|
+
"1":
|
44
|
+
name: punctuation.definition.storage.modifier.logtalk
|
45
|
+
match: (:-)\s+(calls|e(ncoding|xport)|in(itialization|fo)|uses)(?=[(])
|
46
|
+
- name: storage.modifier.others.logtalk
|
47
|
+
captures:
|
48
|
+
"1":
|
49
|
+
name: punctuation.definition.storage.modifier.logtalk
|
50
|
+
match: (:-)\s+(a(lias|tomic)|info|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|p(ublic|r(otected|ivate))|op|use(s|_module))(?=[(])
|
51
|
+
- name: keyword.operator.message-sending.logtalk
|
52
|
+
match: (::|\^\^)
|
53
|
+
- name: keyword.operator.mode.logtalk
|
54
|
+
match: (\?|@)
|
55
|
+
- name: keyword.operator.comparison.term.logtalk
|
56
|
+
match: (@=<|@<|@>|@>=|==|\\==)
|
57
|
+
- name: keyword.operator.comparison.arithmetic.logtalk
|
58
|
+
match: (=<|<|>|>=|=:=|=\\=)
|
59
|
+
- name: keyword.operator.bitwise.logtalk
|
60
|
+
match: (<<|>>|/\\|\\/|\\)
|
61
|
+
- name: keyword.operator.evaluable.logtalk
|
62
|
+
match: \b(mod|rem)\b
|
63
|
+
- name: keyword.operator.evaluable.logtalk
|
64
|
+
match: (\*\*|\+|-|\*|/|//)
|
65
|
+
- name: keyword.operator.misc.logtalk
|
66
|
+
match: (:-|!|\\+|,|;|-->|->|=|\=|\.|=\.\.|\bis\b)
|
67
|
+
- name: support.function.control.logtalk
|
68
|
+
match: \b(true|fail|repeat)\b(?![()])
|
69
|
+
- name: support.function.control.logtalk
|
70
|
+
match: \b(ca(ll|tch)|throw|once)(?=[(])
|
71
|
+
- name: support.function.chars-and-bytes-io.logtalk
|
72
|
+
match: \b((get|peek|put)_(char|code|byte)|nl)(?=[(])
|
73
|
+
- name: support.function.chars-and-bytes-io.logtalk
|
74
|
+
match: \bnl\b
|
75
|
+
- name: support.function.atom-term-processing.logtalk
|
76
|
+
match: \b(atom_(length|c(hars|o(ncat|des)))|sub_atom|char_code|number_c(hars|odes))(?=[(])
|
77
|
+
- name: support.function.term-testing.logtalk
|
78
|
+
match: \b(var|atom|integer|float|atomic|compound|n(onvar|umber))(?=[(])
|
79
|
+
- name: support.function.term-io.logtalk
|
80
|
+
match: \b(read_term|read|write|write(q|_(canonical|term))|op|current_op|char_conversion|current_char_conversion)(?=[(])
|
81
|
+
- name: support.function.term-creation-and-decomposition.logtalk
|
82
|
+
match: \b(arg|copy_term|functor)(?=[(])
|
83
|
+
- name: support.function.term-unification.logtalk
|
84
|
+
match: \b(unify_with_occurs_check)(?=[(])
|
85
|
+
- name: support.function.stream-selection-and-control.logtalk
|
86
|
+
match: \b((set|current)_(in|out)put|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])
|
87
|
+
- name: support.function.stream-selection-and-control.logtalk
|
88
|
+
match: \b(flush_output|at_end_of_stream)\b(?![()])
|
89
|
+
- name: support.function.prolog-flags.logtalk
|
90
|
+
match: \b((set|current)_prolog_flag)(?=[(])
|
91
|
+
- name: support.function.compiling-and-loading.logtalk
|
92
|
+
match: \b(logtalk_(compile|l(ibrary_path|oad)))(?=[(])
|
93
|
+
- name: support.function.event-handling.logtalk
|
94
|
+
match: \b((abolish|define)_events|current_event)(?=[(])
|
95
|
+
- name: support.function.implementation-defined-hooks.logtalk
|
96
|
+
match: \b((current|set)_logtalk_flag|halt)(?=[(])
|
97
|
+
- name: support.function.implementation-defined-hooks.logtalk
|
98
|
+
match: \b(halt)\b
|
99
|
+
- name: support.function.entity-creation-and-abolishing.logtalk
|
100
|
+
match: \b((c(reate|urrent)|abolish)_(object|protocol|category))(?=[(])
|
101
|
+
- name: support.function.reflection.logtalk
|
102
|
+
match: \b((object|protocol|category)_property|extends_(object|protocol)|imp(orts_category|lements_protocol)|(instantiates|specializes)_class)(?=[(])
|
103
|
+
- name: support.function.logtalk
|
104
|
+
match: \b((for|retract)all)(?=[(])
|
105
|
+
- name: support.function.execution-context.logtalk
|
106
|
+
match: \b(parameter|se(lf|nder)|this)(?=[(])
|
107
|
+
- name: support.function.database.logtalk
|
108
|
+
match: \b(a(bolish|ssert(a|z))|clause|retract|retractall)(?=[(])
|
109
|
+
- name: support.function.all-solutions.logtalk
|
110
|
+
match: \b((bag|set)of|f(ind|or)all)(?=[(])
|
111
|
+
- name: support.function.multi-threading.logtalk
|
112
|
+
match: \b(threaded_(call|exit))(?=[(])
|
113
|
+
- name: support.function.reflection.logtalk
|
114
|
+
match: \b(current_predicate|predicate_property)(?=[(])
|
115
|
+
- name: support.function.event-handler.logtalk
|
116
|
+
match: \b(before|after)(?=[(])
|
117
|
+
- name: support.function.grammar-rule.logtalk
|
118
|
+
match: \b(expand_term|term_expansion|phrase)(?=[(])
|
119
|
+
- name: string.quoted.single.logtalk
|
120
|
+
endCaptures:
|
121
|
+
"0":
|
122
|
+
name: punctuation.definition.string.end.logtalk
|
123
|
+
begin: "'"
|
124
|
+
beginCaptures:
|
125
|
+
"0":
|
126
|
+
name: punctuation.definition.string.begin.logtalk
|
127
|
+
end: "'"
|
128
|
+
patterns:
|
129
|
+
- name: constant.character.escape.logtalk
|
130
|
+
match: \\.
|
131
|
+
- name: string.quoted.double.logtalk
|
132
|
+
endCaptures:
|
133
|
+
"0":
|
134
|
+
name: punctuation.definition.string.end.logtalk
|
135
|
+
begin: "\""
|
136
|
+
beginCaptures:
|
137
|
+
"0":
|
138
|
+
name: punctuation.definition.string.begin.logtalk
|
139
|
+
end: "\""
|
140
|
+
patterns:
|
141
|
+
- name: constant.character.escape.logtalk
|
142
|
+
match: \\.
|
143
|
+
- name: constant.numeric.logtalk
|
144
|
+
match: \b(0b[0-1]+|0o[0-7]+|0x\h+)\b
|
145
|
+
- name: constant.numeric.logtalk
|
146
|
+
match: \b(0'.|0''|0'")
|
147
|
+
- name: constant.numeric.logtalk
|
148
|
+
match: \b(\d+\.?\d*((e|E)(\+|-)?\d+)?)\b
|
149
|
+
- name: variable.other.logtalk
|
150
|
+
match: \b([A-Z_][A-Za-z0-9_]*)\b
|
151
|
+
foldingStopMarker: (\*/|:-\s+end_(object|protocol|category)(?=[.]))
|
152
|
+
keyEquivalent: ^~L
|
data/syntax/lua.syntax
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
name: Lua
|
3
|
+
fileTypes:
|
4
|
+
- lua
|
5
|
+
scopeName: source.lua
|
6
|
+
uuid: 93E017CC-6F27-11D9-90EB-000D93589AF7
|
7
|
+
foldingStartMarker: ^\s*\b(function|if|for)\b|{[ \t]*$|\[\[
|
8
|
+
patterns:
|
9
|
+
- name: meta.function.lua
|
10
|
+
captures:
|
11
|
+
"6":
|
12
|
+
name: punctuation.definition.parameters.end.lua
|
13
|
+
"1":
|
14
|
+
name: keyword.control.lua
|
15
|
+
"2":
|
16
|
+
name: entity.name.function.scope.lua
|
17
|
+
"3":
|
18
|
+
name: entity.name.function.lua
|
19
|
+
"4":
|
20
|
+
name: punctuation.definition.parameters.begin.lua
|
21
|
+
"5":
|
22
|
+
name: variable.parameter.function.lua
|
23
|
+
match: \b(function)\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\w*)\s*(\()([^)]*)(\))
|
24
|
+
- name: constant.numeric.lua
|
25
|
+
match: (?<![\d.])\s0x[a-fA-F\d]+|\b\d+(\.\d+)?([eE]-?\d+)?|\.\d+([eE]-?\d+)?
|
26
|
+
- name: string.quoted.single.lua
|
27
|
+
endCaptures:
|
28
|
+
"0":
|
29
|
+
name: punctuation.definition.string.end.lua
|
30
|
+
begin: "'"
|
31
|
+
beginCaptures:
|
32
|
+
"0":
|
33
|
+
name: punctuation.definition.string.begin.lua
|
34
|
+
end: "'"
|
35
|
+
patterns:
|
36
|
+
- name: constant.character.escape.lua
|
37
|
+
match: \\.
|
38
|
+
- name: string.quoted.double.lua
|
39
|
+
endCaptures:
|
40
|
+
"0":
|
41
|
+
name: punctuation.definition.string.end.lua
|
42
|
+
begin: "\""
|
43
|
+
beginCaptures:
|
44
|
+
"0":
|
45
|
+
name: punctuation.definition.string.begin.lua
|
46
|
+
end: "\""
|
47
|
+
patterns:
|
48
|
+
- name: constant.character.escape.lua
|
49
|
+
match: \\.
|
50
|
+
- name: string.quoted.other.multiline.lua
|
51
|
+
endCaptures:
|
52
|
+
"0":
|
53
|
+
name: punctuation.definition.string.end.lua
|
54
|
+
begin: (?<!--)\[(=*)\[
|
55
|
+
beginCaptures:
|
56
|
+
"0":
|
57
|
+
name: punctuation.definition.string.begin.lua
|
58
|
+
end: \]\1\]
|
59
|
+
- name: comment.block.lua
|
60
|
+
captures:
|
61
|
+
"0":
|
62
|
+
name: punctuation.definition.comment.lua
|
63
|
+
begin: --\[(=*)\[
|
64
|
+
end: \]\1\]
|
65
|
+
- name: comment.line.double-dash.lua
|
66
|
+
captures:
|
67
|
+
"1":
|
68
|
+
name: punctuation.definition.comment.lua
|
69
|
+
match: (--)(?!\[\[).*$\n?
|
70
|
+
- name: keyword.control.lua
|
71
|
+
match: \b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\b
|
72
|
+
- name: constant.language.lua
|
73
|
+
match: (?<![^.]\.|:)\b(false|nil|true|_G|_VERSION|math\.(pi|huge))\b|(?<![.])\.{3}(?!\.)
|
74
|
+
- name: variable.language.self.lua
|
75
|
+
match: (?<![^.]\.|:)\b(self)\b
|
76
|
+
- name: support.function.lua
|
77
|
+
match: (?<![^.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?=[( {])
|
78
|
+
- name: support.function.library.lua
|
79
|
+
match: (?<![^.]\.|:)\b(coroutine\.(create|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(concat|insert|maxn|remove|sort)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(cpath|loaded|loadlib|path|preload|seeall)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\b(?=[( {])
|
80
|
+
- name: keyword.operator.lua
|
81
|
+
match: \b(and|or)\b
|
82
|
+
- name: keyword.operator.lua
|
83
|
+
match: \+|-|%|#|\*|\/|\^|==?|~=|<=?|>=?|(?<!\.)\.{2}(?!\.)
|
84
|
+
foldingStopMarker: \bend\b|^\s*}|\]\]
|
85
|
+
keyEquivalent: ^~L
|
86
|
+
comment: "Lua Syntax: version 0.8"
|
data/syntax/m.syntax
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
name: MATLAB
|
3
|
+
scopeName: source.matlab
|
4
|
+
uuid: 48F8858B-72FF-11D9-BFEE-000D93589AF6
|
5
|
+
foldingStartMarker: ^\s*(function|if|switch|while|for|try)\b(?!.*\bend\b).*$
|
6
|
+
patterns:
|
7
|
+
- name: storage.modifier.matlab
|
8
|
+
match: \b(varargin|varargout)\b
|
9
|
+
- name: keyword.control.matlab
|
10
|
+
match: \b(case|otherwise)\b
|
11
|
+
- name: keyword.other.matlab
|
12
|
+
match: \b(inputname|get|findobj|allchild|dbstack|stop|waitbar)\b
|
13
|
+
- name: meta.scope.expression.matlab
|
14
|
+
captures:
|
15
|
+
"0":
|
16
|
+
name: punctuation.section.scope.matlab
|
17
|
+
begin: \({2}
|
18
|
+
end: \){2}
|
19
|
+
patterns:
|
20
|
+
- include: $self
|
21
|
+
- name: meta.scope.logical-expression.matlab
|
22
|
+
captures:
|
23
|
+
"0":
|
24
|
+
name: punctuation.section.scope.matlab
|
25
|
+
begin: \[{2}
|
26
|
+
end: \]{2}
|
27
|
+
patterns:
|
28
|
+
- name: keyword.operator.logical.matlab
|
29
|
+
match: ==|~=|&|~|\|
|
30
|
+
comment: do we want a special rule for ( expr )?
|
31
|
+
- include: $self
|
32
|
+
- name: meta.scope.parens.matlab
|
33
|
+
captures:
|
34
|
+
"0":
|
35
|
+
name: punctuation.section.scope.matlab
|
36
|
+
begin: \(
|
37
|
+
end: \)
|
38
|
+
patterns:
|
39
|
+
- include: $self
|
40
|
+
- name: comment.line.percentage.matlab
|
41
|
+
captures:
|
42
|
+
"1":
|
43
|
+
name: punctuation.definition.comment.matlab
|
44
|
+
match: (%).*$\n?
|
45
|
+
- name: variable.other.transpose.matlab
|
46
|
+
match: "[a-zA-Z)\\]]'"
|
47
|
+
- name: string.quoted.single.matlab
|
48
|
+
endCaptures:
|
49
|
+
"0":
|
50
|
+
name: punctuation.definition.string.end.matlab
|
51
|
+
begin: "'"
|
52
|
+
beginCaptures:
|
53
|
+
"0":
|
54
|
+
name: punctuation.definition.string.begin.matlab
|
55
|
+
end: (')|\n
|
56
|
+
patterns:
|
57
|
+
- name: constant.character.escape.matlab
|
58
|
+
match: \\.
|
59
|
+
- name: string.quoted.double.matlab
|
60
|
+
endCaptures:
|
61
|
+
"0":
|
62
|
+
name: punctuation.definition.string.end.matlab
|
63
|
+
begin: "\""
|
64
|
+
beginCaptures:
|
65
|
+
"0":
|
66
|
+
name: punctuation.definition.string.begin.matlab
|
67
|
+
end: "\""
|
68
|
+
patterns:
|
69
|
+
- name: constant.character.escape.matlab
|
70
|
+
match: \\.
|
71
|
+
- name: keyword.other.matlab
|
72
|
+
match: \b(all_va_args|clf|endfor|if|break|endfunction|persistent|catch|endif|return|continue|endwhile|try|else|for|unwind_protect|elseif|function|unwind_protect_cleanup|end|global|while|end_try_catch|gplot|end_unwind_protect|gsplot)\b
|
73
|
+
- name: constant.language.boolean.matlab
|
74
|
+
match: \b(true|false)\b
|
75
|
+
- name: constant.language.matlab
|
76
|
+
match: \b(NaN|nan|inf|pi|Inf|realmax|realmin|eps)\b
|
77
|
+
- name: support.constant.matlab
|
78
|
+
match: \b(F_DUPFD|O_EXCL|filesep|F_GETFD|O_NONBLOCK|i|F_GETFL|O_RDONLY|F_SETFD|O_RDWR|j|F_SETFL|O_TRUNC|I|O_WRONLY|P_tmpdir|program_invocation_name|J|SEEK_CUR|program_name|NA|SEEK_END|SEEK_SET|OCTAVE_HOME|SIG|stderr|OCTAVE_VERSION|argv|stdin|O_APPEND|e|stdout|O_ASYNC|O_CREAT)\b
|
79
|
+
- name: support.variable.matlab
|
80
|
+
match: \b(DEFAULT_EXEC_PATH|ignore_function_time_stamp|DEFAULT_LOADPATH|max_recursion_depth|EDITOR|output_max_field_width|EXEC_PATH|output_precision|IMAGEPATH|page_output_immediately|INFO_FILE|page_screen_output|INFO_PROGRAM|print_answer_id_name|LOADPATH|print_empty_dimensions|MAKEINFO_PROGRAM|print_rhs_assign_val|PAGER|save_header_format_string|PS1|save_precision|PS2|saving_history|PS4|sighup_dumps_octave_core|__kluge_procbuf_delay__|sigterm_dumps_octave_core|__nargin__|silent_functions|ans|split_long_rows|automatic_replot|string_fill_char|beep_on_error|struct_levels_to_print|completion_append_char|suppress_verbose_help_message|crash_dumps_octave_core|variables_can_hide_functions|current_script_file_name|warn_assign_as_truth_value|debug_on_error|warn_divide_by_zero|debug_on_interrupt|warn_empty_list_elements|debug_on_warning|warn_fortran_indexing|debug_symtab_lookups|warn_function_name_clash|default_save_format|warn_future_time_stamp|echo_executing_commands|warn_imag_to_real|fixed_point_format|warn_matlab_incompatible|gnuplot_binary|warn_missing_semicolon|gnuplot_command_axes|warn_neg_dim_as_zero|gnuplot_command_end|warn_num_to_str|gnuplot_command_plot|warn_precedence_change|gnuplot_command_replot|warn_reload_forces_clear|gnuplot_command_splot|warn_resize_on_range_error|gnuplot_command_title|warn_separator_insert|gnuplot_command_using|warn_single_quote_string|gnuplot_command_with|warn_str_to_num|gnuplot_has_frames|warn_undefined_return_values|history_file|warn_variable_switch_label|history_size)\b
|
81
|
+
- name: keyword.other.commands.matlab
|
82
|
+
match: \b(__end__|diary|isvarname|set|casesen|echo|load|show|cd|edit_history|ls|type|chdir|format|mark_as_command|unmark_command|clear|gset|mislocked|which|dbclear|gshow|mlock|who|dbstatus|help|more|whos|dbstop|history|munlock|dbtype|hold|run_history|dbwhere|iskeyword|save)\b
|
83
|
+
- name: support.function.mapper.matlab
|
84
|
+
match: \b(abs|cos|is_nan_or_na|isnan|sign|acos|cosh|isalnum|isprint|sin|acosh|erf|isalpha|ispunct|sinh|angle|erfc|isascii|isspace|sqrt|arg|exp|iscntrl|isupper|tan|asin|finite|isdigit|isxdigit|tanh|asinh|fix|isfinite|lgamma|toascii|atan|floor|isgraph|log|tolower|atanh|gamma|isinf|log10|toupper|ceil|gammaln|islower|real|conj|imag|isna|round)\b
|
85
|
+
- name: support.function.general.matlab
|
86
|
+
match: \b(ERRNO|iscellstr|__end__|ischar|__error_text__|iscntrl|__print_symbol_info__|iscomplex|__print_symtab_info__|isdigit|abs|isempty|acos|isfield|acosh|isfinite|airy|isglobal|all|isgraph|angle|ishold|any|isieee|append|isinf|arg|iskeyword|asin|islist|asinh|islogical|assignin|islower|atan|ismatrix|atan2|isna|atanh|isnan|atexit|isnumeric|balance|isprint|besselh|ispunct|besseli|isreal|besselj|isspace|besselk|isstream|bessely|isstreamoff|betainc|isstruct|casesen|isupper|cd|isvarname|ceil|isxdigit|cell|kbhit|cellstr|keyboard|char|kill|chdir|kron|chol|lasterr|class|lastwarn|clc|length|clear|lgamma|clearplot|link|clg|linspace|closeplot|list|colloc|load|completion_matches|localtime|conj|log|cos|log10|cosh|lpsolve|cumprod|lpsolve_options|cumsum|ls|daspk|lsode|daspk_options|lsode_options|dasrt|lstat|dasrt_options|lu|dassl|mark_as_command|dassl_options|max|dbclear|min|dbstatus|mislocked|dbstop|mkdir|dbtype|mkfifo|dbwhere|mkstemp|det|mktime|diag|mlock|diary|more|disp|munlock|do_string_escapes|nargin|document|nargout|dup2|native_float_format|echo|ndims|edit_history|nth|eig|numel|endgrent|octave_config_info|endpwent|octave_tmp_file_name|erf|odessa|erfc|odessa_options|error|ones|error_text|pause|eval|pclose|evalin|permute|exec|pinv|exist|pipe|exit|popen|exp|printf|expm|prod|eye|purge_tmp_files|fclose|putenv|fcntl|puts|fdisp|pwd|feof|qr|ferror|quad|feval|quad_options|fflush|quit|fft|qz|fft2|rand|fgetl|randn|fgets|read_readline_init_file|fieldnames|readdir|file_in_loadpath|readlink|file_in_path|real|filter|rehash|find|rename|find_first_of_in_loadpath|reshape|finite|reverse|fix|rmdir|floor|round|fmod|run_history|fnmatch|save|fopen|scanf|fork|schur|format|set|fprintf|setgrent|fputs|setpwent|fread|shell_cmd|freport|show|frewind|sign|fscanf|sin|fseek|sinh|fsolve|size|fsolve_options|sleep|ftell|sort|func2str|source|functions|splice|fwrite|sprintf|gamma|sqrt|gammainc|sqrtm|gammaln|squeeze|getegid|sscanf|getenv|stat|geteuid|str2func|getgid|streamoff|getgrent|strftime|getgrgid|strptime|getgrnam|sum|getpgrp|sumsq|getpid|svd|getppid|syl|getpwent|symlink|getpwnam|system|getpwuid|tan|getrusage|tanh|getuid|tilde_expand|givens|time|glob|tmpfile|gmtime|tmpnam|graw|toascii|gset|tolower|gshow|toupper|help|type|hess|typeinfo|history|umask|hold|undo_string_escapes|home|unlink|ifft|unmark_command|ifft2|usage|imag|usleep|input|va_arg|input_event_hook|va_start|inv|vr_val|inverse|waitpid|ipermute|warning|is_nan_or_na|warranty|isalnum|which|isalpha|who|isascii|whos|isbool|zeros|iscell)\b
|
87
|
+
- name: support.function.audio.matlab
|
88
|
+
match: \b(lin2mu|mu2lin|record|setaudio|loadaudio|playaudio|saveaudio)\b
|
89
|
+
- name: support.function.control.base.matlab
|
90
|
+
match: \b(DEMOcontrol|bode_bounds|dlqe|lqe|obsv|__bodquist__|controldemo|dlqr|lqg|place|__freqresp__|ctrb|dlyap|lqr|pzmap|__stepimp__|damp|dre|lsim|rldemo|analdemo|dare|frdemo|ltifr|rlocus|are|dcgain|freqchkw|lyap|step|bddemo|dgram|gram|nichols|tzero|bode|dkalman|impulse|nyquist|tzero2)\b
|
91
|
+
- name: support.function.control.hinf.matlab
|
92
|
+
match: \b(dgkfdemo|h2syn|hinfnorm|hinfsyn_ric|dhinfdemo|hinf_ctr|hinfsyn|is_dgkf|h2norm|hinfdemo|hinfsyn_chk|wgt1o)\b
|
93
|
+
- name: invalid.deprecated.obsolete.function.control.matlab
|
94
|
+
match: \b(dezero|packsys|series|syschnames|dlqg|qzval|swapcols|unpacksys|minfo|rotg|swaprows)\b
|
95
|
+
- name: support.function.control.system.matlab
|
96
|
+
match: \b(__abcddims__|is_observable|sys2tf|sysprune|__syschnamesl__|is_sample|sys2zp|sysreorder|__syscont_disc__|is_signal_list|sysadd|sysrepdemo|__sysdefioname__|is_siso|sysappend|sysscale|__sysdefstname__|is_stabilizable|syschtsam|syssetsignals|__sysgroupn__|is_stable|sysconnect|syssub|__tf2sysl__|jet707|syscont|sysupdate|__zp2ssg2__|listidx|sysdimensions|tf2ss|abcddim|moddemo|sysdisc|tf2sys|buildssic|ord2|sysdup|tf2zp|c2d|packedform|sysgetsignals|tfout|d2c|parallel|sysgettsam|ugain|dmr2d|ss2sys|sysgettype|zp2ss|fir2sys|ss2tf|sysgroup|zp2sys|is_abcd|ss2zp|sysidx|zp2tf|is_controllable|starp|sysmin|zpout|is_detectable|sys2fir|sysmult|is_digital|sys2ss|sysout)\b
|
97
|
+
- name: support.function.control.util.matlab
|
98
|
+
match: \b(__outlist__|run_cmd|zgfmul|zgrownorm|__zgpbal__|sortcom|zgfslv|zgscal|axis2dlim|strappend|zginit|zgsgiv|prompt|swap|zgreduce|zgshsr)\b
|
99
|
+
- name: invalid.deprecated.function.matlab
|
100
|
+
match: \b(is_bool|is_matrix|is_struct|setstr|is_complex|is_scalar|is_symmetric|struct_contains|is_global|is_square|is_vector|struct_elements|is_list|is_stream|isstr)\b
|
101
|
+
- name: support.function.elfun.matlab
|
102
|
+
match: \b(acot|acsc|asec|cot|csc|gcd|sec|acoth|acsch|asech|coth|csch|lcm|sech)\b
|
103
|
+
- name: support.function.finance.matlab
|
104
|
+
match: \b(fv|fvl|irr|nper|npv|pmt|pv|pvl|rate|vol)\b
|
105
|
+
- name: support.function.general.matlab
|
106
|
+
match: \b(cart2pol|issquare|prepad|cart2sph|issymmetric|randperm|columns|isvector|rem|common_size|logical|repmat|diff|logspace|rot90|fliplr|mod|rows|flipud|nargchk|shift|ind2sub|nextpow2|sph2cart|int2str|num2str|strerror|is_duplicate_entry|perror|sub2ind|isdefinite|pol2cart|tril|isscalar|postpad|triu)\b
|
107
|
+
- name: support.function.image.matlab
|
108
|
+
match: \b(colormap|hsv2rgb|imshow|loadimage|rgb2hsv|saveimage|gray|image|ind2gray|ntsc2rgb|rgb2ind|gray2ind|imagesc|ind2rgb|ocean|rgb2ntsc)\b
|
109
|
+
- name: support.function.io.matlab
|
110
|
+
match: \b(beep)\b
|
111
|
+
- name: support.function.linear-algebra.matlab
|
112
|
+
match: \b(commutation_matrix|housh|orth|cond|krylov|qzhess|cross|krylovb|rank|dmult|logm|trace|dot|norm|vec|duplication_matrix|null|vech)\b
|
113
|
+
- name: support.function.misc.matlab
|
114
|
+
match: \b(bincoeff|dump_prefs|ispc|path|toc|bug_report|etime|isunix|popen2|unix|comma|fileparts|list_primes|semicolon|version|computer|flops|menu|tempdir|vertcat|cputime|fullfile|not|tempname|xor|delete|horzcat|pack|texas_lotto|dir|is_leap_year|paren|tic)\b
|
115
|
+
- name: support.function.plot.matlab
|
116
|
+
match: \b(__axis_label__|__plt__|loglogerr|semilogyerr|__errcomm__|__pltopt1__|mesh|shg|__errplot__|__pltopt__|meshdom|sombrero|__plr1__|axis|meshgrid|stairs|__plr2__|bar|mplot|subplot|__plr__|bottom_title|multiplot|subwindow|__plt1__|close|oneplot|title|__plt2__|contour|plot|top_title|__plt2mm__|errorbar|plot_border|xlabel|__plt2mv__|figure|polar|ylabel|__plt2ss__|grid|semilogx|zlabel|__plt2vm__|hist|semilogxerr|__plt2vv__|loglog|semilogy)\b
|
117
|
+
- name: support.function.polynomial.matlab
|
118
|
+
match: \b(compan|poly|polyfit|polyreduce|residue|conv|polyder|polyinteg|polyval|roots|deconv|polyderiv|polyout|polyvalm)\b
|
119
|
+
- name: support.function.quaternion.matlab
|
120
|
+
match: \b(demoquat|qderiv|qmult|qtransvmat|qconj|qderivmat|qtrans|quaternion|qcoordinate_plot|qinv|qtransv)\b
|
121
|
+
- name: support.function.set.matlab
|
122
|
+
match: \b(complement|create_set|intersection|union)\b
|
123
|
+
- name: support.function.signal.matlab
|
124
|
+
match: \b(arch_fit|detrend|hamming|spectral_adf|arch_rnd|diffpara|hanning|spectral_xdf|arch_test|durbinlevinson|hurst|spencer|arma_rnd|fftconv|periodogram|stft|autocor|fftfilt|rectangle_lw|synthesis|autocov|fftshift|rectangle_sw|triangle_lw|autoreg_matrix|fractdiff|sinc|triangle_sw|bartlett|freqz|sinetone|unwrap|blackman|freqz_plot|sinewave|yulewalker)\b
|
125
|
+
- name: support.function.specfun.matlab
|
126
|
+
match: \b(bessel|beta|betai|erfinv|gammai|log2|pow2)\b
|
127
|
+
- name: support.function.special-matrix.matlab
|
128
|
+
match: \b(hankel|invhilb|toeplitz|hilb|sylvester_matrix|vander)\b
|
129
|
+
- name: support.function.statistics.base.matlab
|
130
|
+
match: \b(center|iqr|median|ranks|table|cloglog|kendall|moment|run_count|values|cor|kurtosis|ols|skewness|var|corrcoef|logit|ppplot|spearman|cov|mahalanobis|probit|statistics|cut|mean|qqplot|std|gls|meansq|range|studentize)\b
|
131
|
+
- name: support.function.statistics.distributions.matlab
|
132
|
+
match: \b(beta_cdf|f_inv|normal_inv|beta_inv|f_pdf|normal_pdf|beta_pdf|f_rnd|normal_rnd|beta_rnd|gamma_cdf|pascal_cdf|binomial_cdf|gamma_inv|pascal_inv|binomial_inv|gamma_pdf|pascal_pdf|binomial_pdf|gamma_rnd|pascal_rnd|binomial_rnd|geometric_cdf|poisson_cdf|cauchy_cdf|geometric_inv|poisson_inv|cauchy_inv|geometric_pdf|poisson_pdf|cauchy_pdf|geometric_rnd|poisson_rnd|cauchy_rnd|hypergeometric_cdf|stdnormal_cdf|chisquare_cdf|hypergeometric_inv|stdnormal_inv|chisquare_inv|hypergeometric_pdf|stdnormal_pdf|chisquare_pdf|hypergeometric_rnd|stdnormal_rnd|chisquare_rnd|kolmogorov_smirnov_cdf|t_cdf|discrete_cdf|laplace_cdf|t_inv|discrete_inv|laplace_inv|t_pdf|discrete_pdf|laplace_pdf|t_rnd|discrete_rnd|laplace_rnd|uniform_cdf|empirical_cdf|logistic_cdf|uniform_inv|empirical_inv|logistic_inv|uniform_pdf|empirical_pdf|logistic_pdf|uniform_rnd|empirical_rnd|logistic_rnd|weibull_cdf|exponential_cdf|lognormal_cdf|weibull_inv|exponential_inv|lognormal_inv|weibull_pdf|exponential_pdf|lognormal_pdf|weibull_rnd|exponential_rnd|lognormal_rnd|wiener_rnd|f_cdf|normal_cdf)\b
|
133
|
+
- name: support.function.statistics.models.matlab
|
134
|
+
match: \b(logistic_regression|logistic_regression_likelihood|logistic_regression_derivatives)\b
|
135
|
+
- name: support.function.statistics.tests.matlab
|
136
|
+
match: \b(anova|prop_test_2|bartlett_test|run_test|chisquare_test_homogeneity|sign_test|chisquare_test_independence|t_test|cor_test|t_test_2|f_test_regression|t_test_regression|hotelling_test|u_test|hotelling_test_2|var_test|kolmogorov_smirnov_test|welch_test|kolmogorov_smirnov_test_2|wilcoxon_test|kruskal_wallis_test|z_test|manova|z_test_2|mcnemar_test)\b
|
137
|
+
- name: support.function.strings.matlab
|
138
|
+
match: \b(base2dec|deblank|findstr|lower|str2num|strrep|bin2dec|dec2base|hex2dec|rindex|strcat|substr|blanks|dec2bin|index|split|strcmp|upper|com2str|dec2hex|isletter|str2mat|strjust)\b
|
139
|
+
- name: support.function.time.matlab
|
140
|
+
match: \b(asctime|clock|ctime|date)\b
|
141
|
+
foldingStopMarker: ^\s*(end|return)\b.*$
|
142
|
+
keyEquivalent: ^~M
|
@@ -0,0 +1,163 @@
|
|
1
|
+
---
|
2
|
+
name: MacPorts Portfile
|
3
|
+
fileTypes: []
|
4
|
+
|
5
|
+
scopeName: source.tcl.macports
|
6
|
+
repository:
|
7
|
+
escape:
|
8
|
+
name: constant.character.escape.tcl
|
9
|
+
match: \\(\d{1,3}|x[a-fA-F0-9]+|u[a-fA-F0-9]{1,4}|.|\n)
|
10
|
+
comment: imported from Tcl grammar
|
11
|
+
bare-string:
|
12
|
+
endCaptures:
|
13
|
+
"1":
|
14
|
+
name: invalid.illegal.tcl
|
15
|
+
begin: (?:^|(?<=\s))"
|
16
|
+
end: "\"(\\S*)"
|
17
|
+
patterns:
|
18
|
+
- include: "#escape"
|
19
|
+
- include: "#variable"
|
20
|
+
comment: imported from Tcl grammar
|
21
|
+
braces:
|
22
|
+
endCaptures:
|
23
|
+
"1":
|
24
|
+
name: invalid.illegal.tcl
|
25
|
+
begin: (?:^|(?<=\s))\{
|
26
|
+
end: \}(\S*)
|
27
|
+
patterns:
|
28
|
+
- name: constant.character.escape.tcl
|
29
|
+
match: \\[{}\n]
|
30
|
+
- include: "#inner-braces"
|
31
|
+
comment: imported from Tcl grammar
|
32
|
+
inner-braces:
|
33
|
+
begin: \{
|
34
|
+
end: \}
|
35
|
+
patterns:
|
36
|
+
- name: constant.character.escape.tcl
|
37
|
+
match: \\[{}\n]
|
38
|
+
- include: "#inner-braces"
|
39
|
+
comment: imported from Tcl grammar
|
40
|
+
variable:
|
41
|
+
name: variable.other.tcl
|
42
|
+
captures:
|
43
|
+
"1":
|
44
|
+
name: punctuation.definition.variable.tcl
|
45
|
+
match: (\$)([a-zA-Z0-9_:]+(\([^\)]+\))?|\{[^\}]*\})
|
46
|
+
comment: imported from Tcl grammar
|
47
|
+
string:
|
48
|
+
name: string.quoted.double.tcl
|
49
|
+
begin: (?:^|(?<=\s))(?=")
|
50
|
+
applyEndPatternLast: 1
|
51
|
+
end: ""
|
52
|
+
patterns:
|
53
|
+
- include: "#bare-string"
|
54
|
+
comment: imported from Tcl grammar
|
55
|
+
embedded:
|
56
|
+
name: source.tcl.embedded
|
57
|
+
endCaptures:
|
58
|
+
"0":
|
59
|
+
name: punctuation.section.embedded.end.tcl
|
60
|
+
begin: \[
|
61
|
+
beginCaptures:
|
62
|
+
"0":
|
63
|
+
name: punctuation.section.embedded.begin.tcl
|
64
|
+
end: \]
|
65
|
+
patterns:
|
66
|
+
- include: source.tcl.macports
|
67
|
+
comment: imported from Tcl grammar
|
68
|
+
uuid: 33EC56FE-2BD4-4B73-A6CD-73395F4E5E58
|
69
|
+
foldingStartMarker: \{\s*$
|
70
|
+
patterns:
|
71
|
+
- begin: ^\s*(PortGroup)\s+ruby(?!\S)
|
72
|
+
beginCaptures:
|
73
|
+
"1":
|
74
|
+
name: keyword.other.tcl.macports
|
75
|
+
end: $.^
|
76
|
+
patterns:
|
77
|
+
- include: $base
|
78
|
+
- name: keyword.other.tcl.macports
|
79
|
+
match: ^\s*ruby\.setup(?!\S)
|
80
|
+
comment: special case for ruby PortGroup
|
81
|
+
- begin: ^\s*(PortGroup)\s+perl5(?!\S)
|
82
|
+
beginCaptures:
|
83
|
+
"1":
|
84
|
+
name: keyword.other.tcl.macports
|
85
|
+
end: $.^
|
86
|
+
patterns:
|
87
|
+
- include: $base
|
88
|
+
- name: keyword.other.tcl.macports
|
89
|
+
match: ^\s*perl5\.setup(?!\S)
|
90
|
+
comment: special case for the perl5 PortGroup
|
91
|
+
- captures:
|
92
|
+
"1":
|
93
|
+
name: keyword.other.tcl.macports
|
94
|
+
match: ^\s*(PortSystem|PortGroup)(?!\S)
|
95
|
+
comment: Base commands
|
96
|
+
- captures:
|
97
|
+
"1":
|
98
|
+
name: keyword.other.tcl.macports
|
99
|
+
match: ^\s*(use_(?:configure|build|automake|autoconf|xmkmf|libtool|destroot|extract|cvs|svn|patch|test)|(?:configure|build|automake|autoconf|xmkmf|libtool|destroot|extract|cvs|svn|patch|test)\.(?:dir|(?:pre_|post_)?args|env|type|cmd)(?:-(?:delete|append))?)(?!\S)
|
100
|
+
comment: Procs defined with the `commands` keyword (ignore use_option-{delete,append} as it is useless)
|
101
|
+
- captures:
|
102
|
+
"1":
|
103
|
+
name: keyword.other.tcl.macports
|
104
|
+
match: ^\s*((?:(?:pre|post)-)?(?:activate|build|checksum|clean|configure|destroot|distcheck|extract|fetch|install|livecheck|main|mirror|patch|pkg|mpkg|submit|test))(?!\S)
|
105
|
+
comment: Procs defined with the `target_provides` keyword
|
106
|
+
- captures:
|
107
|
+
"1":
|
108
|
+
name: keyword.other.tcl.macports
|
109
|
+
match: ^\s*((?:build\.target|categories|checksum\.skip|checksums|cvs\.(?:date|module|password|root|tag)|default_variants|depends_(?:build|lib|run)|destroot\.(?:clean|destdir|keepdirs|target|umask)|dist_subdir|distcheck\.check|distfiles|distname|distpath|epoch|extract\.(?:only|suffix)|fetch\.(?:password|type|use_epsv|user)|filesdir|gnustep\.domain|homepage|install\.(?:group|user)|libpath|livecheck\.(?:check|md5|name|distname|regex|url|version)|maintainers|(?:master|patch)_sites(?:\.mirror_subdir)?|name|os\.(?:arch|endian|platform|version)|patchfiles|platforms|portdbpath|portname|prefix|revision|sources_conf|startupitem\.(?:create|executable|init|logevents|logfile|name|pidfile|requires|restart|start|stop|type)|svn\.(?:tag|url)|test\.(?:run|target)|use_bzip2|use_zip|version|workdir|worksrcdir|xcode\.(?:build\.settings|configuration|destroot\.(?:path|settings|type)|project|target)|zope\.need_subdir)(?:-(?:delete|append))?)(?!\S)
|
110
|
+
comment: Procs defined with the `options` keyword
|
111
|
+
- begin: ^\s*((?:long_)?description)(?!\S)
|
112
|
+
contentName: string.unquoted.tcl.macports
|
113
|
+
beginCaptures:
|
114
|
+
"1":
|
115
|
+
name: keyword.other.tcl.macports
|
116
|
+
end: "[\\n;]"
|
117
|
+
patterns:
|
118
|
+
- include: "#escape"
|
119
|
+
- include: "#string"
|
120
|
+
- include: "#braces"
|
121
|
+
- include: "#embedded"
|
122
|
+
- include: "#variable"
|
123
|
+
comment: special-case description and long_description for backslash-newline escapes and string scoping
|
124
|
+
- name: meta.variant.tcl.macports
|
125
|
+
captures:
|
126
|
+
"1":
|
127
|
+
name: keyword.other.variant.tcl.macports
|
128
|
+
begin: ^(variant)(?!\S)
|
129
|
+
end: \n
|
130
|
+
patterns:
|
131
|
+
- name: keyword.other.variant.tcl.macports
|
132
|
+
match: (?<=\s)(?:provides|requires|conflicts)(?!\S)
|
133
|
+
- name: entity.name.function.variant.tcl.macports
|
134
|
+
match: (?<=\s)([\w-]+)
|
135
|
+
- endCaptures:
|
136
|
+
"1":
|
137
|
+
name: punctuation.terminator.variant.tcl.macports
|
138
|
+
begin: (\{)
|
139
|
+
beginCaptures:
|
140
|
+
"1":
|
141
|
+
name: punctuation.section.variant.tcl.macports
|
142
|
+
end: (\})
|
143
|
+
patterns:
|
144
|
+
- include: source.tcl.macports
|
145
|
+
- name: meta.variant.platform.tcl.macports
|
146
|
+
endCaptures:
|
147
|
+
"1":
|
148
|
+
name: punctuation.terminator.variant.platform.tcl.macports
|
149
|
+
begin: ^(platform)(?:\s+(\S+))?(?:\s+(\S+))?(?:\s+(\S+))?\s+(\{)
|
150
|
+
beginCaptures:
|
151
|
+
"1":
|
152
|
+
name: keyword.other.variant.platform.tcl.macports
|
153
|
+
"2":
|
154
|
+
name: entity.name.function.variant.platform.tcl.macports
|
155
|
+
"5":
|
156
|
+
name: punctuation.section.variant.platform.tcl.macports
|
157
|
+
end: (\})
|
158
|
+
patterns:
|
159
|
+
- include: source.tcl.macports
|
160
|
+
- name: keyword.other.tcl.macports
|
161
|
+
match: (?<=^|[\[{;])\s*(adduser|addgroup|dirSize|binaryInPath|archiveTypeIsSupported|variant_isset|xinstall|system|reinplace|flock|readdir|strsed|mkstemp|mktemp|existsuser|existsgroup|nextuid|nextgid|md5|find|filemap|rpm-vercomp|rmd160|sha1|compat|umask|sudo|mkfifo|unixsocketpair|mkchannelfromfd|pipe|curl|readline|rl_history|getuid|geteuid|setuid|seteuid|name_to_uid|uid_to_name|ldelete|delete|include)\b
|
162
|
+
- include: source.tcl
|
163
|
+
foldingStopMarker: ^\s*\}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
name: Makefile
|
3
|
+
fileTypes:
|
4
|
+
- GNUmakefile
|
5
|
+
- makefile
|
6
|
+
- Makefile
|
7
|
+
- OCamlMakefile
|
8
|
+
scopeName: source.makefile
|
9
|
+
uuid: FF1825E8-6B1C-11D9-B883-000D93589AF6
|
10
|
+
patterns:
|
11
|
+
- name: variable.other.makefile
|
12
|
+
begin: ^(\w|[-_])+\s*\??=
|
13
|
+
end: $
|
14
|
+
patterns:
|
15
|
+
- match: \\\n
|
16
|
+
- name: string.interpolated.backtick.makefile
|
17
|
+
begin: `
|
18
|
+
end: `
|
19
|
+
patterns:
|
20
|
+
- include: source.shell
|
21
|
+
- name: comment.line.number-sign.makefile
|
22
|
+
begin: "#"
|
23
|
+
beginCaptures:
|
24
|
+
"0":
|
25
|
+
name: punctuation.definition.comment.makefile
|
26
|
+
end: $\n?
|
27
|
+
patterns:
|
28
|
+
- name: punctuation.separator.continuation.makefile
|
29
|
+
match: (?<!\\)\\$\n
|
30
|
+
- name: keyword.control.makefile
|
31
|
+
match: ^(\s*)\b(\-??include|ifeq|ifneq|ifdef|ifndef|else|endif|vpath|export|unexport|define|endef|override)\b
|
32
|
+
- name: meta.function.makefile
|
33
|
+
captures:
|
34
|
+
"1":
|
35
|
+
name: entity.name.function.makefile
|
36
|
+
match: ^([^\t ]+:(?!\=))\s*.*
|
data/syntax/man.syntax
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: Man
|
3
|
+
fileTypes:
|
4
|
+
- man
|
5
|
+
scopeName: text.man
|
6
|
+
uuid: E8BAC30A-16BF-498D-941D-73FBAED37891
|
7
|
+
foldingStartMarker: ^[A-Z](?:(?:\S+\s\S+)+|\S+)$
|
8
|
+
patterns:
|
9
|
+
- name: markup.heading.man
|
10
|
+
match: ^[A-Z](?:(?:\S+\s\S+)+|\S+)$
|
11
|
+
- name: markup.underline.link.man
|
12
|
+
match: ((https?|ftp|file|txmt)://|mailto:)[-:@a-zA-Z0-9_.~%+/?=&#]+(?<![.?:])
|
13
|
+
- name: markup.underline.link.internal.man
|
14
|
+
match: ([\w\.]+\(\d[a-z]?\))
|
15
|
+
- name: meta.foldingStopMarker.man
|
16
|
+
match: ^_{2,}$
|
17
|
+
foldingStopMarker: ^_{2,}$
|