Skip to content

Commit

Permalink
Merge pull request #330 from NeoKaios/fix/word-pattern-hyphen
Browse files Browse the repository at this point in the history
Add language configuration file to fix word wrapping and improve UX
  • Loading branch information
nberth authored Jul 29, 2024
2 parents bdc4016 + 48dd8c1 commit 3b02e56
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [0.1.4] Next release

### Added
- COBOL language configuration for highlighting matching brackets and auto-insertion of line numbers in fixed- format code [#330](https://github.com/OCamlPro/superbol-studio-oss/pull/330)

### Fixed
- Word wrapping in presence of hyphens [#330](https://github.com/OCamlPro/superbol-studio-oss/pull/330)


## [0.1.3] Fourth α release (2024-07-24)

Expand Down
3 changes: 2 additions & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lsp/superbol_free_lib/vscode_extension.ml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ let contributes =
Manifest.language "cobol"
~aliases: [ "COBOL" ]
~filenamePatterns: [ "*." ^ cob_extensions_pattern ]
~configuration: "./syntaxes/language-configuration.json"
]
~debuggers: [
Manifest.debugger "gdb"
Expand Down
14 changes: 14 additions & 0 deletions syntaxes/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"wordPattern": "[a-zA-Z0-9_-]+",
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"onEnterRules": [
{
"beforeText": "^[0-9]{6}.*",
"action": { "indent": "none", "appendText": "000000 " }
}
]
}

0 comments on commit 3b02e56

Please sign in to comment.