code_rippa 0.0.7 → 1.0.0

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.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +36 -0
  3. data/LICENSE +2 -2
  4. data/README.md +18 -1
  5. data/bin/code_rippa +15 -16
  6. data/code_rippa.gemspec +12 -10
  7. data/lib/code_rippa.rb +69 -51
  8. data/lib/code_rippa/syntax/actionscript.syntax +52 -52
  9. data/lib/code_rippa/syntax/active4d.syntax +226 -180
  10. data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
  11. data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
  12. data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
  13. data/lib/code_rippa/syntax/ada.syntax +19 -18
  14. data/lib/code_rippa/syntax/antlr.syntax +85 -85
  15. data/lib/code_rippa/syntax/apache.syntax +103 -109
  16. data/lib/code_rippa/syntax/applescript.syntax +244 -229
  17. data/lib/code_rippa/syntax/asp.syntax +41 -36
  18. data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
  19. data/lib/code_rippa/syntax/bibtex.syntax +88 -90
  20. data/lib/code_rippa/syntax/blog_html.syntax +17 -29
  21. data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
  22. data/lib/code_rippa/syntax/blog_text.syntax +15 -15
  23. data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
  24. data/lib/code_rippa/syntax/build.syntax +27 -27
  25. data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
  26. data/lib/code_rippa/syntax/c.syntax +31 -34
  27. data/lib/code_rippa/syntax/cake.syntax +27 -27
  28. data/lib/code_rippa/syntax/camlp4.syntax +23 -23
  29. data/lib/code_rippa/syntax/cm.syntax +19 -18
  30. data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
  31. data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
  32. data/lib/code_rippa/syntax/context_free.syntax +106 -106
  33. data/lib/code_rippa/syntax/cs.syntax +31 -34
  34. data/lib/code_rippa/syntax/css.syntax +112 -112
  35. data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
  36. data/lib/code_rippa/syntax/csv.syntax +40 -44
  37. data/lib/code_rippa/syntax/d.syntax +80 -84
  38. data/lib/code_rippa/syntax/diff.syntax +46 -45
  39. data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
  40. data/lib/code_rippa/syntax/dot.syntax +26 -26
  41. data/lib/code_rippa/syntax/doxygen.syntax +26 -26
  42. data/lib/code_rippa/syntax/dylan.syntax +35 -35
  43. data/lib/code_rippa/syntax/eiffel.syntax +39 -42
  44. data/lib/code_rippa/syntax/erlang.syntax +514 -511
  45. data/lib/code_rippa/syntax/f-script.syntax +44 -44
  46. data/lib/code_rippa/syntax/fortran.syntax +80 -76
  47. data/lib/code_rippa/syntax/fxscript.syntax +78 -77
  48. data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
  49. data/lib/code_rippa/syntax/gri.syntax +47 -47
  50. data/lib/code_rippa/syntax/groovy.syntax +105 -114
  51. data/lib/code_rippa/syntax/gtd.syntax +10 -10
  52. data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
  53. data/lib/code_rippa/syntax/haml.syntax +50 -50
  54. data/lib/code_rippa/syntax/haskell.syntax +47 -47
  55. data/lib/code_rippa/syntax/html-asp.syntax +15 -15
  56. data/lib/code_rippa/syntax/html_django.syntax +15 -14
  57. data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
  58. data/lib/code_rippa/syntax/html_mason.syntax +75 -74
  59. data/lib/code_rippa/syntax/html_rails.syntax +17 -27
  60. data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
  61. data/lib/code_rippa/syntax/icalendar.syntax +15 -15
  62. data/lib/code_rippa/syntax/inform.syntax +26 -26
  63. data/lib/code_rippa/syntax/ini.syntax +30 -30
  64. data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
  65. data/lib/code_rippa/syntax/io.syntax +49 -46
  66. data/lib/code_rippa/syntax/java.syntax +117 -126
  67. data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
  68. data/lib/code_rippa/syntax/javascript.syntax +141 -141
  69. data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
  70. data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
  71. data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
  72. data/lib/code_rippa/syntax/json.syntax +39 -39
  73. data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
  74. data/lib/code_rippa/syntax/lexflex.syntax +136 -136
  75. data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
  76. data/lib/code_rippa/syntax/lilypond.syntax +246 -337
  77. data/lib/code_rippa/syntax/lisp.syntax +32 -32
  78. data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
  79. data/lib/code_rippa/syntax/logo.syntax +13 -14
  80. data/lib/code_rippa/syntax/logtalk.syntax +81 -81
  81. data/lib/code_rippa/syntax/lua.syntax +50 -48
  82. data/lib/code_rippa/syntax/m.syntax +78 -78
  83. data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
  84. data/lib/code_rippa/syntax/makefile.syntax +19 -19
  85. data/lib/code_rippa/syntax/man.syntax +9 -9
  86. data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
  87. data/lib/code_rippa/syntax/mips.syntax +34 -34
  88. data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
  89. data/lib/code_rippa/syntax/modula-3.syntax +24 -24
  90. data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
  91. data/lib/code_rippa/syntax/mootools.syntax +283 -300
  92. data/lib/code_rippa/syntax/movable_type.syntax +91 -90
  93. data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
  94. data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
  95. data/lib/code_rippa/syntax/objective-c.syntax +134 -138
  96. data/lib/code_rippa/syntax/ocaml.syntax +455 -453
  97. data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
  98. data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
  99. data/lib/code_rippa/syntax/opengl.syntax +6 -6
  100. data/lib/code_rippa/syntax/pascal.syntax +43 -42
  101. data/lib/code_rippa/syntax/perl.syntax +612 -615
  102. data/lib/code_rippa/syntax/plain_text.syntax +17 -20
  103. data/lib/code_rippa/syntax/postscript.syntax +71 -69
  104. data/lib/code_rippa/syntax/processing.syntax +60 -60
  105. data/lib/code_rippa/syntax/prolog.syntax +17 -20
  106. data/lib/code_rippa/syntax/property_list.syntax +338 -359
  107. data/lib/code_rippa/syntax/python.syntax +487 -509
  108. data/lib/code_rippa/syntax/python_django.syntax +9 -10
  109. data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
  110. data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
  111. data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
  112. data/lib/code_rippa/syntax/r.syntax +42 -42
  113. data/lib/code_rippa/syntax/r_console.syntax +7 -8
  114. data/lib/code_rippa/syntax/ragel.syntax +109 -115
  115. data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
  116. data/lib/code_rippa/syntax/regexp.syntax +26 -26
  117. data/lib/code_rippa/syntax/release_notes.syntax +46 -26
  118. data/lib/code_rippa/syntax/remind.syntax +146 -146
  119. data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
  120. data/lib/code_rippa/syntax/rez.syntax +46 -45
  121. data/lib/code_rippa/syntax/ruby.syntax +533 -601
  122. data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
  123. data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
  124. data/lib/code_rippa/syntax/s5.syntax +35 -51
  125. data/lib/code_rippa/syntax/scheme.syntax +162 -260
  126. data/lib/code_rippa/syntax/scilab.syntax +18 -18
  127. data/lib/code_rippa/syntax/setext.syntax +82 -82
  128. data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
  129. data/lib/code_rippa/syntax/slate.syntax +91 -91
  130. data/lib/code_rippa/syntax/sql.syntax +137 -139
  131. data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
  132. data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
  133. data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
  134. data/lib/code_rippa/syntax/strings_file.syntax +20 -23
  135. data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
  136. data/lib/code_rippa/syntax/sweave.syntax +45 -45
  137. data/lib/code_rippa/syntax/swig.syntax +34 -33
  138. data/lib/code_rippa/syntax/tcl.syntax +87 -86
  139. data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
  140. data/lib/code_rippa/syntax/textile.syntax +111 -145
  141. data/lib/code_rippa/syntax/tsv.syntax +31 -33
  142. data/lib/code_rippa/syntax/twiki.syntax +141 -141
  143. data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
  144. data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
  145. data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
  146. data/lib/code_rippa/syntax/xml.syntax +95 -95
  147. data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
  148. data/lib/code_rippa/syntax/xsl.syntax +31 -31
  149. data/lib/code_rippa/syntax/yaml.syntax +86 -86
  150. data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
  151. data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
  152. data/lib/code_rippa/version.rb +2 -2
  153. data/test/fixtures/hello.rb +5 -3
  154. data/test/test_private_methods.rb +40 -40
  155. data/test/test_public_methods.rb +9 -18
  156. metadata +61 -63
