Skip to content

Commit

Permalink
fix: Add Hunspell Syntax Highlighter extension (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 6, 2023
1 parent 577b2fd commit 3e04a98
Show file tree
Hide file tree
Showing 16 changed files with 510 additions and 0 deletions.
31 changes: 31 additions & 0 deletions extensions/hunspell-syntax/.cspell/custom-dictionary.txt
@@ -0,0 +1,31 @@
# Custom Dictionary Words
CHECKCOMPOUNDCASE
CHECKCOMPOUNDDUP
CHECKCOMPOUNDPATTERN
CHECKCOMPOUNDREP
CHECKCOMPOUNDTRIPLE
CIRCUMFIX
COMPOUNDBEGIN
COMPOUNDEND
COMPOUNDFLAG
COMPOUNDFORBIDFLAG
COMPOUNDMIDDLE
COMPOUNDMIN
COMPOUNDPERMITFLAG
COMPOUNDRULE
COMPOUNDWORDMAX
FORBIDDENWORD
FORCEUCASE
FULLSTRIP
KEEPCASE
MAXCPDSUGS
MAXDIFF
MAXNGRAMSUGS
NEEDAFFIX
NOSPLITSUGS
NOSUGGEST
OCONV
ONLYINCOMPOUND
ONLYMAXDIFF
SIMPLIFIEDTRIPLE
WORDCHARS
61 changes: 61 additions & 0 deletions extensions/hunspell-syntax/.gitignore
@@ -0,0 +1,61 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# the extension
*.vsix

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
1 change: 1 addition & 0 deletions extensions/hunspell-syntax/.prettierignore
@@ -0,0 +1 @@
*.tmLanguage.json
13 changes: 13 additions & 0 deletions extensions/hunspell-syntax/.vscode/launch.json
@@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}
3 changes: 3 additions & 0 deletions extensions/hunspell-syntax/.vscode/settings.json
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": false
}
8 changes: 8 additions & 0 deletions extensions/hunspell-syntax/.vscodeignore
@@ -0,0 +1,8 @@
.*
.*/**

*.vsix

cspell.json
vsc-extension-quickstart.md
samples/**
7 changes: 7 additions & 0 deletions extensions/hunspell-syntax/CHANGELOG.md
@@ -0,0 +1,7 @@
# Change Log
All notable changes to the "hunspell" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]
- Initial release
21 changes: 21 additions & 0 deletions extensions/hunspell-syntax/LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Jason Dent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions extensions/hunspell-syntax/README.md
@@ -0,0 +1,9 @@
# VS Code Hunspell Extension

Support for Hunspell syntax highlighting in VS Code

## Features

Support `.aff` and `.dic` files.

![image](https://raw.githubusercontent.com/Jason3S/vscode-hunspell-ext/master/images/screen-shot.png)
17 changes: 17 additions & 0 deletions extensions/hunspell-syntax/cspell.json
@@ -0,0 +1,17 @@
{
"version": "0.2",
"ignorePaths": [],
"dictionaryDefinitions": [
{
"name": "custom-dictionary",
"path": "./.cspell/custom-dictionary.txt",
"addWords": true
}
],
"dictionaries": [
"custom-dictionary"
],
"words": [],
"ignoreWords": [],
"import": []
}
Binary file added extensions/hunspell-syntax/images/hunspell.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/hunspell-syntax/images/screen-shot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions extensions/hunspell-syntax/language-configuration.json
@@ -0,0 +1,14 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "#"
},
// symbols used as brackets
"brackets": [
["[", "]"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["[", "]"]
]
}
73 changes: 73 additions & 0 deletions extensions/hunspell-syntax/package.json
@@ -0,0 +1,73 @@
{
"name": "hunspell",
"displayName": "hunspell",
"description": "Hunspell Syntax Highlighting support",
"version": "1.0.0",
"publisher": "streetsidesoftware",
"engines": {
"vscode": "^1.14.0"
},
"categories": [
"Programming Languages"
],
"license": "MIT",
"qna": "marketplace",
"icon": "images/hunspell.png",
"contributes": {
"languages": [
{
"id": "hunspell.aff",
"aliases": [
"Hunspell",
"hunspell",
"aff"
],
"extensions": [
".aff"
],
"configuration": "./language-configuration.json"
},
{
"id": "hunspell.dic",
"aliases": [
"Hunspell",
"hunspell",
"dic"
],
"extensions": [
".dic"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "hunspell.aff",
"scopeName": "source.hunspell.aff",
"path": "./syntaxes/aff.tmLanguage.json"
},
{
"language": "hunspell.dic",
"scopeName": "source.hunspell.dic",
"path": "./syntaxes/dic.tmLanguage.json"
}
]
},
"repository": {
"type": "git",
"url": "https://github.com/streetsidesoftware/vscode-cspell-dict-extensions"
},
"bugs": {
"url": "https://github.com/streetsidesoftware/vscode-cspell-dict-extensions/issues"
},
"scripts": {
"clean": "echo clean",
"clean-build": "echo clean-build",
"publish-extension": "vsce publish",
"pack-extension": "vsce package",
"vscode:prepublish": "echo prepublish",
"build": "echo build",
"watch": "echo watch",
"test": "echo test"
}
}

0 comments on commit 3e04a98

Please sign in to comment.