ver 2009.10.14 → 2009.11.28
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1094 -0
- data/MANIFEST +227 -25
- data/README.textile +185 -0
- data/bin/ver +96 -12
- data/config/detect.rb +73 -21
- data/config/keymap/emacs.rb +66 -0
- data/config/keymap/vim.rb +250 -140
- data/config/preferences/ANTLR.json +10 -0
- data/config/preferences/ASP vb.NET.json +3 -0
- data/config/preferences/ASP.json +15 -0
- data/config/preferences/ActionScript.json +755 -0
- data/config/preferences/Active4D.json +89 -0
- data/config/preferences/Ada.json +23 -0
- data/config/preferences/Ant.json +356 -0
- data/config/preferences/Apache.json +644 -0
- data/config/preferences/AppleScript.json +92 -0
- data/config/preferences/Bison.json +3 -0
- data/config/preferences/Blogging.json +3 -0
- data/config/preferences/C.json +127 -0
- data/config/preferences/CMake.json +41 -0
- data/config/preferences/CSS.json +461 -0
- data/config/preferences/CTags.json +3 -0
- data/config/preferences/CVS.json +3 -0
- data/config/preferences/ColdFusion.json +32 -0
- data/config/preferences/D.json +58 -0
- data/config/preferences/Darcs.json +3 -0
- data/config/preferences/Diff.json +67 -0
- data/config/preferences/DokuWiki.json +19 -0
- data/config/preferences/Doxygen.json +3 -0
- data/config/preferences/Dylan.json +3 -0
- data/config/preferences/Eiffel.json +59 -0
- data/config/preferences/Erlang.json +72 -0
- data/config/preferences/Experimental.json +1356 -0
- data/config/preferences/F-Script.json +87 -0
- data/config/preferences/FXScript.json +78 -0
- data/config/preferences/FileMerge.json +3 -0
- data/config/preferences/Fortran.json +158 -0
- data/config/preferences/GTD2.json +11 -0
- data/config/preferences/GTDAlt.json +20 -0
- data/config/preferences/GetBundle.json +3 -0
- data/config/preferences/Gettext.json +24 -0
- data/config/preferences/Graphviz.json +42 -0
- data/config/preferences/Greasemonkey.json +3 -0
- data/config/preferences/Gri.json +34 -0
- data/config/preferences/HTML.json +492 -0
- data/config/preferences/Haskell.json +72 -0
- data/config/preferences/Hotkey.json +3 -0
- data/config/preferences/ImageBrowser.json +3 -0
- data/config/preferences/Inform.json +3 -0
- data/config/preferences/Ini.json +60 -0
- data/config/preferences/Installer.json +3 -0
- data/config/preferences/Io.json +64 -0
- data/config/preferences/JSON.json +3 -0
- data/config/preferences/Java.json +86 -0
- data/config/preferences/JavaDoc.json +3 -0
- data/config/preferences/JavaScript.json +76 -0
- data/config/preferences/LaTeX.json +267 -0
- data/config/preferences/Lex/Flex.json +3 -0
- data/config/preferences/Lighttpd.json +3 -0
- data/config/preferences/LilyPond.json +77 -0
- data/config/preferences/Lisp.json +63 -0
- data/config/preferences/Logo.json +58 -0
- data/config/preferences/Logtalk.json +236 -0
- data/config/preferences/Lua.json +24 -0
- data/config/preferences/MEL.json +19 -0
- data/config/preferences/MIPS Assembler.json +26 -0
- data/config/preferences/MacPorts.json +3 -0
- data/config/preferences/Mail.json +3 -0
- data/config/preferences/Make.json +16 -0
- data/config/preferences/Markdown.json +102 -0
- data/config/preferences/Math.json +3 -0
- data/config/preferences/Matlab.json +128 -0
- data/config/preferences/Maven.json +308 -0
- data/config/preferences/Mediawiki.json +73 -0
- data/config/preferences/Mercurial.json +3 -0
- data/config/preferences/Modula.json +37 -0
- data/config/preferences/MoinMoin.json +52 -0
- data/config/preferences/Navigation.json +3 -0
- data/config/preferences/Nemerle.json +3 -0
- data/config/preferences/OCaml Code Completion.json +3 -0
- data/config/preferences/OCaml.json +163 -0
- data/config/preferences/ODCompletion.json +3 -0
- data/config/preferences/Objective-C.json +84 -0
- data/config/preferences/OpenGL.json +3331 -0
- data/config/preferences/Outlines.json +3 -0
- data/config/preferences/Pascal.json +60 -0
- data/config/preferences/Perforce.json +3 -0
- data/config/preferences/Perl.json +15 -0
- data/config/preferences/PmWiki.json +27 -0
- data/config/preferences/Postscript.json +15 -0
- data/config/preferences/Processing.json +32 -0
- data/config/preferences/Prolog.json +3 -0
- data/config/preferences/Propel.json +3 -0
- data/config/preferences/Python.json +38 -0
- data/config/preferences/Quake.json +15 -0
- data/config/preferences/R.json +33 -0
- data/config/preferences/Ragel.json +15 -0
- data/config/preferences/Regular Expressions.json +3 -0
- data/config/preferences/Remind.json +15 -0
- data/config/preferences/Rez.json +46 -0
- data/config/preferences/Ruby.json +98 -0
- data/config/preferences/S5 Slide Show.json +20 -0
- data/config/preferences/SCons.json +3 -0
- data/config/preferences/SQL.json +32 -0
- data/config/preferences/SSH Config.json +15 -0
- data/config/preferences/SVK.json +3 -0
- data/config/preferences/SWIG.json +3 -0
- data/config/preferences/SWeave.json +32 -0
- data/config/preferences/Scheme.json +35 -0
- data/config/preferences/Scilab.json +15 -0
- data/config/preferences/Setext.json +3 -0
- data/config/preferences/Shell Script.json +25 -0
- data/config/preferences/Slate.json +113 -0
- data/config/preferences/Source.json +132 -0
- data/config/preferences/Subversion.json +10 -0
- data/config/preferences/TODO.json +3 -0
- data/config/preferences/Tabular.json +3 -0
- data/config/preferences/Tcl.json +82 -0
- data/config/preferences/TerminalMate.json +112 -0
- data/config/preferences/Text.json +89 -0
- data/config/preferences/TextMate.json +38 -0
- data/config/preferences/Textile.json +76 -0
- data/config/preferences/Thrift.json +56 -0
- data/config/preferences/Transmit.json +3 -0
- data/config/preferences/Twiki.json +51 -0
- data/config/preferences/Txt2tags.json +81 -0
- data/config/preferences/Vectorscript.json +1280 -0
- data/config/preferences/XML.json +60 -0
- data/config/preferences/Xcode.json +3 -0
- data/config/preferences/YAML.json +24 -0
- data/config/preferences/iCalendar.json +10 -0
- data/config/preferences/iTerm.json +36 -0
- data/config/preferences/reStructuredText.json +48 -0
- data/config/rc.rb +49 -0
- data/config/syntax/ANTLR.json +5 -5
- data/config/syntax/{ASP VB.net.json → ASP vb.NET.json } +3 -3
- data/config/syntax/ASP.json +1 -1
- data/config/syntax/ActionScript.json +6 -6
- data/config/syntax/Active4D Config.json +86 -0
- data/config/syntax/Active4D Library.json +20 -0
- data/config/syntax/Active4D.json +418 -0
- data/config/syntax/Ada.json +3 -3
- data/config/syntax/Ant.json +196 -0
- data/config/syntax/Apache.json +7 -7
- data/config/syntax/AppleScript.json +3 -3
- data/config/syntax/{Bibtex.json → BibTeX.json} +1 -1
- data/config/syntax/Bison.json +59 -0
- data/config/syntax/{Blog (HTML).json → Blog - HTML.json } +2 -2
- data/config/syntax/{Blog (Markdown).json → Blog - Markdown.json } +2 -2
- data/config/syntax/Blog (Text).json b/data/config/syntax/Blog - → Text.json +0 -0
- data/config/syntax/Blog (Textile).json b/data/config/syntax/Blog - → Textile.json +0 -0
- data/config/syntax/C++.json +3 -3
- data/config/syntax/C.json +13 -13
- data/config/syntax/CMake Listfile.json +171 -0
- data/config/syntax/CSS.json +6 -6
- data/config/syntax/CSV.json +108 -0
- data/config/syntax/ColdFusion.json +204 -0
- data/config/syntax/D.json +560 -0
- data/config/syntax/Diff.json +1 -1
- data/config/syntax/DokuWiki.json +412 -0
- data/config/syntax/Doxygen.json +80 -0
- data/config/syntax/Dylan.json +4 -4
- data/config/syntax/Erlang.json +5 -5
- data/config/syntax/F-Script.json +1 -1
- data/config/syntax/FXScript.json +5 -5
- data/config/syntax/Fortran - Modern.json +221 -0
- data/config/syntax/Fortran - Punchcard.json +468 -0
- data/config/syntax/GTD.json +39 -0
- data/config/syntax/GTDalt.json +233 -0
- data/config/syntax/Gettext.json +118 -0
- data/config/syntax/Go.json +555 -0
- data/config/syntax/{DOT.json → Graphviz (DOT).json } +3 -3
- data/config/syntax/Greasemonkey.json +56 -0
- data/config/syntax/Gri.json +4 -4
- data/config/syntax/{HTML-ASP.json → HTML (ASP).json } +1 -1
- data/config/syntax/{HTML for ASP.net.json → HTML (ASP.net).json } +19 -19
- data/config/syntax/HTML (Active4D).json +540 -0
- data/config/syntax/HTML (Erlang).json +31 -0
- data/config/syntax/HTML (Tcl).json +1 -1
- data/config/syntax/HTML.json +20 -20
- data/config/syntax/Haskell.json +3 -3
- data/config/syntax/Installer Distribution Script.json +135 -0
- data/config/syntax/Io.json +6 -6
- data/config/syntax/JSON.json +151 -0
- data/config/syntax/{JavaProperties.json → Java Properties.json } +2 -2
- data/config/syntax/Java Server Page (JSP).json +163 -0
- data/config/syntax/Java.json +7 -7
- data/config/syntax/JavaDoc.json +435 -0
- data/config/syntax/JavaScript.json +8 -8
- data/config/syntax/LaTeX Log.json +3 -3
- data/config/syntax/LaTeX Memoir.json +101 -0
- data/config/syntax/LaTeX.json +2 -2
- data/config/syntax/Lex-Flex.json +396 -0
- data/config/syntax/LilyPond.json +608 -0
- data/config/syntax/Logo.json +48 -0
- data/config/syntax/Logtalk.json +6 -6
- data/config/syntax/Lua.json +1 -1
- data/config/syntax/{M.json → MATLAB.json} +3 -3
- data/config/syntax/MEL.json +7 -7
- data/config/syntax/MIPS.json b/data/config/syntax/MIPS → Assembler.json +0 -0
- data/config/syntax/MacPorts Portfile.json +298 -0
- data/config/syntax/Mail.json +1 -1
- data/config/syntax/Markdown.json +6 -6
- data/config/syntax/Maven POM.json +774 -0
- data/config/syntax/Mediawiki.json +736 -0
- data/config/syntax/MoinMoin.json +335 -0
- data/config/syntax/MultiMarkdown.json +41 -0
- data/config/syntax/Nemerle.json +128 -0
- data/config/syntax/OCaml.json +4 -4
- data/config/syntax/OCamllex.json +307 -0
- data/config/syntax/OCamlyacc.json +346 -0
- data/config/syntax/Objective-C++.json +2 -2
- data/config/syntax/Objective-C.json +979 -0
- data/config/syntax/Octave.json +417 -0
- data/config/syntax/PHP.json +32 -32
- data/config/syntax/Pascal.json +1 -1
- data/config/syntax/Perl.json +8 -8
- data/config/syntax/{Plain text.json → Plain Text.json } +1 -1
- data/config/syntax/PmWiki.json +241 -0
- data/config/syntax/Postscript.json +206 -0
- data/config/syntax/Processing.json +8 -8
- data/config/syntax/Prolog.json +70 -0
- data/config/syntax/Python.json +1934 -0
- data/config/syntax/{Quake3 Config.json → Quake Style .cfg.json } +1 -1
- data/config/syntax/R.json +2 -2
- data/config/syntax/Ragel.json +362 -0
- data/config/syntax/Rd (R Documentation).json +119 -0
- data/config/syntax/Regular Expressions (Oniguruma).json +186 -0
- data/config/syntax/Regular Expressions (Python).json +188 -0
- data/config/syntax/Release Notes.json +78 -0
- data/config/syntax/Remind.json +461 -0
- data/config/syntax/Rez.json +5 -5
- data/config/syntax/Ruby Sass.json +497 -0
- data/config/syntax/Ruby.json +13 -13
- data/config/syntax/S5 Slide Show.json +85 -0
- data/config/syntax/SQL.json +11 -11
- data/config/syntax/SSH Config.json +55 -0
- data/config/syntax/SWIG.json +2 -2
- data/config/syntax/SWeave.json +139 -0
- data/config/syntax/Scheme.json +8 -8
- data/config/syntax/Scilab.json +69 -0
- data/config/syntax/Setext.json +247 -0
- data/config/syntax/{Shell-Unix-Generic.json → Shell Script (Bash).json } +4 -4
- data/config/syntax/Slate.json +5 -5
- data/config/syntax/Strings File.json +53 -0
- data/config/syntax/TSV.json +83 -0
- data/config/syntax/Tcl.json +1 -1
- data/config/syntax/TeX Math.json +2 -2
- data/config/syntax/TeX.json +2 -2
- data/config/syntax/Textile.json +9 -9
- data/config/syntax/Thrift.json +641 -0
- data/config/syntax/Twiki.json +1 -1
- data/config/syntax/Txt2tags.json +154 -0
- data/config/syntax/XML strict.json +4 -4
- data/config/syntax/XML.json +6 -6
- data/config/syntax/XSL.json +2 -2
- data/config/syntax/camlp4.json +63 -0
- data/config/syntax/mod_perl.json +72 -0
- data/config/syntax/reStructuredText.json +1 -1
- data/config/syntax/{Subversion commit message.json → svn-commit.tmp.json} +0 -0
- data/config/tutorial +23 -19
- data/config/welcome +3 -3
- data/lib/ver.rb +273 -62
- data/lib/ver/entry.rb +142 -26
- data/lib/ver/font.rb +51 -0
- data/lib/ver/help.rb +16 -0
- data/lib/ver/help/describe_key.rb +82 -0
- data/lib/ver/help/help_for_help.rb +39 -0
- data/lib/ver/hover_completion.rb +129 -0
- data/lib/ver/keymap.rb +95 -24
- data/lib/ver/layout.rb +107 -43
- data/lib/ver/methods.rb +24 -8
- data/lib/ver/methods/clipboard.rb +91 -0
- data/lib/ver/methods/completion.rb +146 -71
- data/lib/ver/methods/control.rb +203 -222
- data/lib/ver/methods/ctags.rb +55 -0
- data/lib/ver/methods/delete.rb +30 -0
- data/lib/ver/methods/help.rb +7 -0
- data/lib/ver/methods/insert.rb +233 -1
- data/lib/ver/methods/move.rb +181 -32
- data/lib/ver/methods/open.rb +208 -0
- data/lib/ver/methods/preview.rb +14 -0
- data/lib/ver/methods/save.rb +111 -0
- data/lib/ver/methods/search.rb +57 -7
- data/lib/ver/methods/select.rb +97 -17
- data/lib/ver/methods/shortcuts.rb +21 -0
- data/lib/ver/methods/views.rb +56 -1
- data/lib/ver/mode.rb +60 -14
- data/lib/ver/status.rb +97 -19
- data/lib/ver/syntax.rb +14 -6
- data/lib/ver/syntax/detector.rb +16 -5
- data/lib/ver/syntax/processor.rb +9 -3
- data/lib/ver/text.rb +258 -199
- data/lib/ver/text/index.rb +103 -0
- data/lib/ver/theme.rb +27 -16
- data/lib/ver/tooltip.rb +59 -0
- data/lib/ver/vendor/binary_search.rb +61 -0
- data/lib/ver/vendor/levenshtein.rb +57 -0
- data/lib/ver/{textpow.rb → vendor/textpow.rb} +31 -29
- data/lib/ver/view.rb +65 -41
- data/lib/ver/view/console.rb +171 -0
- data/lib/ver/view/entry.rb +9 -5
- data/lib/ver/view/list.rb +44 -29
- data/lib/ver/view/list/ex.rb +71 -0
- data/lib/ver/view/list/grep.rb +42 -0
- data/lib/ver/view/list/methods.rb +159 -0
- data/lib/ver/view/term.rb +249 -0
- data/tasks/syntax_list.rake +3 -2
- data/ver.gemspec +4 -4
- metadata +230 -28
- data/config/syntax/Bulletin Board.json +0 -428
- data/config/syntax/HTML (Mason).json +0 -207
- data/config/syntax/HTML (Rails).json +0 -52
- data/config/syntax/Movable Type.json +0 -348
- data/config/syntax/Ruby on Rails.json +0 -170
- data/config/syntax/SQL (Rails).json +0 -31
- data/config/syntax/Smarty.json +0 -110
- data/config/syntax/Standard ML.json +0 -322
data/config/syntax/R.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"S",
|
7
7
|
"Rprofile"
|
8
8
|
],
|
9
|
-
"foldingStartMarker": "(\\(
|
9
|
+
"foldingStartMarker": "^[^#]*(\\([^\\)]*$|\\{\\s*$)",
|
10
10
|
"foldingStopMarker": "(^\\s*\\)|^\\s*\\})",
|
11
11
|
"keyEquivalent": "^~R",
|
12
12
|
"name": "R",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"name": "support.constant.misc.r"
|
42
42
|
},
|
43
43
|
{
|
44
|
-
"match": "(
|
44
|
+
"match": "(\\-|\\+|\\*|\\/|%\\/%|%%|%\\*%|%in%|%o%|%x%|\\^)",
|
45
45
|
"name": "keyword.operator.arithmetic.r"
|
46
46
|
},
|
47
47
|
{
|
@@ -0,0 +1,362 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"rl",
|
4
|
+
"ragel"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t",
|
7
|
+
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~R",
|
9
|
+
"name": "Ragel",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"begin": "%%{",
|
13
|
+
"captures": {
|
14
|
+
"0": {
|
15
|
+
"name": "punctuation.section.embedded.ragel"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"end": "}%%",
|
19
|
+
"name": "source.ragel",
|
20
|
+
"patterns": [
|
21
|
+
{
|
22
|
+
"include": "#source_ragel"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"begin": "%%$",
|
28
|
+
"beginCaptures": {
|
29
|
+
"0": {
|
30
|
+
"name": "punctuation.section.embedded.ragel"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"end": "$",
|
34
|
+
"name": "source.ragel",
|
35
|
+
"patterns": [
|
36
|
+
{
|
37
|
+
"include": "#source_ragel"
|
38
|
+
}
|
39
|
+
]
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"begin": "%%",
|
43
|
+
"beginCaptures": {
|
44
|
+
"0": {
|
45
|
+
"name": "punctuation.section.embedded.ragel"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"end": "$",
|
49
|
+
"name": "support.function.ragel",
|
50
|
+
"patterns": [
|
51
|
+
{
|
52
|
+
"include": "#keywords"
|
53
|
+
}
|
54
|
+
]
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"include": "source.c"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"repository": {
|
61
|
+
"action_name": {
|
62
|
+
"patterns": [
|
63
|
+
{
|
64
|
+
"captures": {
|
65
|
+
"1": {
|
66
|
+
"name": "punctuation.definition.entity.ragel"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"match": "([@$>%])\\s*([\\w\\d]+)",
|
70
|
+
"name": "entity.name.type.action-reference.ragel"
|
71
|
+
}
|
72
|
+
]
|
73
|
+
},
|
74
|
+
"comments": {
|
75
|
+
"patterns": [
|
76
|
+
{
|
77
|
+
"begin": "#",
|
78
|
+
"beginCaptures": {
|
79
|
+
"0": {
|
80
|
+
"name": "punctuation.definition.comment.ragel"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"end": "$\\n?",
|
84
|
+
"name": "comment.line.ragel"
|
85
|
+
}
|
86
|
+
]
|
87
|
+
},
|
88
|
+
"embedded_code": {
|
89
|
+
"patterns": [
|
90
|
+
{
|
91
|
+
"begin": "\\{",
|
92
|
+
"beginCaptures": {
|
93
|
+
"0": {
|
94
|
+
"name": "punctuation.section.embedded.c"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"end": "\\}",
|
98
|
+
"name": "source.c",
|
99
|
+
"patterns": [
|
100
|
+
{
|
101
|
+
"include": "source.c"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
105
|
+
]
|
106
|
+
},
|
107
|
+
"keywords": {
|
108
|
+
"patterns": [
|
109
|
+
{
|
110
|
+
"match": "\\b(machine|action|context|include|variable|access|write|contained)\\b",
|
111
|
+
"name": "keyword.other.ragel"
|
112
|
+
}
|
113
|
+
]
|
114
|
+
},
|
115
|
+
"operators": {
|
116
|
+
"patterns": [
|
117
|
+
{
|
118
|
+
"match": "(\\:\\>\\>?|\\<\\:)",
|
119
|
+
"name": "keyword.operator.contatenation.ragel"
|
120
|
+
}
|
121
|
+
]
|
122
|
+
},
|
123
|
+
"regexp": {
|
124
|
+
"patterns": [
|
125
|
+
{
|
126
|
+
"begin": "\\[",
|
127
|
+
"beginCaptures": {
|
128
|
+
"0": {
|
129
|
+
"name": "punctuation.definition.string.begin.ragel"
|
130
|
+
}
|
131
|
+
},
|
132
|
+
"end": "\\]\\s*[*?]?",
|
133
|
+
"endCaptures": {
|
134
|
+
"0": {
|
135
|
+
"name": "punctuation.definition.string.end.ragel"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"name": "string.regexp.character-class.ragel"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"begin": "\\/",
|
142
|
+
"beginCaptures": {
|
143
|
+
"0": {
|
144
|
+
"name": "punctuation.definition.string.begin.ragel"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
"end": "\\/\\s*[*?]?",
|
148
|
+
"endCaptures": {
|
149
|
+
"0": {
|
150
|
+
"name": "punctuation.definition.string.end.ragel"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
"name": "string.regexp.classic.ragel"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
},
|
157
|
+
"source_ragel": {
|
158
|
+
"patterns": [
|
159
|
+
{
|
160
|
+
"include": "#keywords"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"include": "#regexp"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"include": "#string"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"include": "#comments"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"include": "#embedded_code"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"begin": "(action)\\s+([\\w\\d]+)\\s+({)",
|
176
|
+
"beginCaptures": {
|
177
|
+
"1": {
|
178
|
+
"name": "keyword.other.action.ragel"
|
179
|
+
},
|
180
|
+
"2": {
|
181
|
+
"name": "entity.name.type.action.ragel"
|
182
|
+
},
|
183
|
+
"3": {
|
184
|
+
"name": "punctuation.section.function.ragel"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"end": "(})",
|
188
|
+
"endCaptures": {
|
189
|
+
"1": {
|
190
|
+
"name": "punctuation.section.function.ragel"
|
191
|
+
}
|
192
|
+
},
|
193
|
+
"name": "meta.function.action.ragel",
|
194
|
+
"patterns": [
|
195
|
+
{
|
196
|
+
"include": "source.c"
|
197
|
+
}
|
198
|
+
]
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"begin": "([\\w\\d]+)\\s*(=)",
|
202
|
+
"beginCaptures": {
|
203
|
+
"1": {
|
204
|
+
"name": "entity.name.type.machine-definition.ragel"
|
205
|
+
},
|
206
|
+
"2": {
|
207
|
+
"name": "punctuation.separator.key-value.ragel"
|
208
|
+
}
|
209
|
+
},
|
210
|
+
"end": "(;)",
|
211
|
+
"endCaptures": {
|
212
|
+
"1": {
|
213
|
+
"name": "punctuation.terminator.machine-definition.ragel"
|
214
|
+
}
|
215
|
+
},
|
216
|
+
"name": "meta.machine-definition.ragel",
|
217
|
+
"patterns": [
|
218
|
+
{
|
219
|
+
"include": "#regexp"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"include": "#string"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"include": "#action_name"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"include": "#embedded_code"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"include": "#operators"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"include": "#comments"
|
235
|
+
}
|
236
|
+
]
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"begin": "([\\w\\d]+)\\s*(:=)",
|
240
|
+
"beginCaptures": {
|
241
|
+
"1": {
|
242
|
+
"name": "entity.name.type.machine-instantiation.ragel"
|
243
|
+
},
|
244
|
+
"2": {
|
245
|
+
"name": "punctuation.separator.key-value.ragel"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
"end": ";",
|
249
|
+
"endCaptures": {
|
250
|
+
"1": {
|
251
|
+
"name": "punctuation.terminator.machine-instantiation.ragel"
|
252
|
+
}
|
253
|
+
},
|
254
|
+
"name": "meta.machine-instantiation.ragel",
|
255
|
+
"patterns": [
|
256
|
+
{
|
257
|
+
"include": "#regexp"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"include": "#string"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"include": "#action_name"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"include": "#embedded_code"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"include": "#operators"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"include": "#comments"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"begin": "\\|\\*",
|
276
|
+
"end": "\\*\\|",
|
277
|
+
"name": "meta.ragel.longest-match",
|
278
|
+
"patterns": [
|
279
|
+
{
|
280
|
+
"include": "#source_ragel"
|
281
|
+
}
|
282
|
+
]
|
283
|
+
}
|
284
|
+
]
|
285
|
+
}
|
286
|
+
]
|
287
|
+
},
|
288
|
+
"string": {
|
289
|
+
"patterns": [
|
290
|
+
{
|
291
|
+
"begin": "\"",
|
292
|
+
"beginCaptures": {
|
293
|
+
"0": {
|
294
|
+
"name": "punctuation.definition.string.begin.ragel"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
"end": "\"",
|
298
|
+
"endCaptures": {
|
299
|
+
"0": {
|
300
|
+
"name": "punctuation.definition.string.end.ragel"
|
301
|
+
}
|
302
|
+
},
|
303
|
+
"name": "string.quoted.double.ragel",
|
304
|
+
"patterns": [
|
305
|
+
{
|
306
|
+
"include": "#string_escaped_char"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"include": "#string_placeholder"
|
310
|
+
}
|
311
|
+
]
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"begin": "'",
|
315
|
+
"beginCaptures": {
|
316
|
+
"0": {
|
317
|
+
"name": "punctuation.definition.string.begin.ragel"
|
318
|
+
}
|
319
|
+
},
|
320
|
+
"end": "'",
|
321
|
+
"endCaptures": {
|
322
|
+
"0": {
|
323
|
+
"name": "punctuation.definition.string.end.ragel"
|
324
|
+
}
|
325
|
+
},
|
326
|
+
"name": "string.quoted.single.ragel",
|
327
|
+
"patterns": [
|
328
|
+
{
|
329
|
+
"include": "#string_escaped_char"
|
330
|
+
}
|
331
|
+
]
|
332
|
+
}
|
333
|
+
]
|
334
|
+
},
|
335
|
+
"string_escaped_char": {
|
336
|
+
"patterns": [
|
337
|
+
{
|
338
|
+
"match": "\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2})",
|
339
|
+
"name": "constant.character.escape.ragel"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"match": "\\\\.",
|
343
|
+
"name": "invalid.illegal.unknown-escape.ragel"
|
344
|
+
}
|
345
|
+
]
|
346
|
+
},
|
347
|
+
"string_placeholder": {
|
348
|
+
"patterns": [
|
349
|
+
{
|
350
|
+
"match": "(?x)%\n\t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\t\t\t\t\t\t[#0\\- +']* # flags\n\t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\t\t\t\t\t",
|
351
|
+
"name": "constant.other.placeholder.ragel"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"match": "%",
|
355
|
+
"name": "invalid.illegal.placeholder.ragel"
|
356
|
+
}
|
357
|
+
]
|
358
|
+
}
|
359
|
+
},
|
360
|
+
"scopeName": "source.c.ragel",
|
361
|
+
"uuid": "F1172666-F07C-4F6A-B07D-E1AD08DE2070"
|
362
|
+
}
|
@@ -0,0 +1,119 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"rd",
|
4
|
+
"Rd"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "/\\w*\\{\\s*$",
|
7
|
+
"foldingStopMarker": "^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~R",
|
9
|
+
"name": "Rd (R Documentation)",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"begin": "((\\\\)(?:alias|docType|keyword|name|title|description|value|note|concept|keyword|details|format|references|source|arguments|seealso|author))(\\{)",
|
13
|
+
"beginCaptures": {
|
14
|
+
"1": {
|
15
|
+
"name": "keyword.other.section.rd"
|
16
|
+
},
|
17
|
+
"2": {
|
18
|
+
"name": "punctuation.definition.function.rd"
|
19
|
+
},
|
20
|
+
"3": {
|
21
|
+
"name": "punctuation.definition.arguments.begin.rd"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"contentName": "entity.name.tag.rd",
|
25
|
+
"end": "(\\})",
|
26
|
+
"endCaptures": {
|
27
|
+
"1": {
|
28
|
+
"name": "punctuation.definition.arguments.end.rd"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"name": "meta.section.rd",
|
32
|
+
"patterns": [
|
33
|
+
{
|
34
|
+
"include": "$self"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"begin": "((\\\\)(?:usage))(\\{)(?:\\n)?",
|
40
|
+
"beginCaptures": {
|
41
|
+
"1": {
|
42
|
+
"name": "keyword.other.usage.rd"
|
43
|
+
},
|
44
|
+
"2": {
|
45
|
+
"name": "punctuation.definition.function.rd"
|
46
|
+
},
|
47
|
+
"3": {
|
48
|
+
"name": "punctuation.definition.arguments.begin.rd"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"contentName": "source.r.embedded",
|
52
|
+
"end": "(\\})",
|
53
|
+
"endCaptures": {
|
54
|
+
"1": {
|
55
|
+
"name": "punctuation.definition.arguments.end.rd"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"name": "meta.usage.rd",
|
59
|
+
"patterns": [
|
60
|
+
{
|
61
|
+
"include": "source.r"
|
62
|
+
}
|
63
|
+
]
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"begin": "((\\\\)(?:examples))(\\{)(?:\\n)?",
|
67
|
+
"beginCaptures": {
|
68
|
+
"1": {
|
69
|
+
"name": "keyword.other.examples.rd"
|
70
|
+
},
|
71
|
+
"2": {
|
72
|
+
"name": "punctuation.definition.function.rd"
|
73
|
+
},
|
74
|
+
"3": {
|
75
|
+
"name": "punctuation.definition.arguments.begin.rd"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"contentName": "source.r.embedded",
|
79
|
+
"end": "(^\\}$)",
|
80
|
+
"endCaptures": {
|
81
|
+
"1": {
|
82
|
+
"name": "punctuation.definition.arguments.end.rd"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
"name": "meta.examples.rd",
|
86
|
+
"patterns": [
|
87
|
+
{
|
88
|
+
"include": "source.r"
|
89
|
+
}
|
90
|
+
]
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"begin": "((\\\\)(?:author))(\\{)(?:\\n)?",
|
94
|
+
"beginCaptures": {
|
95
|
+
"1": {
|
96
|
+
"name": "keyword.other.author.rd"
|
97
|
+
},
|
98
|
+
"2": {
|
99
|
+
"name": "punctuation.definition.function.rd"
|
100
|
+
},
|
101
|
+
"3": {
|
102
|
+
"name": "punctuation.definition.arguments.begin.rd"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"end": "(\\})",
|
106
|
+
"endCaptures": {
|
107
|
+
"1": {
|
108
|
+
"name": "punctuation.definition.arguments.end.rd"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"name": "meta.author.rd"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"include": "text.tex.latex"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"scopeName": "text.tex.latex.rd",
|
118
|
+
"uuid": "80A00288-FE7E-4E66-B5BF-4948A2828203"
|
119
|
+
}
|