Skip to content

Commit

Permalink
Merge pull request #353 from mysticmind/dotnet_file_alias
Browse files Browse the repository at this point in the history
fix: add 'cs' alias for csharp and 'fs' alias for fsharp
  • Loading branch information
orta authored Sep 22, 2022
2 parents ce37e92 + 8cf84a7 commit cbdffaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions packages/shiki/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type Lang =
| 'coffee'
| 'cpp'
| 'crystal'
| 'csharp' | 'c#'
| 'csharp' | 'c#' | 'cs'
| 'css'
| 'cue'
| 'd'
Expand All @@ -40,7 +40,7 @@ export type Lang =
| 'erb'
| 'erlang' | 'erl'
| 'fish'
| 'fsharp' | 'f#'
| 'fsharp' | 'f#' | 'fs'
| 'gherkin'
| 'git-commit'
| 'git-rebase'
Expand Down Expand Up @@ -316,7 +316,7 @@ export const languages: ILanguageRegistration[] = [
scopeName: 'source.cs',
path: 'csharp.tmLanguage.json',
samplePath: 'csharp.sample',
aliases: ['c#']
aliases: ['c#', 'cs']
},
{
id: 'css',
Expand Down Expand Up @@ -398,7 +398,7 @@ export const languages: ILanguageRegistration[] = [
scopeName: 'source.fsharp',
path: 'fsharp.tmLanguage.json',
samplePath: 'fsharp.sample',
aliases: ['f#'],
aliases: ['f#', 'fs'],
embeddedLangs: ['markdown']
},
{
Expand Down Expand Up @@ -604,6 +604,7 @@ export const languages: ILanguageRegistration[] = [
id: 'marko',
scopeName: 'text.marko',
path: 'marko.tmLanguage.json',
samplePath: 'marko.sample',
embeddedLangs: ['css', 'less', 'scss', 'typescript']
},
{
Expand Down
4 changes: 2 additions & 2 deletions scripts/grammarSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ export const languageAliases = {
berry: ['be'],
cadence: ['cdc'],
clojure: ['clj'],
csharp: ['c#'],
csharp: ['c#', 'cs'],
erlang: ['erl'],
fsharp: ['f#'],
fsharp: ['f#', 'fs'],
haskell: ['hs'],
handlebars: ['hbs'],
javascript: ['js'],
Expand Down

0 comments on commit cbdffaf

Please sign in to comment.