cspell-dict-golang
Advanced tools
Comparing version 1.1.1 to 1.1.2
// cSpell Settings | ||
{ | ||
"id": "golang", | ||
"name": "Go Language", | ||
"description": "Go Language Dictionary", | ||
// List of dictionary files to add to the global list of dictionaries | ||
"dictionaryDefinitions": [ | ||
{ "name": "golang", "file": "./go.txt.gz" } | ||
{ | ||
"name": "golang", | ||
"file": "./go.txt.gz", | ||
"description": "Go Language Dictionary" | ||
} | ||
], | ||
@@ -18,7 +25,11 @@ // Dictionaries to always be used. | ||
// Language local. i.e. en-US, de-AT, or ru. * will match all locals. | ||
// Multiple locals can be specified like: "en, en-US" to match both English and English US. | ||
"local": "*", | ||
// It is common in Go to glue words together. | ||
"allowCompoundWords": true, | ||
// By default the whole text of a file is included for spell checking | ||
// Adding patterns to the "includeRegExpList" to only include matching patterns | ||
"includeRegExpList": [], | ||
// To exclude patterns, add them to "ignoreRegExpList" | ||
"ignoreRegExpList": [], | ||
"includeRegExpList": [], | ||
// regex patterns than can be used with ignoreRegExpList or includeRegExpList | ||
@@ -30,3 +41,3 @@ // Example: "pattern": [{ "name": "mdash", "pattern": "—" }] | ||
"dictionaries": ["golang"], | ||
// Dictionary definitions can also be supplied here | ||
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "local" match. | ||
"dictionaryDefinitions": [] | ||
@@ -33,0 +44,0 @@ } |
{ | ||
"name": "cspell-dict-golang", | ||
"version": "1.1.1", | ||
"description": "Golang dictionary for cspell.", | ||
"version": "1.1.2", | ||
"description": "Go Language dictionary for cspell.", | ||
"bin": { | ||
"cspell-dict-golang-link": "./link.js", | ||
"cspell-dict-golang-unlink": "./unlink.js" | ||
}, | ||
"scripts": { | ||
"build": "cspell-tools compile \"go.txt\" -o ." | ||
"build": "cspell-tools compile \"go.txt\" -o .", | ||
"prepublishOnly": "cp ../util/* .", | ||
"cspell-link": "node link.js", | ||
"cspell-unlink": "node unlink.js", | ||
"publish-minor": "npm version minor && npm publish", | ||
"publish-patch": "npm version patch && npm publish" | ||
}, | ||
@@ -15,2 +24,3 @@ "repository": { | ||
"golang", | ||
"Go Language", | ||
"dictionary", | ||
@@ -30,2 +40,5 @@ "spelling" | ||
}, | ||
"dependencies": { | ||
"configstore": "^3.1.0" | ||
}, | ||
"files": [ | ||
@@ -32,0 +45,0 @@ "go.txt.gz", |
@@ -1,3 +0,5 @@ | ||
# Cspell Golang Dictionary | ||
# Cspell Go Language Dictionary | ||
Go Language dictionary for cspell. | ||
This is a pre-built dictionary for use with cspell. | ||
@@ -7,4 +9,21 @@ | ||
## Usage | ||
This dictionary is included by default in cSpell. | ||
## Installation | ||
Global Install and add to cspell global settings. | ||
```sh | ||
npm install -g cspell-dict-golang | ||
cspell-dict-golang-link | ||
``` | ||
## Uninstall from cspell | ||
```sh | ||
cspell-dict-golang-unlink | ||
``` | ||
## Manual Installation | ||
The `cspell-ext.json` file in this package should be added to the import section in your cspell.json file. | ||
@@ -15,3 +34,3 @@ | ||
// … | ||
"import": ["<path to node>/cspell-dict-golang/cspell-ext.json"], | ||
"import": ["<path to node_modules>/cspell-dict-golang/cspell-ext.json"], | ||
// … | ||
@@ -34,2 +53,3 @@ } | ||
MIT | ||
MIT | ||
> Some packages may have other licenses included. |
16647
11
100
53
1
+ Addedconfigstore@^3.1.0
+ Addedconfigstore@3.1.5(transitive)
+ Addedcrypto-random-string@1.0.0(transitive)
+ Addeddot-prop@4.2.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedis-obj@1.0.1(transitive)
+ Addedmake-dir@1.3.0(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedunique-string@1.0.0(transitive)
+ Addedwrite-file-atomic@2.4.3(transitive)
+ Addedxdg-basedir@3.0.0(transitive)