Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dbp/sublime-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rust-lang/rust-enhanced
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Oct 21, 2013

  1. - Added 'in' keyword.

    - Modified function detection (now the identifier doesn't contains type parameter)
    KokaKiwi committed Oct 21, 2013
    Copy the full SHA
    5aaf953 View commit details

Commits on Jan 17, 2014

  1. Copy the full SHA
    3cec19b View commit details

Commits on Feb 20, 2014

  1. Add keyword 'crate'

    KokaKiwi committed Feb 20, 2014
    Copy the full SHA
    de8e914 View commit details
  2. Merge branch 'master' of github.com:KokaKiwi/sublime-rust

    Conflicts:
    	Rust.JSON-tmLanguage
    	Rust.tmLanguage
    KokaKiwi committed Feb 20, 2014
    Copy the full SHA
    1d20da9 View commit details
  3. Merge pull request #2 from KokaKiwi/master

    Add keywords 'crate' and 'in'
    jhasse committed Feb 20, 2014
    Copy the full SHA
    ef4afde View commit details

Commits on Mar 13, 2014

  1. Copy the full SHA
    e0b87cb View commit details
  2. Add 'continue' keyword.

    KokaKiwi committed Mar 13, 2014
    Copy the full SHA
    f789775 View commit details
  3. Merge pull request #4 from KokaKiwi/keyword_continue

    Add 'continue' and 'in' keyword.
    jhasse committed Mar 13, 2014
    Copy the full SHA
    92e5cb3 View commit details

Commits on May 22, 2014

  1. Copy the full SHA
    6205907 View commit details

Commits on May 26, 2014

  1. Merge pull request #8 from bonifaido/master

    added box to keywords, whitespace fix in test macro
    jhasse committed May 26, 2014
    Copy the full SHA
    1e1d3bd View commit details

Commits on Jun 16, 2014

  1. Fix errors in Syntax Def's JSON-tmLanguage file.

    Make Rust syntax definition closer to that of vim's
    
    - Highlight var initialization in 'let' statements.
    - Highlight extern crate names.
    - Hightligth macros!
    
    Add names to some of the place holders in snippets.
    
    Improved handling of attribute meta information.
    
    Minor clean-up
    
        - Fix highlighting fn brackets
        - Fix highligthing ':' in 'let foo: type = val;' initializations.
    spamwax committed Jun 16, 2014
    Copy the full SHA
    4c9cc1f View commit details
  2. Merge branch 'master' of github.com:spamwax/sublime-rust into spamwax…

    …-master
    
    Conflicts:
    	test.sublime-snippet
    jhasse committed Jun 16, 2014
    Copy the full SHA
    6c28272 View commit details
  3. Merge branch 'spamwax-master'

    jhasse committed Jun 16, 2014
    Copy the full SHA
    4a90521 View commit details

Commits on Jul 1, 2014

  1. Copy the full SHA
    fb9f759 View commit details

Commits on Aug 9, 2014

  1. Update language syntac to match Rust 0.11

    - Add support for rust lifetime modifiers
    - Add full support for raw string
    - Add support for std library containers and classes
    - Add support for storage modifiers (box, mut)
    - Add support for Send/Sized/...
    - Add support for block documentation.
    - Update single quote support to match that of Rust specs.
    - Fix single quote issue.
    - Fix initialization syntax for mut variables.
    - Improve macro syntax definition.
    spamwax committed Aug 9, 2014
    Copy the full SHA
    adc19ac View commit details

Commits on Aug 12, 2014

  1. Merge pull request #11 from spamwax/master

    Update language syntax to match Rust 0.11
    jhasse committed Aug 12, 2014
    Copy the full SHA
    4aecc2f View commit details

Commits on Sep 9, 2014

  1. Updates syntax highlighting

    Underscore is not colored if embedded in another word
    
    Crate-level attributes ( #![...] ) colored identically to normal
    attributes.
    TooManyBees committed Sep 9, 2014
    Copy the full SHA
    1f5f42a View commit details

Commits on Sep 17, 2014

  1. Merge pull request #14 from TooManyBees/attributes

    Updates syntax highlighting
    jhasse committed Sep 17, 2014
    Copy the full SHA
    179f8f7 View commit details

Commits on Sep 26, 2014

  1. Add Cargo build system

    jhasse committed Sep 26, 2014
    Copy the full SHA
    ad33dc5 View commit details

Commits on Oct 11, 2014

  1. Copy the full SHA
    f311794 View commit details

Commits on Oct 13, 2014

  1. Merge pull request #20 from yuryshulaev/master

    Add support for fn<Sized? ...>
    jhasse committed Oct 13, 2014
    Copy the full SHA
    5279d0f View commit details
  2. Copy the full SHA
    5f8df45 View commit details

Commits on Oct 29, 2014

  1. Copy the full SHA
    5ed8960 View commit details

Commits on Nov 9, 2014

  1. Add where keyword.

    KokaKiwi committed Nov 9, 2014
    Copy the full SHA
    b0ffba5 View commit details
  2. Merge pull request #25 from KokaKiwi/where

    Add `where` keyword.
    jhasse committed Nov 9, 2014
    Copy the full SHA
    9609ab4 View commit details

Commits on Jan 12, 2015

  1. Copy the full SHA
    24c5536 View commit details

Commits on Jan 13, 2015

  1. * Fixed indentation in test-snippet

    * Added bench-snippet
    Sondre Lefsaker committed Jan 13, 2015
    Copy the full SHA
    5a9f644 View commit details
  2. Added print and println snipptes

    Sondre Lefsaker committed Jan 13, 2015
    Copy the full SHA
    8d8778f View commit details
  3. Default print and println formatting to use the Show trait

    Sondre Lefsaker committed Jan 13, 2015
    Copy the full SHA
    58f107a View commit details
  4. Add newline at end of files

    Sondre Lefsaker committed Jan 13, 2015
    Copy the full SHA
    ee1cfc8 View commit details

Commits on Jan 15, 2015

  1. Added wordboundries (\b) to floating point values

    Sondre Lefsaker committed Jan 15, 2015
    Copy the full SHA
    31ca5c8 View commit details
  2. Added negative lookahead after for instead of matching for _not_ . Th…

    …is results in correct syntax highlighting for lifetimes inside <>-brackets.
    Sondre Lefsaker committed Jan 15, 2015
    Copy the full SHA
    0030fb0 View commit details
  3. Disabled single quote auto-pairing

    Sondre Lefsaker committed Jan 15, 2015
    Copy the full SHA
    0cd4563 View commit details
  4. Merge pull request #32 from sondrele/fix-lifetime-parsing

    Fix lifetime parsing. Fixes #26
    jhasse committed Jan 15, 2015
    Copy the full SHA
    3c2daef View commit details
  5. Merge pull request #33 from sondrele/fix-float-highlighting

    Added wordboundries (\b) to floating point values
    jhasse committed Jan 15, 2015
    Copy the full SHA
    b3c71eb View commit details
  6. Merge pull request #29 from sondrele/rust-snippets

    Rust snippets. Fixes #15
    jhasse committed Jan 15, 2015
    Copy the full SHA
    40df359 View commit details

Commits on Mar 13, 2015

  1. Copy the full SHA
    bba3078 View commit details
  2. Use curly brackets around a macro rather than parentheses.

    This *seems* to be the new convention. Current Rust allows either, but
    requires a semicolon after a parentheses-based macro. All the uses I could
    see in the Rust repo use curly brackets.
    rprichard committed Mar 13, 2015
    Copy the full SHA
    5e3af9a View commit details
  3. Fix character and string escaping.

     * Octal escapes no longer exist.
    
     * The Unicode escape is '\u{' HEX{1,6} '}'
       e.g.: "\u{30}" == "0"
    
     * Stop recognizing '\' as a character constant. The backslash must be
       escaped.
    rprichard committed Mar 13, 2015
    Copy the full SHA
    b7c2bdc View commit details
  4. Copy the full SHA
    7da22db View commit details

Commits on Mar 14, 2015

  1. Merge pull request #39 from rprichard/assorted-fixes

    Assorted fixes. Fixes #24 and #27.
    jhasse committed Mar 14, 2015
    Copy the full SHA
    ff3e197 View commit details

Commits on Mar 18, 2015

  1. Add cargo test build command

    hawkw committed Mar 18, 2015
    Copy the full SHA
    f3a2208 View commit details
  2. Merge pull request #40 from hawkw/patch-1

    Add cargo test build command
    jhasse committed Mar 18, 2015
    Copy the full SHA
    a1c3d2d View commit details

Commits on Apr 14, 2015

  1. Copy the full SHA
    4d7285d View commit details
  2. Merge pull request #45 from Jayflux/master

    This would fix #44 and only show on rust projects
    jhasse committed Apr 14, 2015
    Copy the full SHA
    491be5d View commit details

Commits on May 2, 2015

  1. Copy the full SHA
    edd2a18 View commit details

Commits on May 3, 2015

  1. Merge pull request #46 from alexanderchr/patch-1

    Remove Left and Right keywords
    jhasse committed May 3, 2015
    Copy the full SHA
    3bbd744 View commit details

Commits on May 6, 2015

  1. Copy the full SHA
    ed22ec9 View commit details

Commits on May 7, 2015

  1. Copy the full SHA
    e588129 View commit details
  2. Copy the full SHA
    36be8a9 View commit details
Showing with 15,717 additions and 510 deletions.
  1. +14 −0 .editorConfig
  2. +22 −0 .gitattributes
  3. +27 −0 .github/ISSUE_TEMPLATE.md
  4. +36 −0 .github/workflows/ci.yml
  5. +33 −0 .github/workflows/docs.yml
  6. +3 −0 .gitignore
  7. +94 −0 Cargo.sublime-syntax
  8. +121 −0 Context.sublime-menu
  9. +23 −0 Default (Linux).sublime-keymap
  10. +23 −0 Default (OSX).sublime-keymap
  11. +23 −0 Default (Windows).sublime-keymap
  12. +62 −0 Default.sublime-keymap
  13. +0 −6 Err.sublime-snippet
  14. +1 −1 LICENSE.txt
  15. +33 −0 Main.sublime-menu
  16. +0 −6 Ok.sublime-snippet
  17. +18 −33 README.md
  18. +0 −97 Rust.JSON-tmLanguage
  19. +0 −21 Rust.sublime-build
  20. +0 −208 Rust.tmLanguage
  21. +10 −10 RustComment.JSON-tmPreferences
  22. +13 −1 RustComment.tmPreferences
  23. +59 −0 RustEnhanced.sublime-build
  24. +67 −0 RustEnhanced.sublime-commands
  25. +92 −0 RustEnhanced.sublime-settings
  26. +1,618 −0 RustEnhanced.sublime-syntax
  27. +1 −1 RustIndent.JSON-tmPreferences
  28. +1 −1 RustIndent.tmPreferences
  29. +9 −5 RustSymbols.JSON-tmPreferences
  30. +4 −2 RustSymbols.tmPreferences
  31. +0 −6 Some.sublime-snippet
  32. +227 −0 SyntaxCheckPlugin.py
  33. +0 −7 assert.sublime-snippet
  34. +3 −0 bors.toml
  35. +639 −0 cargo_build.py
  36. +17 −0 changelog/2.11.0.md
  37. +31 −0 ci/install-rust.sh
  38. +0 −6 const.sublime-snippet
  39. +7 −0 dependencies.json
  40. +0 −8 do.sublime-snippet
  41. +6 −0 docs/README.md
  42. +9 −0 docs/book.toml
  43. +15 −0 docs/src/SUMMARY.md
  44. +27 −0 docs/src/build/custom.md
  45. +57 −0 docs/src/build/index.md
  46. +109 −0 docs/src/build/messages.md
  47. +125 −0 docs/src/build/settings.md
  48. +40 −0 docs/src/context.md
  49. +5 −0 docs/src/formatting.md
  50. BIN docs/src/images/gutter-circle.png
  51. BIN docs/src/images/gutter-shape.png
  52. BIN docs/src/images/messages_popup.gif
  53. BIN docs/src/images/region_style_none.png
  54. BIN docs/src/images/region_style_outline.png
  55. BIN docs/src/images/region_style_solid_underline.png
  56. BIN docs/src/images/region_style_squiggly_underline.png
  57. BIN docs/src/images/region_style_stippled_underline.png
  58. BIN docs/src/images/running_tests.gif
  59. BIN docs/src/images/rust_context.png
  60. BIN docs/src/images/show_errors_inline_false.png
  61. BIN docs/src/images/show_errors_inline_true.png
  62. BIN docs/src/images/showing_errors.gif
  63. BIN docs/src/images/theme_clear.png
  64. BIN docs/src/images/theme_solid.png
  65. +9 −0 docs/src/index.md
  66. +18 −0 docs/src/install.md
  67. +18 −0 docs/src/lsp.md
  68. +49 −0 docs/src/on-save.md
  69. +41 −0 docs/src/settings.md
  70. +24 −0 docs/src/tips.md
  71. +0 −7 fail.sublime-snippet
  72. +0 −6 fmt.sublime-snippet
  73. +0 −8 fn.sublime-snippet
  74. +0 −8 for.sublime-snippet
  75. BIN images/gutter/circle-error.png
  76. BIN images/gutter/circle-error@2x.png
  77. BIN images/gutter/circle-help.png
  78. BIN images/gutter/circle-help@2x.png
  79. BIN images/gutter/circle-none.png
  80. BIN images/gutter/circle-none@2x.png
  81. BIN images/gutter/circle-note.png
  82. BIN images/gutter/circle-note@2x.png
  83. BIN images/gutter/circle-warning.png
  84. BIN images/gutter/circle-warning@2x.png
  85. BIN images/gutter/shape-error.png
  86. BIN images/gutter/shape-error@2x.png
  87. BIN images/gutter/shape-help.png
  88. BIN images/gutter/shape-help@2x.png
  89. BIN images/gutter/shape-none.png
  90. BIN images/gutter/shape-none@2x.png
  91. BIN images/gutter/shape-note.png
  92. BIN images/gutter/shape-note@2x.png
  93. BIN images/gutter/shape-warning.png
  94. BIN images/gutter/shape-warning@2x.png
  95. +0 −8 loop.sublime-snippet
  96. +0 −8 macro_rules.sublime-snippet
  97. +0 −8 match.sublime-snippet
  98. +3 −0 messages.json
  99. +1 −0 rust/__init__.py
  100. +130 −0 rust/batch.py
  101. +950 −0 rust/cargo_config.py
  102. +471 −0 rust/cargo_settings.py
  103. +61 −0 rust/levels.py
  104. +119 −0 rust/log.py
  105. +1,237 −0 rust/messages.py
  106. +182 −0 rust/opanel.py
  107. +337 −0 rust/rust_proc.py
  108. +115 −0 rust/rust_thread.py
  109. +349 −0 rust/semver.py
  110. +163 −0 rust/target_detect.py
  111. +348 −0 rust/themes.py
  112. +166 −0 rust/util.py
  113. +6 −0 snippets/Err.sublime-snippet
  114. +6 −0 snippets/Ok.sublime-snippet
  115. +6 −0 snippets/Some.sublime-snippet
  116. +6 −0 snippets/allow.sublime-snippet
  117. +8 −0 snippets/assert.sublime-snippet
  118. +8 −0 snippets/assert_eq.sublime-snippet
  119. +5 −0 snippets/attribute.sublime-snippet
  120. +9 −0 snippets/bench.sublime-snippet
  121. +6 −0 snippets/break.sublime-snippet
  122. +6 −0 snippets/const.sublime-snippet
  123. +6 −0 snippets/continue.sublime-snippet
  124. +6 −0 snippets/dbg.sublime-snippet
  125. +6 −0 snippets/debug.sublime-snippet
  126. +6 −0 snippets/deny.sublime-snippet
  127. +6 −0 snippets/derive.sublime-snippet
  128. +8 −0 snippets/else.sublime-snippet
  129. +4 −2 { → snippets}/enum.sublime-snippet
  130. +6 −0 snippets/eprintln.sublime-snippet
  131. +6 −0 snippets/error.sublime-snippet
  132. +6 −0 snippets/extern-crate.sublime-snippet
  133. +8 −0 snippets/extern-fn.sublime-snippet
  134. +8 −0 snippets/extern-mod.sublime-snippet
  135. +6 −0 snippets/feature.sublime-snippet
  136. +8 −0 snippets/fn.sublime-snippet
  137. +8 −0 snippets/for.sublime-snippet
  138. +6 −0 snippets/format.sublime-snippet
  139. +8 −0 snippets/if-let.sublime-snippet
  140. +8 −0 snippets/if.sublime-snippet
  141. +8 −0 snippets/impl-trait.sublime-snippet
  142. +2 −3 { → snippets}/impl.sublime-snippet
  143. +6 −0 snippets/info.sublime-snippet
  144. +6 −0 snippets/let-mut.sublime-snippet
  145. +6 −0 snippets/let.sublime-snippet
  146. +8 −0 snippets/loop.sublime-snippet
  147. +8 −0 snippets/macro_export.sublime-snippet
  148. +8 −0 snippets/macro_rules.sublime-snippet
  149. +8 −0 snippets/macro_use.sublime-snippet
  150. +1 −1 { → snippets}/main.sublime-snippet
  151. +9 −0 snippets/match.sublime-snippet
  152. +8 −0 snippets/mod.sublime-snippet
  153. +6 −0 snippets/panic.sublime-snippet
  154. +6 −0 snippets/plugin.sublime-snippet
  155. +6 −0 snippets/println.sublime-snippet
  156. +8 −0 snippets/repr-c.sublime-snippet
  157. +6 −0 snippets/static.sublime-snippet
  158. +6 −0 snippets/struct-tuple.sublime-snippet
  159. +6 −0 snippets/struct-unit.sublime-snippet
  160. +3 −2 { → snippets}/struct.sublime-snippet
  161. +9 −0 snippets/test.sublime-snippet
  162. +14 −0 snippets/tests-mod.sublime-snippet
  163. +6 −0 snippets/trace.sublime-snippet
  164. +2 −2 { → snippets}/trait.sublime-snippet
  165. +6 −0 snippets/type.sublime-snippet
  166. +8 −0 snippets/unimplemented.sublime-snippet
  167. +8 −0 snippets/unreachable.sublime-snippet
  168. +6 −0 snippets/use.sublime-snippet
  169. +6 −0 snippets/warn.sublime-snippet
  170. +8 −0 snippets/while-let.sublime-snippet
  171. +8 −0 snippets/while.sublime-snippet
  172. +0 −6 struct-tuple.sublime-snippet
  173. +126 −0 syntax_test_cargo.txt
  174. +0 −8 test.sublime-snippet
  175. +12 −0 tests/README.md
  176. +3 −0 tests/clippy/Cargo.toml
  177. +16 −0 tests/clippy/src/lib.rs
  178. +5 −0 tests/doc/Cargo.toml
  179. +11 −0 tests/doc/src/lib.rs
  180. +1 −0 tests/doc/src/main.rs
  181. +6 −0 tests/error-tests/Cargo.toml
  182. +9 −0 tests/error-tests/benches/bench_err.rs
  183. +5 −0 tests/error-tests/dcrate/Cargo.toml
  184. +35 −0 tests/error-tests/dcrate/src/lib.rs
  185. +7 −0 tests/error-tests/examples/SNAKE.rs
  186. +3 −0 tests/error-tests/examples/err_ex.rs
  187. +21 −0 tests/error-tests/examples/no_main.rs
  188. +10 −0 tests/error-tests/examples/no_main_mod.rs
  189. +19 −0 tests/error-tests/src/lib.rs
  190. +3 −0 tests/error-tests/src/main.rs
  191. +35 −0 tests/error-tests/tests/E0005.rs
  192. +38 −0 tests/error-tests/tests/arg-count-mismatch.rs
  193. +22 −0 tests/error-tests/tests/binop-mul-bool.rs
  194. +21 −0 tests/error-tests/tests/cast-to-unsized-trait-object-suggestion.rs
  195. +33 −0 tests/error-tests/tests/dead-code-ret.rs
  196. +22 −0 tests/error-tests/tests/error_across_mod.rs
  197. +8 −0 tests/error-tests/tests/error_across_mod_f.rs
  198. +66 −0 tests/error-tests/tests/impl-generic-mismatch.rs
  199. +36 −0 tests/error-tests/tests/macro-backtrace-println.rs
  200. +10 −0 tests/error-tests/tests/macro-expansion-inside-1.rs
  201. +11 −0 tests/error-tests/tests/macro-expansion-inside-2.rs
  202. +42 −0 tests/error-tests/tests/macro-expansion-outside-1.rs
  203. +19 −0 tests/error-tests/tests/macro-expansion-outside-2.rs
  204. +15 −0 tests/error-tests/tests/macro-expansion.rs
  205. +23 −0 tests/error-tests/tests/macro_expansion_inside_mod1.rs
  206. +10 −0 tests/error-tests/tests/macro_expansion_inside_mod2.rs
  207. +39 −0 tests/error-tests/tests/method-ambig-two-traits-with-default-method.rs
  208. +5 −0 tests/error-tests/tests/remote_note_1.rs
  209. +13 −0 tests/error-tests/tests/remote_note_1_mod.rs
  210. +12 −0 tests/error-tests/tests/test_multiple_primary_spans.rs
  211. +30 −0 tests/error-tests/tests/test_new_lifetime_message.rs
  212. +12 −0 tests/error-tests/tests/test_unicode.rs
  213. +5 −0 tests/message-order/Cargo.toml
  214. +3 −0 tests/message-order/examples/ex_no_messages.rs
  215. +6 −0 tests/message-order/examples/ex_warning1.rs
  216. +7 −0 tests/message-order/examples/warning1.rs
  217. +84 −0 tests/message-order/examples/warning2.rs
  218. 0 tests/message-order/src/lib.rs
  219. +10 −0 tests/message-order/tests/test_all_levels.rs
  220. +61 −0 tests/message-order/tests/test_test_output.rs
  221. +60 −0 tests/multi-targets/Cargo.toml
  222. +10 −0 tests/multi-targets/benches/bench1.rs
  223. +10 −0 tests/multi-targets/benches/bench2.rs
  224. +17 −0 tests/multi-targets/benches/bench_context.rs
  225. +3 −0 tests/multi-targets/build.rs
  226. +3 −0 tests/multi-targets/examples/ex1.rs
  227. +3 −0 tests/multi-targets/examples/ex2.rs
  228. +3 −0 tests/multi-targets/examples/excdylib.rs
  229. +3 −0 tests/multi-targets/examples/exlib.rs
  230. +6 −0 tests/multi-targets/libs/cdylib/Cargo.toml
  231. +2 −0 tests/multi-targets/libs/cdylib/src/lib.rs
  232. +6 −0 tests/multi-targets/libs/dylib/Cargo.toml
  233. +2 −0 tests/multi-targets/libs/dylib/src/lib.rs
  234. +6 −0 tests/multi-targets/libs/rlib/Cargo.toml
  235. +2 −0 tests/multi-targets/libs/rlib/src/lib.rs
  236. +6 −0 tests/multi-targets/libs/staticlib/Cargo.toml
  237. +2 −0 tests/multi-targets/libs/staticlib/src/lib.rs
  238. +4 −0 tests/multi-targets/mystery.rs
  239. +10 −0 tests/multi-targets/pmacro/Cargo.toml
  240. +32 −0 tests/multi-targets/pmacro/src/lib.rs
  241. +12 −0 tests/multi-targets/src/altmain.rs
  242. +3 −0 tests/multi-targets/src/bin/bin1.rs
  243. +5 −0 tests/multi-targets/src/bin/bin2.rs
  244. +14 −0 tests/multi-targets/src/bin/feats.rs
  245. +5 −0 tests/multi-targets/src/bin/penv.rs
  246. +14 −0 tests/multi-targets/src/lib.rs
  247. +10 −0 tests/multi-targets/src/lmod1.rs
  248. +10 −0 tests/multi-targets/src/main.rs
  249. +18 −0 tests/multi-targets/tests/common/helpers.rs
  250. +6 −0 tests/multi-targets/tests/test1.rs
  251. +7 −0 tests/multi-targets/tests/test2.rs
  252. +38 −0 tests/multi-targets/tests/test_context.rs
  253. +307 −0 tests/rust_test_common.py
  254. +6 −0 tests/slow-build/Cargo.toml
  255. +24 −0 tests/slow-build/build.rs
  256. 0 tests/slow-build/src/lib.rs
  257. +142 −0 tests/syntax-rust/syntax_test_attributes.rs
  258. +199 −0 tests/syntax-rust/syntax_test_closures.rs
  259. +37 −0 tests/syntax-rust/syntax_test_comments.rs
  260. +98 −0 tests/syntax-rust/syntax_test_control_flow.rs
  261. +45 −0 tests/syntax-rust/syntax_test_dyn.rs
  262. +68 −0 tests/syntax-rust/syntax_test_enum.rs
  263. +188 −0 tests/syntax-rust/syntax_test_expr.rs
  264. +146 −0 tests/syntax-rust/syntax_test_functions.rs
  265. +533 −0 tests/syntax-rust/syntax_test_generics.rs
  266. +304 −0 tests/syntax-rust/syntax_test_literals.rs
  267. +385 −0 tests/syntax-rust/syntax_test_macros.rs
  268. +57 −0 tests/syntax-rust/syntax_test_match.rs
  269. +63 −0 tests/syntax-rust/syntax_test_misc.rs
  270. +98 −0 tests/syntax-rust/syntax_test_modules.rs
  271. +182 −0 tests/syntax-rust/syntax_test_punct.rs
  272. +106 −0 tests/syntax-rust/syntax_test_raw.rs
  273. +124 −0 tests/syntax-rust/syntax_test_struct.rs
  274. +125 −0 tests/syntax-rust/syntax_test_traits.rs
  275. +176 −0 tests/syntax-rust/syntax_test_types.rs
  276. +40 −0 tests/syntax-rust/syntax_test_union.rs
  277. +84 −0 tests/syntax-rust/syntax_test_visibility.rs
  278. +523 −0 tests/test_cargo_build.py
  279. +56 −0 tests/test_cargo_settings.py
  280. +62 −0 tests/test_click_handler.py
  281. +173 −0 tests/test_context.py
  282. +249 −0 tests/test_interrupt.py
  283. +204 −0 tests/test_message_order.py
  284. +57 −0 tests/test_phantom_style.py
  285. +442 −0 tests/test_syntax_check.py
  286. +74 −0 tests/test_target_detect.py
  287. +21 −0 tests/test_toggle_setting.py
  288. +2 −0 tests/workspace/Cargo.toml
  289. +5 −0 tests/workspace/workspace1/Cargo.toml
  290. +7 −0 tests/workspace/workspace1/src/anothermod/mod.rs
  291. +17 −0 tests/workspace/workspace1/src/lib.rs
  292. +5 −0 tests/workspace/workspace2/Cargo.toml
  293. +20 −0 tests/workspace/workspace2/src/lib.rs
  294. +8 −0 tests/workspace/workspace2/src/somemod.rs
  295. +22 −0 toggle_setting.py
  296. +0 −6 type.sublime-snippet
  297. +4 −0 unittesting.json
  298. +0 −8 while.sublime-snippet
14 changes: 14 additions & 0 deletions .editorConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Used to remove files from deployment using `git archive`
# and from GitHub release compressed files.

# git files
.gitattributes export-ignore
.gitignore export-ignore

# Ignored folders
.github export-ignore
docs export-ignore
tests export-ignore

# CI files
.travis.yml export-ignore
appveyor.yml export-ignore
bors.toml export-ignore

# general text files
.editorConfig export-ignore
README.md export-ignore
syntax_test_cargo.txt export-ignore
unittesting.json export-ignore
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### Sublime Text Version
E.g Sublime Text 3 (Build 3126)

### Rust Enhanced Version
In Sublime Text, go to `list packages` (ctrl|cmd + shift + p) and select Rust Enhanced to get the version

### Operating system
A good example is:
OS Name Microsoft Windows 10 Pro
Version 10.0.14393 Build 14393

### Expected behavior
What should have happened?

### Actual behavior
What actually happened?

### Steps to reproduce
1.
2.
3.

### References
Are there any other GitHub issues (open or closed) that should be linked here?
For example:
- GH-1234
- ...
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches-ignore: [master]
pull_request:
branches: ['*']
schedule:
- cron: '20 6 * * *'

jobs:
tests:
timeout-minutes: 20 # default is 6 hours!
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
include:
- os: ubuntu-latest
rust: beta
- os: ubuntu-latest
rust: nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- run: bash ci/install-rust.sh ${{ matrix.rust }}
# Temporary workaround until Package Control 4 works
# https://github.com/wbond/package_control/issues/1612
- name: Fix macOS OpenSSL
if: matrix.os == 'macos-latest'
run: brew unlink openssl
- uses: SublimeText/UnitTesting/actions/setup@v1
with:
package-name: Rust Enhanced
- uses: SublimeText/UnitTesting/actions/run-syntax-tests@v1
- uses: SublimeText/UnitTesting/actions/run-tests@v1
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docs Deploy
on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install mdbook
run: |
mkdir mdbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.11/mdbook-v0.4.11-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Deploy docs
run: |
cd docs
mdbook build
git worktree add gh-pages gh-pages
git config user.name "Deploy from CI"
git config user.email ""
cd gh-pages
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
mv ../book/* .
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.cache
target/
Cargo.lock
/docs/book/
94 changes: 94 additions & 0 deletions Cargo.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Cargo Build Results
file_extensions:
- rs
scope: source.build_results

variables:
result_prefix: '[1-9]\d* '
test_prefix: '^test .* \.{3} '

contexts:
main:
# Loosely organized by order of appearance

# comments the command run (as the previous syntax did)
- match: '^\[Running: cargo.*\]$'
scope: comment meta.command.cargo

# matches the build logs
- match: '^ {4}Blocking '
scope: markup.deleted.diff meta.blocking.cargo
- match: '^ {4}Updating '
scope: markup.inserted.diff meta.updating.cargo
- match: '^ {1}Downloading '
scope: markup.inserted.diff meta.downloading.cargo
- match: '^ {1}Documenting '
scope: markup.inserted.diff meta.documenting.cargo
- match: '^ {3}Compiling '
scope: markup.inserted.diff meta.compiling.cargo
- match: '^ {4}Finished '
scope: markup.inserted.diff meta.finished.cargo
- match: '^ {5}Running '
scope: markup.inserted.diff meta.running.cargo
- match: '^ {3}Doc-tests'
scope: markup.inserted.diff meta.doctests.cargo

# matches the build result
- match: '^(..[^:\n]*):(\d+):?(\d+)?:? '
scope: entity.name.filename meta.filename.cargo
- match: '^(note|warning): '
scope: variable.parameter meta.warning.cargo
- match: '^error: '
scope: message.error meta.error.cargo

# matches the test results: 'test <test_path> ... <ok|ignored|bench>'
- match: '{{test_prefix}}(ok)\b'
captures:
1: markup.inserted.diff meta.test_ok.cargo
- match: '{{test_prefix}}(ignored)\b'
captures:
1: markup.changed.diff meta.test_ignored.cargo
- match: '{{test_prefix}}(FAILED)\b'
captures:
1: markup.deleted.diff meta.test_failed.cargo
# benches are aligned, so they may have extra spaces before the '...'
- match: '^test .* +\.{3} (bench): +\d+'
captures:
1: markup.deleted.diff meta.bench.cargo

- match: '\bhelp:[\s\S]+$'
scope: markup.inserted.diff meta.help.cargo
# I don't know what this is
- match: '^\s{4}[\S\s]+,\s([\w,\s-]+\.[A-Za-z]{2}):(\d+)'
scope: message.error

- match: '^failures:\n'
scope: message.error meta.failures.cargo

# matches the line 'test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out'
- match: '^(test result:) (?:(ok)|(FAILED))\.'
captures:
1: variable.parameter meta.test_result.cargo
2: markup.inserted.diff meta.ok_result.cargo
3: invalid meta.fail_result.cargo
push: test-result-counts

# comments the logs sublime adds
- match: '^\[Finished in \d+\.\d+s( with exit code .+)?\]$'
set:
- meta_scope: comment meta.sublime.cargo

test-result-counts:
- match: '{{result_prefix}}passed(?=;)'
scope: markup.inserted.diff meta.passed_count.cargo
- match: '{{result_prefix}}failed(?=;)'
scope: markup.deleted.diff meta.fail_count.cargo
- match: '{{result_prefix}}ignored(?=;)'
scope: markup.changed.diff meta.ignore_count.cargo
- match: '{{result_prefix}}measured(?=;)'
scope: support.constant meta.measured_count.cargo
- match: '\n'
pop: true
121 changes: 121 additions & 0 deletions Context.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// XXX
// run/test/bench with args?
//
[
{
"caption": "Rust",
"id": "rust_context",
"children": [
{
"caption": "Clean",
"command": "cargo_exec",
"args": {
"command": "clean"
}
},
{
"caption": "Check",
"command": "cargo_exec",
"args": {
"command": "check"
}
},
{
"caption": "Clippy",
"command": "cargo_exec",
"args": {
"command": "clippy"
}
},
{
"caption": "-",
},
{
"caption": "Test Here",
"command": "cargo_test_here",
},
{
"caption": "Test Current File",
"command": "cargo_test_current_file",
},
{
"caption": "Test All",
"command": "cargo_exec",
"args": {
"command": "test"
}
},
{
"caption": "-",
},
{
"caption": "Bench Here",
"command": "cargo_bench_here",
},
{
"caption": "Bench Current File",
"command": "cargo_bench_current_file",
},
{
"caption": "Bench All",
"command": "cargo_exec",
"args": {
"command": "bench"
}
},
{
"caption": "-",
},
{
"caption": "Run This File",
"command": "cargo_run_current_file",
},
{
"caption": "Doc",
"command": "cargo_exec",
"args": {
"command": "doc",
}
},
{
"caption": "Cancel Build",
"command": "rust_cancel"
},
{
"caption": "Open Debug Log",
"command": "rust_open_log"
},
{
"caption": "-",
},
{
"caption": "Clear Messages",
"command": "rust_dismiss_messages",
},
{
"caption": "List All Messages",
"command": "rust_list_messages",
},
{
"caption": "-",
},
{
"caption": "Open Settings",
"command": "edit_settings",
"args":
{
"base_file": "${packages}/Rust Enhanced/RustEnhanced.sublime-settings",
"default": "{\n\t$0\n}\n"
}
},
{
"caption": "Configure Cargo Build",
"command": "cargo_configure",
},
{
"caption": "On-Save Checking",
"command": "toggle_rust_syntax_setting",
},
]
}
]
23 changes: 23 additions & 0 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{"keys": ["f4"], "command": "rust_next_message", "context":
[
{"key": "selector", "operator":"equal", "operand": "source.rust"}
]
},
{"keys": ["shift+f4"], "command": "rust_prev_message", "context":
[
{"key": "selector", "operator":"equal", "operand": "source.rust"}
]
},
{"keys": ["ctrl+break"], "command": "rust_cancel", "context":
[
{"key": "selector", "operator":"equal", "operand": "source.rust"}
]
},
{"keys": ["escape"], "command": "rust_dismiss_messages", "context":
[
{"key": "selector", "operator":"equal", "operand": "source.rust"},
{"key": "rust_has_messages", "operator": "equal", "operand": true}
]
},
]
Loading