From 2c970067d2c54b93221d3755f7b3c4b06365685e Mon Sep 17 00:00:00 2001 From: formulahendry Date: Fri, 27 Jan 2017 12:27:43 +0800 Subject: [PATCH] 1. Resolve #57: Add support for Clojure 2. Fix and update output color --- CHANGELOG.md | 5 +++++ README.md | 18 +++++++++--------- package.json | 7 ++++--- syntaxes/code-runner-output.tmLanguage | 10 +++++----- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 569a8cd..fd78cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 0.6.7 +* Resolve [GitHub issue#57](https://github.com/formulahendry/vscode-code-runner/issues/57): Add support for Clojure +* Fix output color due to changed VS Code 1.9 +* Improve output color for numeric + ### 0.6.6 * Resolve [GitHub issue#54](https://github.com/formulahendry/vscode-code-runner/issues/54): Add support for VB.NET * Resolve [GitHub issue#51](https://github.com/formulahendry/vscode-code-runner/issues/51): Add support for $workspaceRoot diff --git a/README.md b/README.md index 7cf140d..03fec35 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,13 @@ [![Join the chat at https://gitter.im/formulahendry/vscode-code-runner](https://badges.gitter.im/formulahendry/vscode-code-runner.svg)](https://gitter.im/formulahendry/vscode-code-runner?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Marketplace Version](http://vsmarketplacebadge.apphb.com/version/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Installs](http://vsmarketplacebadge.apphb.com/installs/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Rating](http://vsmarketplacebadge.apphb.com/rating/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Build Status](https://travis-ci.org/formulahendry/vscode-code-runner.svg?branch=master)](https://travis-ci.org/formulahendry/vscode-code-runner) -Run code snippet or code file for multiple languages: **C, C++, Java, JavaScript, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET**, and custom command +Run code snippet or code file for multiple languages: **C, C++, Java, JavaScript, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure**, and custom command + +## Donation + +If you like this extension, you could donate via **[PayPal](https://www.paypal.me/junhanme)**, or scan below QR code to donate via **Alipay**. Any amount is welcome. It will encourage me to make this extension better and better! + +![Alipay](images/alipay.png) ## Features @@ -65,7 +71,7 @@ Besides, you could set the default language to run: "code-runner.defaultLanguage": "javascript" } ``` -**For the default language:** It should be set with language id defined in [VS Code](https://github.com/Microsoft/vscode/tree/master/extensions). The languages you could set are `java, c, cpp, javascript, php, python, perl, ruby, go, lua, groovy, powershell, bat, shellscript, fsharp, csharp, vbscript, typescript, coffeescript` +**For the default language:** It should be set with language id defined in [VS Code](https://github.com/Microsoft/vscode/tree/master/extensions). The languages you could set are `java, c, cpp, javascript, php, python, perl, ruby, go, lua, groovy, powershell, bat, shellscript, fsharp, csharp, vbscript, typescript, coffeescript, swift, r, clojure` Also, you could set the executor per file extension: ```json @@ -143,10 +149,4 @@ See Change Log [here](CHANGELOG.md) Submit the [issues](https://github.com/formulahendry/vscode-code-runner/issues) if you find any bug or have any suggestion. ## Contribution -Fork the [repo](https://github.com/formulahendry/vscode-code-runner) and submit pull requests. - -## Donation - -If you like this extension, you could donate via **[PayPal](https://www.paypal.me/junhanme)**, or scan below QR code to donate via **Alipay**. Any amount is welcome. It will encourage me to make this extension better and better! - -![Alipay](images/alipay.png) \ No newline at end of file +Fork the [repo](https://github.com/formulahendry/vscode-code-runner) and submit pull requests. \ No newline at end of file diff --git a/package.json b/package.json index 148cb98..8f61dd1 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "code-runner", "displayName": "Code Runner", - "description": "Run code snippet/file for C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET", - "version": "0.6.6", + "description": "Run code snippet/file for C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure", + "version": "0.6.7", "publisher": "formulahendry", "icon": "images/logo.png", "engines": { @@ -117,7 +117,8 @@ "crystal": "crystal", "ocaml": "ocaml", "r": "Rscript", - "applescript": "osascript" + "applescript": "osascript", + "clojure": "lein exec" }, "description": "Set the executor of each language." }, diff --git a/syntaxes/code-runner-output.tmLanguage b/syntaxes/code-runner-output.tmLanguage index 12cc9be..38b1ae7 100644 --- a/syntaxes/code-runner-output.tmLanguage +++ b/syntaxes/code-runner-output.tmLanguage @@ -19,7 +19,7 @@ 2 name - token.string + string match @@ -38,7 +38,7 @@ 2 name - token.string + string 3 @@ -53,17 +53,17 @@ 5 name - token.string + string 6 name - token.warn-token + constant.numeric 7 name - token.string + string match