-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enables me as a user to specify the FEEL dialect to use, one of `expression` or `unaryTests`.
- Loading branch information
Showing
4 changed files
with
73 additions
and
6 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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import { LanguageSupport } from '@codemirror/language'; | ||
import { feelLanguage } from 'lang-feel'; | ||
import { feel } from 'lang-feel'; | ||
|
||
export function language() { | ||
return new LanguageSupport(feelLanguage, [ ]); | ||
/** | ||
* @param {'expression' | 'unaryTests'} dialect | ||
* | ||
* @return {LanguageSupport} | ||
*/ | ||
export function language(dialect) { | ||
return feel(dialect); | ||
} |
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