-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support impala in languages * feat: add complexOperators and string_double * feat: support impala in website * fix: ICreateData import path * fix: test error * fix(impala): remove nonReservedKeywords in keywords * fix(impala): update review comment
- Loading branch information
Showing
10 changed files
with
678 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { worker } from '../fillers/monaco-editor-core'; | ||
import ImpalaSQL from 'dt-sql-parser/dist/parser/impala'; | ||
import { BaseSQLWorker } from '../baseSQLWorker'; | ||
import { ICreateData } from '../_.contribution'; | ||
|
||
export class ImpalaSQLWorker extends BaseSQLWorker { | ||
protected _ctx: worker.IWorkerContext; | ||
protected parser: ImpalaSQL; | ||
constructor(ctx: worker.IWorkerContext, createData: ICreateData) { | ||
super(); | ||
this._ctx = ctx; | ||
this.parser = new ImpalaSQL(); | ||
} | ||
} | ||
|
||
export function create(ctx: worker.IWorkerContext, createData: ICreateData): ImpalaSQLWorker { | ||
return new ImpalaSQLWorker(ctx, createData); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { loadLanguage, registerLanguage } from '../_.contribution'; | ||
import { setupLanguageFeatures } from '../setupLanguageFeatures'; | ||
import { LanguageIdEnum } from '../common/constants'; | ||
|
||
registerLanguage({ | ||
id: LanguageIdEnum.IMPALA, | ||
extensions: ['.impalasql'], | ||
aliases: ['impalaSQL', 'impala', 'Impala'], | ||
loader: () => import('./impalasql') | ||
}); | ||
|
||
loadLanguage(LanguageIdEnum.IMPALA); | ||
|
||
setupLanguageFeatures({ | ||
languageId: LanguageIdEnum.IMPALA, | ||
completionItems: true, | ||
diagnostics: true | ||
}); |
Empty file.
Oops, something went wrong.