Skip to content

Commit c19b571

Browse files
authored
Fix indentation rules (#5)
- Fix automatic indentation behavior: - Indent the line following a line ending in `:` - Never dedent automatically
1 parent 410cd0d commit c19b571

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

.github/workflows/generate-tag.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: Generate Tag
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
push:
5+
branches:
6+
- master
77

88
jobs:
9-
generate-tag:
10-
name: Generate tag
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@master
14-
- name: Bump version and push tag
15-
uses: anothrNick/[email protected]
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
WITH_V: true
9+
generate-tag:
10+
name: Generate tag
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Bump version and push tag
15+
uses: anothrNick/[email protected]
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
WITH_V: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ out
22
node_modules
33
.vscode-test
44
*.vsix
5+
*error.log

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@ Initiates a process to install the Sysl Language Server, which provides Sysl lan
5353
- `yarn compile`
5454
- `yarn package` creates a [VSIX bundle](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix)
5555

56-
5756
## Release Notes
5857

58+
### 0.2.1
59+
60+
- Fix automatic indentation behavior:
61+
- Indent the line following a line ending in `:`
62+
- Never dedent automatically
63+
5964
### 0.2.0
6065

6166
- Clean up repository for new development

extension/syntax/language-configuration.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
},
5959
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
6060
"indentationRules": {
61-
"increaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$",
62-
"decreaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"
61+
"increaseIndentPattern": "^[^ ]$",
62+
"decreaseIndentPattern": "^[^ ]$",
63+
"indentNextLinePattern": "^[^#]*:\\s*$"
6364
}
6465
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Write Sysl specs easily with instant visual feedback.",
55
"author": "ANZ Bank",
66
"publisher": "anz-bank",
7-
"version": "0.2.0",
7+
"version": "0.2.1",
88
"license": "Apache-2.0",
99
"repository": {
1010
"type": "git",

0 commit comments

Comments
 (0)