Skip to content

Commit 2b4db7c

Browse files
authored
fix: alias c++ to cpp (#518)
1 parent 7f03951 commit 2b4db7c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/languages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export type Lang =
8080
| 'cobol'
8181
| 'codeql' | 'ql'
8282
| 'coffee'
83-
| 'cpp'
83+
| 'cpp' | 'c++'
8484
| 'crystal'
8585
| 'csharp' | 'c#' | 'cs'
8686
| 'css'

packages/shiki/src/languages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type Lang =
3030
| 'cobol'
3131
| 'codeql' | 'ql'
3232
| 'coffee'
33-
| 'cpp'
33+
| 'cpp' | 'c++'
3434
| 'crystal'
3535
| 'csharp' | 'c#' | 'cs'
3636
| 'css'

scripts/grammarSources.ts

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ export const languageAliases = {
360360
cadence: ['cdc'],
361361
clojure: ['clj'],
362362
codeql: ['ql'],
363+
cpp: ['c++'],
363364
csharp: ['c#', 'cs'],
364365
cypher: ['cql'],
365366
docker: ['dockerfile'],

0 commit comments

Comments
 (0)