ver 2009.10.14 → 2009.11.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -0,0 +1,186 @@
|
|
1
|
+
{
|
2
|
+
"comment": "Matches Oniguruma's Ruby regexp syntax (TextMate uses Oniguruma in Ruby mode).",
|
3
|
+
"fileTypes": [
|
4
|
+
"re"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "(/\\*|\\{|\\()",
|
7
|
+
"foldingStopMarker": "(\\*/|\\}|\\))",
|
8
|
+
"name": "Regular Expressions (Oniguruma)",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"match": "\\\\[bBAZzG]|\\^|\\$",
|
12
|
+
"name": "keyword.control.anchor.regexp"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"match": "\\\\([0-7]{3}|\\\\x(\\h\\h|\\{\\h{,8}\\}))",
|
16
|
+
"name": "constant.character.numeric.regexp"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"match": "\\\\[1-9]\\d*",
|
20
|
+
"name": "keyword.other.back-reference.regexp"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"captures": {
|
24
|
+
"1": {
|
25
|
+
"name": "keyword.other.back-reference.named.regexp"
|
26
|
+
},
|
27
|
+
"2": {
|
28
|
+
"name": "entity.name.section.back-reference"
|
29
|
+
},
|
30
|
+
"3": {
|
31
|
+
"name": "keyword.other.back-reference.named.regexp"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"match": "(\\\\k\\<)([a-z]\\w*)(\\>)",
|
35
|
+
"name": "keyword.other.back-reference.named.regexp"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"match": "\\[\\:(\\^)?(alnum|alpha|ascii|blank|cntrl|x?digit|graph|lower|print|punct|space|upper)\\]",
|
39
|
+
"name": "constant.other.character-class.posix.regexp"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"match": "[?+*][?+]?|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??",
|
43
|
+
"name": "keyword.operator.quantifier.regexp"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"match": "\\|",
|
47
|
+
"name": "keyword.operator.or.regexp"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"begin": "\\(\\?\\#",
|
51
|
+
"end": "\\)",
|
52
|
+
"name": "comment.block.regexp"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
|
56
|
+
"match": "(?<=^|\\s)#\\s[[a-zA-Z0-9,. \\t?!-:][^\\x00-\\x7F]]*$",
|
57
|
+
"name": "comment.line.number-sign.regexp"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"match": "\\(\\?[imx-]+\\)",
|
61
|
+
"name": "keyword.other.option-toggle.regexp"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"begin": "(\\()((\\?=)|(\\?!)|(\\?<=)|(\\?<!))",
|
65
|
+
"beginCaptures": {
|
66
|
+
"1": {
|
67
|
+
"name": "punctuation.definition.group.regexp"
|
68
|
+
},
|
69
|
+
"3": {
|
70
|
+
"name": "meta.assertion.look-ahead.regexp"
|
71
|
+
},
|
72
|
+
"4": {
|
73
|
+
"name": "meta.assertion.negative-look-ahead.regexp"
|
74
|
+
},
|
75
|
+
"5": {
|
76
|
+
"name": "meta.assertion.look-behind.regexp"
|
77
|
+
},
|
78
|
+
"6": {
|
79
|
+
"name": "meta.assertion.negative-look-behind.regexp"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"end": "(\\))",
|
83
|
+
"endCaptures": {
|
84
|
+
"1": {
|
85
|
+
"name": "punctuation.definition.group.regexp"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"name": "meta.group.assertion.regexp",
|
89
|
+
"patterns": [
|
90
|
+
{
|
91
|
+
"include": "$self"
|
92
|
+
}
|
93
|
+
]
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"begin": "(\\()((\\?(>|[imx-]*:))|(\\?<)([a-z]\\w*)(>))?",
|
97
|
+
"beginCaptures": {
|
98
|
+
"1": {
|
99
|
+
"name": "punctuation.definition.group.regexp"
|
100
|
+
},
|
101
|
+
"3": {
|
102
|
+
"name": "keyword.other.group-options.regexp"
|
103
|
+
},
|
104
|
+
"5": {
|
105
|
+
"name": "keyword.other.group-options.regexp"
|
106
|
+
},
|
107
|
+
"6": {
|
108
|
+
"name": "entity.name.section.group.regexp"
|
109
|
+
},
|
110
|
+
"7": {
|
111
|
+
"name": "keyword.other.group-options.regexp"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"end": "(\\))",
|
115
|
+
"endCaptures": {
|
116
|
+
"1": {
|
117
|
+
"name": "punctuation.definition.group.regexp"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"name": "meta.group.regexp",
|
121
|
+
"patterns": [
|
122
|
+
{
|
123
|
+
"include": "$self"
|
124
|
+
}
|
125
|
+
]
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"include": "#character-class"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"repository": {
|
132
|
+
"character-class": {
|
133
|
+
"patterns": [
|
134
|
+
{
|
135
|
+
"match": "\\\\[wWsSdDhH]|\\.",
|
136
|
+
"name": "constant.character.character-class.regexp"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"match": "\\\\.",
|
140
|
+
"name": "constant.character.escape.backslash.regexp"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"begin": "(\\[)(\\^)?",
|
144
|
+
"beginCaptures": {
|
145
|
+
"1": {
|
146
|
+
"name": "punctuation.definition.character-class.regexp"
|
147
|
+
},
|
148
|
+
"2": {
|
149
|
+
"name": "keyword.operator.negation.regexp"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"end": "(\\])",
|
153
|
+
"endCaptures": {
|
154
|
+
"1": {
|
155
|
+
"name": "punctuation.definition.character-class.regexp"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"name": "constant.other.character-class.set.regexp",
|
159
|
+
"patterns": [
|
160
|
+
{
|
161
|
+
"include": "#character-class"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"captures": {
|
165
|
+
"2": {
|
166
|
+
"name": "constant.character.escape.backslash.regexp"
|
167
|
+
},
|
168
|
+
"4": {
|
169
|
+
"name": "constant.character.escape.backslash.regexp"
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"match": "(.|(\\\\.))\\-([^\\]]|(\\\\.))",
|
173
|
+
"name": "constant.other.character-class.range.regexp"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"match": "&&",
|
177
|
+
"name": "keyword.operator.intersection.regexp"
|
178
|
+
}
|
179
|
+
]
|
180
|
+
}
|
181
|
+
]
|
182
|
+
}
|
183
|
+
},
|
184
|
+
"scopeName": "source.regexp.oniguruma",
|
185
|
+
"uuid": "D609BF3F-BEDB-41AE-BA6F-903CC77A7BB3"
|
186
|
+
}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
{
|
2
|
+
"comment": "Matches Python's regular expression syntax.",
|
3
|
+
"fileTypes": [
|
4
|
+
"re"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "(/\\*|\\{|\\()",
|
7
|
+
"foldingStopMarker": "(\\*/|\\}|\\))",
|
8
|
+
"name": "Regular Expressions (Python)",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"match": "\\\\[bBAZzG]|\\^|\\$",
|
12
|
+
"name": "keyword.control.anchor.regexp"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"match": "\\\\[1-9][0-9]?",
|
16
|
+
"name": "keyword.other.back-reference.regexp"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"match": "[?+*][?+]?|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??",
|
20
|
+
"name": "keyword.operator.quantifier.regexp"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"match": "\\|",
|
24
|
+
"name": "keyword.operator.or.regexp"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"begin": "\\(\\?\\#",
|
28
|
+
"end": "\\)",
|
29
|
+
"name": "comment.block.regexp"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
|
33
|
+
"match": "(?<=^|\\s)#\\s[[a-zA-Z0-9,. \\t?!-:][^\\x00-\\x7F]]*$",
|
34
|
+
"name": "comment.line.number-sign.regexp"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"match": "\\(\\?[iLmsux]+\\)",
|
38
|
+
"name": "keyword.other.option-toggle.regexp"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"match": "(\\()(\\?P=([a-zA-Z_][a-zA-Z_0-9]*\\w*))(\\))",
|
42
|
+
"name": "keyword.other.back-reference.named.regexp"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"begin": "(\\()((\\?=)|(\\?!)|(\\?<=)|(\\?<!))",
|
46
|
+
"beginCaptures": {
|
47
|
+
"1": {
|
48
|
+
"name": "punctuation.definition.group.regexp"
|
49
|
+
},
|
50
|
+
"2": {
|
51
|
+
"name": "punctuation.definition.group.assertion.regexp"
|
52
|
+
},
|
53
|
+
"3": {
|
54
|
+
"name": "meta.assertion.look-ahead.regexp"
|
55
|
+
},
|
56
|
+
"4": {
|
57
|
+
"name": "meta.assertion.negative-look-ahead.regexp"
|
58
|
+
},
|
59
|
+
"5": {
|
60
|
+
"name": "meta.assertion.look-behind.regexp"
|
61
|
+
},
|
62
|
+
"6": {
|
63
|
+
"name": "meta.assertion.negative-look-behind.regexp"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"end": "(\\))",
|
67
|
+
"endCaptures": {
|
68
|
+
"1": {
|
69
|
+
"name": "punctuation.definition.group.regexp"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"name": "meta.group.assertion.regexp",
|
73
|
+
"patterns": [
|
74
|
+
{
|
75
|
+
"include": "$self"
|
76
|
+
}
|
77
|
+
]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"begin": "(\\()(\\?\\(([1-9][0-9]?|[a-zA-Z_][a-zA-Z_0-9]*)\\))",
|
81
|
+
"beginCaptures": {
|
82
|
+
"1": {
|
83
|
+
"name": "punctuation.definition.group.regexp"
|
84
|
+
},
|
85
|
+
"2": {
|
86
|
+
"name": "punctuation.definition.group.assertion.conditional.regexp"
|
87
|
+
},
|
88
|
+
"3": {
|
89
|
+
"name": "entity.name.section.back-reference.regexp"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"comment": "we can make this more sophisticated to match the | character that separates yes-pattern from no-pattern, but it's not really necessary.",
|
93
|
+
"end": "(\\))",
|
94
|
+
"name": "meta.group.assertion.conditional.regexp",
|
95
|
+
"patterns": [
|
96
|
+
{
|
97
|
+
"include": "$self"
|
98
|
+
}
|
99
|
+
]
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"begin": "(\\()((\\?P<)([a-z]\\w*)(>)|(\\?:))?",
|
103
|
+
"beginCaptures": {
|
104
|
+
"1": {
|
105
|
+
"name": "punctuation.definition.group.regexp"
|
106
|
+
},
|
107
|
+
"3": {
|
108
|
+
"name": "punctuation.definition.group.capture.regexp"
|
109
|
+
},
|
110
|
+
"4": {
|
111
|
+
"name": "entity.name.section.group.regexp"
|
112
|
+
},
|
113
|
+
"5": {
|
114
|
+
"name": "punctuation.definition.group.capture.regexp"
|
115
|
+
},
|
116
|
+
"6": {
|
117
|
+
"name": "punctuation.definition.group.no-capture.regexp"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"end": "(\\))",
|
121
|
+
"endCaptures": {
|
122
|
+
"1": {
|
123
|
+
"name": "punctuation.definition.group.regexp"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"name": "meta.group.regexp",
|
127
|
+
"patterns": [
|
128
|
+
{
|
129
|
+
"include": "$self"
|
130
|
+
}
|
131
|
+
]
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"include": "#character-class"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"repository": {
|
138
|
+
"character-class": {
|
139
|
+
"patterns": [
|
140
|
+
{
|
141
|
+
"match": "\\\\[wWsSdDhH]|\\.",
|
142
|
+
"name": "constant.character.character-class.regexp"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"match": "\\\\.",
|
146
|
+
"name": "constant.character.escape.backslash.regexp"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"begin": "(\\[)(\\^)?",
|
150
|
+
"beginCaptures": {
|
151
|
+
"1": {
|
152
|
+
"name": "punctuation.definition.character-class.regexp"
|
153
|
+
},
|
154
|
+
"2": {
|
155
|
+
"name": "keyword.operator.negation.regexp"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"end": "(\\])",
|
159
|
+
"endCaptures": {
|
160
|
+
"1": {
|
161
|
+
"name": "punctuation.definition.character-class.regexp"
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"name": "constant.other.character-class.set.regexp",
|
165
|
+
"patterns": [
|
166
|
+
{
|
167
|
+
"include": "#character-class"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"captures": {
|
171
|
+
"2": {
|
172
|
+
"name": "constant.character.escape.backslash.regexp"
|
173
|
+
},
|
174
|
+
"4": {
|
175
|
+
"name": "constant.character.escape.backslash.regexp"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"match": "((\\\\.)|.)\\-((\\\\.)|[^\\]])",
|
179
|
+
"name": "constant.other.character-class.range.regexp"
|
180
|
+
}
|
181
|
+
]
|
182
|
+
}
|
183
|
+
]
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"scopeName": "source.regexp.python",
|
187
|
+
"uuid": "DD867ABF-1EC6-415D-B047-687F550A1D51"
|
188
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"tmReleaseNotes"
|
4
|
+
],
|
5
|
+
"name": "Release Notes",
|
6
|
+
"patterns": [
|
7
|
+
{
|
8
|
+
"captures": {
|
9
|
+
"1": {
|
10
|
+
"name": "punctuation.definition.separator.release-notes"
|
11
|
+
},
|
12
|
+
"2": {
|
13
|
+
"name": "meta.toc-list.release-notes"
|
14
|
+
},
|
15
|
+
"3": {
|
16
|
+
"name": "punctuation.definition.separator.release-notes"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"match": "^(\\[)(?:[\\d-]+: )?(REVISION (\\d+|v[\\d.b]+))(\\])$\\n",
|
20
|
+
"name": "meta.separator.release-notes"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"begin": "^([ \\t]*)(?=\\S)",
|
24
|
+
"contentName": "meta.paragraph.release-notes",
|
25
|
+
"end": "^(?!\\1(?=\\S))",
|
26
|
+
"patterns": [
|
27
|
+
{
|
28
|
+
"match": "(https?|ftp|mailto):\\S+?(?=[)>,.':;\"]*(\\s|$)|$)",
|
29
|
+
"name": "markup.underline.link.release-notes"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"captures": {
|
33
|
+
"1": {
|
34
|
+
"name": "keyword.other.release-notes"
|
35
|
+
},
|
36
|
+
"2": {
|
37
|
+
"name": "punctuation.definition.keyword.release-notes"
|
38
|
+
},
|
39
|
+
"3": {
|
40
|
+
"name": "punctuation.definition.keyword.release-notes"
|
41
|
+
},
|
42
|
+
"4": {
|
43
|
+
"name": "constant.other.bundle-name.release-notes"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"match": "((\\[)(?:NEW|FIXED|CHANGED|REMOVED|INFO)(\\])) (?:(.+? bundle):)?"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"captures": {
|
50
|
+
"1": {
|
51
|
+
"name": "storage.type.ticket.release-notes"
|
52
|
+
},
|
53
|
+
"2": {
|
54
|
+
"name": "constant.numeric.ticket.release-notes"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"match": "([Tt]icket) ([0-9A-F]{8})\\b",
|
58
|
+
"name": "meta.ticket.release-notes"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"comment": "I do not want spell checking for CamelCase words. Since this is generally when quoting various API\u2019s, I have deliberately used A-Z and a-z (ASCII) -- Allan",
|
62
|
+
"match": "\\b[A-Z]*[a-z]+[A-Z]\\w*\\b",
|
63
|
+
"name": "meta.word.camel-case.release-notes"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"captures": {
|
67
|
+
"1": {
|
68
|
+
"name": "constant.other.committer-name.release-notes"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"match": "\\((G(erd Knops|a(vin Kistner|rrett J. Woodworth)|ra(nt Hollingworth|eme Rocher))|R(yan McCuaig|ich Barton|o(ss Harmes|ger Braunstein|b(ert Rainthorpe| (Rix|Bevan))))|M(i(cha(il Pishchagin|el Sheets)|tch Chapman|etek B\u0105k|k(e Mellor|ael S\u00e4ker))|a(t(s Persson|t(hew Gilbert|eo Spinelli| Pelletier))|r(tin Str\u00f6m|k Grimes)|x Williams))|B(ill Duenskie|ob Fleck|en(oit Gagnon|jamin Jackson| Perry)|arrett Clark|r(ian (Donovan|Lalor)|ett Terpstra|ad (Miller|Choate)))|H(enrik Nyh|adley Wickham)|S(t(ephen Skubik-Peplaski|\u00e9phane Payrard|anley Rost)|imon (Gregory|Strandgaard)|u(ne Foldager|dara Williams)|ebastian Gr\u00e4\u00dfl|am DeVore)|Nathan Youngman|C(h(a(ndler McWilliams|rilaos Skiadas)|ris(topher Forsythe| (Thomas|Jenkins)))|iar\u00e1n Walsh)|T(homas Aylott|o(rsten Becker|m Lazar|bias Luetke)|akaaki Kato|roy Mcilvena)|Ian (Joyner|White)|Ollivier Robert|D(om(inique Peretti|enico Carbotta)|uane Johnson|a(n(iel Harple| Kelley)|vid (Glasser|Bonnet|Hansson|Powers|Wikler))|rew Colthorp)|J(iun Wei Chia|o(shua Emmons|nathan (Ragan-Kelley|Chaffer)|e Maller|achim M\u00e5rtensson)|ustin French|eroen van der Ham|a(cob Rus|y Soffian|kub Ne\u0161et\u0159il|m(is Buck|es (Edward Gray II|A. Baker))))|Paul(o Jorge Lopes de Moura| Bissex)|Eric Hsu|K(umar McMillan|evin Ballard)|F(ergus Bremner|abien POTENCIER|lorent Pillet|r(\u00e9d\u00e9ric Ball\u00e9riaux|ank Brault))|Wil(son Miner|liam (D. Neumann|Prater))|A(n(thony Underwood|d(y Herbert|ers Thid|rew Henson))|dam Sanderson|urelio Marinho Jargas|parajita Fishman|l(e( Mu\u00f1oz|xand(er John Ross|re Girard))|an Schussman|lan Odgaard)|mro Nasr))\\)$"
|
72
|
+
}
|
73
|
+
]
|
74
|
+
}
|
75
|
+
],
|
76
|
+
"scopeName": "text.plain.release-notes",
|
77
|
+
"uuid": "8926CAFE-1CF3-4CF9-A056-4FF90F596E9A"
|
78
|
+
}
|