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/Apache.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"htaccess"
|
5
5
|
],
|
6
6
|
"foldingStartMarker": "^[ ]*(?x)\n\t\t(<(?i:FilesMatch|Files|DirectoryMatch|Directory|LocationMatch|Location|VirtualHost|IfModule|IfDefine)\\b.*?>\n\t\t)",
|
7
|
-
"foldingStopMarker": "^[ ]*(?x)\n\t\t(
|
7
|
+
"foldingStopMarker": "^[ ]*(?x)\n\t\t(</(?i:FilesMatch|Files|DirectoryMatch|Directory|LocationMatch|Location|VirtualHost|IfModule|IfDefine)>\n\t\t)",
|
8
8
|
"keyEquivalent": "^~A",
|
9
9
|
"name": "Apache",
|
10
10
|
"patterns": [
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"name": "punctuation.definition.tag.apache-config"
|
39
39
|
}
|
40
40
|
},
|
41
|
-
"match": "^[ ]*(<)([a-zA-Z0-9:]+)[^>]*(>(<)
|
41
|
+
"match": "^[ ]*(<)([a-zA-Z0-9:]+)[^>]*(>(<)/)(\\2)(>)",
|
42
42
|
"name": "meta.tag.any.html"
|
43
43
|
},
|
44
44
|
{
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"name": "punctuation.definition.tag.apache-config"
|
61
61
|
}
|
62
62
|
},
|
63
|
-
"end": "^[ ]*((
|
63
|
+
"end": "^[ ]*((</)(VirtualHost)[^>]*(>))",
|
64
64
|
"endCaptures": {
|
65
65
|
"1": {
|
66
66
|
"name": "meta.tag.apache-config"
|
@@ -101,7 +101,7 @@
|
|
101
101
|
"name": "punctuation.definition.tag.apache-config"
|
102
102
|
}
|
103
103
|
},
|
104
|
-
"end": "^[ ]*((
|
104
|
+
"end": "^[ ]*((</)(Directory(?:Match)?)[^>]*(>))",
|
105
105
|
"endCaptures": {
|
106
106
|
"1": {
|
107
107
|
"name": "meta.tag.apache-config"
|
@@ -142,7 +142,7 @@
|
|
142
142
|
"name": "punctuation.definition.tag.apache-config"
|
143
143
|
}
|
144
144
|
},
|
145
|
-
"end": "^[ ]*((
|
145
|
+
"end": "^[ ]*((</)(Location(?:Match)?)[^>]*(>))",
|
146
146
|
"endCaptures": {
|
147
147
|
"1": {
|
148
148
|
"name": "meta.tag.apache-config"
|
@@ -302,7 +302,7 @@
|
|
302
302
|
]
|
303
303
|
},
|
304
304
|
{
|
305
|
-
"begin": "(
|
305
|
+
"begin": "(</?)([a-zA-Z]+)",
|
306
306
|
"captures": {
|
307
307
|
"1": {
|
308
308
|
"name": "punctuation.definition.tag.apache-config"
|
@@ -311,7 +311,7 @@
|
|
311
311
|
"name": "entity.name.tag.apache-config"
|
312
312
|
}
|
313
313
|
},
|
314
|
-
"end": "(
|
314
|
+
"end": "(/?>)",
|
315
315
|
"name": "meta.tag.apache-config"
|
316
316
|
}
|
317
317
|
],
|
@@ -106,7 +106,7 @@
|
|
106
106
|
"name": "punctuation.separator.continuation.line.applescript"
|
107
107
|
},
|
108
108
|
{
|
109
|
-
"match": "\\b((a )?(ref( to)|reference to)|(does not|doesn't) (come (before|after)|contain|equal)|(start|begin)s? with|comes (before|after)|is(n't| not)?( (in|contained by|(less than|greater than)( or equal( to)?)?|equal( to)?))?|ends? with|contains?|equals?|than|and|div|mod|not|or|as)\\b|(\u2260|\u2265|\u2264|>=|<=|\u00f7
|
109
|
+
"match": "\\b((a )?(ref( to)|reference to)|(does not|doesn't) (come (before|after)|contain|equal)|(start|begin)s? with|comes (before|after)|is(n't| not)?( (in|contained by|(less than|greater than)( or equal( to)?)?|equal( to)?))?|ends? with|contains?|equals?|than|and|div|mod|not|or|as)\\b|(\u2260|\u2265|\u2264|>=|<=|\u00f7|&|=|>|<|\\*|\\+|-|/|\\^)",
|
110
110
|
"name": "keyword.operator.applescript"
|
111
111
|
},
|
112
112
|
{
|
@@ -141,7 +141,7 @@
|
|
141
141
|
"name": "constant.other.text-styles.applescript"
|
142
142
|
},
|
143
143
|
{
|
144
|
-
"comment": "yes
|
144
|
+
"comment": "yes/no can\u2019t always be used as booleans, e.g. in an if() expression. But they work e.g. for boolean arguments.",
|
145
145
|
"match": "\\b(?i:true|false|yes|no)\\b",
|
146
146
|
"name": "constant.language.boolean.applescript"
|
147
147
|
},
|
@@ -154,7 +154,7 @@
|
|
154
154
|
"name": "constant.other.date-time.applescript"
|
155
155
|
},
|
156
156
|
{
|
157
|
-
"comment": "these are used in considering
|
157
|
+
"comment": "these are used in considering/ignoring statements",
|
158
158
|
"match": "\\b(?<=considering|ignoring) (application responses|current application|case|diacriticals|expansion|hyphens|punctuation|white space)\\b",
|
159
159
|
"name": "constant.other.considering-ignoring-attributes.applescript"
|
160
160
|
},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"comment": "Grammar based on description from http
|
2
|
+
"comment": "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\t\n\tTODO: Does not support @preamble\n\t",
|
3
3
|
"fileTypes": [
|
4
4
|
"bib"
|
5
5
|
],
|
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"y"
|
4
|
+
],
|
5
|
+
"name": "Bison",
|
6
|
+
"patterns": [
|
7
|
+
{
|
8
|
+
"begin": "^%\\{",
|
9
|
+
"contentName": "source.c",
|
10
|
+
"end": "%\\}",
|
11
|
+
"name": "meta.prologue.bison",
|
12
|
+
"patterns": [
|
13
|
+
{
|
14
|
+
"include": "source.c"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"begin": "^(?!%%$)",
|
20
|
+
"end": "^(?=%%$)",
|
21
|
+
"name": "meta.declarations.bison"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"begin": "^%%$",
|
25
|
+
"end": "$.^",
|
26
|
+
"patterns": [
|
27
|
+
{
|
28
|
+
"begin": "^(?!%%$)",
|
29
|
+
"contentName": "meta.rules.bison",
|
30
|
+
"end": "^(?=%%$)",
|
31
|
+
"patterns": [
|
32
|
+
{
|
33
|
+
"include": "source.c"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"begin": "^%%$",
|
39
|
+
"contentName": "meta.epilogue.bison",
|
40
|
+
"end": "$.^",
|
41
|
+
"patterns": [
|
42
|
+
{
|
43
|
+
"begin": "^",
|
44
|
+
"end": "$.^",
|
45
|
+
"name": "source.c",
|
46
|
+
"patterns": [
|
47
|
+
{
|
48
|
+
"include": "source.c"
|
49
|
+
}
|
50
|
+
]
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
]
|
55
|
+
}
|
56
|
+
],
|
57
|
+
"scopeName": "source.bison",
|
58
|
+
"uuid": "1AA6D027-D1AF-4868-951D-1634BD88D910"
|
59
|
+
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"blog.html"
|
4
4
|
],
|
5
5
|
"firstLineMatch": "^Type: Blog Post \\(HTML\\)",
|
6
|
-
"foldingStartMarker": "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*--\\s*>)\n\t\t|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|\\{\\s*($|\\?>\\s
|
7
|
-
"foldingStopMarker": "(?x)\n\t\t(
|
6
|
+
"foldingStartMarker": "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*--\\s*>)\n\t\t|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)",
|
7
|
+
"foldingStopMarker": "(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^(?!.*?<!--).*?--\\s*>\n\t\t|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|^[^{]*\\}\n\t\t)",
|
8
8
|
"keyEquivalent": "^~B",
|
9
9
|
"name": "Blog \u2014 HTML",
|
10
10
|
"patterns": [
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"blog.md"
|
7
7
|
],
|
8
8
|
"firstLineMatch": "^Type: Blog Post \\(Markdown\\)",
|
9
|
-
"foldingStartMarker": "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s
|
10
|
-
"foldingStopMarker": "(?x)\n\t\t(
|
9
|
+
"foldingStartMarker": "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)",
|
10
|
+
"foldingStopMarker": "(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)",
|
11
11
|
"keyEquivalent": "^~B",
|
12
12
|
"name": "Blog \u2014 Markdown",
|
13
13
|
"patterns": [
|
File without changes
|
File without changes
|
data/config/syntax/C++.json
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
"h++"
|
14
14
|
],
|
15
15
|
"firstLineMatch": "-\\*- C\\+\\+ -\\*-",
|
16
|
-
"foldingStartMarker": "(?x)\n\t\t
|
17
|
-
"foldingStopMarker": "(?<!\\*)
|
16
|
+
"foldingStartMarker": "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t",
|
17
|
+
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
18
18
|
"keyEquivalent": "^~C",
|
19
19
|
"name": "C++",
|
20
20
|
"patterns": [
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"name": "keyword.control.c++"
|
38
38
|
},
|
39
39
|
{
|
40
|
-
"match": "\\bdelete\\b(\\s*\\[\\])?|\\bnew\\b(
|
40
|
+
"match": "\\bdelete\\b(\\s*\\[\\])?|\\bnew\\b(?!])",
|
41
41
|
"name": "keyword.control.c++"
|
42
42
|
},
|
43
43
|
{
|
data/config/syntax/C.json
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
"h"
|
5
5
|
],
|
6
6
|
"firstLineMatch": "-[*]-( Mode:)? C -[*]-",
|
7
|
-
"foldingStartMarker": "(?x)\n\t\t
|
8
|
-
"foldingStopMarker": "(?<!\\*)
|
7
|
+
"foldingStartMarker": "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t",
|
8
|
+
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
9
9
|
"keyEquivalent": "^~C",
|
10
10
|
"name": "C",
|
11
11
|
"patterns": [
|
@@ -122,7 +122,7 @@
|
|
122
122
|
"name": "punctuation.definition.parameters.c"
|
123
123
|
}
|
124
124
|
},
|
125
|
-
"end": "(?=(
|
125
|
+
"end": "(?=(?://|/\\*))|$",
|
126
126
|
"name": "meta.preprocessor.macro.c",
|
127
127
|
"patterns": [
|
128
128
|
{
|
@@ -157,7 +157,7 @@
|
|
157
157
|
"name": "keyword.control.import.include.c"
|
158
158
|
}
|
159
159
|
},
|
160
|
-
"end": "(?=(
|
160
|
+
"end": "(?=(?://|/\\*))|$",
|
161
161
|
"name": "meta.preprocessor.c.include",
|
162
162
|
"patterns": [
|
163
163
|
{
|
@@ -206,7 +206,7 @@
|
|
206
206
|
"name": "keyword.control.import.c"
|
207
207
|
}
|
208
208
|
},
|
209
|
-
"end": "(?=(
|
209
|
+
"end": "(?=(?://|/\\*))|$",
|
210
210
|
"name": "meta.preprocessor.c",
|
211
211
|
"patterns": [
|
212
212
|
{
|
@@ -356,21 +356,21 @@
|
|
356
356
|
"name": "meta.toc-list.banner.block.c"
|
357
357
|
}
|
358
358
|
},
|
359
|
-
"match": "
|
359
|
+
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
360
360
|
"name": "comment.block.c"
|
361
361
|
},
|
362
362
|
{
|
363
|
-
"begin": "
|
363
|
+
"begin": "/\\*",
|
364
364
|
"captures": {
|
365
365
|
"0": {
|
366
366
|
"name": "punctuation.definition.comment.c"
|
367
367
|
}
|
368
368
|
},
|
369
|
-
"end": "
|
369
|
+
"end": "\\*/",
|
370
370
|
"name": "comment.block.c"
|
371
371
|
},
|
372
372
|
{
|
373
|
-
"match": "
|
373
|
+
"match": "\\*/.*\\n",
|
374
374
|
"name": "invalid.illegal.stray-comment-end.c"
|
375
375
|
},
|
376
376
|
{
|
@@ -379,11 +379,11 @@
|
|
379
379
|
"name": "meta.toc-list.banner.line.c"
|
380
380
|
}
|
381
381
|
},
|
382
|
-
"match": "
|
382
|
+
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
383
383
|
"name": "comment.line.banner.c++"
|
384
384
|
},
|
385
385
|
{
|
386
|
-
"begin": "
|
386
|
+
"begin": "//",
|
387
387
|
"beginCaptures": {
|
388
388
|
"0": {
|
389
389
|
"name": "punctuation.definition.comment.c"
|
@@ -627,7 +627,7 @@
|
|
627
627
|
]
|
628
628
|
},
|
629
629
|
"preprocessor-rule-other": {
|
630
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(
|
630
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
631
631
|
"captures": {
|
632
632
|
"1": {
|
633
633
|
"name": "meta.preprocessor.c"
|
@@ -644,7 +644,7 @@
|
|
644
644
|
]
|
645
645
|
},
|
646
646
|
"preprocessor-rule-other-block": {
|
647
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(
|
647
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
648
648
|
"captures": {
|
649
649
|
"1": {
|
650
650
|
"name": "meta.preprocessor.c"
|
@@ -0,0 +1,171 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"CMakeLists.txt",
|
4
|
+
"cmake"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
7
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~C",
|
9
|
+
"name": "CMake Listfile",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"begin": "(?i)^\\s*(function|macro)\\s*(\\()",
|
13
|
+
"beginCaptures": {
|
14
|
+
"1": {
|
15
|
+
"name": "support.function.cmake"
|
16
|
+
},
|
17
|
+
"2": {
|
18
|
+
"name": "punctuation.definition.parameters.begin.command.cmake"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"contentName": "meta.function-call.function.cmake",
|
22
|
+
"end": "(\\))",
|
23
|
+
"endCaptures": {
|
24
|
+
"1": {
|
25
|
+
"name": "punctuation.definition.parameters.end.command.cmake"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"name": "meta.function-call.command.cmake",
|
29
|
+
"patterns": [
|
30
|
+
{
|
31
|
+
"include": "#argument-constants"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"include": "#items"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"begin": "(?ix)\n\t\t\t^\\s*\t# Start of the line with optional preceding space\n\t\t\t(?:\t# Either a control flow keyword\n\t\t\t\t((?:end)?(?:if|while|foreach|else)|return)\n\t\t\t\t|\t# Or a function\n\t\t\t\t(s(?:tring|ite_name|ource_group|ubdir(?:s|_depends)|e(?:t(?:_(?:source_files_properties|t(?:ests_properties|arget_properties)|directory_properties|property))?|parate_arguments))|c(?:onfigure_file|reate_test_sourcelist|make(?:_(?:policy|minimum_required)| version 2.6-patch 0))|t(?:arget_link_libraries|ry_(?:compile|run))|i(?:n(?:stall(?:_(?:targets|programs|files))?|clude(?:_(?:directories|external_msproject|regular_expression))?)|f)|o(?:utput_required_files|ption)|define_property|u(?:se_mangled_mesa|tility_source)|project|e(?:n(?:d(?:if|f(?:oreach|unction)|while|macro)|able_(?:testing|language))|lse(?:if)?|x(?:port(?:_library_dependencies)?|ec(?:_program|ute_process)))|variable_(?:watch|requires)|qt_wrap_(?:cpp|ui)|f(?:i(?:nd_(?:p(?:a(?:ckage|th)|rogram)|file|library)|le)|oreach|unction|ltk_wrap_ui)|w(?:hile|rite_file)|l(?:i(?:st|nk_(?:directories|libraries))|oad_c(?:ommand|ache))|a(?:dd_(?:subdirectory|custom_(?:command|target)|test|de(?:pendencies|finitions)|executable|library)|ux_source_directory)|re(?:turn|move(?:_definitions)?)|get_(?:source_file_property|cmake_property|t(?:est_property|arget_property)|directory_property|property|filename_component)|m(?:essage|a(?:cro|th|ke_directory|rk_as_advanced))|b(?:uild_(?:name|command)|reak))\n\t\t\t\t|\t# Or some function we don\u2019t know about\n\t\t\t\t(\\w+)\n\t\t\t)\n\t\t\t\\s*(\\()\t# Finally, the opening parenthesis for the argument list\n\t\t\t",
|
40
|
+
"beginCaptures": {
|
41
|
+
"1": {
|
42
|
+
"name": "keyword.control.cmake"
|
43
|
+
},
|
44
|
+
"2": {
|
45
|
+
"name": "support.function.cmake"
|
46
|
+
},
|
47
|
+
"3": {
|
48
|
+
"name": "punctuation.definition.parameters.begin.command.cmake"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"comment": "The command list is simply generated with:\n\t\t\t\tcmake --help-command-list | ruby /Library/Application\\ Support/TextMate/Bundles/Objective-C.tmbundle/Support/list_to_regexp.rb | pbcopy",
|
52
|
+
"end": "(\\))",
|
53
|
+
"endCaptures": {
|
54
|
+
"1": {
|
55
|
+
"name": "punctuation.definition.parameters.end.command.cmake"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"name": "meta.function-call.command.cmake",
|
59
|
+
"patterns": [
|
60
|
+
{
|
61
|
+
"include": "#argument-constants"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"include": "#items"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"include": "#items"
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"repository": {
|
73
|
+
"argument-constants": {
|
74
|
+
"comment": "There is a script in bundle support for generating this list:\n\t\t\t\truby arg_separators.rb | /Library/Application\\ Support/TextMate/Bundles/Objective-C.tmbundle/Support/list_to_regexp.rb | pbcopy",
|
75
|
+
"match": "\\b(R(UN(_(RESULT_VAR|OUTPUT_VARIABLE)|TIME(_DIRECTORY)?)|E(G(ULAR_EXPRESSION|EX)|MOVE(_(RECURSE|ITEM|DUPLICATES|AT))?|S(OURCE|ULT_VAR(IABLE)?)|NAME|TURN_VALUE|PLACE|VERSE|QUIRED(_VARIABLE)?|LATIVE(_PATH)?|AD(_WITH_PREFIX)?)|AN(GE|DOM))|G(R(OUP_(READ|EXECUTE)|EATER)|ET|LOB(_RECURSE|AL)?)|M(ODULE|ESSAGE|A(COSX_BUNDLE|TCH(ES|ALL)?|IN_DEPENDENCY|KE_DIRECTORY))|B(RIEF_DOCS|UNDLE|EFORE)|S(HARED|YSTEM|CRIPT|T(R(GREATER|I(NGS|P)|EQUAL|LESS)|AT(IC|US))|O(RT|URCE)|UBSTRING|E(ND_ERROR|T))|HEX|N(NNN|O(_(MODULE|SYSTEM_ENVIRONMENT_PATH|HEX_CONVERSION|CMAKE_(BUILDS_PATH|SYSTEM_PATH|PATH|ENVIRONMENT_PATH|FIND_ROOT_PATH)|DEFAULT_PATH)|T(E(QUAL)?)?)|EW(LINE_CONSUME)?|AME(S(PACE)?|_WE|LINK_(SKIP|ONLY))?)|C(XX|M(P|AKE_(CROSSCOMPILING|F(IND_ROOT_PATH_BOTH|LAGS)))?|O(M(M(ENT|AND(_NAME)?)|P(ILE_(RESULT_VAR|OUTPUT_VARIABLE|DEFINITIONS)|ONENT(S)?|ARE))|NFIG(S|UR(E(_FILE)?|ATIONS))|DE|PY(_FILE|ONLY))|VS|LEAR|ACHE(D_VARIABLE)?)|T(IMEOUT|O(_(NATIVE_PATH|CMAKE_PATH)|UPPER|LOWER)|EST(_VARIABLE)?|ARGET(S)?)|I(MP(ORTED|LICIT_DEPENDS)|S_(NEWER_THAN|DIRECTORY|ABSOLUTE)|N(SERT|HERITED|CLUDE_(INTERNALS|DIRECTORIES)|PUT_FILE))|O(R|NLY(_CMAKE_FIND_ROOT_PATH)?|UTPUT(_(STRIP_TRAILING_WHITESPACE|DIRECTORY|VARIABLE|QUIET|FILE))?|PTIONAL|FFSET|WNER_(READ|EXECUTE|WRITE)|LD)|D(BAR|IRECTORY(_PERMISSIONS)?|O(C|WNLOAD)|E(STINATION|PENDS|FINED)|FOO)|USE_SOURCE_PERMISSIONS|P(R(IVATE_HEADER|O(GRAM(S|_ARGS)?|PERT(Y|IES))|E(_(BUILD|LINK)|ORDER))|O(ST_BUILD|P|LICY)|U(BLIC_HEADER|SH)|ERMISSIONS|A(RENT_SCOPE|T(H(S|_(SUFFIXES|TO_MESA))?|TERN)))|E(RROR_(STRIP_TRAILING_WHITESPACE|VARIABLE|QUIET|FILE)|X(CLUDE(_FROM_ALL)?|T(RA_INCLUDE)?|ISTS|P(R|ORT)|ACT)|SCAPE_QUOTES|NV|QUAL)|V(ER(BATIM|SION)|A(R(IABLE)?|LUE))|QUIET|F(RAMEWORK|I(ND|LE(S(_MATCHING)?|_PERMISSIONS)?)|ORCE|U(NCTION|LL_DOCS)|ATAL_ERROR)|W(RITE|IN|ORKING_DIRECTORY)|L(I(MIT(_(COUNT|INPUT|OUTPUT))?|BRARY|NK_(INTERFACE_LIBRARIES|DIRECTORIES|LIBRARIES))|OG|E(SS|NGTH(_M(INIMUM|AXIMUM))?))|A(R(GS|CHIVE)|BSOLUTE|SCII|ND|PPEND|FTER|L(PHABET|L)))\\b",
|
76
|
+
"name": "keyword.other.argument-separator.cmake"
|
77
|
+
},
|
78
|
+
"comments": {
|
79
|
+
"captures": {
|
80
|
+
"1": {
|
81
|
+
"name": "punctuation.definition.comment.cmake"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"match": "(#).*$\\n?",
|
85
|
+
"name": "comment.line.number-sign.cmake"
|
86
|
+
},
|
87
|
+
"constants": {
|
88
|
+
"match": "(?i)\\b(FALSE|OFF|NO|(\\w+-)?NOTFOUND)\\b",
|
89
|
+
"name": "constant.language.boolean.cmake"
|
90
|
+
},
|
91
|
+
"escapes": {
|
92
|
+
"patterns": [
|
93
|
+
{
|
94
|
+
"match": "\\\\[\"()#$^ \\\\]",
|
95
|
+
"name": "constant.character.escape.cmake"
|
96
|
+
}
|
97
|
+
]
|
98
|
+
},
|
99
|
+
"items": {
|
100
|
+
"patterns": [
|
101
|
+
{
|
102
|
+
"include": "#comments"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"include": "#constants"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"include": "#strings"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"include": "#variables"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"include": "#escapes"
|
115
|
+
}
|
116
|
+
]
|
117
|
+
},
|
118
|
+
"strings": {
|
119
|
+
"patterns": [
|
120
|
+
{
|
121
|
+
"captures": {
|
122
|
+
"1": {
|
123
|
+
"name": "constant.language.boolean.cmake"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"match": "(?i)\"(FALSE|OFF|NO|(.+-)?NOTFOUND)\"",
|
127
|
+
"name": "string.quoted.double.cmake"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"begin": "\"",
|
131
|
+
"end": "\"",
|
132
|
+
"name": "string.quoted.double.cmake",
|
133
|
+
"patterns": [
|
134
|
+
{
|
135
|
+
"match": "\\\\.",
|
136
|
+
"name": "constant.character.escape.cmake"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"include": "#variables"
|
140
|
+
}
|
141
|
+
]
|
142
|
+
}
|
143
|
+
]
|
144
|
+
},
|
145
|
+
"variables": {
|
146
|
+
"begin": "\\$(ENV)?\\{",
|
147
|
+
"beginCaptures": {
|
148
|
+
"0": {
|
149
|
+
"name": "punctuation.definition.variable.begin.cmake"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"end": "\\}",
|
153
|
+
"endCaptures": {
|
154
|
+
"0": {
|
155
|
+
"name": "punctuation.definition.variable.end.cmake"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"name": "variable.cmake",
|
159
|
+
"patterns": [
|
160
|
+
{
|
161
|
+
"include": "#variables"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"match": "\\w+"
|
165
|
+
}
|
166
|
+
]
|
167
|
+
}
|
168
|
+
},
|
169
|
+
"scopeName": "source.cmake",
|
170
|
+
"uuid": "6E939107-5C78-455D-A7E6-1107ADC777C2"
|
171
|
+
}
|