Skip to content

Commit

Permalink
fix(ApiExplorer): Added support for Golang syntax highlighting (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephaxisa authored Apr 8, 2021
1 parent acff395 commit e2ae33e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/api-explorer/src/components/DocCode/DocCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const csharp = require('ace-builds/src-noconflict/mode-csharp')
const json = require('ace-builds/src-noconflict/mode-json')
// @ts-ignore
const theme = require('ace-builds/src-noconflict/theme-dracula')
// @ts-ignore
const golang = require('ace-builds/src-noconflict/mode-golang')
/* eslint-enable @typescript-eslint/ban-ts-comment,@typescript-eslint/no-unused-vars,@typescript-eslint/no-var-requires,import/no-extraneous-dependencies */

interface DocCodeProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-codegen/src/codeGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Generators: Array<IGeneratorSpec> = [
{
factory: (api: ApiModel, versions?: IVersionInfo) =>
new GoGen(api, versions),
language: 'Go',
language: 'Golang',
options: '-papiPackage=Looker -ppackageName=looker',
extension: /\.go/gi,
},
Expand Down

0 comments on commit e2ae33e

Please sign in to comment.