Skip to content

Commit

Permalink
fix: Make sure ext .R is detected as an R file.
Browse files Browse the repository at this point in the history
Fix #2424
  • Loading branch information
Jason3S committed Feb 9, 2022
1 parent 116aa6a commit e8e6cc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/cspell-lib/src/LanguageIds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ describe('Validate LanguageIds', () => {
test.each`
filename | expected
${'code.ts'} | ${['typescript']}
${'base.r'} | ${['r']}
${'base.R'} | ${['r']}
${'doc.tex'} | ${['latex']}
${'image.jpg'} | ${['image']}
${'workspace.code-workspace'} | ${['jsonc']}
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-lib/src/LanguageIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const languageExtensionDefinitions: LanguageDefinitions = [
{ id: 'powershell', extensions: ['.ps1', '.psm1', '.psd1', '.pssc', '.psrc'] },
{ id: 'purescript', extensions: ['.purs'] },
{ id: 'python', extensions: ['.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi'] },
{ id: 'r', extensions: ['.r', '.rhistory', '.rprofile', '.rt'] },
{ id: 'r', extensions: ['.r', '.R', '.rhistory', '.rprofile', '.rt'] },
{ id: 'razor', extensions: ['.cshtml'] },
{ id: 'ruby', extensions: ['.rb', '.rbx', '.rjs', '.gemspec', '.rake', '.ru'] },
{ id: 'ruby', extensions: [], filenames: ['Gemfile'] },
Expand Down

0 comments on commit e8e6cc0

Please sign in to comment.