Skip to content

Commit

Permalink
Regression fixed (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz-antosik committed Nov 24, 2017
1 parent 8b53396 commit 3d5017d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Supports use of multiple workspace plaintext file dictionaries which may be used for specialized vocabularies like **medical terms**, **trademark names** etc.
* Spelling **multiple languages in one document** using In-Document commands to switch between languages.
* **Case sensitive** which means that it will distinguish between *english* and *English*, *french* and *French* and is critical in some languages e.g. German.
* Spells **short words** and **abbreviations** (*I*, *I'm*, *i.e.*, *etc.*)
* Spells **short words** and **abbreviations** (*I*, *I'm*, *I'll*, *i.e.*, *etc.*)
* Spells **CamelCase**, **snake_case** and **digit2inside** compound phrases respecting Unicode capital/small letters distinction (e.g.: *SuperŚlimak* is spelled as *Super* *Ślimak*) and capital letter adhesion (e.g.: *HTMLTest* is spelled as *HTML* *Test*).
* Unobtrusive **GUI**/**command** interface for switching spelling dictionary (language) and turning spelling ON/OFF for particular document class.
* **In-Document commands** allow to switch spelling **ON** or **OFF** despite global settings and **change spelling language** multiple times within the document.
Expand Down
4 changes: 2 additions & 2 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

const vscode = require('vscode');

global.LEXEM_BUILD = /[^\s,!\\?\*\/:\[\]\(\)\{\}\"\`\'\+\<\>\;\=\#\$\|\~]/;
global.LEXEM_SPELL = /[\s,!\\?\*\/:\[\]\(\)\{\}\"\`\'\+\<\>\;\=\#\$\|\~]/;
global.LEXEM_BUILD = /[^\s,!\\?\*\/:\[\]\(\)\{\}\"\`\+\<\>\;\=\#\$\|\~]/;
global.LEXEM_SPELL = /[\s,!\\?\*\/:\[\]\(\)\{\}\"\`\+\<\>\;\=\#\$\|\~]/;

// -----------------------------------------------------------------------------
// ## In-Document command format:
Expand Down
2 changes: 1 addition & 1 deletion src/spellright.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ var SpellRight = (function () {
// Here split some special cases like: period (`terminal.integrated`),
// digit (`good2know`), dash (`wp-admin`) etc. Other consequence should
// be that these words are spelled both as split and as the whole.
var rother = XRegExp('([^\.0-9\-]+)');
var rother = XRegExp('([^\.0-9\-\']+)');
var rsep = /[\.0-9\-]/;
var parts = [];

Expand Down

0 comments on commit 3d5017d

Please sign in to comment.