Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Fix indentation rules for VSCode 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
kosz78 committed Jul 13, 2017
1 parent e0e1c1a commit a15306f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ChangeLog

## 0.5.26 (14 Jul 2017)
* Fix indentation rules for VSCode 1.14

## 0.5.25 (27 Jun 2017)
* Fixing 'nim' binary could not be found in PATH on OS X [PR #52](https://github.com/pragmagic/vscode-nim/pull/52)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nim",
"displayName": "Nim",
"description": "Nim language support for Visual Studio Code",
"version": "0.5.25",
"version": "0.5.26",
"publisher": "kosz78",
"author": {
"name": "Xored Software Inc."
Expand Down
4 changes: 4 additions & 0 deletions src/nimMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export function activate(ctx: vscode.ExtensionContext): void {
decreaseIndentPattern: /^\s*(((return|break|continue|raise)\n)|((elif|else|except|finally)\b.*:))\s*$/
},
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
onEnterRules: [{
beforeText: /^\s*$/,
action: { indentAction: vscode.IndentAction.None }
}]
});

vscode.window.onDidChangeActiveTextEditor(showHideStatus, null, ctx.subscriptions);
Expand Down

0 comments on commit a15306f

Please sign in to comment.