@@ -1,18 +1,18 @@
1
- ---
1
+ ---
2
2
  name: SQL (Rails)
3
- fileTypes:
3
+ fileTypes:
4
4
  - erbsql
5
5
  scopeName: source.sql.ruby
6
6
  uuid: D54FBDED-5481-4CC7-B75F-66465A499882
7
- foldingStartMarker: \s*\(\s*$
8
- patterns:
7
+ foldingStartMarker: "\\s*\\(\\s*$"
8
+ patterns:
9
9
  - name: source.ruby.rails.embedded.sql
10
- begin: <%+(?!>)=?
10
+ begin: "<%+(?!>)=?"
11
11
  end: "%>"
12
- patterns:
12
+ patterns:
13
13
  - name: comment.line.number-sign.ruby
14
14
  match: "#.*?(?=%>)"
15
15
  - include: source.ruby.rails
16
16
  - include: source.sql
17
- foldingStopMarker: ^\s*\)
18
- keyEquivalent: ^~R
17
+ foldingStopMarker: "^\\s*\\)"
18
+ keyEquivalent: "^~R"
@@ -1,33 +1,33 @@
1
- ---
1
+ ---
2
2
  name: SSH Config
3
- fileTypes:
3
+ fileTypes:
4
4
  - ssh_config
