Skip to content

Commit

Permalink
fix: Add support for R (#2394)
Browse files Browse the repository at this point in the history
* fix: Add support for R

* Update app.test.ts.snap
  • Loading branch information
Jason3S committed Feb 3, 2022
1 parent b15f062 commit 6888d48
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cspell-bundled-dicts/cspell-default.config.js
Expand Up @@ -121,6 +121,7 @@ const settings = {
'@cspell/dict-powershell/cspell-ext.json',
'@cspell/dict-public-licenses/cspell-ext.json',
'@cspell/dict-python/cspell-ext.json',
'@cspell/dict-r/cspell-ext.json',
'@cspell/dict-ruby/cspell-ext.json',
'@cspell/dict-rust/cspell-ext.json',
'@cspell/dict-scala/cspell-ext.json',
Expand Down
1 change: 1 addition & 0 deletions packages/cspell-bundled-dicts/cspell-default.config.ts
Expand Up @@ -123,6 +123,7 @@ const settings: CSpellSettings = {
'@cspell/dict-powershell/cspell-ext.json',
'@cspell/dict-public-licenses/cspell-ext.json',
'@cspell/dict-python/cspell-ext.json',
'@cspell/dict-r/cspell-ext.json',
'@cspell/dict-ruby/cspell-ext.json',
'@cspell/dict-rust/cspell-ext.json',
'@cspell/dict-scala/cspell-ext.json',
Expand Down
11 changes: 11 additions & 0 deletions packages/cspell-bundled-dicts/package-lock.json

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

3 changes: 2 additions & 1 deletion packages/cspell-bundled-dicts/package.json
Expand Up @@ -54,8 +54,8 @@
"@cspell/dict-django": "^1.0.26",
"@cspell/dict-dotnet": "^1.0.32",
"@cspell/dict-elixir": "^1.0.26",
"@cspell/dict-en-gb": "^1.1.33",
"@cspell/dict-en_us": "^2.1.5",
"@cspell/dict-en-gb": "^1.1.33",
"@cspell/dict-filetypes": "^2.0.1",
"@cspell/dict-fonts": "^1.0.14",
"@cspell/dict-fullstack": "^2.0.4",
Expand All @@ -73,6 +73,7 @@
"@cspell/dict-powershell": "^1.0.19",
"@cspell/dict-public-licenses": "^1.0.4",
"@cspell/dict-python": "^2.0.5",
"@cspell/dict-r": "^1.0.1",
"@cspell/dict-ruby": "^1.0.15",
"@cspell/dict-rust": "^1.0.23",
"@cspell/dict-scala": "^1.0.21",
Expand Down
23 changes: 23 additions & 0 deletions packages/cspell-bundled-dicts/test-samples/sample.r
@@ -0,0 +1,23 @@
# Program to check
if the input number is prime or not
# take input from the user
num = as.integer(readline(prompt = "Enter a number: "))
flag = 0
# prime numbers are greater than 1
if (num > 1) {
# check
for factors
flag = 1
for (i in 2: (num - 1)) {
if ((num % % i) == 0) {
flag = 0
break
}
}
}
if (num == 2) flag = 1
if (flag == 1) {
print(paste(num, "is a prime number"))
} else {
print(paste(num, "is not a prime number"))
}
8 changes: 8 additions & 0 deletions packages/cspell/src/__snapshots__/app.test.ts.snap
Expand Up @@ -639,6 +639,7 @@ café - php ../cspell-bundled-dicts/...spell/dict-php/php.txt.
café - powershell ../cspell-bundled-dicts/...ershell/powershell.txt.gz
café - public-licenses* ../cspell-bundled-dicts/...es/public-licenses.txt.gz
café - python ../cspell-bundled-dicts/...dict-python/python.txt.gz
café - r ../cspell-bundled-dicts/...s/@cspell/dict-r/r.txt.gz
café - ruby ../cspell-bundled-dicts/...ell/dict-ruby/ruby.txt.gz
café - rust ../cspell-bundled-dicts/...ell/dict-rust/rust.txt.gz
café - scala ../cspell-bundled-dicts/...l/dict-scala/scala.txt.gz
Expand Down Expand Up @@ -686,6 +687,7 @@ hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
Expand Down Expand Up @@ -733,6 +735,7 @@ hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
Expand Down Expand Up @@ -941,6 +944,7 @@ café - php ../cspell-bundled-dicts/...spell/dict-php/php.txt.
café - powershell ../cspell-bundled-dicts/...ershell/powershell.txt.gz
café - public-licenses* ../cspell-bundled-dicts/...es/public-licenses.txt.gz
café - python ../cspell-bundled-dicts/...dict-python/python.txt.gz
café - r ../cspell-bundled-dicts/...s/@cspell/dict-r/r.txt.gz
café - ruby ../cspell-bundled-dicts/...ell/dict-ruby/ruby.txt.gz
café - rust ../cspell-bundled-dicts/...ell/dict-rust/rust.txt.gz
café - scala ../cspell-bundled-dicts/...l/dict-scala/scala.txt.gz
Expand Down Expand Up @@ -988,6 +992,7 @@ hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
Expand Down Expand Up @@ -1035,6 +1040,7 @@ hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
Expand Down Expand Up @@ -1110,6 +1116,7 @@ hello - php ../cspell-bundled-dicts/...pell/dict-php/php.txt.gz
hello - powershell ../cspell-bundled-dicts/...rshell/powershell.txt.gz
hello - public-licenses* ../cspell-bundled-dicts/...s/public-licenses.txt.gz
hello - python ../cspell-bundled-dicts/...ict-python/python.txt.gz
hello - r ../cspell-bundled-dicts/.../@cspell/dict-r/r.txt.gz
hello - ruby ../cspell-bundled-dicts/...ll/dict-ruby/ruby.txt.gz
hello - rust ../cspell-bundled-dicts/...ll/dict-rust/rust.txt.gz
hello - scala ../cspell-bundled-dicts/.../dict-scala/scala.txt.gz
Expand Down Expand Up @@ -1157,6 +1164,7 @@ not-in-any-dictionary - php ../cspell-bundle...t-php/php.txt.gz
not-in-any-dictionary - powershell ../cspell-bundle...owershell.txt.gz
not-in-any-dictionary - public-licenses* ../cspell-bundle...-licenses.txt.gz
not-in-any-dictionary - python ../cspell-bundle...on/python.txt.gz
not-in-any-dictionary - r ../cspell-bundle.../dict-r/r.txt.gz
not-in-any-dictionary - ruby ../cspell-bundle...ruby/ruby.txt.gz
not-in-any-dictionary - rust ../cspell-bundle...rust/rust.txt.gz
not-in-any-dictionary - scala ../cspell-bundle...ala/scala.txt.gz
Expand Down

0 comments on commit 6888d48

Please sign in to comment.