ruby-uv 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.rdoc +79 -0
- data/Rakefile +1 -0
- data/bin/theme2latexrender +122 -0
- data/bin/theme2xhtmlrender +158 -0
- data/bin/uv +140 -0
- data/lib/uv/engine.rb +4 -0
- data/lib/uv/render_processor.rb +140 -0
- data/lib/uv/utility.rb +67 -0
- data/lib/uv/version.rb +3 -0
- data/lib/uv.rb +98 -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/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/railscasts.render +93 -0
- data/render/xhtml/slush_poppies.render +131 -0
- data/render/xhtml/spacecadet.render +83 -0
- data/render/xhtml/sunburst.render +194 -0
- data/render/xhtml/twilight.render +161 -0
- data/render/xhtml/zenburnesque.render +134 -0
- data/ruby-uv.gemspec +24 -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
- data/test/test_uv.rb +17 -0
- data/vendor/assets/stylesheets/active4d.css +117 -0
- data/vendor/assets/stylesheets/all_hallows_eve.css +75 -0
- data/vendor/assets/stylesheets/all_uv_themes.css +4 -0
- data/vendor/assets/stylesheets/amy.css +150 -0
- data/vendor/assets/stylesheets/blackboard.css +91 -0
- data/vendor/assets/stylesheets/brilliance_black.css +608 -0
- data/vendor/assets/stylesheets/brilliance_dull.css +602 -0
- data/vendor/assets/stylesheets/cobalt.css +152 -0
- data/vendor/assets/stylesheets/dawn.css +124 -0
- data/vendor/assets/stylesheets/eiffel.css +124 -0
- data/vendor/assets/stylesheets/espresso_libre.css +112 -0
- data/vendor/assets/stylesheets/idle.css +65 -0
- data/vendor/assets/stylesheets/iplastic.css +83 -0
- data/vendor/assets/stylesheets/lazy.css +76 -0
- data/vendor/assets/stylesheets/mac_classic.css +126 -0
- data/vendor/assets/stylesheets/magicwb_amiga.css +107 -0
- data/vendor/assets/stylesheets/pastels_on_dark.css +191 -0
- data/vendor/assets/stylesheets/railscasts.css +74 -0
- data/vendor/assets/stylesheets/slush_poppies.css +88 -0
- data/vendor/assets/stylesheets/spacecadet.css +54 -0
- data/vendor/assets/stylesheets/sunburst.css +183 -0
- data/vendor/assets/stylesheets/twilight.css +140 -0
- data/vendor/assets/stylesheets/zenburnesque.css +94 -0
- metadata +302 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
name: Python (Django)
|
3
|
+
fileTypes: []
|
4
|
+
|
5
|
+
scopeName: source.python.django
|
6
|
+
uuid: 5326D56C-6F76-4758-8DB7-D818527919AC
|
7
|
+
foldingStartMarker: ^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$
|
8
|
+
patterns:
|
9
|
+
- name: support.type.django.model
|
10
|
+
match: (meta|models)\.(ForeignKey|Admin|AutoField|BooleanField|CharField|CommaSeparatedIntegerField|DateField|DateTimeField|EmailField|FileField|FilePathField|FloatField|ImageField|IntegerField|IPAddressField|ManyToManyField|NullBooleanField|OneToOneField|PhoneNumberField|PositiveIntegerField|PositiveSmallIntegerField|SlugField|SmallIntegerField|TextField|TimeField|URLField|USStateField|XMLField)
|
11
|
+
- name: support.other.django.module
|
12
|
+
match: "django(\\.[a-z]+){1,} "
|
13
|
+
- name: variable.other.django.settings
|
14
|
+
match: (ABSOLUTE_URL_OVERRIDES|ADMIN_FOR|ADMIN_MEDIA_PREFIX|ADMINS|ALLOWED_INCLUDE_ROOTS|APPEND_SLASH|CACHE_BACKEND|CACHE_MIDDLEWARE_KEY_PREFIX|CACHE_MIDDLEWARE_SECONDS|DATABASE_ENGINE|DATABASE_HOST|DATABASE_NAME|DATABASE_PASSWORD|DATABASE_PORT|DATABASE_USER|DATE_FORMAT|DATETIME_FORMAT|DEBUG|DEFAULT_CHARSET|DEFAULT_CONTENT_TYPE|DEFAULT_FROM_EMAIL|DISALLOWED_USER_AGENTS|EMAIL_HOST|EMAIL_SUBJECT_PREFIX|IGNORABLE_404_ENDS|IGNORABLE_404_STARTS|INSTALLED_APPS|INTERNAL_IPS|JING_PATH|LANGUAGE_CODE|LANGUAGES|MANAGERS|MEDIA_ROOT|MEDIA_URL|MIDDLEWARE_CLASSES|PREPEND_WWW|ROOT_URLCONF|SECRET_KEY|SEND_BROKEN_LINK_EMAILS|SERVER_EMAIL|SESSION_COOKIE_AGE|SESSION_COOKIE_DOMAIN|SESSION_COOKIE_NAME|SESSION_SAVE_EVERY_REQUEST|SITE_ID|TEMPLATE_DEBUG|TEMPLATE_DIRS|TEMPLATE_FILE_EXTENSION|TEMPLATE_LOADERS|TIME_FORMAT|TIME_ZONE|USE_ETAGS)
|
15
|
+
- name: support.function.django.view
|
16
|
+
match: (get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response)
|
17
|
+
- name: support.function.django.model
|
18
|
+
match: "[a-z_]+\\.get_(object|list|iterator|count|values|values_iterator|in_bulk)"
|
19
|
+
- include: source.python
|
20
|
+
foldingStopMarker: ^\s*$|^\s*\}|^\s*\]|^\s*\)
|
21
|
+
keyEquivalent: ^~P
|
@@ -0,0 +1,114 @@
|
|
1
|
+
---
|
2
|
+
name: qmake Project file
|
3
|
+
fileTypes:
|
4
|
+
- pro
|
5
|
+
- pri
|
6
|
+
scopeName: source.qmake
|
7
|
+
uuid: 3D54A8F9-17CA-422A-A1D6-DE5F98B9DEF4
|
8
|
+
patterns:
|
9
|
+
- name: markup.other.template.qmake
|
10
|
+
captures:
|
11
|
+
"1":
|
12
|
+
name: variable.language.qmake
|
13
|
+
"2":
|
14
|
+
name: punctuation.separator.key-value.qmake
|
15
|
+
begin: (TEMPLATE)\s*(=)
|
16
|
+
end: $\n?
|
17
|
+
patterns:
|
18
|
+
- name: keyword.other.qmake
|
19
|
+
match: \b(app|lib|subdirs|vcapp|vclib)\b
|
20
|
+
- name: markup.other.config.qmake
|
21
|
+
captures:
|
22
|
+
"1":
|
23
|
+
name: variable.language.qmake
|
24
|
+
"3":
|
25
|
+
name: punctuation.separator.key-value.qmake
|
26
|
+
begin: (CONFIG)\s*(\+|\-)?(=)
|
27
|
+
end: $\n?
|
28
|
+
patterns:
|
29
|
+
- name: keyword.other.qmake
|
30
|
+
match: \b(release|debug|warn_(on|off)|qt|opengl|thread|x11|windows|console|dll|staticlib|plugin|designer|uic3|no_lflags_merge|exceptions|rtti|stl|flat|app_bundle|no_batch|qtestlib|ppc|x86)\b
|
31
|
+
- name: markup.other.qt.qmake
|
32
|
+
captures:
|
33
|
+
"1":
|
34
|
+
name: variable.language.qmake
|
35
|
+
"3":
|
36
|
+
name: punctuation.separator.key-value.qmake
|
37
|
+
begin: (QT)\s*(\+|\-)?(=)
|
38
|
+
end: $\n?
|
39
|
+
patterns:
|
40
|
+
- name: keyword.other.qmake
|
41
|
+
match: \b(core|gui|network|opengl|sql|svg|xml|qt3support)\b
|
42
|
+
- name: variable.language.qmake
|
43
|
+
match: \b(R(C(C_DIR|_FILE)|E(S_FILE|QUIRES))|M(OC_DIR|AKE(_MAKEFILE|FILE(_GENERATOR)?))|S(RCMOC|OURCES|UBDIRS)|HEADERS|YACC(SOURCES|IMPLS|OBJECTS)|CONFIG|T(RANSLATIONS|ARGET(_(EXT|\d+(\.\d+\.\d+)?))?)|INCLUDEPATH|OBJ(MOC|ECTS(_DIR)?)|D(SP_TEMPLATE|ISTFILES|E(STDIR(_TARGET)?|PENDPATH|F(_FILE|INES))|LLDESTDIR)|UI(C(IMPLS|OBJECTS)|_(SOURCES_DIR|HEADERS_DIR|DIR))|P(RE(COMPILED_HEADER|_TARGETDEPS)|OST_TARGETDEPS)|V(PATH|ER(SION|_(M(IN|AJ)|PAT)))|Q(MAKE(SPEC|_(RUN_C(XX(_IMP)?|C(_IMP)?)|MOC_SRC|C(XXFLAGS_(RELEASE|MT(_D(BG|LL(DBG)?))?|SHLIB|THREAD|DEBUG|WARN_O(N|FF))|FLAGS_(RELEASE|MT(_D(BG|LL(DBG)?))?|SHLIB|THREAD|DEBUG|WARN_O(N|FF))|LEAN)|TARGET|IN(CDIR(_(X|THREAD|OPENGL|QT))?|FO_PLIST)|UIC|P(RE_LINK|OST_LINK)|EXT(_(MOC|H|CPP|YACC|OBJ|UI|PRL|LEX)|ENSION_SHLIB)|Q(MAKE|T_DLL)|F(ILETAGS|AILED_REQUIREMENTS)|L(N_SHLIB|I(B(S(_(RT(MT)?|X|CONSOLE|THREAD|OPENGL(_QT)?|QT(_(OPENGL|DLL))?|WINDOWS))?|_FLAG|DIR(_(X|OPENGL|QT|FLAGS))?)|NK_SHLIB_CMD)|FLAGS(_(RELEASE|S(H(LIB|APP)|ONAME)|CONSOLE(_DLL)?|THREAD|DEBUG|PLUGIN|QT_DLL|WINDOWS(_DLL)?))?)|A(R_CMD|PP_(OR_DLL|FLAG))))?|T_THREAD)|FORMS|L(IBS|EX(SOURCES|IMPLS|OBJECTS)))\b
|
44
|
+
- name: markup.other.assignment.qmake
|
45
|
+
captures:
|
46
|
+
"1":
|
47
|
+
name: variable.other.qmake
|
48
|
+
"4":
|
49
|
+
name: punctuation.separator.key-value.qmake
|
50
|
+
begin: (\b([\w\d_]+\.[\w\d_]+|[A-Z_]+))?\s*(\+|\-)?(=)
|
51
|
+
end: $\n?
|
52
|
+
patterns:
|
53
|
+
- name: variable.other.qmake
|
54
|
+
captures:
|
55
|
+
"1":
|
56
|
+
name: punctuation.definition.variable.qmake
|
57
|
+
match: (\$\$)([A-Z_]+|[\w\d_]+\.[\w\d_]+)|\$\([\w\d_]+\)
|
58
|
+
- name: constant.other.filename.qmake
|
59
|
+
match: "[\\w\\d\\/_\\-\\.\\:]+"
|
60
|
+
- name: string.quoted.double.qmake
|
61
|
+
endCaptures:
|
62
|
+
"0":
|
63
|
+
name: punctuation.definition.string.end.qmake
|
64
|
+
begin: "\""
|
65
|
+
beginCaptures:
|
66
|
+
"0":
|
67
|
+
name: punctuation.definition.string.begin.qmake
|
68
|
+
end: "\""
|
69
|
+
- name: string.interpolated.qmake
|
70
|
+
endCaptures:
|
71
|
+
"0":
|
72
|
+
name: punctuation.definition.string.end.qmake
|
73
|
+
begin: "`"
|
74
|
+
beginCaptures:
|
75
|
+
"0":
|
76
|
+
name: punctuation.definition.string.begin.qmake
|
77
|
+
end: "`"
|
78
|
+
- name: markup.other.assignment.continuation.qmake
|
79
|
+
captures:
|
80
|
+
"1":
|
81
|
+
name: string.regexp.qmake
|
82
|
+
begin: (\\)
|
83
|
+
end: ^[^#]
|
84
|
+
patterns:
|
85
|
+
- name: comment.line.number-sign.qmake
|
86
|
+
captures:
|
87
|
+
"1":
|
88
|
+
name: punctuation.definition.comment.qmake
|
89
|
+
match: (#).*$\n?
|
90
|
+
- name: comment.line.number-sign.qmake
|
91
|
+
captures:
|
92
|
+
"1":
|
93
|
+
name: punctuation.definition.comment.qmake
|
94
|
+
match: (#).*$\n?
|
95
|
+
- endCaptures:
|
96
|
+
"1":
|
97
|
+
name: punctuation.definition.parameters.qmake
|
98
|
+
begin: \b(basename|CONFIG|contains|count|dirname|error|exists|find|for|include|infile|isEmpty|join|member|message|prompt|quote|sprintf|system|unique|warning)\s*(\()
|
99
|
+
contentName: variable.parameter.qmake
|
100
|
+
beginCaptures:
|
101
|
+
"1":
|
102
|
+
name: entity.name.function.qmake
|
103
|
+
"2":
|
104
|
+
name: punctuation.definition.parameters.qmake
|
105
|
+
end: (\))
|
106
|
+
comment: entity.name.function.qmake
|
107
|
+
- name: keyword.other.scope.qmake
|
108
|
+
match: \b(unix|win32|mac|debug|release)\b
|
109
|
+
- name: comment.line.number-sign.qmake
|
110
|
+
captures:
|
111
|
+
"1":
|
112
|
+
name: punctuation.definition.comment.qmake
|
113
|
+
match: (#).*$\n?
|
114
|
+
keyEquivalent: ^~Q
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
name: Qt C++
|
3
|
+
fileTypes:
|
4
|
+
- cpp
|
5
|
+
- h
|
6
|
+
firstLineMatch: -\*- C\+\+ -\*-
|
7
|
+
scopeName: source.c++.qt
|
8
|
+
uuid: C0D24A46-0534-11DB-8949-0011242E4184
|
9
|
+
foldingStartMarker: "(?x)\n\
|
10
|
+
\t\t /\\*\\*(?!\\*)\n\
|
11
|
+
\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
|
12
|
+
\t"
|
13
|
+
patterns:
|
14
|
+
- name: support.other.macro.qt
|
15
|
+
match: \bQ_(CLASSINFO|ENUMS|FLAGS|INTERFACES|OBJECT|PROPERTY)\b
|
16
|
+
- name: support.function.qt
|
17
|
+
match: \b((dis)?connect|emit|fore(ach|ver)|tr(Utf8)?|qobject_cast)\b
|
18
|
+
- name: support.class.qt
|
19
|
+
match: \bQ(Abstract(Button|EventDispatcher|Extension(Factory|Manager)|FileEngine(Handler)?|FormBuilder|GraphicsShapeItem|Item(Delegate|Model|View)|ListModel|PrintDialog|ProxyModel|ScrollArea|Slider|Socket|SpinBox|TableModel|TextDocumentLayout)|Accessible(Bridge|BridgePlugin|Event|Interface|Object|Plugin|Widget)?|Action(Event|Group)?|(Core)?Application|AssistantClient|Ax(Aggregated|Base|Bindable|Factory|Object|Script|ScriptEngine|ScriptManager|Widget)|BasicTimer|Bit(Array|map)|BoxLayout|Brush|Buffer|ButtonGroup|ByteArray(Matcher)?|(CDE|Windows(XP)?|Cleanlooks|Common|Mac|Plastique|Motif)Style|Cache|CalendarWidget|Char|CheckBox|ChildEvent|Clipboard|CloseEvent|Color(Dialog|map)?|ComboBox|Completer|ConicalGradient|ContextMenuEvent|CopChannel|Cursor|CustomRasterPaintDevice|DBus(AbstractAdaptor|AbstractInterface|Argument|Connection(Interface)?|Error|Interface|Message|ObjectPath|Reply|Server|Signature|Variant)|Data(Stream|WidgetMapper)|Date((Time)?(Edit)?)|Decoration(Factory|Plugin)?|Designer(ActionEditorInterface|ContainerExtension|CustomWidgetCollectionInterface|CustomWidgetInterface|FormEditorInterface|FormWindowCursorInterface|FormWindowInterface|FormWindowManagerInterface|MemberSheetExtension|ObjectInspectorInterface|PropertyEditorInterface|PropertySheetExtension|TaskMenuExtension|WidgetBoxInterface)|Desktop(Services|Widget)|Dial(og|ogButtonBox)?|Dir(Model|ectPainter)?|DockWidget|Dom(Attr|CDATASection|CharacterData|Comment|Document|DocumentFragment|DocumentType|Element|Entity|EntityReference|Implementation|NamedNodeMap|Node|NodeList|Notation|ProcessingInstruction|Text)|Double(SpinBox|Validator)|Drag((Enter|Leave|Move)Event)?|(Drop|DynamicPropertyChange)Event|ErrorMessage|Event(Loop)?|Extension(Factory|Manager)|FSFileEngine|File(Dialog|IconProvider|Info|OpenEvent|SystemWatcher)?|Flags?|Focus(Event|Frame)|Font(ComboBox|Database|Dialog|Info|MetricsF?)?|FormBuilder|Frame|Ftp|GL(Colormap|Context|Format|FramebufferObject|PixelBuffer|Widget)|Generic(Return)?Argument|Gradient|Graphics(EllipseItem|Item|ItemAnimation|ItemGroup|LineItem|PathItem|PixmapItem|PolygonItem|RectItem|Scene((ContextMenu|Hover|Mouse|Wheel)?Event)?|SimpleTextItem|SvgItem|TextItem|View)|GridLayout|GroupBox|HBoxLayout|Hash(Iterator)?|HeaderView|(Help|Hide|Hover)Event|Host(Address|Info)|Http((Response|Request)?Header)?|IODevice|Icon(DragEvent|Engine(Plugin)?)?|Image(IO(Handler|Plugin)|Reader|Writer)?|Input(Context(Factory|Plugin)?|Dialog|Event|MethodEvent)|IntValidator|Item(Delegate|Editor(CreatorBase|Factory)|Selection(Model|Range)?)|KbdDriver(Factory|Plugin)|Key(Event|Sequence)|LCDNumber|Label|Latin1(Char|String)|Layout(Item)?|Library(Info)?|Line(Edit|F)?|LinearGradient|LinkedList(Iterator)?|LinuxFbScreen|List(View|Iterator|Widget(Item)?)?|Locale|MacPasteboardMime|MainWindow|Map(Iterator)?|Matrix|Menu(Bar)?|MessageBox|Meta(ClassInfo|Enum|Method|Object|Property|Type)|Mime(Data|Source)|ModelIndex|MouseDriver(Factory|Plugin)|(Move|Mouse)Event|Movie|Multi(Hash|Map)|Mutable(Hash|(Linked)?List|Map|Set|Vector)Iterator|Mutex(Locker)?|Network(AddressEntry|Interface|Proxy)|Object(CleanupHandler)?|PageSetupDialog|Paint(Device|Engine(State)?|Event|er(Path(Stroker)?)?)|Pair|Palette|Pen|PersistentModelIndex|Picture(FormatPlugin|IO)?|Pixmap(Cache)?|PluginLoader|PointF?|Pointer|PolygonF?|Print(Dialog|Engine|er)|Process|Progress(Bar|Dialog)|ProxyModel|PushButton|Queue|RadialGradient|RadioButton|RasterPaintEngine|ReadLocker|ReadWriteLock|RectF?|RegExp(Validator)?|Region|ResizeEvent|Resource|RubberBand|Screen(Cursor|Driver(Factory|Plugin))?|Scroll(Area|Bar)|Semaphore|SessionManager|Set(Iterator)?|Settings|SharedData(Pointer)?|Shortcut(Event)?|ShowEvent|Signal(Mapper|Spy)|Size(Grip|Policy|F)?|Slider|SocketNotifier|SortFilterProxyModel|Sound|SpacerItem|SpinBox|SplashScreen|Splitter(Handle)?|Sql(Database|Driver(Creator(Base)?|Plugin)?|Error|Field|Index|Query(Model)?|Record|Relation|Relational(Delegate|TableModel)|Result|TableModel)|Stack(ed(Layout|Widget))?|StandardItem(EditorCreator|Model)?|Status(Bar|TipEvent)|String(List(Model)?|Matcher)?|Style(Factory|HintReturn(Mask)?|Option(Button|ComboBox|Complex|DockWidget|FocusRect|Frame(V2)?|GraphicsItem|GroupBox|Header|MenuItem|ProgressBar(V2)?|Q3(DockWindow|ListView|ListViewItem)|RubberBand|SizeGrip|Slider|SpinBox|Tab(BarBase|V2|WidgetFrame)?|TitleBar|Tool(Bar|Box|Button)|ViewItem(V2)?)?|Painter|Plugin)?|Svg(Renderer|Widget)|SyntaxHighlighter|SysInfo|System(Locale|TrayIcon)|Tab(Bar|Widget)|Table(Widget(Item|SelectionRange)?|View)|TabletEvent|Tcp(Server|Socket)|TemporaryFile|TestEventList|Text(Block(Format|Group|UserData)?|Browser|CharFormat|Codec(Plugin)?|Cursor|(De|En)coder|Document(Fragment)?|Edit|Fragment|Frame(Format)?|(Image)?Format|InlineObject|Layout|Length|Line|List(Format)?|Object|Option|Stream|Table(Cell|Format)?)|Thread(Storage)?|Time(Edit|Line)?|Timer(Event)?|Tool(Bar|Box|Button|Tip)|TransformedScreen|Translator|Tree(Widget(Item(Iterator)?)?|View)|UdpSocket|UiLoader|Undo(Command|Group|Stack|View)|Url(Info)?|Uuid|VBoxLayout|(VNC|VFb)Screen|Validator|VarLengthArray|Variant|Vector(Iterator)?|WS(Client|EmbedWidget|Event|InputMethod|(Keyboard|(Tslib|Calibrated)?Mouse)Handler|PointerCalibrationData|ScreenSaver|Server|Window(Surface)?)|WaitCondition|WhatsThis(ClickedEvent)?|WheelEvent|Widget(Action|Item)?|Window(StateChangeEvent|sMime)|Workspace|WriteLocker|X11Embed(Container|Widget)|X11Info|Xml(Attributes|(Content|DTD|Decl|Default|Error|Lexical)Handler|EntityResolver|InputSource|Locator|NamespaceSupport|ParseException|Reader|SimpleReader))\b
|
20
|
+
- name: storage.type.qt
|
21
|
+
match: \b(q(int8|int16|int32|int64|longlong|real|uint8|uint16|uint32|uint64|ulonglong)|u(char|int|long|short))\b
|
22
|
+
- name: storage.modifier.qt
|
23
|
+
match: \b(slots|signals)\b
|
24
|
+
- include: source.c++
|
25
|
+
foldingStopMarker: (?<!\*)\*\*/|^\s*\}
|
26
|
+
keyEquivalent: ^~Q
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
name: Quake Style .cfg
|
3
|
+
fileTypes:
|
4
|
+
- cfg
|
5
|
+
scopeName: source.quake-config
|
6
|
+
uuid: AAB8717E-6E5C-11D9-9BE0-0011242E4184
|
7
|
+
patterns:
|
8
|
+
- name: keyword.other.quake3
|
9
|
+
match: \b(set(a|u|s)?|bind|undbind|unbindall|vstr|exec|kill|say|say_team|quit|echo)(\s+\d)?\b
|
10
|
+
comment: the 2nd part of the regex is just to capture binds to number-keys and prevent them from getting highlighted as values.
|
11
|
+
- name: constant.numeric.quake3
|
12
|
+
match: \b\d+(\.\d+)?\b
|
13
|
+
- name: string.quoted.double.quake3
|
14
|
+
endCaptures:
|
15
|
+
"0":
|
16
|
+
name: punctuation.definition.string.end.quake3
|
17
|
+
begin: "\""
|
18
|
+
beginCaptures:
|
19
|
+
"0":
|
20
|
+
name: punctuation.definition.string.begin.quake3
|
21
|
+
end: "\""
|
22
|
+
patterns:
|
23
|
+
- name: constant.character.escape.quake3
|
24
|
+
match: \\.
|
25
|
+
- name: keyword.other.string-embedded.quake3
|
26
|
+
match: \b(set(a|u|s)?|bind|unbindall|vstr|exec|kill|say|say_team|quit|echo)\b
|
27
|
+
- name: comment.line.double-slash.quake3
|
28
|
+
captures:
|
29
|
+
"1":
|
30
|
+
name: punctuation.definition.comment.quake3
|
31
|
+
match: (//).*$\n?
|
32
|
+
keyEquivalent: ^~Q
|
data/syntax/r.syntax
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
name: R
|
3
|
+
fileTypes:
|
4
|
+
- R
|
5
|
+
- r
|
6
|
+
- s
|
7
|
+
- S
|
8
|
+
- Rprofile
|
9
|
+
scopeName: source.r
|
10
|
+
uuid: B2E6B78D-6E70-11D9-A369-000D93B3A10E
|
11
|
+
foldingStartMarker: (\(\s*$|\{\s*$)
|
12
|
+
patterns:
|
13
|
+
- name: comment.line.number-sign.r
|
14
|
+
captures:
|
15
|
+
"1":
|
16
|
+
name: punctuation.definition.comment.r
|
17
|
+
match: (#).*$\n?
|
18
|
+
- name: storage.type.r
|
19
|
+
match: \b(logical|numeric|character|complex|matrix|array|data\.frame|list|factor)(?=\s*\()
|
20
|
+
- name: keyword.control.r
|
21
|
+
match: \b(function|if|break|next|repeat|else|for|return|switch|while|in|invisible)\b
|
22
|
+
- name: constant.numeric.r
|
23
|
+
match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
|
24
|
+
- name: constant.language.r
|
25
|
+
match: \b(TRUE|FALSE|NULL|NA|Inf|NaN)\b
|
26
|
+
- name: support.constant.misc.r
|
27
|
+
match: \b(pi|letters|LETTERS|month\.abb|month\.name)\b
|
28
|
+
- name: keyword.operator.arithmetic.r
|
29
|
+
match: (\-|\+|\*|\/|%\/%|%%|%\*%|%in%|%o%|%x%|\^)
|
30
|
+
- name: keyword.operator.assignment.r
|
31
|
+
match: (=|<-|<<-|->|->>)
|
32
|
+
- name: keyword.operator.comparison.r
|
33
|
+
match: (==|!=|<>|<|>|<=|>=)
|
34
|
+
- name: keyword.operator.logical.r
|
35
|
+
match: (!|&{1,2}|[|]{1,2})
|
36
|
+
- name: keyword.other.r
|
37
|
+
match: (\.\.\.|\$|:|\~)
|
38
|
+
- name: string.quoted.double.r
|
39
|
+
endCaptures:
|
40
|
+
"0":
|
41
|
+
name: punctuation.definition.string.end.r
|
42
|
+
begin: "\""
|
43
|
+
beginCaptures:
|
44
|
+
"0":
|
45
|
+
name: punctuation.definition.string.begin.r
|
46
|
+
end: "\""
|
47
|
+
patterns:
|
48
|
+
- name: constant.character.escape.r
|
49
|
+
match: \\.
|
50
|
+
- name: string.quoted.single.r
|
51
|
+
endCaptures:
|
52
|
+
"0":
|
53
|
+
name: punctuation.definition.string.end.r
|
54
|
+
begin: "'"
|
55
|
+
beginCaptures:
|
56
|
+
"0":
|
57
|
+
name: punctuation.definition.string.begin.r
|
58
|
+
end: "'"
|
59
|
+
patterns:
|
60
|
+
- name: constant.character.escape.r
|
61
|
+
match: \\.
|
62
|
+
- name: meta.function.r
|
63
|
+
captures:
|
64
|
+
"1":
|
65
|
+
name: entity.name.function.r
|
66
|
+
"2":
|
67
|
+
name: keyword.operator.assignment.r
|
68
|
+
"3":
|
69
|
+
name: keyword.control.r
|
70
|
+
match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*(<-)\s*(function)
|
71
|
+
- match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*\(
|
72
|
+
- captures:
|
73
|
+
"1":
|
74
|
+
name: variable.parameter.r
|
75
|
+
"2":
|
76
|
+
name: keyword.operator.assignment.r
|
77
|
+
match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*(=)(?=[^=])
|
78
|
+
- name: variable.other.r
|
79
|
+
match: \b([a-zA-Z._][a-zA-Z0-9._]*)\b
|
80
|
+
foldingStopMarker: (^\s*\)|^\s*\})
|
81
|
+
keyEquivalent: ^~R
|
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
name: R Console
|
3
|
+
fileTypes: []
|
4
|
+
|
5
|
+
scopeName: source.r-console
|
6
|
+
uuid: F629C7F3-823B-4A4C-8EEE-9971490C5710
|
7
|
+
patterns:
|
8
|
+
- name: source.r.embedded.r-console
|
9
|
+
begin: "^> "
|
10
|
+
beginCaptures:
|
11
|
+
"0":
|
12
|
+
name: punctuation.section.embedded.r-console
|
13
|
+
end: \n|\z
|
14
|
+
patterns:
|
15
|
+
- include: source.r
|
16
|
+
keyEquivalent: ^~R
|
data/syntax/ragel.syntax
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
---
|
2
|
+
name: Ragel
|
3
|
+
fileTypes:
|
4
|
+
- rl
|
5
|
+
- ragel
|
6
|
+
scopeName: source.c.ragel
|
7
|
+
repository:
|
8
|
+
regexp:
|
9
|
+
patterns:
|
10
|
+
- name: string.regexp.character-class.ragel
|
11
|
+
endCaptures:
|
12
|
+
"0":
|
13
|
+
name: punctuation.definition.string.end.ragel
|
14
|
+
begin: \[
|
15
|
+
beginCaptures:
|
16
|
+
"0":
|
17
|
+
name: punctuation.definition.string.begin.ragel
|
18
|
+
end: \]\s*[*?]?
|
19
|
+
- name: string.regexp.classic.ragel
|
20
|
+
endCaptures:
|
21
|
+
"0":
|
22
|
+
name: punctuation.definition.string.end.ragel
|
23
|
+
begin: \/
|
24
|
+
beginCaptures:
|
25
|
+
"0":
|
26
|
+
name: punctuation.definition.string.begin.ragel
|
27
|
+
end: \/\s*[*?]?
|
28
|
+
embedded_code:
|
29
|
+
patterns:
|
30
|
+
- name: source.c
|
31
|
+
begin: \{
|
32
|
+
beginCaptures:
|
33
|
+
"0":
|
34
|
+
name: punctuation.section.embedded.c
|
35
|
+
end: \}
|
36
|
+
patterns:
|
37
|
+
- include: source.c
|
38
|
+
comments:
|
39
|
+
patterns:
|
40
|
+
- name: comment.line.ragel
|
41
|
+
begin: "#"
|
42
|
+
beginCaptures:
|
43
|
+
"0":
|
44
|
+
name: punctuation.definition.comment.ragel
|
45
|
+
end: $\n?
|
46
|
+
action_name:
|
47
|
+
patterns:
|
48
|
+
- name: entity.name.type.action-reference.ragel
|
49
|
+
captures:
|
50
|
+
"1":
|
51
|
+
name: punctuation.definition.entity.ragel
|
52
|
+
match: ([@$>%])\s*([\w\d]+)
|
53
|
+
string_escaped_char:
|
54
|
+
patterns:
|
55
|
+
- name: constant.character.escape.ragel
|
56
|
+
match: \\(\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2})
|
57
|
+
- name: invalid.illegal.unknown-escape.ragel
|
58
|
+
match: \\.
|
59
|
+
operators:
|
60
|
+
patterns:
|
61
|
+
- name: keyword.operator.contatenation.ragel
|
62
|
+
match: (\:\>\>?|\<\:)
|
63
|
+
source_ragel:
|
64
|
+
patterns:
|
65
|
+
- include: "#keywords"
|
66
|
+
- include: "#regexp"
|
67
|
+
- include: "#string"
|
68
|
+
- include: "#comments"
|
69
|
+
- include: "#embedded_code"
|
70
|
+
- name: meta.function.action.ragel
|
71
|
+
endCaptures:
|
72
|
+
"1":
|
73
|
+
name: punctuation.section.function.ragel
|
74
|
+
begin: (action)\s+([\w\d]+)\s+({)
|
75
|
+
beginCaptures:
|
76
|
+
"1":
|
77
|
+
name: keyword.other.action.ragel
|
78
|
+
"2":
|
79
|
+
name: entity.name.type.action.ragel
|
80
|
+
"3":
|
81
|
+
name: punctuation.section.function.ragel
|
82
|
+
end: (})
|
83
|
+
patterns:
|
84
|
+
- include: source.c
|
85
|
+
- name: meta.machine-definition.ragel
|
86
|
+
endCaptures:
|
87
|
+
"1":
|
88
|
+
name: punctuation.terminator.machine-definition.ragel
|
89
|
+
begin: ([\w\d]+)\s*(=)
|
90
|
+
beginCaptures:
|
91
|
+
"1":
|
92
|
+
name: entity.name.type.machine-definition.ragel
|
93
|
+
"2":
|
94
|
+
name: punctuation.separator.key-value.ragel
|
95
|
+
end: (;)
|
96
|
+
patterns:
|
97
|
+
- include: "#regexp"
|
98
|
+
- include: "#string"
|
99
|
+
- include: "#action_name"
|
100
|
+
- include: "#embedded_code"
|
101
|
+
- include: "#operators"
|
102
|
+
- include: "#comments"
|
103
|
+
- name: meta.machine-instantiation.ragel
|
104
|
+
endCaptures:
|
105
|
+
"1":
|
106
|
+
name: punctuation.terminator.machine-instantiation.ragel
|
107
|
+
begin: ([\w\d]+)\s*(:=)
|
108
|
+
beginCaptures:
|
109
|
+
"1":
|
110
|
+
name: entity.name.type.machine-instantiation.ragel
|
111
|
+
"2":
|
112
|
+
name: punctuation.separator.key-value.ragel
|
113
|
+
end: ;
|
114
|
+
patterns:
|
115
|
+
- include: "#regexp"
|
116
|
+
- include: "#string"
|
117
|
+
- include: "#action_name"
|
118
|
+
- include: "#embedded_code"
|
119
|
+
- include: "#operators"
|
120
|
+
- include: "#comments"
|
121
|
+
- name: meta.ragel.longest-match
|
122
|
+
begin: \|\*
|
123
|
+
end: \*\|
|
124
|
+
patterns:
|
125
|
+
- include: "#source_ragel"
|
126
|
+
string_placeholder:
|
127
|
+
patterns:
|
128
|
+
- name: constant.other.placeholder.ragel
|
129
|
+
match: "(?x)%\n\
|
130
|
+
\t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\
|
131
|
+
\t\t\t\t\t\t[#0\\- +']* # flags\n\
|
132
|
+
\t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\
|
133
|
+
\t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\
|
134
|
+
\t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\
|
135
|
+
\t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\
|
136
|
+
\t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\
|
137
|
+
\t\t\t\t\t"
|
138
|
+
- name: invalid.illegal.placeholder.ragel
|
139
|
+
match: "%"
|
140
|
+
string:
|
141
|
+
patterns:
|
142
|
+
- name: string.quoted.double.ragel
|
143
|
+
endCaptures:
|
144
|
+
"0":
|
145
|
+
name: punctuation.definition.string.end.ragel
|
146
|
+
begin: "\""
|
147
|
+
beginCaptures:
|
148
|
+
"0":
|
149
|
+
name: punctuation.definition.string.begin.ragel
|
150
|
+
end: "\""
|
151
|
+
patterns:
|
152
|
+
- include: "#string_escaped_char"
|
153
|
+
- include: "#string_placeholder"
|
154
|
+
- name: string.quoted.single.ragel
|
155
|
+
endCaptures:
|
156
|
+
"0":
|
157
|
+
name: punctuation.definition.string.end.ragel
|
158
|
+
begin: "'"
|
159
|
+
beginCaptures:
|
160
|
+
"0":
|
161
|
+
name: punctuation.definition.string.begin.ragel
|
162
|
+
end: "'"
|
163
|
+
patterns:
|
164
|
+
- include: "#string_escaped_char"
|
165
|
+
keywords:
|
166
|
+
patterns:
|
167
|
+
- name: keyword.other.ragel
|
168
|
+
match: \b(machine|action|context|include|variable|access|write|contained)\b
|
169
|
+
uuid: F1172666-F07C-4F6A-B07D-E1AD08DE2070
|
170
|
+
foldingStartMarker: "(?x)\n\
|
171
|
+
\t\t /\\*\\*(?!\\*)\n\
|
172
|
+
\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
|
173
|
+
\t"
|
174
|
+
patterns:
|
175
|
+
- name: source.ragel
|
176
|
+
captures:
|
177
|
+
"0":
|
178
|
+
name: punctuation.section.embedded.ragel
|
179
|
+
begin: "%%{"
|
180
|
+
end: "}%%"
|
181
|
+
patterns:
|
182
|
+
- include: "#source_ragel"
|
183
|
+
- name: source.ragel
|
184
|
+
begin: "%%$"
|
185
|
+
beginCaptures:
|
186
|
+
"0":
|
187
|
+
name: punctuation.section.embedded.ragel
|
188
|
+
end: $
|
189
|
+
patterns:
|
190
|
+
- include: "#source_ragel"
|
191
|
+
- name: support.function.ragel
|
192
|
+
begin: "%%"
|
193
|
+
beginCaptures:
|
194
|
+
"0":
|
195
|
+
name: punctuation.section.embedded.ragel
|
196
|
+
end: $
|
197
|
+
patterns:
|
198
|
+
- include: "#keywords"
|
199
|
+
- include: source.c
|
200
|
+
foldingStopMarker: (?<!\*)\*\*/|^\s*\}
|
201
|
+
keyEquivalent: ^~R
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
name: Rd (R Documentation)
|
3
|
+
fileTypes:
|
4
|
+
- rd
|
5
|
+
scopeName: text.tex.latex.rd
|
6
|
+
uuid: 80A00288-FE7E-4E66-B5BF-4948A2828203
|
7
|
+
foldingStartMarker: /\w*\{\s*$
|
8
|
+
patterns:
|
9
|
+
- name: meta.section.rd
|
10
|
+
endCaptures:
|
11
|
+
"1":
|
12
|
+
name: punctuation.definition.arguments.end.rd
|
13
|
+
begin: ((\\)(?:alias|docType|keyword|name|title))(\{)
|
14
|
+
contentName: entity.name.tag.rd
|
15
|
+
beginCaptures:
|
16
|
+
"1":
|
17
|
+
name: keyword.other.section.rd
|
18
|
+
"2":
|
19
|
+
name: punctuation.definition.function.rd
|
20
|
+
"3":
|
21
|
+
name: punctuation.definition.arguments.begin.rd
|
22
|
+
end: (\})
|
23
|
+
patterns:
|
24
|
+
- include: $self
|
25
|
+
- name: meta.section.rd
|
26
|
+
endCaptures:
|
27
|
+
"1":
|
28
|
+
name: punctuation.definition.arguments.end.rd
|
29
|
+
begin: ((\\)(?:details|format|references|source))(\{)
|
30
|
+
beginCaptures:
|
31
|
+
"1":
|
32
|
+
name: keyword.other.section.rd
|
33
|
+
"2":
|
34
|
+
name: punctuation.definition.function.rd
|
35
|
+
"3":
|
36
|
+
name: punctuation.definition.arguments.begin.rd
|
37
|
+
end: (\})
|
38
|
+
patterns:
|
39
|
+
- include: $self
|
40
|
+
- name: meta.usage.rd
|
41
|
+
endCaptures:
|
42
|
+
"1":
|
43
|
+
name: punctuation.definition.arguments.end.rd
|
44
|
+
begin: ((\\)(?:usage))(\{)(?:\n)?
|
45
|
+
contentName: source.r.embedded
|
46
|
+
beginCaptures:
|
47
|
+
"1":
|
48
|
+
name: keyword.other.usage.rd
|
49
|
+
"2":
|
50
|
+
name: punctuation.definition.function.rd
|
51
|
+
"3":
|
52
|
+
name: punctuation.definition.arguments.begin.rd
|
53
|
+
end: (\})
|
54
|
+
patterns:
|
55
|
+
- include: source.r
|
56
|
+
- name: meta.examples.rd
|
57
|
+
endCaptures:
|
58
|
+
"1":
|
59
|
+
name: punctuation.definition.arguments.end.rd
|
60
|
+
begin: ((\\)(?:examples))(\{)(?:\n)?
|
61
|
+
contentName: source.r.embedded
|
62
|
+
beginCaptures:
|
63
|
+
"1":
|
64
|
+
name: keyword.other.examples.rd
|
65
|
+
"2":
|
66
|
+
name: punctuation.definition.function.rd
|
67
|
+
"3":
|
68
|
+
name: punctuation.definition.arguments.begin.rd
|
69
|
+
end: (\})
|
70
|
+
patterns:
|
71
|
+
- include: source.r
|
72
|
+
- name: meta.author.rd
|
73
|
+
captures:
|
74
|
+
"6":
|
75
|
+
name: markup.underline.link.rd
|
76
|
+
"7":
|
77
|
+
name: punctuation.definition.link.rd
|
78
|
+
"1":
|
79
|
+
name: keyword.other.author.rd
|
80
|
+
"2":
|
81
|
+
name: punctuation.definition.function.rd
|
82
|
+
"3":
|
83
|
+
name: punctuation.definition.arguments.begin.rd
|
84
|
+
"4":
|
85
|
+
name: entity.name.tag.author.rd
|
86
|
+
"5":
|
87
|
+
name: punctuation.definition.link.rd
|
88
|
+
match: ((\\)(?:author))(\{)([\w\s]+?)\s+(<)([^>]*)(>)
|
89
|
+
- include: text.tex.latex
|
90
|
+
foldingStopMarker: ^\s*\}
|
91
|
+
keyEquivalent: ^~R
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
name: Regular Expression
|
3
|
+
fileTypes:
|
4
|
+
- re
|
5
|
+
scopeName: source.regexp
|
6
|
+
repository:
|
7
|
+
escaped_char:
|
8
|
+
name: constant.character.escape.regexp
|
9
|
+
match: \\.
|
10
|
+
comment: escaped character
|
11
|
+
character_class:
|
12
|
+
name: keyword.control.character-class.regexp
|
13
|
+
match: \\[wWsSdDhH]
|
14
|
+
uuid: BAFE4C4F-8D59-48CD-A3BC-52A2084531C9
|
15
|
+
foldingStartMarker: (/\*|\{|\()
|
16
|
+
patterns:
|
17
|
+
- name: keyword.operator.regexp
|
18
|
+
match: \|
|
19
|
+
- name: keyword.control.anchors.regexp
|
20
|
+
match: \\[bBAZzG^$]
|
21
|
+
- include: "#character_class"
|
22
|
+
- include: "#escaped_char"
|
23
|
+
- name: keyword.control.set.regexp
|
24
|
+
begin: \[(?:\^?\])?
|
25
|
+
end: \]
|
26
|
+
patterns:
|
27
|
+
- include: "#character_class"
|
28
|
+
- include: "#escaped_char"
|
29
|
+
- name: constant.other.range.regexp
|
30
|
+
match: .-.
|
31
|
+
- name: keyword.operator.intersection.regexp
|
32
|
+
match: .&&.
|
33
|
+
- name: string.regexp.group
|
34
|
+
begin: \(
|
35
|
+
end: \)
|
36
|
+
patterns:
|
37
|
+
- include: source.regexp
|
38
|
+
- name: constant.other.assertion.regexp
|
39
|
+
match: (?<=\()\?(<[=!]|>|=|:|!)
|
40
|
+
- name: comment.line.number-sign.regexp
|
41
|
+
match: (?<=\()\?#
|
42
|
+
- name: keyword.other.backref-and-recursion.regexp
|
43
|
+
match: \\(\n\d+|\k\w+|(?<!\|)\g\w+)
|
44
|
+
- name: constant.character.escape.regexp
|
45
|
+
match: \\([tvnrbfae]|[0-8]{3}|x\H\H\{7\H{7}\}|x\H\H|c\d+|C-\d+|M-\d+|M-\\C-\d+)
|
46
|
+
- name: keyword.operator.quantifier.regexp
|
47
|
+
match: ((?<!\()[?*+][?+]?)|\{\d*,\d*\}
|
48
|
+
foldingStopMarker: (\*/|\}|\))
|
49
|
+
keyEquivalent: ^~R
|
50
|
+
comment: Matches Oniguruma's Ruby regexp syntax (TextMate uses Oniguruma in Ruby mode).
|