Skip to content

Commit

Permalink
Don't apply onEnter rules for empty prefixes, closes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Apr 12, 2018
1 parent 390514a commit 1439fdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Codedox change log

## 1.2.7

* Fixed broken indentation with a `commentprefix` that only contains whitespace; see [issue 26](https://github.com/vshaxe/codedox/issues/26)

## 1.2.6

* Added `fname`, `fspec`, `frel` parameters; see [issue 23](https://github.com/vshaxe/codedox/issues/23)
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": "codedox",
"displayname": "Codedox for Haxe",
"description": "JSDoc-style comments for Haxe. @param and @return tags, plus customizable file header license and copyright comments.",
"version": "1.2.6",
"version": "1.2.7",
"publisher": "wiggin77",
"license": "(MIT) View license in LICENSE.md",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/wiggin/codedox/CodeDox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class CodeDox
for(strLang in Settings.getSupportedLanguages())
{
var settings = Settings.fetch(strLang);
if(settings.autoPrefixOnEnter)
if(settings.autoPrefixOnEnter && settings.strCommentPrefix.trim().length > 0)
{
var rules = EnterRules.createRules(settings);
var disposable = Vscode.languages.setLanguageConfiguration(strLang, {onEnterRules:rules});
Expand Down

0 comments on commit 1439fdd

Please sign in to comment.