5
5
  - config
6
6
  - sshd_config
7
7
  scopeName: source.ssh-config
8
8
  uuid: B273855C-59D3-4DF3-9B7C-E68E0057D315
9
- patterns:
9
+ patterns:
10
10
  - name: keyword.other.ssh-config
11
- match: \b(AddressFamily|B(atchMode|indAddress)|C(hallengeResponseAuthentication|heckHostIP|iphers?|learAllForwardings|ompression(Level)?|onnect(Timeout|ionAttempts))|DynamicForward|E(nableSSHKeysign|scapeChar)|Forward(Agent|X11(Trusted)?)|G(SSAPI(Authentication|DelegateCredentials)|atewayPorts|lobalKnownHostsFile)|Host(KeyAlgorithms|KeyAlias|Name|basedAuthentication)|Identit(iesOnly|yFile)|L(ocalForward|ogLevel)|MACs|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(asswordAuthentication|ort|referredAuthentications|rotocol|roxyCommand|ubkeyAuthentication)|R(SAAuthentication|emoteForward|hostsRSAAuthentication)|S(erverAliveCountMax|erverAliveInterval|martcardDevice|trictHostKeyChecking)|TCPKeepAlive|U(sePrivilegedPort|ser(KnownHostsFile)?)|VerifyHostKeyDNS|XAuthLocation)\b
12
- - captures:
13
- "1":
11
+ match: "\\b(AddressFamily|B(atchMode|indAddress)|C(hallengeResponseAuthentication|heckHostIP|iphers?|learAllForwardings|ompression(Level)?|onnect(Timeout|ionAttempts))|DynamicForward|E(nableSSHKeysign|scapeChar)|Forward(Agent|X11(Trusted)?)|G(SSAPI(Authentication|DelegateCredentials)|atewayPorts|lobalKnownHostsFile)|Host(KeyAlgorithms|KeyAlias|Name|basedAuthentication)|Identit(iesOnly|yFile)|L(ocalForward|ogLevel)|MACs|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(asswordAuthentication|ort|referredAuthentications|rotocol|roxyCommand|ubkeyAuthentication)|R(SAAuthentication|emoteForward|hostsRSAAuthentication)|S(erverAliveCountMax|erverAliveInterval|martcardDevice|trictHostKeyChecking)|TCPKeepAlive|U(sePrivilegedPort|ser(KnownHostsFile)?)|VerifyHostKeyDNS|XAuthLocation)\\b"
12
+ - captures:
13
+ '1':
14
14
  name: comment.line.number-sign.ssh-config
15
- "2":
15
+ '2':
16
16
  name: punctuation.definition.comment.ssh-config
17
- "3":
17
+ '3':
18
18
  name: comment.line.double-slash.ssh-config
19
- "4":
19
+ '4':
20
20
  name: punctuation.definition.comment.ssh-config
21
- match: ((#).*$\n?)|((//).*$\n?)
22
- - captures:
23
- "1":
21
+ match: "((#).*$\\n?)|((//).*$\\n?)"
22
+ - captures:
23
+ '1':
24
24
  name: storage.type.ssh-config
25
- "2":
25
+ '2':
26
26
  name: entity.name.section.ssh-config
27
- "3":
27
+ '3':
28
28
  name: meta.toc-list.ssh-config
29
- match: (?:^| |\t)(Host)\s+((.*))$
29
+ match: "(?:^| |\\t)(Host)\\s+((.*))$"
30
30
  - name: constant.numeric.ssh-config
31
- match: \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
31
+ match: "\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b"
32
32
  - name: constant.numeric.ssh-config
33
- match: \b[0-9]+\b
33
+ match: "\\b[0-9]+\\b"
@@ -1,121 +1,119 @@
1
- ---
1
+ ---
2
2
  name: Standard ML
3
- fileTypes:
3
+ fileTypes:
4
4
  - sml
5
5
  - sig
6
6
  scopeName: source.ml
7
- repository:
8
- spec:
9
- patterns:
7
+ repository:
8
+ spec:
9
+ patterns:
10
10
  - name: meta.spec.ml.type
11
- captures:
12
- "1":
11
+ captures:
12
+ '1':
13
13
  name: keyword.other.ml
14
- match: \b(type)\b
14
+ match: "\\b(type)\\b"
15
15
  - name: meta.spec.ml.datatype
16
- captures:
17
- "1":
16
+ captures:
17
+ '1':
18
18
  name: keyword.other.ml
19
- match: \b(datatype)\b
19
+ match: "\\b(datatype)\\b"
20
20
  - name: meta.spec.ml.val
21
- captures:
22
- "1":
21
+ captures:
22
+ '1':
23
23
  name: keyword.other.ml
24
24
  match: "\\b(val)\\s*\\w+:"
25
25
  - name: meta.spec.ml.structure
26
- captures:
27
- "1":
26
+ captures:
27
+ '1':
28
28
  name: keyword.other.ml
29
29
  match: "\\b(structure)\\s*\\w+:"
30
30
  - name: meta.spec.ml.include
31
- captures:
32
- "1":
31
+ captures:
32
+ '1':
33
33
  name: keyword.other.ml
34
- match: \b(include)\b
34
+ match: "\\b(include)\\b"
35
35
  uuid: 9B148AEA-F723-4EDE-8B7F-2F4FD730BC3A
36
- foldingStartMarker: \(\*|\b(struct|sig)\b
37
- patterns:
36
+ foldingStartMarker: "\\(\\*|\\b(struct|sig)\\b"
37
+ patterns:
38
38
  - name: comment.block.ml
39
- captures:
40
- "0":
39
+ captures:
40
+ '0':
41
41
  name: punctuation.definition.comment.ml
42
- begin: \(\*
43
- end: \*\)
42
+ begin: "\\(\\*"
43
+ end: "\\*\\)"
44
44
  - name: keyword.other.ml
45
- match: \b(val|datatype|struct|as|let|in|abstype|local|where|case|of|fn|raise|exception|handle|ref|infix)\b
45
+ match: "\\b(val|datatype|struct|as|let|in|abstype|local|where|case|of|fn|raise|exception|handle|ref|infix)\\b"
46
46
  - name: meta.module.sigdec.ml
47
- captures:
48
- "1":
47
+ captures:
48
+ '1':
49
49
  name: keyword.other.delimiter.ml
50
- "2":
50
+ '2':
51
51
  name: keyword.other.delimiter.ml
52
- begin: \b(sig)\b
53
- end: \b(end)\b
54
- patterns:
52
+ begin: "\\b(sig)\\b"
53
+ end: "\\b(end)\\b"
54
+ patterns:
55
55
  - include: "#spec"
56
56
  - name: keyword.control.ml
57
- match: \b(if|then|else)\b
57
+ match: "\\b(if|then|else)\\b"
58
58
  - name: meta.definition.fun.ml
59
- captures:
60
- "1":
59
+ captures:
60
+ '1':
61
61
  name: keyword.control.fun.ml
62
- "2":
62
+ '2':
63
63
  name: entity.name.function.ml
64
- match: \b(fun|and)\s+([\w']+)\b
64
+ match: "\\b(fun|and)\\s+([\\w']+)\\b"
65
65
  - name: string.quoted.double.ml
66
- endCaptures:
67
- "0":
66
+ endCaptures:
67
+ '0':
68
68
  name: punctuation.definition.string.end.ml
69
69
  begin: "\""
70
- beginCaptures:
71
- "0":
70
+ beginCaptures:
71
+ '0':
72
72
  name: punctuation.definition.string.begin.ml
73
73
  end: "\""
74
- patterns:
74
+ patterns:
75
75
  - name: constant.character.escape.ml
76
- match: \\.
76
+ match: "\\\\."
77
77
  - name: constant.character.ml
78
- captures:
79
- "1":
78
+ captures:
79
+ '1':
80
80
  name: punctuation.definition.constant.ml
81
- "3":
81
+ '3':
82
82
  name: punctuation.definition.constant.ml
83
- match: (#")(\\)?.(")
83
+ match: "(#\")(\\\\)?.(\")"
84
84
  - name: constant.numeric.ml
85
- match: \b\d*\.?\d+\b
85
+ match: "\\b\\d*\\.?\\d+\\b"
86
86
  - name: keyword.operator.logical.ml
87
- match: \b(andalso|orelse|not)\b
87
+ match: "\\b(andalso|orelse|not)\\b"
88
88
  - name: meta.module.dec.ml
89
- captures:
90
- "1":
89
+ captures:
90
+ '1':
91
91
  name: storage.type.module.binder.ml
92
- "2":
92
+ '2':
93
93
  name: entity.name.type.module.ml
94
- begin: |-
95
- (?x)\b
96
- (functor|structure|signature|funsig)\s+
97
- (\w+)\s* # identifier
98
- end: (?==|:)
94
+ begin: "(?x)\\b\n\t\t\t\t\t(functor|structure|signature|funsig)\\s+\n\t\t\t\t\t(\\w+)\\s*
95
+ # identifier"
96
+ end: "(?==|:)"
99
97
  - name: keyword.other.module.ml
100
- match: \b(open)\b
98
+ match: "\\b(open)\\b"
101
99
  - name: constant.language.ml
102
- match: \b(nil|true|false|NONE|SOME)\b
100
+ match: "\\b(nil|true|false|NONE|SOME)\\b"
103
101
  - name: meta.typeabbrev.ml
104
- captures:
105
- "1":
102
+ captures:
103
+ '1':
106
104
  name: keyword.other.typeabbrev.ml
107
- "2":
105
+ '2':
108
106
  name: variable.other.typename.ml
109
- begin: ^\s*(type|eqtype) .* =
110
- end: $
111
- patterns:
107
+ begin: "^\\s*(type|eqtype) .* ="
108
+ end: "$"
109
+ patterns:
112
110
  - name: meta.typeexp.ml
113
- match: (([a-zA-Z0-9\.\* ]|(\->))*)
111
+ match: "(([a-zA-Z0-9\\.\\* ]|(\\->))*)"
114
112
  - name: meta.type.ascription.ml
115
- captures:
116
- "2":
113
+ captures:
114
+ '2':
117
115
  name: constant.other.type.ml
118
116
  match: "[^:](:)\\s*(([a-zA-Z0-9\\.\\*\\_ ]|(\\->))*)"
119
117
  comment: type annotation/ascription
120
- foldingStopMarker: \*\)|\bend\b
121
- keyEquivalent: ^~S
118
+ foldingStopMarker: "\\*\\)|\\bend\\b"
119
+ keyEquivalent: "^~S"
@@ -1,39 +1,36 @@
1
- ---
1
+ ---
2
2
  name: Strings File
3
- fileTypes:
3
+ fileTypes:
4
4
  - strings
5
5
  scopeName: source.strings
6
6
  uuid: 429E2DB7-EB4F-4B34-A4DF-DBFD3336C581
7
- patterns:
7
+ patterns:
8
8
  - name: comment.block.strings
9
- captures:
10
- "0":
9
+ captures:
10
+ '0':
11
11
  name: punctuation.definition.comment.strings
12
- begin: /\*
13
- end: \*/
12
+ begin: "/\\*"
13
+ end: "\\*/"
14
14
  - name: string.quoted.double.strings
15
- endCaptures:
16
- "0":
15
+ endCaptures:
16
+ '0':
17
17
  name: punctuation.definition.string.end.strings
18
18
  begin: "\""
19
- beginCaptures:
20
- "0":
19
+ beginCaptures:
20
+ '0':
21
21
  name: punctuation.definition.string.begin.strings
22
22
  end: "\""
23
- patterns:
23
+ patterns:
24
24
  - name: constant.character.escape.strings
25
- match: \\(\\|[abefnrtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-zA-Z0-9]+)
25
+ match: "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-zA-Z0-9]+)"
26
26
  - name: invalid.illegal.unknown-escape.strings
27
- match: \\.
27
+ match: "\\\\."
28
28
  - name: constant.other.placeholder.strings
29
- match: "(?x)%\n\
30
- \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\
31
- \t\t\t\t\t\t[#0\\- +']* # flags\n\
32
- \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\
33
- \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\
34
- \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\
35
- \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\
36
- \t\t\t\t\t\t[@diouxXDOUeEfFgGaACcSspn%] # conversion type\n\
37
- \t\t\t\t\t"
29
+ match: "(?x)%\n\t\t\t\t\t\t(\\d+\\$)? # field (argument
30
+ #)\n\t\t\t\t\t\t[#0\\- +']* # flags\n\t\t\t\t\t\t[,;:_]?
31
+ \ # separator character (AltiVec)\n\t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)?
32
+ \ # minimum field width\n\t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?
33
+ \ # precision\n\t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length
34
+ modifier\n\t\t\t\t\t\t[@diouxXDOUeEfFgGaACcSspn%] # conversion type\n\t\t\t\t\t"
38
35
  - name: invalid.illegal.placeholder.c
39
36
  match: "%"
@@ -1,36 +1,36 @@
1
- ---
1
+ ---
2
2
  name: svn-commit.tmp
3
- fileTypes:
3
+ fileTypes:
4
4
  - svn-commit.tmp
5
5
  - svn-commit.2.tmp
6
6
  scopeName: text.subversion-commit
7
7
  uuid: 5B201F55-90BC-4A69-9A44-1BABE5A9FE99
8
- patterns:
8
+ patterns:
9
9
  - name: meta.bullet-point.strong
10
- captures:
11
- "1":
10
+ captures:
11
+ '1':
12
12
  name: punctuation.definition.item.subversion-commit
13
- match: "^\\s*(\xE2\x80\xA2).*$\\n?"
13
+ match: "^\\s*().*$\\n?"
14
14
  - name: meta.bullet-point.light
15
- captures:
16
- "1":
15
+ captures:
16
+ '1':
17
17
  name: punctuation.definition.item.subversion-commit
18
- match: "^\\s*(\xC2\xB7).*$\\n?"
18
+ match: "^\\s*(·).*$\\n?"
19
19
  - name: meta.bullet-point.star
20
- captures:
21
- "1":
20
+ captures:
21
+ '1':
22
22
  name: punctuation.definition.item.subversion-commit
23
- match: ^\s*(\*).*$\n?
23
+ match: "^\\s*(\\*).*$\\n?"
24
24
  - name: meta.scope.changed-files.svn
25
- begin: (^--This line, and those below, will be ignored--$\n?)
26
- beginCaptures:
27
- "1":
25
+ begin: "(^--This line, and those below, will be ignored--$\\n?)"
26
+ beginCaptures:
27
+ '1':
28
28
  name: meta.separator.svn
29
- end: ^--not gonna happen--$
30
- patterns:
29
+ end: "^--not gonna happen--$"
30
+ patterns:
31
31
  - name: markup.inserted.svn
32
- match: ^A\s+.*$\n?
32
+ match: "^A\\s+.*$\\n?"
33
33
  - name: markup.changed.svn
34
- match: ^(M|.M)\s+.*$\n?
34
+ match: "^(M|.M)\\s+.*$\\n?"
35
35
  - name: markup.deleted.svn
36
- match: ^D\s+.*$\n?
36
+ match: "^D\\s+.*$\\n?"
@@ -1,84 +1,84 @@
1
- ---
1
+ ---
2
2
  name: SWeave
3
- fileTypes:
3
+ fileTypes:
4
4
  - Snw
5
5
  - Rnw
6
6
  - snw
7
7
  - rnw
8
- firstLineMatch: ^\\documentclass(?!.*\{beamer\})|^<<(.?*)>>=$
8
+ firstLineMatch: "^\\\\documentclass(?!.*\\{beamer\\})|^<<(.?*)>>=$"
9
9
  scopeName: text.tex.latex.sweave
10
10
  uuid: 1F450973-8259-4BA2-A754-48C634561A13
11
- foldingStartMarker: ^<<(.?*)>>=|\\begin\{.*\}
12
- patterns:
11
+ foldingStartMarker: "^<<(.?*)>>=|\\\\begin\\{.*\\}"
12
+ patterns:
13
13
  - name: meta.block.parameters.sweave
14
- endCaptures:
15
- "1":
14
+ endCaptures:
15
+ '1':
16
16
  name: punctuation.definition.parameters.end.sweave
17
- begin: ^(<<)
18
- beginCaptures:
19
- "1":
17
+ begin: "^(<<)"
18
+ beginCaptures:
19
+ '1':
20
20
  name: punctuation.definition.parameters.begin.sweave
21
- end: (>>)(?==)
22
- patterns:
21
+ end: "(>>)(?==)"
22
+ patterns:
23
23
  - name: meta.parameter.sweave
24
- captures:
25
- "1":
24
+ captures:
25
+ '1':
26
26
  name: keyword.other.name-of-parameter.sweave
27
- "2":
27
+ '2':
28
28
  name: punctuation.separator.key-value.sweave
29
- "3":
29
+ '3':
30
30
  name: constant.language.boolean.sweave
31
- "4":
31
+ '4':
32
32
  name: constant.language.results.sweave
33
- "5":
33
+ '5':
34
34
  name: string.unquoted.label.sweave
35
- match: (\w+)(=)(?:(true|false)|(verbatim|tex|hide)|([\w.]+))
35
+ match: "(\\w+)(=)(?:(true|false)|(verbatim|tex|hide)|([\\w.]+))"
36
36
  - name: string.unquoted.label.sweave
37
37
  match: "[\\w.]+"
38
38
  - name: punctuation.separator.parameters.sweave
39
39
  match: ","
40
40
  - name: meta.block.code.sweave
41
- endCaptures:
42
- "1":
41
+ endCaptures:
42
+ '1':
43
43
  name: punctuation.section.embedded.end.sweave
44
- "2":
44
+ '2':
45
45
  name: comment.line.other.sweave
46
- begin: (?<=>>)(=)(.*)\n
46
+ begin: "(?<=>>)(=)(.*)\\n"
47
47
  contentName: source.r.embedded.sweave
48
- beginCaptures:
49
- "1":
48
+ beginCaptures:
49
+ '1':
50
50
  name: punctuation.section.embedded.begin.sweave
51
- "2":
51
+ '2':
52
52
  name: comment.line.other.sweave
53
- end: ^(@)(.*)$
54
- patterns:
53
+ end: "^(@)(.*)$"
54
+ patterns:
55
55
  - name: invalid.illegal.sweave
56
- match: ^\s+@.*\n?
56
+ match: "^\\s+@.*\\n?"
57
57
  - include: source.r
58
58
  - name: invalid.illegal.sweave
59
- match: ^\s+<<.*\n?
59
+ match: "^\\s+<<.*\\n?"
60
60
  - name: meta.block.source.r
61
- captures:
62
- "1":
61
+ captures:
62
+ '1':
63
63
  name: punctuation.definition.arguments.begin.latex
64
- "2":
64
+ '2':
65
65
  name: punctuation.definition.arguments.end.latex
66
- begin: ^\\begin(\{)Scode(\})
66
+ begin: "^\\\\begin(\\{)Scode(\\})"
67
67
  contentName: source.r.embedded.sweave
68
- end: ^\\end(\{)Scode(\})
69
- patterns:
68
+ end: "^\\\\end(\\{)Scode(\\})"
69
+ patterns:
70
70
  - include: source.r
71
71
  - name: source.r.embedded.sweave
72
- endCaptures:
73
- "1":
72
+ endCaptures:
73
+ '1':
74
74
  name: punctuation.definition.arguments.end.latex
75
- begin: \\Sexpr(\{)
76
- beginCaptures:
77
- "1":
75
+ begin: "\\\\Sexpr(\\{)"
76
+ beginCaptures:
77
+ '1':
78
78
  name: punctuation.definition.arguments.begin.latex
79
- end: (\})
80
- patterns:
79
+ end: "(\\})"
80
+ patterns:
81
81
  - include: source.r
82
82
  - include: text.tex.latex
83
- foldingStopMarker: ^@(.?*)$|\\end\{.*\}
84
- keyEquivalent: ^~S
83
+ foldingStopMarker: "^@(.?*)$|\\\\end\\{.*\\}"
84
+ keyEquivalent: "^~S"